/* ==========================================================================
   GYZ INDUSTRIAL - PREMIUM FRONTEND DESIGN SYSTEM
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Refined Color Palette */
    --clr-primary-red: #D31118;
    --clr-primary-red-hover: #b00d13;
    --clr-primary-light: rgba(211, 17, 24, 0.08);
    --clr-bg-light: #f6f9fc;
    --clr-bg-card: #ffffff;
    --clr-border: #e6ebf1;
    --clr-white: #ffffff;
    --clr-text-main: #0a2540;
    --clr-text-muted: #425466;
    
    /* Premium Gradients */
    --grad-primary: linear-gradient(135deg, #D31118 0%, #ff3c41 100%);
    --grad-dark: linear-gradient(135deg, #0a2540 0%, #16385c 100%);
    --grad-mesh: radial-gradient(at 0% 0%, rgba(211, 17, 24, 0.12) 0px, transparent 50%),
                 radial-gradient(at 100% 0%, rgba(10, 37, 64, 0.05) 0px, transparent 50%),
                 radial-gradient(at 100% 100%, rgba(211, 17, 24, 0.08) 0px, transparent 50%),
                 radial-gradient(at 0% 100%, rgba(59, 130, 246, 0.05) 0px, transparent 50%);

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions & Shadows (Heavy Stripe Style) */
    --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-card: 0 15px 35px -5px rgba(50,50,93,0.08), 0 5px 15px -5px rgba(0,0,0,0.05);
    --shadow-card-hover: 0 30px 60px -15px rgba(50,50,93,0.15), 0 18px 36px -18px rgba(0,0,0,0.2), 0 0 0 1px rgba(211,17,24,0.1);
    --shadow-btn: 0 4px 6px rgba(50,50,93,0.11), 0 1px 3px rgba(0,0,0,0.08);
    --shadow-btn-hover: 0 12px 20px -5px rgba(211, 17, 24, 0.35), 0 4px 6px rgba(0,0,0,0.08);
}

/* ==========================================================================
   RESET & GLOBAL
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--clr-bg-light);
}

body {
    font-family: var(--font-body);
    color: var(--clr-text-main);
    background-color: var(--clr-bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    color: var(--clr-text-main);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.6px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Text Highlights */
.text-gradient {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-red {
    color: var(--clr-primary-red);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    letter-spacing: 0.2px;
}

.btn-primary {
    background: var(--grad-primary);
    color: var(--clr-white);
    box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn-hover);
    filter: brightness(1.05);
}

.btn-secondary {
    background-color: var(--clr-white);
    color: var(--clr-text-main);
    box-shadow: var(--shadow-btn);
    border: 1px solid var(--clr-border);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    background-color: #fafbfc;
    box-shadow: 0 7px 14px rgba(50,50,93,0.08), 0 3px 6px rgba(0,0,0,0.05);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(246, 249, 252, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px -10px rgba(10, 37, 64, 0.05);
    border-bottom: 1px solid var(--clr-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    transition: var(--transition);
}

.navbar.scrolled .nav-container {
    height: 75px;
}

.logo img {
    height: 65px;
    width: auto;
    transition: var(--transition);
}

.navbar.scrolled .logo img {
    height: 48px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn) {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--clr-text-muted);
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:not(.btn):hover {
    color: var(--clr-primary-red);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-primary-red);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--clr-text-main);
    border-radius: 3px;
    transition: var(--transition);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 120px;
    padding-bottom: 7vw;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 4vw));
    background-color: #f6f9fc;
    background-image: var(--grad-mesh);
    background-size: 200% 200%;
    animation: gradientMove 15s ease infinite alternate;
}

@keyframes gradientMove {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 100%; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    text-align: center;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4.8rem;
    margin-bottom: 1.5rem;
    color: var(--clr-text-main);
    letter-spacing: -1.5px;
    font-weight: 800;
}

.hero p {
    font-size: 1.25rem;
    color: var(--clr-text-muted);
    margin-bottom: 3rem;
    font-weight: 400;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ==========================================================================
   STATS SECTION
   ========================================================================== */
.stats-section {
    padding: 5rem 0;
    background-color: var(--clr-white);
    border-bottom: 1px solid var(--clr-border);
    position: relative;
    z-index: 5;
    margin-top: -30px;
    box-shadow: 0 10px 30px -15px rgba(10,37,64,0.03);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1.5rem;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: var(--clr-border);
}

@media (max-width: 768px) {
    .stat-item::after { display: none; }
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--clr-primary-red);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.stat-item p {
    font-size: 1.1rem;
    color: var(--clr-text-main);
    font-weight: 600;
}

/* ==========================================================================
   DYNAMIC CATALOG & CARDS
   ========================================================================== */
.section {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    font-size: 2.8rem;
    letter-spacing: -1px;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--grad-primary);
    margin: 1.5rem auto 0;
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    padding-top: 1rem;
    padding-bottom: 2rem;
}

.service-card {
    background-color: var(--clr-bg-card);
    border: 1px solid rgba(230,235,241,0.6);
    border-radius: 16px;
    transition: var(--transition);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(211, 17, 24, 0.15);
}

.service-img-wrapper {
    height: 230px;
    background-color: #f6f9fc;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(230,235,241,0.4);
}

.service-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-img-wrapper img {
    transform: scale(1.06);
}

.service-content {
    padding: 2.5rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background-color: var(--clr-primary-light);
    color: var(--clr-primary-red);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    align-self: flex-start;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--clr-text-main);
    font-weight: 700;
}

.service-card p {
    color: var(--clr-text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.service-card .details-link {
    color: var(--clr-primary-red);
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.service-card:hover .details-link {
    transform: translateX(4px);
}

/* ==========================================================================
   INDUSTRIES
   ========================================================================== */
.industries-section {
    padding: 8rem 0;
    background-color: var(--clr-bg-light);
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
}

.industry-card {
    background: var(--clr-white);
    padding: 3.5rem 2rem;
    text-align: center;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(50,50,93,0.03);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.industry-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-top-color: var(--clr-primary-red);
}

.ind-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: var(--transition);
}

.industry-card:hover .ind-icon {
    transform: scale(1.15) rotate(5deg);
}

.industry-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.industry-card p {
    color: var(--clr-text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   TRUST SECTION
   ========================================================================== */
.trust-section {
    background: var(--grad-dark);
    color: var(--clr-white);
    padding: 9rem 0;
    text-align: center;
    clip-path: polygon(0 4vw, 100% 0, 100% calc(100% - 4vw), 0 100%);
    margin-top: -4vw;
    margin-bottom: -4vw;
    position: relative;
    z-index: 1;
}

.trust-section h3 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: white;
}

.trust-section p {
    font-size: 1.2rem;
    max-width: 840px;
    margin: 0 auto;
    font-weight: 400;
    color: #adbdcc;
    line-height: 1.85;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
    padding: 7rem 0;
    background-color: var(--clr-bg-light);
    position: relative;
    z-index: 2;
}

.contact-card {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr;
    background: var(--clr-white);
    border-radius: 24px;
    box-shadow: 0 30px 60px -15px rgba(50, 50, 93, 0.15), 0 18px 36px -18px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.contact-info {
    background: linear-gradient(135deg, var(--clr-primary-red) 0%, #ff474b 100%);
    color: var(--clr-white);
    padding: 5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h2 {
    color: var(--clr-white);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
}

.contact-info p {
    margin-bottom: 3rem;
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.8;
}

.contact-details li {
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-form {
    padding: 5rem 4rem;
    background: var(--clr-white);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid var(--clr-border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1.02rem;
    background-color: #f8fafc;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--clr-primary-red);
    box-shadow: 0 0 0 3px rgba(211,17,24,0.12);
    background-color: var(--clr-white);
}

.contact-msg-box {
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
    font-size: 0.95rem;
}

.contact-msg-box.success {
    color: #15803d;
    background: #dcfce7;
    padding: 1rem;
    border-radius: 8px;
}

.contact-msg-box.error {
    color: var(--clr-primary-red);
    background: var(--clr-primary-light);
    padding: 1rem;
    border-radius: 8px;
}

/* ==========================================================================
   WHATSAPP & ANIMATIONS
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    border-radius: 50px;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 25px rgba(37,211,102,0.4);
    z-index: 9999;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 15px 30px rgba(37,211,102,0.6);
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: #f6f9fc;
    color: var(--clr-text-muted);
    padding-top: 10rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .footer-logo {
    height: 65px;
    margin-bottom: 1.5rem;
}

.footer h4 {
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    color: var(--clr-text-main);
    font-family: var(--font-display);
    font-weight: 700;
}

.footer p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.footer-bottom {
    background-color: #e6ebf1;
    padding: 1.7rem 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 992px) {
    .hero h1 { font-size: 3.8rem; }
    .contact-card { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero { clip-path: none; padding-bottom: 4rem; min-height: 75vh; }
    .hero h1 { font-size: 2.8rem; }
    .trust-section { clip-path: none; margin-top: 0; margin-bottom: 0; padding: 6rem 0; }
    .footer { padding-top: 5rem; }
    .nav-container { height: 80px; }
    .logo img { height: 50px; }
    .mobile-menu-btn { display: flex; }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--clr-white);
        flex-direction: column;
        padding: 2.5rem;
        box-shadow: 0 20px 40px rgba(0,0,0,0.08);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.4s ease-in-out;
        gap: 1.5rem;
    }
    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
    .contact-info { padding: 4rem 2.5rem; }
    .contact-form { padding: 4rem 2.5rem; }
}
