/* --- CSS Variables & Reset --- */
:root {
    --primary-blue: #2563eb;
    --primary-dark: #0f172a;
    --secondary-dark: #1e293b;
    --accent-yellow: #facc15;
    --text-dark: #1e293b;
    --text-light: #64748b;
    --text-white: #ffffff;
    --bg-light: #f8fafc;
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; }
ul { list-style: none; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center; /* Centering for mobile width */
    gap: 10px;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    border: none;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    border: 2px solid var(--primary-blue);
}
.btn-primary:hover { 
    transform: translateY(-3px); 
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3); 
    background: transparent;
    color: var(--primary-blue);
}

/* --- Navbar & Dropdown --- */
.navbar {
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.navbar.scrolled {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
}
.logo span { color: var(--primary-blue); }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links li { position: relative; padding: 10px 0; }

.nav-links a { 
    color: var(--primary-dark); 
    font-weight: 600; 
    transition: 0.3s; 
    font-size: 0.95rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary-blue); }

/* --- DESKTOP SPECIFIC: Hide Mobile Login --- */
/* This prevents the login button inside the list from showing on Desktop */
.nav-links .mobile-login {
    display: none;
}

/* Dropdown Menu Styles (Desktop) */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-width: 200px;
    padding: 15px 0;
    border-radius: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    z-index: 1100;
}

/* Hover state for desktop only (disabled in media query) */
@media screen and (min-width: 1025px) {
    .nav-links li:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}

.dropdown-menu li { padding: 0; }
.dropdown-menu a {
    padding: 12px 25px;
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: 0.2s;
    border-radius: 0;
}
.dropdown-menu a:hover {
    color: var(--primary-blue);
    background: #f8fafc;
    padding-left: 30px;
}

/* Arrow rotation */
.nav-links li:hover > a i { transform: rotate(180deg); }
.nav-links a i { transition: 0.3s; font-size: 0.7rem; }

.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--primary-dark); }

/* --- RESPONSIVE MEDIA QUERIES --- */
/* Target 1024px (iPad Pro/Mini/Tablet) */
@media screen and (max-width: 1024px) {
    
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    /* 1. Navbar Container Layout */
    .nav-links {
        display: none; /* Hidden by default */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 1px solid #f1f5f9;
        gap: 0;
        align-items: flex-start; /* Align left */
    }

    /* Shown when JS adds this class */
    .nav-links.nav-active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        padding: 0;
    }

    .nav-links a {
        padding: 15px 25px;
        width: 100%;
        justify-content: space-between;
    }

    /* 2. BUTTON LOGIC: Hide Desktop, Show Mobile */
    
    /* Reveal the mobile login button inside the list */
    .nav-links .mobile-login {
        display: block;
        padding: 15px 25px;
    }
    
    /* Style the button inside the mobile menu */
    .nav-links .mobile-login .btn {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    /* Hide the standalone button outside the list */
    .nav-container > .btn-primary {
        display: none;
    }

    /* 3. Mobile Dropdown Logic */
    .dropdown-menu {
        position: relative; /* Stack normally */
        top: 0;
        box-shadow: none;
        background: #f8fafc;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none; /* Hidden until clicked */
        width: 100%;
    }

    .dropdown.active .dropdown-menu {
        display: flex;
    }

    .dropdown-menu a {
        padding-left: 45px; /* Indent sub-links */
    }

    /* Rotate arrow on click active class */
    .dropdown.active > a i {
        transform: rotate(180deg);
    }
}
/* Update the existing .logo class */
.logo {
    display: flex;
    align-items: center;
    /* Removed font-size/weight as they don't apply to the image */
}

/* Add this new rule to control the image size */
.logo img {
    height: 45px; /* Adjust this value to fit your navbar height */
    width: auto;  /* Maintains the aspect ratio */
    object-fit: contain;
}



/* --- Section Headers --- */
.section-header { margin-bottom: 60px; }
.sub-title-blue {
    color: var(--primary-blue);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 10px;
}
.section-header h2 { font-size: 2.8rem; color: var(--primary-dark); font-weight: 800; line-height: 1.2; }
.text-center { text-align: center; }

/* --- Page Header Banner --- */
.page-header-banner {
    background: var(--primary-dark);
    padding: 80px 0;
    text-align: center;
    color: white;
    margin-bottom: 0px; 
    position: relative;
    overflow: hidden;
}
.page-header-banner h1 { font-size: 3rem; margin-bottom: 10px; }
.page-header-banner p { color: #94a3b8; }
.page-header-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.2), transparent 40%);
}



/* --- CTA Section Background --- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue, #2563eb), var(--primary-dark, #0f172a));
    padding: 80px 0;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Base Button Style (If not already defined) --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 35px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* --- Specific "Outline White" Button --- */
.btn-outline-white {
    background: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

/* Hover Effect */
.btn-outline-white:hover {
    background: #ffffff;
    color: var(--primary-blue, #2563eb); /* Text turns blue on hover */
    transform: translateY(-5px); /* Moves up slightly */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Icon Animation on Hover */
.btn-outline-white:hover i {
    transform: translateX(5px); /* Arrow moves right */
}

/* Icon Default State */
.btn-outline-white i {
    transition: transform 0.3s ease;
}

/* --- Hero Section (Home 1) --- */
.hero {
    position: relative;
    padding: 100px 0 120px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    overflow: hidden;
    z-index: 1;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.7;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    color: var(--primary-dark);
}

.hero h1 span {
    background: linear-gradient(to right, var(--primary-blue), #6366f1);
    -webkit-background-clip: text;
    color: transparent;
}

.hero p { 
    max-width: 650px; 
    margin: 0 auto 40px; 
    color: var(--text-light); 
    font-size: 1.2rem;
}

.hero-btns { display: flex; justify-content: center; gap: 20px; }

.badge {
    background: #dbeafe;
    color: var(--primary-blue);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 25px;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Hero Section (Home 2 - MODERN) --- */
.hero-v2 {
    background-color: #0f172a;
    background-image: 
        radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
    color: white;
    text-align: center;
    padding: 200px 0 180px;
    position: relative;
    overflow: hidden;
}

.hero-v2-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-v2 h1 { 
    color: white; 
    font-size: 4.5rem; 
    margin-bottom: 30px; 
    font-weight: 800; 
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-v2 h1 span {
    background: linear-gradient(to right, #60a5fa, #c084fc);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-v2 p { 
    color: #cbd5e1; 
    margin: 0 auto 40px; 
    font-size: 1.2rem; 
    max-width: 700px; 
}

/* Stats Counter Section for Home 2 */
.stats-section-modern {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    padding: 60px 0;
    margin-top: -80px; /* Overlap effect */
    position: relative;
    z-index: 10;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.5);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; text-align: center; }
.stat-item h2 { 
    font-size: 3.5rem; 
    font-weight: 800; 
    margin-bottom: 5px; 
    color: var(--primary-blue);
    line-height: 1;
}
.stat-item p { 
    font-size: 0.9rem; 
    color: var(--text-dark); 
    text-transform: uppercase; 
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* Home 2 Modern Features */
.features-modern { padding: 120px 0; background: #fff; }
.features-modern-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.modern-card {
    padding: 40px 30px;
    border-radius: 20px;
    background: #fff;
    transition: 0.4s;
    border: 1px solid #f1f5f9;
    position: relative;
    overflow: hidden;
}
.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: var(--primary-blue);
}
.modern-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 0;
    background: var(--primary-blue);
    transition: 0.4s;
}
.modern-card:hover::before { height: 100%; }

.modern-card i { font-size: 2.5rem; color: var(--primary-blue); margin-bottom: 25px; display: block; }
.modern-card h3 { font-size: 1.3rem; margin-bottom: 15px; color: var(--primary-dark); font-weight: 700; }
.modern-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; }

/* Logo Marquee */
.logo-marquee { padding: 60px 0; background: #f8fafc; border-bottom: 1px solid #e2e8f0; overflow: hidden; }
.marquee-content { display: flex; gap: 50px; animation: scroll 20s linear infinite; width: max-content; }
.marquee-content img { height: 35px; opacity: 0.5; transition: 0.3s; filter: grayscale(100%); }
.marquee-content img:hover { opacity: 1; filter: grayscale(0%); transform: scale(1.1); }

@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }


/* --- Services Section (Dark Theme from Video) --- */
.services-section {
    background-color: #0d1117;
    padding: 100px 0 120px;
    color: white;
    position: relative;
}

.services-container {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 80px;
    align-items: center;
}

.service-text { position: sticky; top: 120px; }

.service-text .sub-title-white {
    color: #cbd5e1;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 15px;
    border-left: 3px solid var(--primary-blue);
    padding-left: 10px;
}

.service-text h2 {
    font-size: 3.2rem;
    margin-bottom: 25px;
    line-height: 1.1;
    font-weight: 700;
    color: white;
}

.service-text p {
    color: #94a3b8;
    margin-bottom: 35px;
    font-size: 1rem;
    line-height: 1.7;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background: #161b22;
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid #30363d;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.4s ease;
}

.service-card:hover {
    background: #1f2937;
    border-color: var(--primary-blue);
    transform: translateY(-5px);
}

.service-card .icon-box {
    font-size: 2rem;
    margin-bottom: 25px;
    color: white;
}

.service-card h3 { 
    font-size: 1.2rem; 
    margin-bottom: 15px; 
    font-weight: 700; 
    color: white;
}

.service-card p { 
    font-size: 0.9rem; 
    color: #8b949e; 
    margin-bottom: 30px; 
    line-height: 1.6; 
}

.card-arrow-btn {
    width: 40px;
    height: 40px;
    background: white;
    color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    font-size: 1rem;
    margin-top: auto;
}

.service-card:hover .card-arrow-btn {
    background: var(--primary-blue);
    color: white;
    transform: rotate(45deg);
}

/* --- Projects Section --- */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}
.filter-btn {
    background: transparent;
    border: 2px solid #e2e8f0;
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: 0.3s;
    font-family: var(--font-main);
    font-size: 0.95rem;
}
.filter-btn:hover, .filter-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    position: relative;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    background: #0f172a;
    border: none;
}
.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.6) 40%, rgba(15, 23, 42, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    transition: 0.4s;
}

.project-info {
    transform: translateY(30px);
    transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-category {
    color: var(--accent-yellow);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
    opacity: 0.9;
}

.project-title {
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.2;
}

.project-desc {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-bottom: 0;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    line-height: 1.6;
}

.project-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-weight: 600;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s ease 0.1s;
    margin-top: 15px;
    font-size: 0.95rem;
}

.project-link-btn i {
    width: 35px;
    height: 35px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    transition: 0.3s;
}
.project-link-btn:hover i {
    transform: rotate(-45deg);
    background: white;
    color: var(--primary-blue);
}

.project-card:hover img { transform: scale(1.1); }
.project-card:hover .project-overlay { background: linear-gradient(to top, rgba(15, 23, 42, 1) 0%, rgba(15, 23, 42, 0.8) 50%, rgba(15, 23, 42, 0.2) 100%); }
.project-card:hover .project-info { transform: translateY(0); }
.project-card:hover .project-desc { opacity: 1; height: auto; margin-bottom: 10px; }
.project-card:hover .project-link-btn { opacity: 1; transform: translateY(0); }

/* --- About Section --- */
.about-section { padding: 60px 0 100px; background: white; }
.about-container { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-content h2 { font-size: 2.8rem; margin-bottom: 20px; color: var(--primary-dark); font-weight: 800; line-height: 1.2; }
.section-desc { color: var(--text-light); margin-bottom: 40px; font-size: 1.05rem; }
.feature-item { display: flex; gap: 20px; margin-bottom: 30px; align-items: flex-start; }
.feature-icon { width: 65px; height: 65px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; }
.orange-bg { background: #fff7ed; color: #f97316; }
.purple-bg { background: #f3e8ff; color: #a855f7; }
.feature-text h4 { font-size: 1.2rem; margin-bottom: 8px; font-weight: 700; }
.feature-text p { font-size: 0.95rem; color: var(--text-light); }
.user-stats { display: flex; align-items: center; gap: 25px; margin-top: 50px; border-top: 1px solid #e2e8f0; padding-top: 35px; }
.avatars { display: flex; }
.avatars img { width: 50px; height: 50px; border-radius: 50%; border: 3px solid white; margin-left: -18px; object-fit: cover; }
.avatars img:first-child { margin-left: 0; }
.add-btn { width: 50px; height: 50px; border-radius: 50%; background: var(--primary-blue); color: white; display: flex; align-items: center; justify-content: center; border: 3px solid white; margin-left: -18px; font-weight: bold; }
.stat-text h3 { font-size: 1.5rem; font-weight: 800; color: var(--primary-dark); }
.stat-text span { font-size: 0.9rem; color: var(--text-light); }
.about-image { position: relative; padding: 20px; }
.main-img-wrapper { position: relative; z-index: 1; border-radius: 30px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.main-img-wrapper img { width: 100%; height: auto; display: block; transition: transform 0.5s ease; }
.main-img-wrapper:hover img { transform: scale(1.03); }
.rating-card { position: absolute; top: 40px; right: -30px; background: var(--accent-yellow); padding: 15px 25px; border-radius: 15px; display: flex; align-items: center; gap: 15px; box-shadow: 0 15px 35px rgba(250, 204, 21, 0.3); z-index: 2; animation: float 3s ease-in-out infinite; }
.star-icon { font-size: 1.8rem; }
.rating-info h3 { font-size: 1.4rem; line-height: 1; font-weight: 800; }
.rating-info span { font-size: 0.8rem; font-weight: 600; }
.growth-card { position: absolute; bottom: -40px; left: -40px; background: var(--primary-blue); color: white; padding: 30px; border-radius: 20px; width: 240px; box-shadow: 0 20px 40px rgba(37, 99, 235, 0.4); text-align: center; z-index: 2; animation: float 3.5s ease-in-out infinite reverse; }
.growth-card i { font-size: 2.5rem; margin-bottom: 15px; }
.growth-card h3 { font-size: 1.3rem; margin-bottom: 5px; }
.growth-card p { font-size: 0.9rem; opacity: 0.9; }

@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }

/* --- Work Process --- */
.process-section { padding: 100px 0; background: #f8fafc; overflow: hidden; }
.process-steps { display: flex; justify-content: space-between; position: relative; padding: 0 20px; }
.process-steps::before { content: ''; position: absolute; top: 50px; left: 12%; right: 12%; height: 2px; border-top: 2px dashed #cbd5e1; z-index: 0; }
.step-item { text-align: center; position: relative; z-index: 1; padding: 0 15px; width: 25%; }
.step-icon-wrapper { position: relative; width: 100px; height: 100px; background: white; border-radius: 50%; margin: 0 auto 25px; display: flex; align-items: center; justify-content: center; border: 1px solid #e2e8f0; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: 0.3s; }
.step-item:hover .step-icon-wrapper { border-color: var(--primary-blue); transform: scale(1.1); }
.step-icon { font-size: 2rem; color: var(--primary-blue); }
.step-number { position: absolute; bottom: 0; right: 0; width: 32px; height: 32px; background: white; border: 2px solid var(--primary-blue); color: var(--primary-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 800; }
.step-item h3 { margin-bottom: 12px; font-size: 1.3rem; font-weight: 700; color: var(--primary-dark); }
.step-item p { color: var(--text-light); font-size: 0.95rem; line-height: 1.6; }

/* --- Contact --- */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.5fr; gap: 50px; background: white; padding: 50px; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.05); border: 1px solid #e2e8f0; }
.contact-info-card { background: #f8fafc; padding: 40px; border-radius: 15px; }
.info-item { display: flex; gap: 20px; margin-bottom: 30px; }
.info-icon { width: 50px; height: 50px; background: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary-blue); font-size: 1.2rem; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.info-content h4 { font-size: 1.1rem; margin-bottom: 5px; color: var(--primary-dark); }
.info-content p { color: var(--text-light); font-size: 0.9rem; }
.contact-form h2 { font-size: 2rem; margin-bottom: 30px; color: var(--primary-dark); }
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-control { width: 100%; padding: 15px; border: 1px solid #e2e8f0; border-radius: 10px; font-family: var(--font-main); outline: none; transition: 0.3s; }
.form-control:focus { border-color: var(--primary-blue); }
textarea.form-control { resize: none; height: 150px; }

/* --- Footer --- */
footer { background: var(--primary-dark); color: white; padding: 80px 0 30px; position: relative; margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 60px; }
.footer-col h3 { font-size: 1.5rem; margin-bottom: 25px; }
.footer-col p { color: #94a3b8; margin-bottom: 25px; }
.social-links { display: flex; gap: 15px; }
.social-links a { width: 40px; height: 40px; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; border-radius: 50%; color: white; transition: 0.3s; }
.social-links a:hover { background: var(--primary-blue); }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #94a3b8; transition: 0.3s; }
.footer-links a:hover { color: white; padding-left: 5px; }
.copyright { text-align: center; padding-top: 30px; border-top: 1px solid #334155; color: #64748b; font-size: 0.9rem; }

/* Why Choose Us */
.why-section { padding: 100px 0; background: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.why-card { padding: 40px 30px; border-radius: 15px; background: #f8fafc; transition: 0.3s; border: 1px solid #e2e8f0; text-align: center; }
.why-card:hover { transform: translateY(-5px); border-color: var(--primary-blue); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.why-icon { width: 70px; height: 70px; background: #dbeafe; color: var(--primary-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 20px; }
.why-card h3 { font-size: 1.3rem; margin-bottom: 10px; color: var(--primary-dark); }
.why-card p { color: var(--text-light); font-size: 0.95rem; }

/* Testimonials */
.testimonials-section { padding: 100px 0; background: #f8fafc; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }
.testimonial-card { background: white; padding: 40px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0,0,0,0.05); position: relative; border: 1px solid #f1f5f9; }
.quote-icon { font-size: 3rem; color: #f1f5f9; position: absolute; top: 20px; right: 30px; }
.testimonial-text { font-style: italic; color: var(--text-dark); margin-bottom: 25px; position: relative; z-index: 1; font-size: 1.05rem; }
.client-info { display: flex; align-items: center; gap: 15px; }
.client-img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; background: #cbd5e1; }
.client-details h4 { font-size: 1rem; color: var(--primary-dark); font-weight: 700; }
.client-details span { font-size: 0.85rem; color: var(--primary-blue); }

/* CTA Banner */
.cta-section { padding: 80px 0; background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%); color: white; text-align: center; margin-top: 50px; }
.cta-content h2 { font-size: 2.5rem; margin-bottom: 15px; color: white; }
.cta-content p { color: rgba(255,255,255,0.9); margin-bottom: 30px; font-size: 1.1rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* Tech Stack */
.tech-section { padding: 80px 0; background: white; border-bottom: 1px solid #e2e8f0; }
.tech-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 50px; align-items: center; margin-top: 40px; }
.tech-item { text-align: center; transition: 0.3s; }
.tech-item i { font-size: 3.5rem; color: #94a3b8; margin-bottom: 10px; transition: 0.3s; }
.tech-item:hover i { color: var(--primary-blue); transform: scale(1.1); }
.tech-item span { display: block; font-weight: 600; color: #64748b; font-size: 0.9rem; }

/* FAQ */
.faq-section { padding: 100px 0; background: white; }
.faq-container { max-width: 800px; margin: 50px auto 0; }
.faq-item { border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 20px; padding: 20px; transition: 0.3s; background: #fff; }
.faq-item.active { border-color: var(--primary-blue); box-shadow: 0 5px 20px rgba(37, 99, 235, 0.05); }
.faq-question { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 700; font-size: 1.1rem; color: var(--primary-dark); }
.faq-answer { display: none; padding-top: 15px; color: var(--text-light); line-height: 1.6; border-top: 1px solid #f1f5f9; margin-top: 15px; }
.faq-item.active .faq-answer { display: block; animation: fadeIn 0.4s ease; }
.faq-toggle { transition: 0.3s; font-size: 1.2rem; color: var(--primary-blue); }
.faq-item.active .faq-toggle { transform: rotate(180deg); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* --- Animations Classes --- */
.fade-in, .fade-in-left, .fade-in-right, .fade-in-up {
    opacity: 0;
    transition: all 0.8s ease-out;
}
.fade-in.visible { opacity: 1; }
.fade-in-left { transform: translateX(-50px); }
.fade-in-left.visible { opacity: 1; transform: translateX(0); }
.fade-in-right { transform: translateX(50px); }
.fade-in-right.visible { opacity: 1; transform: translateX(0); }
.fade-in-up { transform: translateY(50px); }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* --- Responsive Media Queries --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .services-container, .about-container, .contact-wrapper { grid-template-columns: 1fr; gap: 50px; }
    .service-text { position: static; margin-bottom: 40px; }
    .about-image { margin-top: 60px; }
    .process-steps { flex-direction: column; gap: 50px; }
    .process-steps::before {
        width: 2px;
        height: 80%;
        left: 50%;
        top: 0;
        border-left: 2px dashed #cbd5e1;
        border-top: none;
    }
    .step-item { width: 100%; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    
    /* Stats grid mobile */
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .hero-v2 h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .hero { padding: 140px 0 80px; }
    .hero h1 { font-size: 2.2rem; }
    .service-grid, .projects-grid, .why-grid, .testimonial-grid { grid-template-columns: 1fr; }
    .growth-card { position: static; margin-top: 20px; width: 100%; transform: none !important; }
    .rating-card { right: 10px; transform: none !important; }
    .footer-grid { grid-template-columns: 1fr; }
    .about-container { gap: 40px; }
    .cta-content h2 { font-size: 2rem; }
    
    /* Stats grid mobile small */
    .stats-grid { grid-template-columns: 1fr; }

    /* Mobile Dropdown Fix */
    .dropdown-menu {
        position: static; /* Stack naturally */
        opacity: 1;
        visibility: visible;
        display: none; /* Hidden by default */
        box-shadow: none;
        padding: 5px 0 5px 20px;
        border: none;
        background: transparent;
        border-left: 2px solid #e2e8f0;
        transform: none;
    }
    
    /* Reveal dropdown when parent has active class */
    .dropdown.active .dropdown-menu {
        display: flex;
    }
    
    .nav-links li { padding: 5px 0; }
}

/* --- START: Services 2 Page Specific Styles --- */

/* Modern Header for Services 2 */
.page-header-modern {
    background-color: #0f172a; /* Dark base */
    background-image: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 160px 0 100px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.page-header-modern::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, rgba(0,0,0,0) 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
}
.badge-pill {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 25px;
    color: #93c5fd;
}
.page-header-modern h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
}
.page-header-modern h1 span {
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    color: transparent;
}
.page-header-modern p {
    color: #cbd5e1;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Services 2 Grid */
.s2-services-section {
    padding: 100px 0;
    background: #f8fafc;
}
.s2-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}
.s2-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #f1f5f9;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}
.s2-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: var(--primary-blue);
}

/* Colorful Icon Backgrounds */
.s2-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
}
.blue-light { background: #eff6ff; color: #2563eb; }
.purple-light { background: #f3e8ff; color: #9333ea; }
.orange-light { background: #fff7ed; color: #ea580c; }
.green-light { background: #f0fdf4; color: #16a34a; }
.red-light { background: #fef2f2; color: #dc2626; }
.teal-light { background: #f0f9ff; color: #0891b2; }

.s2-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
    font-weight: 700;
}
.s2-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.6;
}
.s2-list {
    list-style: none;
    margin-bottom: 30px;
}
.s2-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #475569;
    font-size: 0.9rem;
    margin-bottom: 10px;
}
.s2-list li i {
    color: var(--primary-blue);
    font-size: 0.8rem;
}
.link-arrow {
    font-weight: 600;
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    font-size: 0.95rem;
}
.link-arrow:hover {
    color: var(--primary-blue);
    gap: 12px;
}

/* Process Section */
.s2-process {
    padding: 100px 0;
    background: white;
}
.s2-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}
.s2-step {
    text-align: center;
    position: relative;
}
.s2-step::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 60%;
    width: 80%;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}
.s2-step:last-child::after { display: none; }

.s2-step-num {
    width: 50px;
    height: 50px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 20px;
    position: relative;
    z-index: 1;
    border: 5px solid white; /* spacer */
    box-shadow: 0 0 0 2px #e2e8f0;
}
.s2-step h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--primary-dark); }
.s2-step p { font-size: 0.9rem; color: var(--text-light); }

/* Responsive tweaks for S2 */
@media (max-width: 992px) {
    .s2-steps-grid { grid-template-columns: 1fr 1fr; gap: 50px; }
    .s2-step::after { display: none; }
}
@media (max-width: 768px) {
    .page-header-modern h1 { font-size: 2.5rem; }
    .s2-steps-grid { grid-template-columns: 1fr; }
}


/* --- PROJECTS 2 SPECIFIC STYLES --- */

/* Dark Mode Body for Projects 2 */
.dark-theme-body {
    background-color: #0b0f19;
    color: #e2e8f0;
}

/* Glass Navbar Variant */
.glass-nav {
    background: rgba(11, 15, 25, 0.8) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.glass-nav .nav-links a, .glass-nav .logo {
    color: #ffffff !important;
}
.glass-nav .nav-links a:hover {
    color: var(--primary-blue) !important;
}

/* Hero Section */
.project-hero {
    padding: 180px 0 80px;
    text-align: center;
    background: radial-gradient(circle at top center, #1e293b 0%, #0b0f19 70%);
}
.project-hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: white;
}
.text-gradient {
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    color: transparent;
}
.project-hero p {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Filter Tabs */
.filter-tabs {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.filter-tab {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    font-family: var(--font-main);
}
.filter-tab.active {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}
.filter-tab:hover:not(.active) {
    color: white;
}

/* Masonry / Bento Grid */
.portfolio-section {
    padding: 50px 0 120px;
}
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    grid-auto-rows: 300px; /* Base height for items */
    grid-auto-flow: dense; /* Fills gaps */
}

/* Bento Sizes */
.masonry-item {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}
.masonry-item.tall {
    grid-row: span 2; /* 600px + gap height */
}
.masonry-item.wide {
    grid-column: span 2;
}
.masonry-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

/* Card Styling */
.portfolio-card {
    width: 100%;
    height: 100%;
    position: relative;
    background: #1e293b;
}
.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover Overlay Effect */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: 0.4s ease;
}
.card-content {
    transform: translateY(20px);
    transition: 0.4s ease;
    width: 100%;
}

.portfolio-card:hover img {
    transform: scale(1.1);
}
.portfolio-card:hover .card-overlay {
    opacity: 1;
}
.portfolio-card:hover .card-content {
    transform: translateY(0);
}

/* Text Content */
.card-content .tag {
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}
.card-content h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 5px;
}
.card-content p {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Floating Arrow Button */
.btn-circle {
    position: absolute;
    right: 0;
    bottom: 5px;
    width: 45px;
    height: 45px;
    background: white;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.btn-circle:hover {
    background: var(--primary-blue);
    color: white;
    transform: rotate(-45deg);
}

/* Modern Footer CTA */
.modern-cta {
    padding: 100px 0;
    background: #0b0f19;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.modern-cta h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* Responsive Fixes for Bento Grid */
@media (max-width: 992px) {
    .masonry-item.wide, .masonry-item.large {
        grid-column: span 1; /* Reset to single column on tablet */
    }
    .masonry-item.tall {
        grid-row: span 1; /* Reset height */
        height: 300px;
    }
    .masonry-item.large {
        height: 300px; /* Reset height */
        grid-row: span 1;
    }
    .project-hero h1 {
        font-size: 3rem;
    }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}



/* --- PROJECTS 2 SPECIFIC STYLES --- */

/* Dark Mode Body for Projects 2 */
.dark-theme-body {
    background-color: #0b0f19;
    color: #e2e8f0;
}

/* Glass Navbar Variant */
.glass-nav {
    background: rgba(11, 15, 25, 0.8) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.glass-nav .nav-links a, .glass-nav .logo {
    color: #ffffff !important;
}
.glass-nav .nav-links a:hover {
    color: var(--primary-blue) !important;
}

/* Hero Section */
.project-hero {
    padding: 180px 0 80px;
    text-align: center;
    background: radial-gradient(circle at top center, #1e293b 0%, #0b0f19 70%);
}
.project-hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    color: white;
}
.text-gradient {
    background: linear-gradient(to right, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    color: transparent;
}
.project-hero p {
    font-size: 1.2rem;
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Filter Tabs */
.filter-tabs {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.filter-tab {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 10px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
    font-family: var(--font-main);
}
.filter-tab.active {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}
.filter-tab:hover:not(.active) {
    color: white;
}

/* Masonry / Bento Grid */
.portfolio-section {
    padding: 50px 0 120px;
}
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    grid-auto-rows: 300px; /* Base height for items */
    grid-auto-flow: dense; /* Fills gaps */
}

/* Bento Sizes */
.masonry-item {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}
.masonry-item.tall {
    grid-row: span 2; /* 600px + gap height */
}
.masonry-item.wide {
    grid-column: span 2;
}
.masonry-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

/* Card Styling */
.portfolio-card {
    width: 100%;
    height: 100%;
    position: relative;
    background: #1e293b;
}
.portfolio-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Hover Overlay Effect */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    opacity: 0;
    transition: 0.4s ease;
}
.card-content {
    transform: translateY(20px);
    transition: 0.4s ease;
    width: 100%;
}

.portfolio-card:hover img {
    transform: scale(1.1);
}
.portfolio-card:hover .card-overlay {
    opacity: 1;
}
.portfolio-card:hover .card-content {
    transform: translateY(0);
}

/* Text Content */
.card-content .tag {
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 10px;
}
.card-content h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 5px;
}
.card-content p {
    color: #cbd5e1;
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Floating Arrow Button */
.btn-circle {
    position: absolute;
    right: 0;
    bottom: 5px;
    width: 45px;
    height: 45px;
    background: white;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}
.btn-circle:hover {
    background: var(--primary-blue);
    color: white;
    transform: rotate(-45deg);
}

/* Modern Footer CTA */
.modern-cta {
    padding: 100px 0;
    background: #0b0f19;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.modern-cta h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* Responsive Fixes for Bento Grid */
@media (max-width: 992px) {
    .masonry-item.wide, .masonry-item.large {
        grid-column: span 1; /* Reset to single column on tablet */
    }
    .masonry-item.tall {
        grid-row: span 1; /* Reset height */
        height: 300px;
    }
    .masonry-item.large {
        height: 300px; /* Reset height */
        grid-row: span 1;
    }
    .project-hero h1 {
        font-size: 3rem;
    }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Team Section (New for About Page) --- */
.team-section {
    padding: 100px 0;
    background: #fff;
    border-top: 1px solid #f1f5f9;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
    border: 1px solid #f1f5f9;
    text-align: center;
    position: relative;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
    border-color: #dbeafe;
}

.team-img-wrapper {
    height: 300px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.team-card:hover .team-img-wrapper img {
    transform: scale(1.1);
}

.team-socials {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 15px;
    transition: 0.4s;
}

.team-card:hover .team-socials {
    bottom: 0;
}

.team-socials a {
    color: var(--primary-dark);
    font-size: 1.1rem;
    transition: 0.3s;
}

.team-socials a:hover {
    color: var(--primary-blue);
}

.team-info {
    padding: 25px;
}

.team-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--primary-dark);
}

.team-info span {
    color: var(--primary-blue);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- START: About 2 Specific Styles --- */

/* About 2 Hero */
.about-2-hero {
    background: #0f172a;
    padding: 180px 0 120px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}
.about-2-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(#334155 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.1;
}
.about-2-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}
.about-2-hero p {
    font-size: 1.2rem;
    color: #cbd5e1;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* About 2 Story Section */
.story-section {
    padding: 100px 0;
    background: white;
}
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.story-content h2 {
    font-size: 2.5rem;
    margin-bottom: 25px;
    color: var(--primary-dark);
}
.story-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}
.story-img-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.story-img-grid img {
    width: 100%;
    border-radius: 15px;
    height: 250px;
    object-fit: cover;
}
.story-img-grid img:nth-child(2) {
    margin-top: 40px;
}

/* --- Team Section (Used in About 2) --- */
.team-section {
    padding: 100px 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
    border: 1px solid #f1f5f9;
    text-align: center;
    position: relative;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.1);
    border-color: #dbeafe;
}

.team-img-wrapper {
    height: 320px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
    filter: grayscale(20%);
}

.team-card:hover .team-img-wrapper img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.team-socials {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.team-card:hover .team-socials {
    bottom: 0;
}

.team-socials a {
    color: var(--primary-dark);
    font-size: 1.2rem;
    transition: 0.3s;
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-socials a:hover {
    color: white;
    background: var(--primary-blue);
}

.team-info {
    padding: 25px;
    background: white;
    position: relative;
    z-index: 1;
}

.team-info h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--primary-dark);
    font-weight: 700;
}

.team-info span {
    color: var(--primary-blue);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Values Section for About 2 */
.values-section {
    padding: 100px 0;
    background: white;
}
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}
.value-card {
    padding: 40px;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 15px;
    transition: 0.3s;
}
.value-card:hover {
    border-color: var(--primary-blue);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.value-icon {
    width: 60px;
    height: 60px;
    background: #eff6ff;
    color: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.value-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--primary-dark); }
.value-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.6; }

/* Responsive */
@media (max-width: 992px) {
    .story-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
}

/* --- START: Contact 2 Specific Styles --- */

.contact-v2-hero {
    padding: 180px 0 100px;
    text-align: center;
    background-color: #0b0f19;
    background-image: radial-gradient(at top, #1e293b 0%, #0b0f19 60%);
}
.contact-v2-hero h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 15px;
}
.contact-v2-hero p {
    color: #94a3b8;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-v2-section {
    padding-bottom: 100px;
    background-color: #0b0f19; /* Maintains dark theme */
}

.contact-v2-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
}

/* Info Cards */
.c2-info-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 15px;
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    transition: 0.3s;
}
.c2-info-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}
.c2-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), #60a5fa);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
}
.c2-info-card h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.c2-info-card p {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 5px;
}
.c2-link {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
}

.c2-socials {
    margin-top: 40px;
    color: #94a3b8;
}
.c2-socials span { display: block; margin-bottom: 15px; font-weight: 600; }
.social-icons { display: flex; gap: 15px; }
.social-icons a {
    width: 45px; height: 45px;
    background: rgba(255,255,255,0.05);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    color: white;
    transition: 0.3s;
    border: 1px solid rgba(255,255,255,0.05);
}
.social-icons a:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* Glass Form */
.glass-form {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}
.glass-form h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 30px;
}
.input-group { margin-bottom: 20px; }
.input-group label {
    display: block;
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 8px;
    font-weight: 500;
}
.glass-form input, .glass-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    color: white;
    font-family: var(--font-main);
    transition: 0.3s;
}
.glass-form input:focus, .glass-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.08);
}

/* Map Section */
.map-section {
    position: relative;
    height: 400px;
    background-color: #1e293b;
    overflow: hidden;
}
.map-bg {
    width: 100%;
    height: 100%;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/e/ec/World_map_blank_without_borders.svg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
}
.map-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
}
.map-overlay h3 { color: white; font-size: 2rem; margin-bottom: 10px; }
.map-overlay p { color: #94a3b8; }

/* Responsive Contact 2 */
@media (max-width: 992px) {
    .contact-v2-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* --- AUTH PAGES (Login, Signup, Forgot Password) --- */
.auth-body {
    background-color: #0f172a;
    background-image: radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.auth-header { margin-bottom: 30px; }
.auth-header h2 { color: white; font-size: 2rem; margin-bottom: 10px; font-weight: 700; }
.auth-header p { color: #94a3b8; font-size: 0.95rem; }

.auth-form .form-group { margin-bottom: 20px; text-align: left; }
.auth-form label { color: #cbd5e1; font-size: 0.9rem; margin-bottom: 8px; display: block; font-weight: 500; }

.input-wrapper { position: relative; }
.input-wrapper input {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 40px 12px 15px; /* Right padding for eye icon */
    border-radius: 8px;
    color: white;
    font-family: var(--font-main);
    transition: 0.3s;
    outline: none;
}
.input-wrapper input:focus { border-color: var(--primary-blue); background: rgba(15, 23, 42, 0.8); }

/* Validation Styles */
.input-wrapper input.error { border-color: #ef4444; }
.error-msg { color: #ef4444; font-size: 0.8rem; margin-top: 5px; display: none; }
.input-wrapper input.error + .toggle-password + .error-msg,
.input-wrapper input.error + .error-msg { display: block; }

/* Password Toggle Eye */
.toggle-password {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
}
.toggle-password:hover { color: white; }

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.85rem;
    color: #94a3b8;
}
.auth-options a { color: var(--primary-blue); font-weight: 600; transition: 0.3s; }
.auth-options a:hover { text-decoration: underline; }

.auth-footer { margin-top: 25px; font-size: 0.9rem; color: #94a3b8; }
.auth-footer a { color: white; font-weight: 600; margin-left: 5px; transition: 0.3s; }
.auth-footer a:hover { color: var(--primary-blue); }

/* --- 404 ERROR PAGE --- */
.error-page-body {
    background-color: #f8fafc;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}
.error-content h1 { font-size: 8rem; font-weight: 900; color: var(--primary-blue); line-height: 1; margin-bottom: 20px; text-shadow: 0 10px 30px rgba(37, 99, 235, 0.3); }
.error-content h2 { font-size: 2.5rem; color: var(--primary-dark); margin-bottom: 15px; }
.error-content p { color: var(--text-light); max-width: 500px; margin: 0 auto 30px; font-size: 1.1rem; }
.astronaut-img { max-width: 300px; margin-bottom: 30px; animation: float 6s ease-in-out infinite; }

/* --- CONTACT VALIDATION FIXES --- */
/* Ensure contact forms have relative positioning for error messages */
.form-group, .input-group { position: relative; }

/* --- MODERN CONTACT 2 ENHANCEMENTS --- */

/* Background Animation */
.page-bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.25;
    border-radius: 50%;
    animation: floatBlob 10s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--primary-blue);
}

.blob-2 {
    bottom: 0%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: #7c3aed; /* Violet */
    animation-delay: -5s;
}

/* Hero Map Background */
.contact-v2-hero {
    position: relative;
    overflow: hidden;
}
.hero-map-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-image: url('https://upload.wikimedia.org/wikipedia/commons/e/ec/World_map_blank_without_borders.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.05;
    z-index: 0;
    pointer-events: none;
}
.contact-v2-hero .container {
    position: relative;
    z-index: 1;
}

/* Enhanced Info Cards */
.c2-info-card {
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.c2-icon {
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.3);
}

/* Social Icons Hover Glow */
.social-icons a {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.social-icons a:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4);
    border-color: var(--primary-blue);
    color: white;
}

/* FAQ Dark Styles */
.faq-dark-section {
    padding: 80px 0 120px;
    border-top: 1px solid rgba(255,255,255,0.05);
    background: rgba(11, 15, 25, 0.5); /* Slight tint */
}
.faq-dark-section h2 { 
    color: white; 
    margin-bottom: 50px; 
    text-align: center; 
    font-size: 2.5rem; 
    font-weight: 700;
}
.faq-dark-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-dark-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.faq-dark-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}
.faq-dark-item.active {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-blue);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.1);
}
.faq-dark-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 1.05rem;
}
.faq-dark-answer {
    padding: 0 25px 25px;
    color: #94a3b8;
    line-height: 1.6;
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 0;
    padding-top: 20px;
    font-size: 0.95rem;
}
.faq-dark-item.active .faq-dark-answer { 
    display: block; 
    animation: slideDown 0.3s ease-out; 
}
.faq-toggle {
    transition: 0.3s;
    font-size: 0.9rem;
    color: var(--primary-blue);
}
.faq-dark-item.active .faq-toggle { 
    transform: rotate(180deg); 
}

@keyframes floatBlob {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- AUTH PAGES (Login, Signup, Forgot Password) --- */
.auth-body {
    background-color: #0f172a;
    background-image: radial-gradient(at 0% 0%, hsla(253,16%,7%,1) 0, transparent 50%), radial-gradient(at 50% 0%, hsla(225,39%,30%,1) 0, transparent 50%), radial-gradient(at 100% 0%, hsla(339,49%,30%,1) 0, transparent 50%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.auth-header { margin-bottom: 30px; }
.auth-header h2 { color: white; font-size: 2rem; margin-bottom: 10px; font-weight: 700; }
.auth-header p { color: #94a3b8; font-size: 0.95rem; }

.auth-form .form-group { margin-bottom: 20px; text-align: left; }
.auth-form label { color: #cbd5e1; font-size: 0.9rem; margin-bottom: 8px; display: block; font-weight: 500; }

.input-wrapper { position: relative; }
.input-wrapper input {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 40px 12px 15px; /* Right padding for eye icon */
    border-radius: 8px;
    color: white;
    font-family: var(--font-main);
    transition: 0.3s;
    outline: none;
}
.input-wrapper input:focus { border-color: var(--primary-blue); background: rgba(15, 23, 42, 0.8); }

/* Validation Styles */
.input-wrapper input.error { border-color: #ef4444; }
.error-msg { color: #ef4444; font-size: 0.8rem; margin-top: 5px; display: none; }
.input-wrapper input.error + .toggle-password + .error-msg,
.input-wrapper input.error + .error-msg { display: block; }

/* Password Toggle Eye */
.toggle-password {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
}
.toggle-password:hover { color: white; }

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.85rem;
    color: #94a3b8;
}
.auth-options a { color: var(--primary-blue); font-weight: 600; transition: 0.3s; }
.auth-options a:hover { text-decoration: underline; }

.auth-footer { margin-top: 25px; font-size: 0.9rem; color: #94a3b8; }
.auth-footer a { color: white; font-weight: 600; margin-left: 5px; transition: 0.3s; }
.auth-footer a:hover { color: var(--primary-blue); }

/* --- 404 ERROR PAGE --- */
.error-page-body {
    background-color: #f8fafc;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}
.error-content h1 { font-size: 8rem; font-weight: 900; color: var(--primary-blue); line-height: 1; margin-bottom: 20px; text-shadow: 0 10px 30px rgba(37, 99, 235, 0.3); }
.error-content h2 { font-size: 2.5rem; color: var(--primary-dark); margin-bottom: 15px; }
.error-content p { color: var(--text-light); max-width: 500px; margin: 0 auto 30px; font-size: 1.1rem; }
.astronaut-img { max-width: 300px; margin-bottom: 30px; animation: float 6s ease-in-out infinite; }

/* --- CONTACT VALIDATION FIXES --- */
/* Ensure contact forms have relative positioning for error messages */
.form-group, .input-group { position: relative; }



