/* =========================================================
   Infinity Chemicals – Global Styles
   ========================================================= */

/* 1. ROOT VARIABLES & RESET
   --------------------------------------------------------- */

:root {
    /* Brand colors (from logo) */
    --brand-blue: #006B94;
    --brand-teal: #00A7A0;
    --brand-green: #8AC441;

    /* Gradient based on logo */
    --brand-gradient: linear-gradient(to right, var(--brand-blue), var(--brand-green));

    /* Dark theme base */
    --dark: #0B0F12;
    --dark-grey: #1A1F24;
    --light: #F4F5F7;
    --text-grey: #9CA3AF;

    /* Spacing scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;

    /* Fonts */
    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.7;
    overflow-x: hidden;
}

/* 2. TYPOGRAPHY & UTILITIES
   --------------------------------------------------------- */

h1, h2, h3, h4 {
    font-family: var(--font-head);
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--light);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--space-xl) 0;
}

.text-center {
    text-align: center;
}

/* Background helpers */
.bg-light {
    background: #111827;
}

.bg-dark {
    background: #020617;
}

/* Section headers */
.section-header {
    margin-bottom: var(--space-md);
}

.section-header h2 {
    font-size: 2rem;
}

.section-header p {
    color: var(--text-grey);
    margin-top: 5px;
}

.section-header .line {
    width: 60px;
    height: 3px;
    margin-top: 12px;
    background: var(--brand-gradient);
    border-radius: 999px;
}

/* Gradient text helper */
.gradient-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* 3. BUTTONS
   --------------------------------------------------------- */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Main CTA button – gradient */
.btn-primary {
    background: var(--brand-gradient);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 167, 160, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(to right, var(--brand-green), var(--brand-blue));
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 167, 160, 0.6);
}

/* Secondary outline button */
.btn-outline {
    border: 2px solid var(--light);
    color: var(--light);
    margin-left: 10px;
    background: transparent;
}

.btn-outline:hover {
    background: var(--light);
    color: var(--dark);
}

/* 4. NAVBAR
   --------------------------------------------------------- */

.navbar {
    background: #ffffff;
    height: 96px;
    display: flex;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #E5E7EB;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* Padding for main content (HTML doesn't have <main> yet,
   but this is safe if you add it later) */
main {
    padding-top: 96px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 160px;
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.6));
    transition: transform 0.2s ease, filter 0.2s ease;
}

.logo img:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.8));
}

/* Desktop nav links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #0B0F12;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--brand-teal);
}

/* Nav CTA button */
.btn-nav {
    border: 2px solid var(--brand-teal);
    padding: 8px 24px;
    border-radius: 50px;
    color: var(--brand-teal);
    font-weight: 700;
}

.btn-nav:hover {
    background: var(--brand-teal);
    color: var(--dark);
}

/* Hamburger for mobile */
.hamburger {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #0B0F12; /* dark on white navbar */
    background: transparent;
    border: none;
}

.hamburger.is-active {
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

/* Mobile nav open state */
.nav-links.nav-open {
    display: flex;
    position: absolute;
    top: 96px;
    right: 0;
    left: 0;
    flex-direction: column;
    background: rgba(11, 15, 18, 0.98);
    padding: 20px 0;
    border-bottom: 1px solid #111827;
}

.nav-links.nav-open li {
    margin: 10px 0;
    text-align: center;
}

.nav-links.nav-open a {
    color: #F9FAFB;
}

/* 5. HERO SECTION
   --------------------------------------------------------- */

.hero {
    min-height: 90vh;
    background: url('images/hero-industrial.webp') no-repeat center right/cover;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(11, 15, 18, 0.92) 0%,
        rgba(11, 15, 18, 0.88) 40%,
        rgba(11, 15, 18, 0.55) 65%,
        rgba(11, 15, 18, 0.15) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 620px;
    margin-right: auto;
    padding: 4rem 0;
    text-align: left;
}

.hero h1 {
    font-size: 3.1rem;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.hero p {
    font-size: 1.05rem;
    margin-bottom: 2rem;
    color: #d1d5db;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* 6. ABOUT SECTION
   --------------------------------------------------------- */

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-md);
}

.about-text p {
    color: var(--text-grey);
}

/* Stat cards */
.about-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.stat-card {
    background: var(--dark-grey);
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid var(--brand-teal);
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-card i {
    font-size: 1.5rem;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 7. FOUNDER SECTION
   --------------------------------------------------------- */

.founder-section {
    background: #020617;
    border-top: 1px solid #0f172a;
    border-bottom: 1px solid #0f172a;
}

.founder-heading {
    margin-bottom: 32px;
}

/* Main founder card */
.founder-inner {
    background: var(--dark-grey);
    border-radius: 24px;
    border: 1px solid #111827;
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.55);
    padding: 32px 36px;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
    gap: 32px;
    align-items: center;
}

/* Photo block */
.founder-photo {
    display: flex;
    justify-content: center;
}

.founder-photo img {
    width: 100%;
    max-width: 320px;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.7);
    border: 2px solid rgba(148, 163, 184, 0.6);
}

/* Text block */
.founder-content {
    max-width: 560px;
}

.founder-content h3 {
    font-size: 1.7rem;
    margin-bottom: 4px;
}

.founder-title {
    font-size: 0.95rem;
    color: var(--text-grey);
    margin-bottom: 16px;
}

.founder-title span {
    display: block;
    margin-top: 2px;
}

.founder-content p {
    color: var(--text-grey);
    margin-bottom: 14px;
}

/* Role list */
.founder-highlights {
    margin: 8px 0 18px;
    padding-left: 18px;
}

.founder-highlights li {
    margin-bottom: 6px;
    font-size: 0.92rem;
}

/* Tag pills */
.founder-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.founder-tags span {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.95);
}

/* CTA */
.founder-cta {
    margin-top: 4px;
}

/* 8. INDUSTRIES SECTION
   --------------------------------------------------------- */
/* =========================================
   ENHANCED INDUSTRIES SECTION WITH EXPLORE BUTTONS
   ========================================= */

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

/* Industry Cards with Button Layout */
.ind-item {
    background: var(--dark-grey);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    border: 2px solid #1f2937;
    font-weight: 600;
    color: var(--light);
    
    /* Layout */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    
    /* Interactive styles */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    
    /* Subtle shadow at rest */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Industry Icon */
.industry-icon {
    font-size: 2.5rem;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    transition: 0.3s;
}

.ind-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Stronger hover effect */
.ind-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 167, 160, 0.25);
    border-color: var(--brand-teal);
    background: linear-gradient(135deg, rgba(0, 107, 148, 0.08), rgba(138, 196, 65, 0.08));
}

.ind-item:hover .industry-icon {
    transform: scale(1.1);
}

/* Active state */
.ind-item.active {
    background: linear-gradient(135deg, rgba(0, 107, 148, 0.2), rgba(138, 196, 65, 0.2));
    border-color: var(--brand-teal) !important;
    box-shadow: 0 0 30px rgba(0, 167, 160, 0.4);
}

/* Explore Button */
.explore-btn {
    background: var(--brand-gradient);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 167, 160, 0.3);
    margin-top: auto;
}

.explore-btn i {
    transition: transform 0.3s ease;
}

.explore-btn:hover {
    background: linear-gradient(to right, var(--brand-green), var(--brand-blue));
    box-shadow: 0 6px 20px rgba(0, 167, 160, 0.5);
    transform: translateY(-2px);
}

.explore-btn:hover i {
    transform: translateX(4px);
}

/* Click/Active effect */
.explore-btn:active {
    transform: translateY(0);
}

/* Remove old chevron arrow */
.ind-item::after {
    display: none;
}

/* Pulsing animation on page load */
@keyframes pulseHint {
    0%, 100% { 
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }
    50% { 
        box-shadow: 0 10px 20px rgba(0, 167, 160, 0.25);
        transform: translateY(-3px);
    }
}

.ind-item {
    animation: pulseHint 2.5s ease-in-out 1;
    animation-delay: calc(var(--index) * 0.15s);
}

/* Gradient border effect */
.ind-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-green));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.ind-item:hover::before {
    opacity: 0.6;
}

/* =========================================
   RESPONSIVE ADJUSTMENTS
   ========================================= */

@media (max-width: 768px) {
    .industries-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .ind-item {
        padding: 28px 20px;
    }
    
    .industry-icon {
        font-size: 2rem;
    }
    
    .ind-item h3 {
        font-size: 0.95rem;
        min-height: 44px;
    }
    
    .explore-btn {
        font-size: 0.8rem;
        padding: 9px 16px;
    }
}

@media (max-width: 640px) {
    .industries-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .ind-item {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .ind-item h3 {
        font-size: 0.9rem;
    }
    
    .explore-btn span {
        font-size: 0.75rem;
    }
}

/* 9. SERVICES SECTION
   --------------------------------------------------------- */

/* Premium 2x2 layout on desktop */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    margin-top: 40px;
}

.service-card {
    background: var(--dark-grey);
    padding: 36px;
    border-radius: 16px;
    transition: 0.3s ease;
    border: 1px solid #2b3138;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--brand-teal);
    box-shadow: 0 10px 30px -10px rgba(0, 167, 160, 0.4);
}

.service-card i {
    font-size: 2.8rem;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card h3 {
    font-size: 1.4rem;
    margin: 0;
}

.service-card p {
    font-size: 1rem;
    color: var(--text-grey);
    line-height: 1.6;
}

/* 10. PARTNERS SECTION – SQUARE LOGO GRID
   --------------------------------------------------------- */

.partners-section {
    background-color: #e5ecec;
    padding: 80px 0;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 10px;
}

/* Responsive square grid */
.partners-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 28px;
    justify-items: center;
    align-items: center;
    margin-top: 40px;
    width: 100%;
}

/* Square logo card */
.partner-logo {
    width: 100%;
    max-width: 180px;
    height: 120px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    transition: all 0.25s ease;
}

/* Logo inside card */
.partner-logo img {
    max-width: 90%;
    max-height: 70%;
    object-fit: contain;
    filter: grayscale(40%);
    opacity: 0.85;
    transition: all 0.25s ease;
}

/* Hover effect */
.partner-logo:hover {
    transform: translateY(-6px);
    border-color: var(--brand-teal);
    box-shadow: 0 12px 28px rgba(0, 167, 160, 0.25);
}

.partner-logo:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Prevent very light logos from disappearing */
.partner-logo--icmatec img {
    filter: none;
    opacity: 1;
}

/* 11. CONTACT SECTION
   --------------------------------------------------------- */

.contact-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.2fr);
    gap: var(--space-lg);
    align-items: flex-start;
}

.contact-info h2 {
    margin-bottom: 8px;
}

.contact-info p {
    color: var(--text-grey);
}

.info-item {
    display: flex;
    align-items: center;
    margin-top: 16px;
    font-size: 1rem;
    gap: 12px;
}

.info-item i {
    font-size: 1.5rem;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.info-item a {
    font-weight: 600;
}

/* Contact form card */
.contact-form-box {
    background: rgba(15, 23, 42, 0.9);
    padding: var(--space-md);
    border-radius: 12px;
    border: 1px solid #1f2937;
    box-shadow: 0 18px 40px rgba(0,0,0,0.5);
}

.contact-form-box form {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-sm);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--light);
}

.contact-form-box input,
.contact-form-box textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--dark-grey);
    border: 1px solid #333;
    color: #fff;
    font-family: var(--font-body);
    border-radius: 4px;
    font-size: 0.9rem;
}

.contact-form-box input::placeholder,
.contact-form-box textarea::placeholder {
    color: #6b7280;
}

.contact-form-box textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form-box button {
    border: none;
    cursor: pointer;
    margin-top: 8px;
}

/* 12. FOOTER
   --------------------------------------------------------- */

footer {
    padding: 30px 0;
    background: #000;
    color: #666;
    font-size: 0.8rem;
    text-align: center;
}

/* 13. RESPONSIVE BREAKPOINTS
   --------------------------------------------------------- */

/* Large tablet down */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Tablet */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
    }

    .hamburger {
        display: block;
    }

    .hero {
        background-position: center;
        min-height: 80vh;
    }

    .hero-content {
        max-width: 100%;
        padding: 3rem 0;
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .founder-inner {
        grid-template-columns: 1fr;
        padding: 28px 22px;
        text-align: left;
    }

    .founder-content {
        max-width: 100%;
    }

    .founder-photo {
        justify-content: center;
        margin-bottom: 8px;
    }

    .partners-row {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
        gap: 22px;
    }

    .partner-logo {
        height: 100px;
        max-width: 160px;
    }
}

/* Small phones */
@media (max-width: 640px) {
    .hero-content {
        text-align: center;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .btn-outline {
        margin-left: 0;
    }

    .founder-inner {
        padding: 24px 18px;
    }

    .founder-content h3 {
        font-size: 1.5rem;
    }

    .founder-tags {
        gap: 6px;
    }

    .founder-tags span {
        font-size: 0.75rem;
    }

    .founder-cta {
        width: 100%;
        text-align: center;
        display: inline-block;
    }

    .partners-section {
        padding: 60px 0;
    }

    .partners-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .partner-logo {
        height: 90px;
        max-width: 140px;
        padding: 10px;
    }

    .partner-logo img {
        max-width: 85%;
        max-height: 65%;
    }
}

/* Very small devices */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.1rem;
    }

    .hero-content {
        padding: 2.5rem 0;
    }

    .service-card {
        padding: 26px;
    }
}

/* =========================================
   NEW PREMIUM FEATURES (Add to bottom of CSS)
   ========================================= */

/* 1. SCROLL ANIMATIONS (The "Reveal" Effect) */
.hidden-element {
    opacity: 0;
    transform: translateY(40px); /* Push it down */
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); /* Smooth physics */
    filter: blur(5px);
}

.show-element {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* Staggered delay for child elements (like services cards) */
.stagger-1 { transition-delay: 100ms; }
.stagger-2 { transition-delay: 200ms; }
.stagger-3 { transition-delay: 300ms; }
.stagger-4 { transition-delay: 400ms; }

/* 2. STICKY HEADER STATE */
.navbar {
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.95); /* Default */
}

/* This class is added by JS when scrolling */
.navbar.scrolled {
    background: rgba(11, 15, 18, 0.95); /* Dark background */
    border-bottom: 1px solid #333;
    height: 80px; /* Shrink slightly */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.navbar.scrolled .nav-links a {
    color: #fff; /* Text turns white */
}

.navbar.scrolled .logo img {
    filter: brightness(0) invert(1); /* Invert logo to white if it's dark text */
    height: 120px; /* Resize logo */
}

.navbar.scrolled .hamburger {
    color: #fff;
}

/* 3. PRELOADER (Optional "Loading" Screen for complexity) */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--dark);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 4px solid var(--brand-teal);
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =========================================
   TIMELINE STYLES (Add to bottom of CSS)
   ========================================= */

.timeline-wrapper {
    position: relative;
    padding: 20px 0;
    overflow: hidden;
}

/* The Container */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* The Center Line */
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--dark-grey); /* Base color */
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
    background: linear-gradient(to bottom, var(--brand-blue), var(--brand-green)); /* Gradient Line */
    box-shadow: 0 0 15px rgba(0, 167, 160, 0.3);
}

/* The Cards */
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item.left { left: 0; }
.timeline-item.right { left: 50%; }

/* The Content Box inside the Item */
.timeline-content {
    padding: 24px 30px;
    background: var(--dark-grey);
    border-radius: 16px;
    border: 1px solid #2b3138;
    position: relative;
    transition: 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--brand-teal);
    box-shadow: 0 10px 30px -10px rgba(0, 167, 160, 0.2);
}

/* The Dots on the line */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px; /* Position for Left items */
    background: var(--dark);
    border: 4px solid var(--brand-teal);
    top: 24px;
    border-radius: 50%;
    z-index: 1;
    transition: 0.3s;
}

/* Fix dot position for Right items */
.timeline-item.right::after {
    left: -10px; 
}

/* Hover effect on dots */
.timeline-item:hover::after {
    background: var(--brand-teal);
    box-shadow: 0 0 15px var(--brand-teal);
}

/* Text Styling */
.timeline-content .date {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-teal);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 2px;
    color: #fff;
}

.timeline-content h4 {
    font-size: 1rem;
    font-weight: 400;
    color: #ccc;
    margin-bottom: 12px;
    font-style: italic;
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-grey);
    line-height: 1.6;
}

/* ARROWS (Little triangles pointing to the line) */
.timeline-content::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 26px;
    width: 0;
    z-index: 1;
    border: medium solid var(--dark-grey);
}

/* Left Arrow */
.timeline-item.left .timeline-content::before {
    right: -10px;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--dark-grey);
}

/* Right Arrow */
.timeline-item.right .timeline-content::before {
    left: -10px;
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--dark-grey) transparent transparent;
}


/* --- RESPONSIVE TIMELINE (Mobile) --- */
@media screen and (max-width: 768px) {
    /* Move line to the left */
    .timeline::after { left: 31px; }
    
    /* Make items full width */
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 15px;
    }
    
    /* Reset left/right positioning */
    .timeline-item.left, .timeline-item.right { left: 0; }
    
    /* Fix Arrows */
    .timeline-item.left .timeline-content::before,
    .timeline-item.right .timeline-content::before {
        left: -10px;
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--dark-grey) transparent transparent;
    }

    /* Fix Dots */
    .timeline-item.left::after, 
    .timeline-item.right::after {
        left: 21px;
    }
}

/* =========================================
   PREMIUM CONTACT SECTION (Glass Card)
   ========================================= */

.contact-section-relative {
    position: relative;
    overflow: hidden;
    /* Optional: Add a subtle world map image here if you have one */
    background: radial-gradient(circle at 50% 50%, #1a222e 0%, #020617 100%);
}

/* The Background Pattern (Dots) */
.contact-bg-pattern {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(#334155 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.15;
    pointer-events: none;
}

/* The Main Card Container */
.contact-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background: rgba(31, 41, 55, 0.7);
    backdrop-filter: blur(10px); /* The Glass Effect */
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* Add a gradient border top */
.contact-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--brand-gradient);
}

/* LEFT SIDE: Info */
.contact-info-side {
    padding: 50px;
    background: rgba(17, 24, 39, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-side h4 {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.contact-info-side h2 {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
}

.contact-info-side p {
    color: var(--text-grey);
    margin-bottom: 40px;
}

.method-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--brand-teal);
    border: 1px solid rgba(255,255,255,0.05);
    transition: 0.3s;
}

.method-item:hover .icon-box {
    background: var(--brand-teal);
    color: #fff;
    transform: scale(1.1);
}

.method-text span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #6b7280;
    font-weight: 700;
}

.method-text a, .method-text p {
    color: #fff;
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0;
}

/* RIGHT SIDE: Form */
.contact-form-side {
    padding: 50px;
    background: rgba(31, 41, 55, 0.4);
}

.form-header { margin-bottom: 30px; }
.form-header h3 { color: #fff; margin-bottom: 5px; }
.form-header p { color: var(--brand-green); font-size: 0.9rem; font-weight: 600; }

/* Floating Label Inputs */
.input-group {
    position: relative;
    margin-bottom: 30px;
}

.input-group input, 
.input-group textarea {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid #4b5563;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.input-group label {
    position: absolute;
    top: 15px;
    left: 0;
    color: #9ca3af;
    pointer-events: none;
    transition: 0.3s;
}

/* Animation when clicking input */
.input-group input:focus,
.input-group input:valid,
.input-group textarea:focus,
.input-group textarea:valid {
    border-color: var(--brand-teal);
}

.input-group input:focus ~ label,
.input-group input:valid ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:valid ~ label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--brand-teal);
    font-weight: 700;
}

.btn-block {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .contact-card {
        grid-template-columns: 1fr;
    }
    
    .contact-info-side {
        padding: 40px 30px;
    }
    
    .contact-form-side {
        padding: 40px 30px;
    }
}

/* === FIXED LINKEDIN FEED (SCROLLABLE) === */

.linkedin-feed-wrapper {
    background-color: #ffffff !important;
    border-radius: 16px;
    padding: 0; /* Remove padding so scrollbar hits the edge */
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    
    /* THE MAGIC FIX: Restrict height */
    height: 800px; /* Adjust this: roughly the height of 2 posts */
    overflow-y: auto; /* Adds the internal scroll */
    overflow-x: hidden;
    
    position: relative;
    z-index: 10;
    width: 100%;
}

/* === CUSTOM SCROLLBAR (Makes it look premium) === */
/* Works on Chrome, Edge, Safari */
/* === PREMIUM FEED (PREVIEW MODE) === */

.linkedin-feed-container {
    position: relative;
    /* Default Height: Shows roughly 1.5 posts */
    max-height: 600px; 
    overflow: hidden;
    transition: max-height 0.8s ease-in-out; /* Smooth slide animation */
    
    /* Card Styling */
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

/* When the "expanded" class is added by JS, we remove the limit */
.linkedin-feed-container.expanded {
    max-height: 2000px; /* Large enough number to show all */
}

.linkedin-feed-wrapper {
    padding: 20px;
}

/* THE FADE EFFECT (The Gradient at the bottom) */
.feed-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    /* Fades from Transparent to White */
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #ffffff 100%);
    z-index: 5;
    pointer-events: none; /* Lets clicks pass through if needed */
    transition: opacity 0.5s;
}

/* Hide the fade when expanded */
.linkedin-feed-container.expanded .feed-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Mobile Adjustment */
@media (max-width: 768px) {
    .linkedin-feed-container {
        max-height: 500px; /* Shorter on phone (1 post) */
    }
}

/* =========================================
   INTERACTIVE INDUSTRIES EXPANSION PANEL
   Add this to the bottom of your style.css file
   ========================================= */

/* Make industry items look clickable */
.ind-item {
    transition: all 0.3s ease;
    position: relative;
}

.ind-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 167, 160, 0.2);
}

.ind-item.active {
    background: linear-gradient(135deg, rgba(0, 107, 148, 0.15), rgba(138, 196, 65, 0.15));
    border-color: var(--brand-teal) !important;
}

/* Add click indicator icon */
.ind-item::after {
    content: '\f054'; /* FontAwesome chevron-right */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: 0.3s;
    color: var(--brand-teal);
    font-size: 0.9rem;
}

.ind-item:hover::after {
    opacity: 1;
    right: 15px;
}

/* =========================================
   EXPANSION PANEL
   ========================================= */

.industry-expansion-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 40px;
    background: rgba(31, 41, 55, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0);
}

.industry-expansion-panel.active {
    max-height: 1000px; /* Large enough to fit content */
    opacity: 1;
    box-shadow: 0 25px 50px -12px rgba(0, 167, 160, 0.2);
}

/* Gradient border top */
.industry-expansion-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--brand-gradient);
    border-radius: 20px 20px 0 0;
}

/* Panel Content */
.panel-content {
    padding: 50px;
}

.panel-title {
    font-size: 2rem;
    margin-bottom: 20px;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.panel-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d1d5db;
    margin-bottom: 40px;
    max-width: 800px;
}

/* Close Button */
.panel-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: 0.3s;
    z-index: 10;
}

.panel-close:hover {
    background: #ef4444;
    color: #fff;
    transform: rotate(90deg);
}

/* =========================================
   PARTNER MINI-GRID (Inside Panel)
   ========================================= */

.panel-partners {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-partners h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--brand-teal);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.partners-mini-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
}

.partner-mini-card {
    background: rgba(17, 24, 39, 0.6);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
}

.partner-mini-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-teal);
    box-shadow: 0 10px 25px rgba(0, 167, 160, 0.15);
}

.partner-mini-card img {
    width: 80px;
    height: 60px;
    object-fit: contain;
    filter: grayscale(40%);
    opacity: 0.85;
    transition: 0.3s;
}

.partner-mini-card:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-mini-card span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #9ca3af;
    text-align: center;
}

/* =========================================
   RESPONSIVE ADJUSTMENTS
   ========================================= */

@media (max-width: 768px) {
    .panel-content {
        padding: 35px 25px;
    }
    
    .panel-title {
        font-size: 1.5rem;
    }
    
    .panel-description {
        font-size: 1rem;
    }
    
    .partners-mini-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .panel-close {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }
    
    .ind-item::after {
        display: none; /* Hide chevron on mobile to save space */
    }
}

@media (max-width: 480px) {
    .partners-mini-grid {
        grid-template-columns: 1fr;
    }
}