/* ======= CSS Reset & Variables ======= */
:root {
    --bg-dark: #081220;
    --bg-darker: #040910;
    --primary: #0072bc;
    --primary-glow: rgba(0, 114, 188, 0.5);
    --secondary: #f3aa1a;
    --secondary-glow: rgba(243, 170, 26, 0.5);
    --text-light: #f8fafc;
    --text-muted: #a0aec0;
    --glass-bg: rgba(12, 25, 45, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --card-shadow: 0 4px 20px rgba(0,0,0,0.3);
    --overlay-dark: rgba(0,0,0,0.92);
    --overlay-mid: rgba(0,0,0,0.6);
}

/* ======= Light Theme ======= */
[data-theme="light"] {
    --bg-dark: #f4f6f9;
    --bg-darker: #e8ecf1;
    --text-light: #1a202c;
    --text-muted: #4a5568;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(0, 0, 0, 0.08);
    --card-shadow: 0 4px 20px rgba(0,0,0,0.08);
    --overlay-dark: rgba(0,0,0,0.75);
    --overlay-mid: rgba(0,0,0,0.4);
}

/* ======= Top Banner ======= */
:root {
    --banner-h: 44px;
}

.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--banner-h);
    background: linear-gradient(135deg, #0c2d5e, #0072bc);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3rem 0 1.5rem;
    overflow: hidden;
}

.top-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1200px;
    width: 100%;
}

.top-banner-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.top-banner-text i {
    font-size: 1rem;
    color: #60a5fa;
}

.top-banner-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--secondary);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: var(--transition);
}

.top-banner-link:hover {
    color: #fff;
    gap: 0.7rem;
}

.top-banner-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}

.top-banner-close:hover {
    color: #fff;
}

/* Offset navbar & hero for banner */
.navbar {
    top: var(--banner-h) !important;
}

.hero {
    padding-top: var(--banner-h);
}

@media (max-width: 768px) {
    :root {
        --banner-h: 40px;
    }
    .top-banner-text {
        font-size: 0.75rem;
    }
    .top-banner-link {
        font-size: 0.75rem;
    }
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ======= Typography ======= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.highlight {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

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

.section {
    padding: 6rem 0;
    position: relative;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.text-center { text-align: center; }
.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ======= Buttons ======= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    box-shadow: 0 6px 25px var(--secondary-glow);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--text-light);
    color: var(--text-light);
}

.btn-outline:hover {
    background: var(--text-light);
    color: var(--bg-dark);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

/* ======= Glassmorphism Components ======= */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-10px);
    border-color: rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* ======= Navigation ======= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

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

.nav-links a:not(.btn) {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:not(.btn):hover {
    color: var(--text-light);
}

/* Ensure navbar is visible against vibrant hero background before scrolling */
@media (min-width: 769px) {
    .navbar:not(.scrolled) .nav-links a:not(.btn) {
        color: rgba(255, 255, 255, 0.95) !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }
    .navbar:not(.scrolled) .nav-links a:not(.btn):hover {
        color: #ffffff !important;
        text-shadow: 0 2px 8px rgba(0,242,254,0.6);
    }
    .navbar:not(.scrolled) .theme-toggle {
        color: #ffffff !important;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    }
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

/* ======= Hero Section ======= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

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

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.sphere-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--primary);
}

.sphere-2 {
    bottom: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: var(--secondary);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.hero-content .badge {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: #ffffff !important;
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.hero-title .highlight {
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #00f2fe !important;
    color: #00f2fe !important;
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.5) !important;
}

.hero-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 2.5rem;
    text-shadow: 0 1px 5px rgba(0,0,0,0.4);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-content .btn-outline {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.hero-content .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: #ffffff !important;
}

.hero-visual {
    position: relative;
}

.hero-card {
    background: linear-gradient(145deg, rgba(30,41,59,0.7), rgba(15,23,42,0.9));
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: perspective(1000px) rotateY(-10deg) rotateX(5deg) translateY(0); }
    50% { transform: perspective(1000px) rotateY(-10deg) rotateX(5deg) translateY(-20px); }
}

.card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.stat-col h3 {
    font-size: 2rem;
    margin-bottom: 0.2rem;
    color: var(--primary);
}

.stat-col span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 4px;
}

/* ======= Sections Headers ======= */
.section-header {
    margin-bottom: 4rem;
}

.section-header.center {
    max-width: 600px;
}

.section-title {
    font-size: 3rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ======= About Section ======= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.vision-mission {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.vision-mission ul {
    list-style: none;
}

.vision-mission ul li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: var(--text-muted);
}

/* ======= Services Section ======= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
}

/* ======= Advantages Section ======= */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.circle-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(139,92,246,0.1));
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-light);
    margin: 0 auto 1.5rem;
    transition: var(--transition);
}

.advantage-item:hover .circle-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 10px 20px var(--primary-glow);
}

.advantage-item p {
    color: var(--text-muted);
}

/* ======= Experience Section — V2 Cards ======= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.portfolio-card-v2 {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.portfolio-card-v2::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
    pointer-events: none;
    z-index: 10;
}

.portfolio-card-v2:hover {
    transform: translateY(-8px);
    border-color: rgba(243, 170, 26, 0.4);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 114, 188, 0.15);
    background: rgba(15, 23, 42, 0.7);
}

/* Visual Area (icon or gallery) */
.pcard-visual {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.pcard-visual::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--bg-darker) 0%, transparent 100%);
    z-index: 3;
}

.pcard-visual--icon {
    background: radial-gradient(circle at center, rgba(0,114,188,0.15) 0%, rgba(10,15,24,1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcard-icon-circle {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: white;
    box-shadow: 0 10px 30px var(--primary-glow);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

.portfolio-card-v2:hover .pcard-icon-circle {
    transform: scale(1.15) translateY(-5px);
    box-shadow: 0 15px 40px var(--secondary-glow);
}

/* Gallery Slideshow */
.pcard-visual--gallery {
    background: #0a0f18;
}

.pcard-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1);
    transition: opacity 0.8s ease, transform 6s ease;
}

.pcard-slide.active {
    opacity: 1;
}

.portfolio-card-v2:hover .pcard-slide.active {
    transform: scale(1.08);
}

.pcard-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 4;
}

.pcard-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--transition);
}

.pcard-dot.active {
    background: var(--secondary);
    width: 20px;
    border-radius: 4px;
    box-shadow: 0 0 10px var(--secondary-glow);
}

/* Body */
.pcard-body {
    padding: 0 1.8rem 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 4;
}

.pcard-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    padding: 0.4rem 0.9rem;
    background: linear-gradient(90deg, rgba(0,114,188,0.15), rgba(243,170,26,0.05));
    border: 1px solid rgba(0,114,188,0.2);
    color: var(--secondary);
    border-radius: 30px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    width: fit-content;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    transform: translateY(-12px);
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    line-height: 1.3;
}

.pcard-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.4;
    color: var(--text-light);
    transition: color 0.3s;
}

.portfolio-card-v2:hover .pcard-title {
    color: var(--secondary);
}

.pcard-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 0;
    flex: 1;
}

.pcard-client {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.82rem;
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px dashed rgba(255,255,255,0.1);
    font-weight: 500;
}

.client-logo {
    height: 24px;
    width: auto;
    object-fit: contain;
}

/* Featured card */
.pcard-featured {
    border-color: rgba(0,114,188,0.3);
}

.pcard-featured::after {
    box-shadow: inset 0 0 0 1px rgba(0,114,188,0.2);
}

.pcard-featured:hover {
    border-color: var(--secondary);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5), 0 0 40px rgba(243,170,26,0.15);
}

/* Light mode */
[data-theme="light"] .portfolio-card-v2 {
    background: rgba(255,255,255,0.9);
    border-color: rgba(0,0,0,0.08);
}

[data-theme="light"] .portfolio-card-v2:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

[data-theme="light"] .pcard-visual--icon {
    background: linear-gradient(135deg, rgba(0,114,188,0.06), rgba(243,170,26,0.06));
}

[data-theme="light"] .pcard-tag {
    background: rgba(0,114,188,0.08);
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .pcard-visual {
        height: 180px;
    }
}

/* ======= Team Section — Photo Cards ======= */
.team-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.team-card {
    perspective: 1000px;
    height: 480px;
    cursor: pointer;
}

.team-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.team-card.flipped .team-card-inner {
    transform: rotateY(180deg);
}

/* Front */
.team-card-front,
.team-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
}

.team-card-front {
    background: #0a0a0a;
}

.team-card-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.team-card:hover .team-card-photo {
    transform: scale(1.05);
    filter: brightness(0.85);
}

.team-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.8rem;
    background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.team-card-quote {
    font-size: 0.9rem;
    font-style: italic;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
    margin-bottom: 1.2rem;
}

.team-card-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #fff;
}

.team-card-role {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 500;
    margin: 0;
}

/* Back */
.team-card-back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #0c1929, #081220);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-card-back-content {
    padding: 2.5rem 2rem;
    text-align: center;
}

.team-card-back-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.team-card-back-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.team-card-back-role {
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.team-card-back-bio {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.team-card-back-hint {
    color: rgba(255,255,255,0.3);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

/* Responsive */
@media (max-width: 992px) {
    .team-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .team-card {
        height: 440px;
    }
}

@media (max-width: 640px) {
    .team-cards {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin: 0 auto;
    }
    .team-card {
        height: 460px;
    }
}

/* ======= Contact Section ======= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
}

.contact-text h4 {
    margin-bottom: 0.3rem;
}

.contact-text p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0,0,0,0.4);
}

/* ======= Footer ======= */
footer {
    background: #050810;
    padding-top: 5rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-col p {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-col h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ======= Responsive ======= */
@media (max-width: 992px) {
    .hero-container, .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
}

/* ======= Gallery Section ======= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
    padding: 0;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
    border-color: var(--primary);
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 114, 188, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.gallery-overlay i {
    font-size: 2.5rem;
    color: white;
    transform: scale(0);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* ======= Lightbox ======= */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(4, 9, 16, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--secondary);
    text-decoration: none;
    cursor: pointer;
}

/* ======= Articles Section — Compact List ======= */
.articles-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.article-list-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    border-radius: 16px;
}

.article-list-item:first-child {
    border-top: 1px solid var(--glass-border);
}

.article-list-item:hover {
    background: var(--glass-bg);
    border-color: transparent;
    transform: translateX(8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

.article-list-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0,114,188,0.15), rgba(243,170,26,0.15));
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--primary);
    transition: var(--transition);
}

.article-list-item:hover .article-list-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.article-list-body {
    flex-grow: 1;
    min-width: 0;
}

.article-list-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.4rem;
}

.article-list-meta span {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.article-list-meta i {
    color: var(--primary);
    font-size: 0.75rem;
}

.article-list-body h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    line-height: 1.4;
    transition: var(--transition);
}

.article-list-item:hover .article-list-body h3 {
    color: var(--secondary);
}

.article-list-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-list-arrow {
    color: var(--text-muted);
    font-size: 1rem;
    transition: var(--transition);
    min-width: 24px;
    text-align: center;
}

.article-list-item:hover .article-list-arrow {
    color: var(--secondary);
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .article-list-item {
        gap: 1rem;
        padding: 1.5rem 1rem;
    }

    .article-list-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 1.1rem;
        border-radius: 12px;
    }

    .article-list-body h3 {
        font-size: 1rem;
    }

    .article-list-body p {
        -webkit-line-clamp: 1;
    }

    .article-list-arrow {
        display: none;
    }
}

/* ======= Scroll to Top Button ======= */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px var(--primary-glow);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px var(--secondary-glow);
}

/* ======= Theme Toggle Button ======= */
.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    margin-left: 0.5rem;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-color: transparent;
    transform: scale(1.1);
}

.theme-toggle .fa-sun { display: none; }
.theme-toggle .fa-moon { display: inline; }

[data-theme="light"] .theme-toggle .fa-sun { display: inline; }
[data-theme="light"] .theme-toggle .fa-moon { display: none; }

/* ======= Light Mode Specific Overrides ======= */
[data-theme="light"] body {
    color: var(--text-light);
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(244, 246, 249, 0.9);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

[data-theme="light"] .hero-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0,0,0,0.06);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

[data-theme="light"] .hover-lift:hover {
    border-color: rgba(0,0,0,0.12);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

[data-theme="light"] .highlight {
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .gradient-sphere {
    opacity: 0.3;
}

[data-theme="light"] .team-card-front {
    background: #f0f0f0;
}

[data-theme="light"] .team-card-back {
    background: linear-gradient(135deg, #ffffff, #f0f4f8);
    border-color: rgba(0,0,0,0.1);
}

[data-theme="light"] .team-card-overlay {
    background: linear-gradient(to top, var(--overlay-dark) 0%, var(--overlay-mid) 50%, transparent 100%);
}

[data-theme="light"] .team-card-quote,
[data-theme="light"] .team-card-name {
    color: #fff;
}

[data-theme="light"] .form-control {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0,0,0,0.12);
    color: #1a202c;
}

[data-theme="light"] .form-control::placeholder {
    color: #94a3b8;
}

[data-theme="light"] .lightbox {
    background-color: rgba(0,0,0,0.85);
}

[data-theme="light"] .article-list-item:hover {
    background: rgba(255,255,255,0.8);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

[data-theme="light"] .footer-bottom {
    border-top-color: rgba(0,0,0,0.08);
}

[data-theme="light"] footer {
    background: #e2e6ec;
}

[data-theme="light"] .circle-icon {
    background: rgba(0, 114, 188, 0.08);
}

[data-theme="light"] .badge {
    background: rgba(0, 114, 188, 0.08);
    border-color: rgba(0, 114, 188, 0.15);
}
