/* ==========================================================================
   1. GLOBAL STYLES & FONTS
   ========================================================================== */
   body {
    font-family: "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    color: #333;
}

html {
    scroll-behavior: smooth;
}

.brand-red { color: #D32F2F; font-weight: bold; }

/* ==========================================================================
   2. HEADER & NAVIGATION
   ========================================================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 2000px;
    height: 100px;
    margin: 0 auto;
    padding: 0 50px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
}

.logo, .supplier-logo {
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 1002;
}

.logo img { height: 70px; width: auto; object-fit: contain; }
.principal-row { display: flex; flex-direction: row; align-items: center; gap: 20px; }
.principal-row img { height: 50px; width: auto; object-fit: contain; }

/* --- DESKTOP NAVIGATION --- */
nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 1001;
}

nav ul {
    display: flex;
    flex-direction: row;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li { display: inline-flex; flex-direction: column; align-items: center; }

nav li::after {
    display: block;
    content: attr(data-text);
    font-weight: bold;
    height: 0;
    overflow: hidden;
    visibility: hidden;
}

nav a, nav .active {
    text-decoration: none;
    font-size: 16px;
    white-space: nowrap;
    color: #000;
    transition: color 0.3s ease;
}

nav .active { color: #D32F2F; font-weight: bold; }
nav a:hover { color: #D32F2F; }

/* --- MOBILE MENU TOGGLE --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 2001;
    padding: 10px;
}

.bar { width: 25px; height: 2px; background-color: #333; margin: 4px 0; transition: 0.4s; }

/* ==========================================================================
   3. ANIMATIONS & REVEALS
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    visibility: hidden; 
}

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

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }
.delay-4 { transition-delay: 0.8s; }

.pulse-letter {
    display: inline-block;
    margin-left: 5px; 
    transform-origin: center;
}

.reveal.active .pulse-letter {
    animation: wordPulse 2.5s ease-in-out infinite;
}

@keyframes wordPulse {
    0%, 100% { transform: scale(1); text-shadow: 0 0 0px rgba(211, 47, 47, 0); }
    50% { transform: scale(1.08); text-shadow: 0 0 20px rgba(211, 47, 47, 0.3); color: #ff1a1a; }
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero { background-color: #fff; width: 100%; overflow: hidden; }

.hero-container {
    display: flex;
    align-items: center;
    min-height: 80vh;
    padding-left: 8%;
}

.hero-text { flex: 1; padding-right: 50px; z-index: 10; }

.hero-text h1 {
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    color: #1a1a1a;
    line-height: 1.05;
    margin-bottom: 25px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-text h1 span { color: #D32F2F; }

.hero-text p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #515154;
    max-width: 600px;
    margin-top: 20px;
    margin-bottom: 35px;
}

/* --- HERO SPECIALTIES 3-COLUMN TABLE --- */
.hero-specialties-table {
    border-collapse: collapse;
    margin: 30px 0 45px 0;
    width: auto;
}

.hero-specialties-table td {
    padding-bottom: 20px;
    vertical-align: top;
    font-size: 1.1rem;
    line-height: 1.4;
}

.bullet-cell {
    width: 25px;
    padding-top: 6px;
}

.bullet-cell::before {
    content: "";
    display: block;
    width: 8px;
    height: 8px;
    background-color: #D32F2F;
}

.spec-header {
    width: 220px;
    padding-right: 20px;
    color: #1a1a1a;
    white-space: nowrap;
}

.spec-desc {
    color: #515154;
    max-width: 400px;
}

.hero-btns { display: flex; gap: 20px; margin-top: 40px; }

.hero-image { flex: 1.5; height: 80vh; }

.hero-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    mask-image: linear-gradient(to right, transparent 0%, black 30%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 30%);
}

/* ==========================================================================
   5. BUTTONS
   ========================================================================== */
.btn-primary, .btn-secondary {
    padding: 16px 35px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 50px;
    transition: 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    display: inline-block;
}

.btn-primary { background-color: #D32F2F; color: #fff; border-color: #D32F2F; }
.btn-primary:hover { background-color: #000; border-color: #000; transform: translateY(-3px); }

.btn-secondary { border-color: #000; color: #000; }
.btn-secondary:hover { background-color: #000; color: #fff; transform: translateY(-3px); }

/* ==========================================================================
   6. WHY CHOOSE US (APPLE STYLE)
   ========================================================================== */
.why-choose-us {
    padding: 120px 0; 
    background-color: #fcfcfc;
    width: 100%;
}

.why-choose-us .benefits-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column; 
}

.benefits-header {
    width: 100%;
    text-align: center;
    margin-bottom: 80px;
}

.benefits-header h2 {
    font-size: 38px;
    font-weight: 800;
    margin-top: 20px;
    color: #1a1a1a;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

/* --- APPLE STYLE OVERLAY CARDS --- */
.benefit-card.apple-style {
    position: relative;
    height: 500px;
    border-radius: 22px; 
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; 
    background: #ffffff;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
}

.card-content {
    position: relative;
    z-index: 10;
    padding: 40px; 
    max-width: 90%;
}

.card-content h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    color: #1d1d1f; 
}

.card-content p {
    font-size: 16px;
    line-height: 1.5;
    font-weight: 500;
    color: #515154; 
    margin: 0;
}

.card-content .benefit-icon {
    margin-bottom: 20px;
    color: #D32F2F; 
    width: 32px;
    height: 32px;
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.apple-fade-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.7) 20%,
        rgba(255, 255, 255, 0) 50%
    );
    z-index: 2;
}

.benefit-card.apple-style:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.benefit-card.apple-style:hover .card-bg img {
    transform: scale(1.08);
}

/* ==========================================================================
   7. ADVANTAGE SECTION (GLASS STYLE) - UPDATED
   ========================================================================== */
   .benefits {
    padding: 100px 0;
    background-color: #ffffff;
    overflow: hidden; /* Prevents horizontal scroll on small screens */
}

.benefits-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Auto-adjusts columns */
    gap: 30px;
}

.benefit-card {
    position: relative;
    height: 500px; 
    overflow: hidden;
    border-radius: 22px; /* Matched to Apple-style cards for consistency */
    background-color: #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03); 
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.benefit-pic {
    width: 100%; height: 100%;
    position: absolute; top: 0; left: 0;
}

.benefit-pic img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: all 0.7s ease;
}

.benefit-card .glass-content {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 35px 25px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.85); /* Slightly more opaque for readability */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    /* Changed from 100% to allow visibility or easy transition */
    transform: translateY(70%); 
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 2;
}

.benefit-card:hover .glass-content { transform: translateY(0); }

/* ==========================================================================
   8. PRINCIPALS SECTION
   ========================================================================== */
.principals-section { padding: 100px 0; background-color: #fcfcfc; border-top: 1px solid #eee; width: 100%; overflow-x: hidden; }

.principals-container { max-width: 2000px; margin: 0 auto; padding: 0 20px; }

.principal-banner {
    width: 100vw; position: relative; left: 50%; right: 50%;
    margin-left: -50vw; margin-right: -50vw;
    height: 820px; margin-bottom: 60px; overflow: hidden;
}

.principal-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }

.principals-header { text-align: center; margin-bottom: 60px; }

.principals-header h2 { font-size: 36px; font-weight: bold; color: #000; }

.principals-grid { display: flex; justify-content: center; gap: 60px; margin-top: 40px; }

.principal-box {
    flex: 1; max-width: 500px; background: #fff; padding: 50px;
    border: 1px solid #eee; text-align: center; transition: 0.3s;
}

.principal-logo-wrap { height: 120px; display: flex; align-items: center; justify-content: center; margin-bottom: 30px; }

.principal-logo-wrap img { max-height: 100%; max-width: 80%; filter: grayscale(100%); opacity: 0.7; transition: 0.4s; }

.principal-box:hover .principal-logo-wrap img { filter: grayscale(0%); opacity: 1; }

/* ==========================================================================
   9. INDUSTRY & PRODUCT LAYOUTS
   ========================================================================== */
.ind-tag {
    display: inline-block;
    padding: 5px 12px;
    background: #f8f8f8;
    color: #D32F2F;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 3px solid #D32F2F;
}

.industry-card {
    background: #fff; border: 1px solid #eee; transition: 0.4s;
    display: flex; flex-direction: column; cursor: pointer; text-decoration: none;
}

.industry-card:hover { border-color: #D32F2F; transform: translateY(-10px); }

/* ==========================================================================
   10. MEDIA QUERIES (RESPONSIVE)
   ========================================================================== */

/* --- 1400px: TABLET / SMALL DESKTOP --- */
@media (max-width: 1400px) {
    header { padding: 0 20px; height: 80px; }
    .menu-toggle { display: flex; }
    .supplier-logo { display: none; }
    
    nav {
        position: fixed; top: 80px; left: 0; width: 100%;
        height: calc(100vh - 80px); background: white;
        transform: translateX(100%); transition: transform 0.4s ease;
        display: block !important; padding: 60px 0; z-index: 2000;
    }
    
    nav.show { transform: translateX(0); }
    nav ul { flex-direction: column; gap: 30px; }
    
    .hero-container { flex-direction: column-reverse; padding: 0; }
    .hero-text { text-align: center; padding: 40px 20px; }
    .hero-image { width: 100%; height: 400px; }
    .hero-image img {
        mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
        -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
    }
}

/* --- 992px: TABLET GRID COLLAPSE --- */
@media (max-width: 992px) {
    .benefits-grid, .principals-grid { grid-template-columns: 1fr; display: block; }
    .benefit-card, .principal-box { margin-bottom: 20px; width: 100%; box-sizing: border-box;}

    .principal-banner {
        height: 400px; 
        width: 100vw;
        margin-left: -50vw;
        margin-right: -50vw;
        left: 50%;
        right: 50%;
        position: relative;
    }

    .principal-banner img {
        width: 100%;
        height: 100%;
        object-fit: cover; 
        object-position: center; 
    }

    .principal-logo-wrap img {
        filter: grayscale(0%); /* Removes the grayscale */
        opacity: 1;            /* Full visibility */
    }
    
    .principal-box {
        padding: 30px;         /* Slightly reduced padding for mobile */
        margin-bottom: 15px;
    }
}

/* --- 601px to 992px: TABLET HEADER ALIGNMENT --- */
@media (min-width: 601px) and (max-width: 992px) {
    .benefits-header {
        display: grid !important;
        grid-template-columns: 1fr 1fr; 
        align-items: end;
        text-align: left !important;
        gap: 20px;
        padding: 0 40px;
        margin-bottom: 60px;
    }
    
    .benefits-header .ind-tag { 
        grid-column: span 2; 
        width: fit-content; 
    }
    
    .benefits-header h2 { 
        margin: 0; 
        padding-right: 20px; 
        font-size: 32px; 
    }
}

/* --- 600px: MOBILE --- */
@media (max-width: 600px) {
    /* MOBILE HERO TABLE */
    .hero-specialties-table, 
    .hero-specialties-table tbody {
        display: block;
        width: 100%;
    }

    .hero-specialties-table tr {
        display: block; 
        margin-bottom: 25px;
    }

    .bullet-cell {
        display: inline-block;
        width: 20px;
        vertical-align: top;
        padding-top: 8px;
    }

    .spec-header {
        display: inline-block;
        width: calc(100% - 30px); 
        vertical-align: top;
        white-space: normal;
        padding-right: 0;
        font-weight: 800;
    }

    .spec-desc {
        display: block;
        padding-left: 20px; 
        margin-top: 5px;
        font-size: 1rem;
    }

    /* MOBILE BENEFITS */
    .benefits-container {
        padding: 0 20px;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .benefit-card {
        height: 350px; /* Shorter cards for better mobile scrolling */
        width: 100%;
    }

    /* IMPORTANT: Disable the 'hide' transform on mobile so users can see the text */
    .benefit-card .glass-content {
        transform: translateY(0); 
        background: rgba(255, 255, 255, 0.9); /* Sharper background for mobile reading */
        padding: 20px;
    }

    .benefit-card .glass-content h3 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .benefit-card .glass-content p {
        font-size: 14px;
        line-height: 1.4;
    }

    .principal-banner {
        height: 300px; 
    }
}