/* ═══════════════════════════════════════════
   Dreamcast Studios - Modern Cinematic Theme
   ═══════════════════════════════════════════ */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a26;
    --bg-card-hover: #222233;
    --text-primary: #e8e6e3;
    --text-secondary: #9a9aad;
    --text-muted: #6b6b80;
    --accent: #6c5ce7;
    --accent-light: #a29bfe;
    --accent-glow: rgba(108, 92, 231, 0.25);
    --gold: #f0c040;
    --success: #2ed573;
    --danger: #ff4757;
    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --max-width: 1200px;
    --nav-height: 72px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-light); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--gold); }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Navigation ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    z-index: 1000;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.96);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.nav-logo strong { color: var(--accent-light); font-weight: 700; }
.nav-logo img { border-radius: 50%; object-fit: contain; }

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
    background: var(--accent) !important;
    color: #fff !important;
    padding: 8px 20px !important;
    border-radius: var(--radius-sm) !important;
}

.nav-cta:hover {
    background: var(--accent-light) !important;
    color: var(--bg-primary) !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ── Hero Section ── */
/* ── Cinematic Hero Section ── */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
    padding-bottom: 100px;
    overflow: hidden;
    background: #050508;
}

/* Video Background */
.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 60%, rgba(108,92,231,0.18), transparent 70%),
        radial-gradient(ellipse 60% 50% at 80% 30%, rgba(240,192,64,0.08), transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 80%, rgba(0,210,255,0.06), transparent 50%);
    animation: heroBgPulse 12s ease-in-out infinite alternate;
}

@keyframes heroBgPulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
    display: block;
}

.hero-video:not([src]):not(:has(source:not([src=""]))) {
    display: none;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5,5,8,0.7) 0%, rgba(5,5,8,0.3) 40%, rgba(5,5,8,0.85) 100%),
        linear-gradient(90deg, rgba(108,92,231,0.12) 0%, transparent 50%);
}

/* Animated Grid Lines */
.hero-grid-lines {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.grid-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent 0%, rgba(108,92,231,0.08) 30%, rgba(108,92,231,0.15) 50%, rgba(108,92,231,0.08) 70%, transparent 100%);
}

.grid-line:nth-child(1) { left: 10%; }
.grid-line:nth-child(2) { left: 30%; }
.grid-line:nth-child(3) { left: 50%; }
.grid-line:nth-child(4) { left: 70%; }
.grid-line:nth-child(5) { left: 90%; }

/* Floating Particles Canvas */
.hero-particles {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 2;
    pointer-events: none;
}

/* Scan Line Effect */
.hero-scanline {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.08) 2px,
        rgba(0,0,0,0.08) 4px
    );
}

.hero-scanline::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    height: 200%;
    background: linear-gradient(180deg, transparent 0%, rgba(108,92,231,0.04) 50%, transparent 100%);
    animation: scanMove 8s linear infinite;
}

@keyframes scanMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(50%); }
}

/* Hero Content */
.hero .container {
    position: relative;
    z-index: 5;
}

.hero-content {
    max-width: 780px;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(108,92,231,0.1);
    border: 1px solid rgba(108,92,231,0.25);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.82rem;
    color: var(--accent-light);
    font-weight: 500;
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
}

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

@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--success); }
    50% { opacity: 0.5; box-shadow: 0 0 16px var(--success); }
}

/* Hero Title */
.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.title-line {
    display: block;
    font-size: clamp(2.4rem, 6.5vw, 4.5rem);
}

.title-line em {
    font-style: normal;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-small {
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    color: var(--text-muted);
}

/* Glitch Text */
.glitch-text {
    position: relative;
    display: inline-block;
    color: var(--gold);
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch-text::before {
    color: #ff4757;
    animation: glitch1 3s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch-text::after {
    color: #00d2ff;
    animation: glitch2 3s infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch1 {
    0%, 92%, 100% { transform: translate(0); }
    93% { transform: translate(3px, -2px); }
    95% { transform: translate(-3px, 1px); }
    97% { transform: translate(2px, 2px); }
}

@keyframes glitch2 {
    0%, 90%, 100% { transform: translate(0); }
    91% { transform: translate(-3px, 2px); }
    94% { transform: translate(3px, -1px); }
    96% { transform: translate(-2px, -2px); }
}

/* Hero Description */
.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin-bottom: 36px;
    line-height: 1.8;
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-glow {
    box-shadow: 0 0 20px var(--accent-glow), 0 0 60px rgba(108,92,231,0.1);
    position: relative;
}

.btn-glow:hover {
    box-shadow: 0 0 30px var(--accent-glow), 0 0 80px rgba(108,92,231,0.15);
}

.btn-scan {
    position: relative;
    overflow: hidden;
}

.btn-scan::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transition: left 0.5s;
}

.btn-scan:hover::before { left: 100%; }

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-stat {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0;
}

.hero-stat h3 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--accent-light);
    line-height: 1;
}

.hero-stat span {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    margin-right: 8px;
}

.hero-stat p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
    width: 100%;
    margin-top: 4px;
}

/* Scroll Indicator */
.hero-scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--accent-light), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.3); }
}

/* ── Page Hero (non-home pages) ── */
.page-hero {
    padding: 140px 0 60px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 60% at 50% 0%, var(--accent-glow), transparent);
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.page-hero p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ── About Preview Grid (Home) ── */
.about-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    gap: 20px;
}

.about-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: all 0.3s;
}

.about-feature:hover {
    border-color: rgba(108,92,231,0.3);
    transform: translateX(4px);
}

.about-feature i {
    font-size: 1.4rem;
    color: var(--accent-light);
    margin-top: 2px;
}

.about-feature h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.about-feature p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
}

/* ── Breadcrumbs ── */
.breadcrumbs {
    padding: 16px 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
}

.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent-light); }
.breadcrumbs span { color: var(--text-secondary); }
.breadcrumbs i { color: var(--text-muted); font-size: 0.65rem; margin: 0 8px; }

/* ── Project Cards (updated with overlay) ── */
.project-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--bg-secondary);
}

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

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

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(108,92,231,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.project-view {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-info {
    padding: 20px 24px;
}

.project-type {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-light);
}

.project-info h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 6px 0;
}

.project-info p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0;
}


/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover {
    background: var(--accent-light);
    color: var(--bg-primary);
    box-shadow: 0 0 24px var(--accent-glow);
}

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

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }

/* ── Section Styling ── */
.section {
    padding: 120px 0;
}

.section-dark { background: var(--bg-secondary); }

/* First section after hero — extra top breathing room + glow border */
.hero + .section,
.hero + .section-dark {
    border-top: 1px solid var(--border);
    position: relative;
}

.hero + .section::before,
.hero + .section-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    z-index: 1;
}

.section-header {
    max-width: 600px;
    margin-bottom: 56px;
}

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

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-light);
    margin-bottom: 12px;
}

.section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ── Service Cards ── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 32px;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

.service-card:hover {
    border-color: var(--accent-glow);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: var(--radius-sm);
    font-size: 1.5rem;
    color: var(--accent-light);
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ── Project Cards ── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s;
}

.project-card:hover {
    border-color: rgba(108, 92, 231, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.project-thumb {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    background: var(--bg-secondary);
}

.project-body {
    padding: 24px;
}

.project-type-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent-light);
    background: var(--accent-glow);
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
}

.project-body h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.project-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.project-link {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent-light);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.project-link:hover { gap: 10px; color: var(--gold); }

/* ── Project Filter Tabs ── */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-tab {
    padding: 8px 20px;
    border: 1px solid var(--border-light);
    border-radius: 50px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ── About Section ── */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.about-visual {
    position: relative;
}

.about-visual-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    text-align: center;
}

.about-visual-card .year {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.about-visual-card p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 8px;
}

.about-text h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--text-primary);
}

.about-feature i {
    color: var(--accent-light);
    font-size: 1.1rem;
}

/* ── Contact Form ── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-detail-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: var(--radius-sm);
    color: var(--accent-light);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-detail h4 {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.contact-detail p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.92rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* ── Page Headers ── */
.page-header {
    padding: 140px 0 60px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 60% at 50% 0%, var(--accent-glow), transparent);
    pointer-events: none;
}

.page-header .container { position: relative; z-index: 2; }

.page-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 560px;
}

.breadcrumb {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb span { color: var(--text-muted); }
.breadcrumb .current { color: var(--accent-light); }

/* ── Project Detail ── */
.project-detail-hero {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 40px;
}

.project-meta {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.project-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-meta-item span:first-child {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.project-meta-item span:last-child {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.project-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.9;
    max-width: 800px;
}

.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 40px;
}

.project-gallery img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

/* ── Academy Section ── */
.academy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.academy-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: all 0.3s;
}

.academy-card:hover {
    border-color: rgba(240, 192, 64, 0.3);
    transform: translateY(-3px);
}

.academy-card h4 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--gold);
}

.academy-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ── CTA Section ── */
.cta-section {
    text-align: center;
    padding: 80px 0;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 50% at 50% 50%, var(--accent-glow), transparent);
    pointer-events: none;
}

.cta-section .container { position: relative; z-index: 2; }

.cta-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-section p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 32px;
}

/* ── Alert ── */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
    font-size: 0.92rem;
}

.alert-success {
    background: rgba(46, 213, 115, 0.1);
    border: 1px solid rgba(46, 213, 115, 0.3);
    color: var(--success);
}

.alert-error {
    background: rgba(255, 71, 87, 0.1);
    border: 1px solid rgba(255, 71, 87, 0.3);
    color: var(--danger);
}

/* ── Back to Top ── */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(16px);
    transition: all 0.3s;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-light);
    color: var(--bg-primary);
}

/* ── Footer ── */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 16px;
}

.footer-logo strong { color: var(--accent-light); }

.footer-about p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    padding: 4px 0;
}

.footer-links a:hover { color: var(--accent-light); }

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.footer-contact i { color: var(--accent-light); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ── No Results ── */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.no-results i { font-size: 3rem; margin-bottom: 16px; display: block; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 32px 24px;
        gap: 4px;
        transform: translateX(100%);
        transition: transform 0.3s;
    }

    .nav-menu.open { transform: translateX(0); }

    .nav-menu a {
        font-size: 1.05rem;
        padding: 12px 16px;
    }

    .hero-stats { gap: 24px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .about-features { grid-template-columns: 1fr; }
    .project-meta { gap: 20px; }
}

@media (max-width: 480px) {
    .hero-title .title-line { font-size: 1.8rem; }
    .title-small { font-size: 1.4rem !important; }
    .hero { padding-bottom: 60px; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ── Admin Panel Styles ── */
.admin-body {
    background: var(--bg-primary);
    min-height: 100vh;
}

.admin-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-header h2 {
    font-family: var(--font-display);
    font-size: 1.15rem;
}

.admin-header a { font-size: 0.88rem; }

.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 240px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    padding: 24px 0;
    overflow-y: auto;
}

.admin-sidebar .logo {
    padding: 0 20px 24px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.admin-sidebar .logo strong { color: var(--accent-light); }

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: rgba(108, 92, 231, 0.1);
    color: var(--accent-light);
}

.admin-nav .badge {
    background: var(--danger);
    color: #fff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: auto;
}

.admin-main {
    margin-left: 240px;
    padding: 32px;
}

.admin-main h1 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    margin-bottom: 24px;
}

.admin-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.admin-actions {
    display: flex;
    gap: 8px;
}

.admin-actions a,
.admin-actions button {
    padding: 6px 12px;
    font-size: 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-body);
    transition: all 0.2s;
}

.admin-actions a:hover { border-color: var(--accent); color: var(--accent-light); }
.admin-actions .delete-btn:hover { border-color: var(--danger); color: var(--danger); }

.stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.stat-card h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--accent-light);
    margin-bottom: 4px;
}

.stat-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.admin-form .form-group { margin-bottom: 20px; }

.admin-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
}

.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.admin-form textarea { min-height: 100px; resize: vertical; }

@media (max-width: 768px) {
    .admin-sidebar { display: none; }
    .admin-main { margin-left: 0; }
}

/* ── Blog Cards ── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.4s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: rgba(108,92,231,0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.blog-thumb {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--bg-secondary);
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.blog-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(108,92,231,0.9);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 12px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
}

.blog-info {
    padding: 20px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-info h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.blog-card:hover .blog-info h3 { color: var(--accent-light); }

.blog-excerpt {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 12px;
}

.blog-meta {
    display: flex;
    gap: 16px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: auto;
}

.blog-meta i { margin-right: 4px; }

/* ── Blog Categories Filter ── */
.blog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.category-tag {
    padding: 6px 18px;
    border: 1px solid var(--border-light);
    border-radius: 50px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s;
}

.category-tag:hover,
.category-tag.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.category-tag span {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-left: 2px;
}

.category-tag.active span { color: rgba(255,255,255,0.7); }

/* ── Blog Post Detail ── */
.blog-post-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

.blog-post-header {
    margin-bottom: 32px;
}

.blog-category-badge {
    display: inline-block;
    background: var(--accent-glow);
    color: var(--accent-light);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.blog-post-header h1 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.blog-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.blog-post-meta i { margin-right: 4px; color: var(--accent-light); }

.blog-post-hero-img {
    margin-bottom: 36px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.blog-post-hero-img img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.blog-post-content {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.9;
}

.blog-post-content h2 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 40px 0 16px;
}

.blog-post-content h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 32px 0 12px;
}

.blog-post-content p { margin-bottom: 16px; }

.blog-post-content img {
    border-radius: var(--radius-sm);
    margin: 24px 0;
    border: 1px solid var(--border);
}

.blog-post-content ul,
.blog-post-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.blog-post-content li {
    margin-bottom: 8px;
}

.blog-post-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--bg-card);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-primary);
    font-style: italic;
}

.blog-post-content pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    overflow-x: auto;
    margin: 24px 0;
    font-size: 0.88rem;
}

.blog-post-content code {
    background: var(--bg-card);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88em;
}

.blog-post-content pre code {
    background: none;
    padding: 0;
}

/* Blog Tags */
.blog-post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.tag {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Blog Share */
.blog-share {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.share-links {
    display: flex;
    gap: 8px;
}

.share-links a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 1rem;
    transition: all 0.3s;
}

.share-links a:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ── Blog Sidebar ── */
.blog-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
}

.sidebar-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-widget h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.sidebar-post {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.sidebar-post:last-child { margin-bottom: 0; }

.sidebar-post-thumb {
    width: 72px;
    height: 52px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--bg-secondary);
}

.sidebar-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sidebar-post-info h4 {
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-post:hover h4 { color: var(--accent-light); }

.sidebar-post-info span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sidebar-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-cta {
    background: linear-gradient(135deg, rgba(108,92,231,0.15), rgba(240,192,64,0.08));
    border-color: rgba(108,92,231,0.3);
    text-align: center;
}

.sidebar-cta h3 { border: none; padding-bottom: 0; }
.sidebar-cta p { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 16px; }

/* ── Pagination ── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}

.page-link {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.3s;
}

.page-link:hover,
.page-link.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ── Empty State ── */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-state i { font-size: 3rem; margin-bottom: 16px; display: block; color: var(--text-muted); }
.empty-state h3 { font-family: var(--font-display); margin-bottom: 8px; color: var(--text-secondary); }
.empty-state p { font-size: 0.95rem; }

/* ── Utility ── */
.center { text-align: center; }
.mt-48 { margin-top: 48px; }
.section-subtitle { color: var(--text-secondary); font-size: 1.02rem; max-width: 560px; margin: 0 auto; }

/* ── Scroll Reveal Animation ── */
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Blog Responsive ── */
@media (max-width: 960px) {
    .blog-post-layout { grid-template-columns: 1fr; }
    .blog-sidebar { position: static; }
    .about-preview-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; }
    .hero-title .title-line { font-size: clamp(1.8rem, 8vw, 2.8rem); }
    .title-small { font-size: clamp(1.5rem, 6vw, 2.2rem) !important; }
    .hero-stats { gap: 24px; }
    .hero-scroll { display: none; }
    .hero-grid-lines { display: none; }
    .hero-title .title-line { font-size: clamp(1.8rem, 8vw, 2.8rem); }
    .title-small { font-size: clamp(1.5rem, 6vw, 2.2rem) !important; }
    .hero { padding-bottom: 80px; }
    
    .hero-scroll { display: none; }
    .hero-grid-lines { display: none; }
}

@media (max-width: 480px) {
    .hero-stats { flex-direction: column; gap: 20px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .blog-post-meta { gap: 12px; }
    .blog-share { flex-direction: column; align-items: flex-start; }
}
