/* GeanX Group - Enterprise Navy & Orange Theme 
   Font: Inter | Theme: Dark Corporate | Accent: Deep Orange
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* --- Corporate Palette --- */
    --primary-navy: #0A1A2F;      /* Main Background */
    --deep-navy: #081425;         /* Darker sections */
    --card-navy: #10213a;         /* Card Background */
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* --- Text Colors --- */
    --white: #FFFFFF;
    --text-secondary: #94A3B8;    /* Slate Gray */
    
    /* --- Deep Orange Gradient (Premium) --- */
    --accent-orange: #FF8A00;
    --grad-cta: linear-gradient(135deg, #FF9D00 0%, #FF5500 100%);
    
    /* --- Dimensions --- */
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-navy);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
    color: var(--white);
    font-weight: 700;
    letter-spacing: -0.02em;
}

p { color: var(--text-secondary); font-weight: 400; }
a { text-decoration: none; transition: all 0.3s ease; }
ul { list-style: none; }

/* --- Utilities --- */
.container { max-width: 1150px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 90px 0; }
.text-center { text-align: center; }
.bg-offset { background-color: var(--deep-navy); }
.mb-5 { margin-bottom: 48px; }

/* --- Top Bar --- */
.top-bar {
    background-color: #050d18;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 0;
    font-size: 0.85rem;
    color: #94A3B8;
    position: relative;
    z-index: 101;
}

.top-bar-inner { display: flex; justify-content: space-between; align-items: center; }
.top-contact, .top-social { display: flex; align-items: center; gap: 15px; }
.top-contact a, .top-social a { color: #cbd5e1; font-weight: 500; display: flex; align-items: center; gap: 8px; transition: 0.3s; }
.top-contact a:hover, .top-social a:hover { color: var(--accent-orange); }
.top-contact i, .top-social i { color: var(--accent-orange); font-size: 0.9em; }

/* --- Navigation --- */
header {
    background: rgba(8, 20, 37, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 0;
}

nav { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 65px; width: auto; display: block; }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links li { position: relative; padding: 10px 0; }
.nav-links a { color: var(--white); font-size: 0.95rem; font-weight: 500; opacity: 0.9; }
.nav-links a:hover { opacity: 1; color: var(--accent-orange); }

/* Dropdown */
.dropdown { position: relative; cursor: pointer; }
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%; left: 0;
    background: var(--deep-navy);
    min-width: 230px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--accent-orange);
    border-radius: 0 0 6px 6px;
    padding: 5px 0;
    z-index: 200;
    margin-top: 0px;
}
.dropdown:hover .dropdown-content { display: block; animation: fadeUp 0.3s ease forwards; }
.dropdown-content a { display: block; padding: 12px 20px; border-bottom: 1px solid rgba(255,255,255,0.03); color: var(--text-secondary); }
.dropdown-content a:hover { background: rgba(255,255,255,0.05); color: var(--white); border-left: 3px solid var(--accent-orange); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- Mobile Menu Toggle --- */
.menu-toggle { display: none; }

/* --- Hero Section (Tech Background) --- */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex; align-items: center;
    overflow: hidden;
    background-color: var(--primary-navy);
    z-index: 1;
}

/* Static Grid */
.hero::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px; z-index: -2;
}

/* --- Execution Process (5 Steps in 1 Row) --- */
.process-grid {
    display: grid;
    /* FORCE 5 Equal Columns */
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 50px;
    align-items: start; /* Aligns content to top */
}

.process-step {
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    padding-left: 20px;
    position: relative;
    transition: 0.3s;
}

/* Hover Effect for steps */
.process-step:hover {
    border-left-color: var(--accent-orange);
}

.process-step::before {
    content: '';
    position: absolute;
    left: -6px; top: 0;
    width: 10px; height: 10px;
    background: var(--accent-orange);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 138, 0, 0.5);
}

.process-step h4 {
    font-size: 1rem; /* Slightly smaller to fit row */
    margin-bottom: 10px;
    color: var(--white);
    font-weight: 600;
    line-height: 1.4;
}

.process-step p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* --- RESPONSIVE --- */
/* On Tablets (Stack to 2 or 3 rows) */
@media (max-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 per row */
        gap: 30px;
    }
}

/* On Mobile (Stack Vertically) */
@media (max-width: 600px) {
    .process-grid {
        grid-template-columns: 1fr; /* 1 per row */
    }
    .process-step {
        padding-bottom: 20px;
        border-left: 2px solid rgba(255,255,255,0.05); /* Fainter line on mobile */
    }
}

/* Floating Tech Objects */
.tech-stream { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: -1; }
.tech-stream span {
    position: absolute; display: block; width: 20px; height: 20px;
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1);
    bottom: -150px; animation: floatUp 25s linear infinite;
}
.tech-stream span:nth-child(1) { left: 25%; width: 80px; height: 80px; animation-delay: 0s; }
.tech-stream span:nth-child(2) { left: 10%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 12s; }
.tech-stream span:nth-child(4) { left: 40%; width: 60px; height: 60px; background: rgba(255, 138, 0, 0.05); }
.tech-stream span:nth-child(6) { left: 75%; width: 110px; height: 110px; background: rgba(31, 111, 255, 0.05); }
@keyframes floatUp { 
    0% { transform: translateY(0) rotate(0deg); opacity: 1; border-radius: 0; } 
    100% { transform: translateY(-1000px) rotate(720deg); opacity: 0; border-radius: 50%; } 
}

.hero h1 { font-size: 3.8rem; line-height: 1.15; margin-bottom: 24px; color: #FFFFFF; }
.hero p { font-size: 1.25rem; max-width: 600px; margin-bottom: 40px; color: #cbd5e1; }
.hero h5 { color: var(--accent-orange); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 20px; }
/* --- Why Choose GeanX (4 Columns Fixed) --- */
.why-grid {
    display: grid;
    /* FORCE 4 Equal Columns */
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    margin-top: 40px;
}

.why-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 20px; /* Slightly tighter padding to fit 4 cols */
    transition: all 0.3s ease;
    position: relative;
    height: 100%; /* Ensures all cards are same height */
    display: flex;
    flex-direction: column;
}

.why-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--accent-orange);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.why-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 138, 0, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--accent-orange);
    border: 1px solid rgba(255, 138, 0, 0.2);
}

.why-card h4 {
    font-size: 1.1rem; /* Adjusted for space */
    margin-bottom: 12px;
    color: var(--white);
    font-weight: 600;
}

.why-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* RESPONSIVE: Tablet & Mobile */
/* On smaller screens, we MUST stack them or text becomes unreadable */
@media (max-width: 1024px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 per row on Laptop/Tablet */
    }
}

@media (max-width: 600px) {
    .why-grid {
        grid-template-columns: 1fr; /* 1 per row on Mobile */
    }
    .container-fluid { padding: 0 20px !important; }
}
/* --- Buttons --- */
.btn {
    display: inline-block; padding: 14px 36px; border-radius: var(--border-radius);
    font-weight: 600; cursor: pointer; border: none; text-align: center; transition: all 0.3s ease;
}
.btn-primary {
    background: var(--grad-cta); color: #fff !important;
    box-shadow: 0 4px 15px rgba(255, 85, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #FFAE33 0%, #FF6600 100%);
    box-shadow: 0 8px 25px rgba(255, 85, 0, 0.4);
}
.nav-btn { padding: 10px 24px; font-size: 0.9rem; }

/* --- Components --- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; margin-top: 40px; }
.card { background: var(--card-navy); padding: 40px 30px; border: 1px solid var(--border-color); border-radius: var(--border-radius); transition: all 0.3s ease; }
.card:hover { transform: translateY(-5px); border-color: var(--accent-orange); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.card-icon { font-size: 2rem; color: var(--accent-orange); margin-bottom: 24px; }
.text-link { color: var(--accent-orange); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }

.features-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.feature-item { background: rgba(255,255,255,0.03); padding: 16px 28px; border-radius: 6px; border: 1px solid var(--border-color); display: flex; align-items: center; gap: 12px; }
.feature-item i { color: var(--accent-orange); }

.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; margin-top: 40px; }
.process-step { border-left: 2px solid rgba(255,255,255,0.1); padding-left: 20px; position: relative; }
.process-step::before { content: ''; position: absolute; left: -6px; top: 0; width: 10px; height: 10px; background: var(--accent-orange); border-radius: 50%; }

.tag-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.industry-tag { background: var(--card-navy); color: var(--text-secondary); border: 1px solid var(--border-color); padding: 12px 28px; border-radius: 50px; transition: 0.3s; }
.industry-tag:hover { border-color: var(--accent-orange); color: var(--white); background: rgba(255, 138, 0, 0.1); }

/* --- Partner Icons --- */
.icon-slider { display: flex; justify-content: space-around; align-items: center; font-size: 3rem; color: #475569; padding: 20px 0; }
.icon-slider i { margin: 0 40px; transition: 0.3s; }
.icon-slider i:hover { color: var(--white); }
.slider-container { overflow: hidden; white-space: nowrap; }
.slider-track { display: inline-block; animation: slide 25s linear infinite; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- Footer --- */
footer { background: #050d18; padding: 80px 0 20px; border-top: 1px solid var(--border-color); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 60px; }
.footer-col h4 { margin-bottom: 24px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: var(--text-secondary); }
.footer-col ul li a:hover { color: var(--accent-orange); }
.copyright { text-align: center; color: #334155; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); }

/* --- Preloader --- */
#preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: var(--deep-navy); z-index: 9999; display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity 0.5s ease; }
#preloader img { animation: pulse 2s infinite; }
#preloader h2 { color: var(--accent-orange); font-size: 1rem; text-transform: uppercase; letter-spacing: 2px; opacity: 0; animation: fadeInText 1s ease forwards 0.5s; }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: 0.8; } 100% { transform: scale(1); opacity: 1; } }
@keyframes fadeInText { to { opacity: 1; } }

/* --- Animations --- */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- WhatsApp --- */
.whatsapp-float { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: #25D366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); z-index: 999; }

/* --- MOBILE RESPONSIVE FIX --- */
/* --- MOBILE RESPONSIVE FIX --- */
@media (max-width: 768px) {
    
    /* 1. Header Layout */
    nav { 
        justify-content: space-between; 
        position: relative; 
        padding: 0 10px;
    }
    
    /* 2. Menu Button (Hamburger) */
    .menu-toggle { 
        display: flex !important; 
        align-items: center; 
        justify-content: center; 
        font-size: 1.8rem; 
        color: var(--accent-orange); 
        cursor: pointer; 
        padding: 8px 12px; 
        border: 1px solid rgba(255, 255, 255, 0.1); 
        border-radius: 4px; 
    }
    
    /* 3. Mobile Navigation Drawer */
    .nav-links { 
        display: flex; 
        flex-direction: column; 
        position: absolute; 
        top: 100%; 
        left: 0; 
        width: 100%; 
        background-color: var(--deep-navy); 
        border-top: 2px solid var(--accent-orange); 
        
        /* Hidden State */
        max-height: 0; 
        overflow: hidden; 
        transition: max-height 0.4s ease-out; 
        box-shadow: 0 10px 20px rgba(0,0,0,0.5); 
        z-index: 199; 
    }

    /* 4. Active State (OPEN) - FIXED SCROLLING */
    .nav-links.active { 
        max-height: 85vh; /* Allows menu to be tall */
        overflow-y: auto; /* Allows scrolling if content is too long */
        padding-bottom: 50px; 
    }

    /* 5. Mobile Link Styles */
    .nav-links li { width: 100%; text-align: center; }
    .nav-links a { 
        display: block; 
        padding: 15px 0; 
        border-bottom: 1px solid rgba(255,255,255,0.05); 
    }
    
    /* 6. Mobile Dropdown (Always visible or toggleable) */
    .dropdown:hover .dropdown-content {
        position: relative;
        top: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: rgba(0,0,0,0.2); /* Darker background for nested items */
        border: none;
        animation: none;
        display: block; /* Ensure it shows */
    }
    
    .dropdown-content a {
        padding-left: 0; /* Center text */
        font-size: 0.9rem;
        color: #cbd5e1;
    }

    /* 7. Button Fix */
    .nav-btn { 
        margin-top: 20px; 
        width: 80%; 
        display: inline-block; 
        margin-bottom: 20px; /* Space at bottom */
    }

    /* 8. Top Bar Fix */
    .top-bar { display: block !important; padding: 10px 0; background: #020810; }
    .top-bar-inner { flex-direction: column; gap: 8px; }
    .top-contact, .top-social { justify-content: center; flex-wrap: wrap; }
    .top-social { border-top: 1px solid rgba(255,255,255,0.05); width: 100%; padding-top: 5px; }

    .hero h1 { font-size: 2.2rem; }
    .section-padding { padding: 60px 0; }
}