
:root {
    --bg-color: #FFFFFF;
    --bg-secondary: #F3EEFB; /* stronger purple tint */
    --card-bg: #FFFFFF;
    --text-main: #2D2D3F;
    --text-muted: #6B7280;
    --accent-1: #4a2b9a;
    --accent-2: #8A2BE2; /* brighter purple */
    --purple-600: #6C3CE1;
    --purple-100: #EDE9FE;
    --accent-glow: rgba(108, 60, 225, 0.25); /* stronger purple glow */
    --gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    --border-color: #E6DDF2; /* purple tinted borders */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo, .nav-links a {
    font-family: 'Space Grotesk', sans-serif;
}

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

/* Typography */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.accent {
    color: var(--accent-1);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-primary);
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    padding: 1rem 3rem;
    position: fixed;
    top: 1.5rem;
    left: 5%;
    right: 5%;
    width: 90%;
    z-index: 1000;
    background: var(--border-color);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-main);
    min-width: 0;
}

.logo-img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(0, 242, 254, 0.35);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-links a:hover {
    color: var(--accent-1);
}

.nav-links a.active {
    color: var(--accent-1);
    font-weight: 600;
}

.nav-links a.active::after,
.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}


/* Buttons */
.btn-primary, .btn-secondary {
    padding: 0.8rem 1.8rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--purple-600);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple-600), var(--accent-2));
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px var(--accent-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 60, 225, 0.4);
}
.btn-secondary {
    background: transparent;
    color: var(--purple-600);
    border: 2px solid var(--purple-600);
}
.btn-secondary:hover {
    background: var(--purple-100);
    transform: translateY(-2px);
}


.btn-primary {
    background: var(--purple-600);
    color: #ffffff;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(108, 60, 225, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #ffffff;
    color: var(--purple-600);
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--purple-600);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple-600), var(--accent-2));
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px var(--accent-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 60, 225, 0.4);
}
.btn-secondary {
    background: transparent;
    color: var(--purple-600);
    border: 2px solid var(--purple-600);
}
.btn-secondary:hover {
    background: var(--purple-100);
    transform: translateY(-2px);
}


.btn-secondary:hover {
    background: rgba(0, 242, 254, 0.1);
}

/* Hero Section */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9rem 8% 4rem;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(0, 242, 254, 0.05) 0%, transparent 50%);
    gap: 3rem;
}

.hero-content {
    max-width: 620px;
    z-index: 2;
    opacity: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-content h1,
.hero-content p,
.hero-content .hero-badge,
.hero-content .hero-sub,
.hero-content .hero-buttons,
.hero-content .hero-stats,
.hero-content .hero-tech-stack {
    opacity: 1;
    transform: none;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 50px;
    padding: 0.45rem 1.1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent-2);
    width: fit-content;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-1);
    box-shadow: 0 0 8px var(--accent-1);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

/* Main heading */
.hero h1 {
    font-size: 3.8rem;
    line-height: 1.15;
    font-weight: 700;
    margin: 0;
}

/* Subtitle */
.hero-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* CTA Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple-600), var(--accent-2));
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px var(--accent-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 60, 225, 0.4);
}
.btn-secondary {
    background: transparent;
    color: var(--purple-600);
    border: 2px solid var(--purple-600);
}
.btn-secondary:hover {
    background: var(--purple-100);
    transform: translateY(-2px);
}


/* Stats Section */
.stats-section {
    padding: 3rem 0 1rem 0;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 1.8rem 2rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    width: 100%;
    flex-wrap: wrap;
    gap: 1.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border-color);
}

/* Tech stack */
.hero-tech-stack {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.tech-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple-600), var(--accent-2));
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px var(--accent-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 60, 225, 0.4);
}
.btn-secondary {
    background: transparent;
    color: var(--purple-600);
    border: 2px solid var(--purple-600);
}
.btn-secondary:hover {
    background: var(--purple-100);
    transform: translateY(-2px);
}


.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.tech-pill:hover {
    background: rgba(0, 242, 254, 0.07);
    border-color: rgba(0, 242, 254, 0.25);
    color: var(--accent-1);
}

.tech-pill i {
    color: var(--accent-1);
    font-size: 0.75rem;
}

/* Hero graphic / floating cards */
.hero-graphic {
    z-index: 2;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-card-stack {
    position: relative;
    width: 340px;
    height: 400px;
}

.hero-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: #f8f9fa;
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem 1.2rem;
    width: 300px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.hero-float-card:hover {
    transform: translateX(-6px) scale(1.02);
}

.card-1 { top: 0; left: 20px; animation: floatCard 5s ease-in-out infinite; }
.card-2 { top: 130px; left: 0; animation: floatCard 6s ease-in-out 1s infinite; }
.card-3 { top: 260px; left: 20px; animation: floatCard 4.5s ease-in-out 0.5s infinite; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.hfc-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
}

.hfc-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    flex: 1;
}

.hfc-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: 'Space Grotesk', sans-serif;
}

.hfc-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.hfc-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.hfc-badge.live {
    background: rgba(0, 242, 100, 0.15);
    color: #00f264;
    border: 1px solid rgba(0, 242, 100, 0.3);
}

.hfc-badge.done {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.hero-orb-wrap {
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    z-index: -1;
    pointer-events: none;
}

.glass-orb {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.12) 0%, rgba(99, 102, 241, 0.05) 40%, transparent 70%);
    filter: blur(50px);
    animation: float 8s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}



/* Glassmorphism */
.glass-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 12px 30px rgba(0, 242, 254, 0.08);
}

/* Grids */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* Services */
.card-icon {
    font-size: 2.5rem;
    color: var(--accent-1);
    margin-bottom: 1.5rem;
}

.services h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

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

/* ── Section Tier Dividers ───────────────────────────────────── */
.section-tier-divider {
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
}

.simple-tier { background: var(--bg-secondary); padding: 3rem 0 1rem; text-align: center; }

.engineering-tier { background: var(--bg-primary); padding: 3rem 0 1rem; text-align: center; }

.tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 1.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.simple-tier .tier-badge {
    background: rgba(37, 211, 102, 0.12);
    border: 1.5px solid rgba(37, 211, 102, 0.4);
    color: #25D366;
}

.engineering-tier .tier-badge {
    background: rgba(99, 102, 241, 0.12);
    border: 1.5px solid rgba(99, 102, 241, 0.4);
    color: #818cf8;
}

.tier-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Section-level theming */
.simple-services-section {
    background: radial-gradient(ellipse at 10% 60%, rgba(37, 211, 102, 0.05) 0%, transparent 60%);
}

.engineering-labs-section {
    background: radial-gradient(ellipse at 90% 40%, rgba(99, 102, 241, 0.05) 0%, transparent 60%);
}

/* ── CV Sample Chips ─────────────────────────────────────────── */
.cv-samples-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.65rem;
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cv-samples-row {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.cv-sample-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.25);
    color: #a5b4fc;
    padding: 0.38rem 0.85rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.cv-sample-chip:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    color: #c7d2fe;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(99, 102, 241, 0.25);
}



.we-provide-banner {
    background: linear-gradient(160deg, #0a1628 0%, #0e2148 100%);
    border: 1px solid rgba(35, 88, 165, 0.4);
    border-radius: 12px;
    padding: 1.2rem 1rem 1rem;
    margin: 1.25rem 0 0.25rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.we-provide-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(35, 88, 165, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.we-provide-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 0.4rem;
}

.wep-line {
    flex: 1;
    height: 1.5px;
    background: linear-gradient(90deg, transparent, rgba(185, 148, 68, 0.6), transparent);
    max-width: 50px;
}

.wep-title {
    font-size: 1.05rem;
    font-weight: 900;
    color: #e8f4ff;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.wep-sub {
    font-size: 0.72rem;
    color: rgba(200, 220, 255, 0.7);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.wep-icons-row {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

@media (max-width: 600px) {
    .wep-icons-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem 0.5rem;
    }
}

.wep-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    flex: 1;
}

.wep-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(35, 88, 165, 0.8);
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #a8c8ff;
    transition: all 0.25s ease;
}

.wep-icon-item:hover .wep-icon-circle {
    border-color: #2358a5;
    background: rgba(35, 88, 165, 0.25);
    transform: scale(1.08);
}

.wep-icon-item span {
    font-size: 0.62rem;
    color: rgba(200, 220, 255, 0.65);
    text-align: center;
    line-height: 1.2;
}

/* Simple Service Card & WhatsApp Quick Button Styles */
.simple-service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

/* R&D Section Tagline */
.rnd-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #f59e0b;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-align: center;
}

.rnd-tagline i {
    font-size: 1rem;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 1; text-shadow: 0 0 8px rgba(245, 158, 11, 0.5); }
    50% { opacity: 0.7; text-shadow: 0 0 16px rgba(245, 158, 11, 0.9); }
}

.whatsapp-quick-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.3);
    color: #25D366;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-align: center;
    width: 100%;
    margin-top: auto;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.08);
}

.whatsapp-quick-btn:hover {
    background: #25D366;
    color: #fff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
}

/* Light mode overrides for WhatsApp buttons */


.expert-lead-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.expert-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 2px solid var(--accent-1);
    flex-shrink: 0;
}

.expert-info {
    display: flex;
    flex-direction: column;
}

.expert-name {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.expert-role {
    font-size: 0.73rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}


.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--border-color);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.6rem 1.4rem;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.filter-btn:hover {
    color: #fff;
    background: var(--border-color);
    border-color: var(--border-color);
    transform: translateY(-1px);
}

.filter-btn.active {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.project-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card.hidden {
    display: none;
}

.project-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.15);
}

.project-img {
    height: 220px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.project-card:hover .project-img img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-img:hover .project-overlay {
    opacity: 1;
}

.overlay-btn {
    background: var(--gradient);
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.overlay-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
}

.project-img-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    background: linear-gradient(135deg, #1f4037, #99f2c8);
    position: relative;
}

.project-placeholder-icon {
    font-size: 5rem;
    color: var(--border-color);
    transition: transform 0.5s ease;
}

.project-card:hover .project-placeholder-icon {
    transform: scale(1.1) rotate(5deg);
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--border-color);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--accent-2);
}

/* Team */
.team-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.clickable-team {
    cursor: pointer;
    border: 1px solid rgba(0, 242, 254, 0.1);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.02);
}

.clickable-team:hover {
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.12);
    transform: translateY(-8px);
}

.avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
}

.avatar-photo {
    background: transparent;
    overflow: hidden;
    border: 2px solid var(--accent-1);
    padding: 2px;
}

.avatar-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.team-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.2rem;
}

.team-card h4 {
    color: var(--accent-1);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-card p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 1.2rem;
}

.team-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.view-profile-hint {
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--accent-1);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.clickable-team:hover .view-profile-hint {
    opacity: 1;
}

/* Contact */
.section-subtitle {
    color: var(--text-secondary);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 2rem;
    align-items: start;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 1.5rem;
    border-radius: 14px;
    font-size: 1.5rem;
    transition: all 0.3s;
    border: 1px solid transparent;
    text-decoration: none;
}

.contact-btn .btn-label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
}

.contact-btn .btn-sub {
    display: block;
    font-size: 0.8rem;
    opacity: 0.75;
    color: #fff;
}

.whatsapp-btn {
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.4);
    color: #25D366;
}
.whatsapp-btn:hover {
    background: rgba(37, 211, 102, 0.25);
    transform: translateX(5px);
}

.linkedin-btn {
    background: rgba(0, 119, 181, 0.15);
    border-color: rgba(0, 119, 181, 0.4);
    color: #0077B5;
}
.linkedin-btn:hover {
    background: rgba(0, 119, 181, 0.25);
    transform: translateX(5px);
}

.github-btn {
    background: var(--border-color);
    border-color: var(--border-color);
    color: #fff;
}
.github-btn:hover {
    background: var(--border-color);
    transform: translateX(5px);
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-form h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s;
    outline: none;
    resize: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-1);
}

.form-group select option {
    background: #111;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border-radius: 12px;
    margin-top: 0.5rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.form-note {
    text-align: center;
    color: #25D366;
    font-weight: 600;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* ========== WRITING SERVICES SECTION ========== */
.writing-banner {
    margin-bottom: 3.5rem;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.writing-banner img {
    width: 100%;
    display: block;
    max-height: 380px;
    object-fit: cover;
    object-position: center top;
}

.writing-grid {
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.writing-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.writing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.writing-card:hover::before {
    opacity: 1;
}

.writing-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--accent-glow);
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.4rem;
}

.writing-icon-wrapper .card-icon {
    font-size: 1.6rem;
    margin-bottom: 0;
}

.writing-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.2rem;
}

.writing-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
}

.writing-features {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin: 0.5rem 0;
}

.writing-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.writing-features .fa-circle-check {
    color: var(--accent-1);
    font-size: 0.8rem;
}

.writing-btn {
    margin-top: auto;
    text-align: center;
    padding: 0.65rem 1.4rem;
}

/* Trust bar */
.writing-trust-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
    padding: 1.5rem 2rem;
    background: rgba(99, 102, 241, 0.06);
    border: 1px solid rgba(99, 102, 241, 0.12);
    border-radius: 16px;
}

.writing-trust-bar span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.writing-trust-bar i {
    color: var(--accent-1);
    font-size: 1rem;
}

/* Footer */

.site-footer {
    background-color: var(--bg-dark);
    color: var(--text-on-dark);
    padding: 4rem 2rem 1.5rem;
    margin-top: 5rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}
.footer-brand .logo {
    color: var(--text-on-dark);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple-600), var(--accent-2));
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px var(--accent-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 60, 225, 0.4);
}
.btn-secondary {
    background: transparent;
    color: var(--purple-600);
    border: 2px solid var(--purple-600);
}
.btn-secondary:hover {
    background: var(--purple-100);
    transform: translateY(-2px);
}

.footer-brand p {
    color: #94a3b8;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}
.footer-links h4 {
    color: var(--text-on-dark);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}
.footer-links ul {
    list-style: none;
}
.footer-links li {
    margin-bottom: 0.8rem;
}
.footer-links a {
    color: #94a3b8;
    transition: color 0.3s ease;
}
.footer-links a:hover {
    color: var(--accent-1);
}
.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
    text-align: center;
    color: #94a3b8;
    font-size: 0.9rem;
}
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
/* University Logos Strip */
.uni-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}
.uni-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #f3f4f6;
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-main);
    transition: all 0.3s ease;
    cursor: default;
}
.uni-logo img {
    height: 22px;
    width: auto;
    max-width: 45px;
    object-fit: contain;
    border-radius: 4px;
    mix-blend-mode: multiply;
}
.uni-logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-glow);
    border-color: var(--purple-100);
    background: #ffffff;
    color: var(--purple-600);
}


/* ========== Hero staggered entrance animation ========== */
.hero-anim {
    opacity: 0;
    transform: translateY(24px);
    animation: heroFadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes heroFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive & Mobile Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.8rem 1.5rem;
        top: 1rem;
        width: 92%;
        left: 4%;
        right: 4%;
    }

    /* Hero: stack vertically, hide float cards */
    .hero {
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 7rem 6% 4rem;
        gap: 2rem;
        min-height: 100vh;
    }

    .hero-content {
        max-width: 100%;
        margin-top: 0;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero-graphic {
        display: none;
    }

    .stats-grid {
        gap: 1.2rem;
        padding: 1.5rem 1rem;
        justify-content: center;
    }

    .stat-number {
        font-size: 1.2rem;
    }

    .stats-grid .stat-divider {
        display: none;
    }

    .hamburger {
        display: block;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
        padding: 6rem 2rem;
        gap: 2rem;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-left: 1px solid var(--border-color);
        z-index: 1000;
        align-items: flex-start;
    }
    
    .nav-links.active {
        right: 0;
    }
}

/* ========== TEAM MEMBER PROFILE MODAL ========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 7, 12, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    padding: 1.5rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    padding: 3rem 2.5rem;
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-box {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.4);
    color: #ff4a4a;
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    gap: 2rem;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 2rem;
    margin-bottom: 1.5rem;
}

.modal-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--accent-1);
    overflow: hidden;
    flex-shrink: 0;
}

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

.modal-bio h2 {
    font-size: 2rem;
    margin-bottom: 0.2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-bio h4 {
    color: var(--accent-1);
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.modal-bio p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.modal-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.modal-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
}

.modal-link.linkedin {
    background: rgba(0, 119, 181, 0.1);
    border: 1px solid rgba(0, 119, 181, 0.3);
    color: #0077B5;
}

.modal-link.linkedin:hover {
    background: #0077B5;
    color: #fff;
}

.modal-link.github {
    background: var(--border-color);
    border: 1px solid var(--border-color);
    color: #fff;
}

.modal-link.github:hover {
    background: #fff;
    color: #000;
}

.modal-link.whatsapp {
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.3);
    color: #25D366;
}

.modal-link.whatsapp:hover {
    background: #25D366;
    color: #fff;
}

.modal-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2.5rem;
}

.skill-badge {
    background: rgba(0, 242, 254, 0.06);
    border: 1px solid rgba(0, 242, 254, 0.15);
    color: var(--accent-1);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--purple-600), var(--accent-2));
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px var(--accent-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 60, 225, 0.4);
}
.btn-secondary {
    background: transparent;
    color: var(--purple-600);
    border: 2px solid var(--purple-600);
}
.btn-secondary:hover {
    background: var(--purple-100);
    transform: translateY(-2px);
}


.modal-projects-title {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.modal-projects {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.modal-project-card {
    background: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    overflow: hidden;
    transition: all 0.3s;
}

.modal-project-card:hover {
    background: var(--border-color);
    border-color: var(--border-color);
}

.mp-img {
    width: 200px;
    min-height: 150px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

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

.mp-img-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1f4037, #99f2c8);
    width: 200px;
    min-height: 150px;
    flex-shrink: 0;
    position: relative;
}

.mp-placeholder-icon {
    font-size: 3.5rem;
    color: var(--border-color);
}

.mp-info {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.mp-info h4 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.mp-info p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.4;
    margin-bottom: 0.8rem;
}

.mp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.mp-link {
    align-self: flex-start;
    font-size: 0.85rem;
    color: var(--accent-1);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.3s;
}

.mp-link:hover {
    color: #fff;
}

.modal-box::-webkit-scrollbar {
    width: 8px;
}

.modal-box::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
}

.modal-box::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
}

.modal-box::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.3);
}

@media (max-width: 768px) {
    .modal-header {
        flex-direction: column;
        text-align: center;
        gap: 1.2rem;
    }
    
    .modal-box {
        padding: 2.5rem 1.5rem;
    }
    
    .modal-links {
        justify-content: center;
    }
    
    .modal-project-card {
        flex-direction: column;
    }
    
    .mp-img, .mp-img-icon {
        width: 100%;
        height: 150px;
        min-height: 150px;
    }
}

/* Thesis Gallery styling inside modals */
.thesis-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.gallery-item {
    background: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem;
    text-align: center;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent-1);
    background: rgba(0, 242, 254, 0.04);
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 90px;
    object-fit: contain;
    border-radius: 6px;
    display: block;
    margin-bottom: 0.4rem;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px;
}

.gallery-item span {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Academy Hub Header */
.academy-hub-header {
    text-align: center;
}

.academy-hub-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.3);
    color: #25D366;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Tuition Section Styles */
.tuition-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tuition-icon-wrapper {
    margin-bottom: 0.5rem;
}

.tuition-tutor {
    color: var(--accent-1);
    font-size: 0.85rem;
    font-weight: 700;
    margin-top: -0.4rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tuition-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tuition-books {
    margin-bottom: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.books-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.books-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
}

.book-item {
    text-align: center;
}

.book-item img {
    width: 100%;
    height: 52px;
    object-fit: contain;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    margin-bottom: 0.2rem;
    transition: transform 0.25s ease, border-color 0.25s ease;
    display: block;
}

.book-item img:hover {
    transform: translateY(-2px) scale(1.08);
    border-color: var(--accent-1);
}

.book-item span {
    font-size: 0.62rem;
    color: var(--text-muted);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tuition-features {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.tuition-features span {
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e0e0e0;
}

.tuition-features i {
    color: var(--accent-1);
    font-size: 0.9rem;
}

.tuition-btn {
    text-align: center;
    width: 100%;
    margin-top: auto;
    font-size: 0.9rem;
    padding: 0.7rem 1.2rem;
}

/* Process Section Styles */
.process {
    position: relative;
    overflow: hidden;
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    position: relative;
    margin-top: 4rem;
    gap: 1.5rem;
}

/* Glowing connecting line on desktop */
.process-line {
    position: absolute;
    top: 2rem;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    opacity: 0.15;
    z-index: 1;
}

.process-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    text-align: center;
}

.step-badge {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: #0f172a;
    border: 2px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-1);
    margin-bottom: 2rem;
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.1);
    transition: all 0.3s ease;
    z-index: 2;
}

.process-step:hover .step-badge {
    background: var(--gradient);
    color: #fff;
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.step-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1.5rem;
    height: calc(100% - 6rem);
}

.step-icon {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.step-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.step-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Responsive timeline for tablets and mobile */
@media (max-width: 1024px) {
    .process-timeline {
        flex-direction: column;
        gap: 3rem;
    }

    .process-line {
        top: 2rem;
        bottom: 2rem;
        left: 2rem;
        width: 2px;
        height: auto;
    }

    .process-step {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        gap: 2rem;
        width: 100%;
    }

    .step-badge {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .step-card {
        height: auto;
        align-items: flex-start;
        width: 100%;
        padding: 2rem;
    }

    .step-icon {
        margin-bottom: 0.8rem;
    }
}

/* ==========================================================================
   THEME TOGGLE & LIGHT MODE STYLES
   ========================================================================== */

/* Global Transition for smooth background/color changes */
body {
    transition: background-color 0.4s ease, color 0.4s ease;
}
.glass-card, .navbar, .hero, .step-badge, .stat-divider, .filter-btn, .modal-box, .form-group input, .form-group select, .form-group textarea, footer {
    transition: background 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

/* Theme Toggle Button Style */
.theme-toggle {
    background: var(--border-color);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    z-index: 1001;
    margin-left: auto;
    margin-right: 0;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: rgba(0, 242, 254, 0.1);
    border-color: rgba(0, 242, 254, 0.25);
    color: var(--accent-1);
    transform: scale(1.05);
}

/* Light Theme Variables */






























.featured-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1280px;
    margin: 0 auto;
}
@media (max-width: 968px) {
    .featured-services-grid {
        grid-template-columns: 1fr;
    }
}

.online-apply-featured-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 2.5rem 1.5rem;
    max-width: 100%;
    margin: 0;
    border-color: rgba(37, 211, 102, 0.2);
    background: radial-gradient(circle at 50% 10%, rgba(37, 211, 102, 0.05) 0%, transparent 60%);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.online-apply-featured-card:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 211, 102, 0.4);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.1);
}

.apply-icon-box {
    font-size: 4.5rem;
    color: #25D366;
    flex-shrink: 0;
    animation: float-slow 3s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.apply-content-box {
    flex-grow: 1;
    text-align: left;
}

.apply-badge {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-block;
    margin-bottom: 0.8rem;
}

.online-apply-featured-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
}

.online-apply-featured-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 700px;
    font-size: 0.95rem;
}

.online-apply-featured-card .whatsapp-quick-btn {
    max-width: 280px;
}


.quick-nav-section {
    padding: 2.5rem 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(15, 23, 42, 0.4) 100%);
    position: relative;
    z-index: 10;
    margin-top: -2rem;
}

.quick-nav-title {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-1);
    margin-bottom: 2rem;
}

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    max-width: 1200px;
    margin: 0 auto;
}

.quick-nav-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.quick-nav-card::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 1;
    pointer-events: none;
}

/* Custom gradients for hover backgrounds */
.qn-apply::before {
    background: radial-gradient(circle at 10% 10%, rgba(37, 211, 102, 0.15) 0%, transparent 80%);
}
.qn-tuition::before {
    background: radial-gradient(circle at 10% 10%, rgba(0, 242, 254, 0.15) 0%, transparent 80%);
}
.qn-writing::before {
    background: radial-gradient(circle at 10% 10%, rgba(99, 102, 241, 0.15) 0%, transparent 80%);
}
.qn-engineering::before {
    background: radial-gradient(circle at 10% 10%, rgba(245, 158, 11, 0.15) 0%, transparent 80%);
}

.quick-nav-card:hover::before {
    opacity: 1;
}

.quick-nav-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Border colors on hover */
.qn-apply:hover { border-color: rgba(37, 211, 102, 0.3); }
.qn-tuition:hover { border-color: rgba(0, 242, 254, 0.3); }
.qn-writing:hover { border-color: rgba(99, 102, 241, 0.3); }
.qn-engineering:hover { border-color: rgba(245, 158, 11, 0.3); }

.qn-card-icon {
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.35s ease;
}

/* Custom icon colors */
.qn-apply .qn-card-icon { color: #25D366; }
.qn-tuition .qn-card-icon { color: #00f2fe; }
.qn-writing .qn-card-icon { color: #818cf8; }
.qn-engineering .qn-card-icon { color: #f59e0b; }

.quick-nav-card:hover .qn-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.qn-card-info {
    flex-grow: 1;
    z-index: 2;
    text-align: left;
}

.qn-card-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.qn-card-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin: 0;
}

.qn-card-arrow {
    font-size: 1rem;
    color: var(--text-muted);
    opacity: 0.6;
    z-index: 2;
    transition: all 0.35s ease;
    transform: translateX(0);
}

.quick-nav-card:hover .qn-card-arrow {
    opacity: 1;
    color: var(--text-main);
    transform: translateX(4px);
}

/* Light mode styles */







.faq-section {
    padding: 6rem 0;
    position: relative;
    border-top: 1px solid var(--border-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
}

.faq-item {
    background: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    gap: 1rem;
    outline: none;
}

.faq-icon {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
    padding: 0 1.5rem;
    border-top: 1px solid transparent;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0 0 1.5rem 0;
}

/* Active State */
.faq-item.active {
    background: var(--border-color);
    border-color: rgba(0, 242, 254, 0.25);
    box-shadow: 0 8px 24px rgba(0, 242, 254, 0.04);
}

.faq-item.active .faq-question {
    color: #00f2fe;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: #00f2fe;
}

.faq-item.active .faq-answer {
    max-height: 600px;
    padding: 1.5rem 1.5rem 0.5rem 1.5rem;
    border-top-color: var(--border-color);
}

/* Light mode support */





.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    background: rgba(11, 15, 25, 0.85);
    border: 1px solid rgba(0, 242, 254, 0.3);
    color: #00f2fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 242, 254, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.back-to-top:hover {
    background: var(--accent-1);
    color: #0b0f19;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 242, 254, 0.4);
    border-color: transparent;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}






.whatsapp-widget {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 48px;
    height: 48px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
}

.whatsapp-widget:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
}

.wa-tooltip {
    position: absolute;
    left: 60px;
    background: #1e293b;
    border: 1px solid var(--border-color);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.whatsapp-widget:hover .wa-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(5px);
}



/* ========== NEW 2-COLUMN HERO VISUALS ========== */
.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
    width: 100%;
}
.hero-visuals {
    position: relative;
    width: 100%;
    height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.slideshow-gallery {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4/3;
    margin: 0 auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px var(--accent-glow);
    overflow: hidden;
    border: 4px solid #ffffff;
}

.slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: fadeSlide 24s infinite;
}

.slide-img:nth-child(1) { animation-delay: 0s; }
.slide-img:nth-child(2) { animation-delay: 4s; }
.slide-img:nth-child(3) { animation-delay: 8s; }
.slide-img:nth-child(4) { animation-delay: 12s; }
.slide-img:nth-child(5) { animation-delay: 16s; }
.slide-img:nth-child(6) { animation-delay: 20s; }

@keyframes fadeSlide {
    0% { opacity: 1; transform: scale(1); }
    14.66% { opacity: 1; transform: scale(1.03); }
    16.66% { opacity: 0; transform: scale(1.04); }
    98% { opacity: 0; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1); }
}

@media (max-width: 968px) {
    .hero-container { 
        grid-template-columns: 1fr; 
        text-align: center;
    }
    .hero-visuals { 
        display: flex;
        height: 320px;
        margin-top: 2rem;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-tech-stack {
        justify-content: center;
    }
    .slideshow-gallery {
        max-width: 100%;
        border-width: 2px;
    }
}
