:root {
    --bg-dark: #090b1d;
    --bg-darker: #060814;
    --bg-element: rgba(14, 21, 55, 0.75);
    --text-primary: #f8f4e6;
    --text-secondary: #cbbf9d;
    --accent-cyan: #d4b45f;
    --accent-indigo: #4f6ddb;
    --accent-emerald: #8f3f4f;
    --accent-purple: #704d71;
    --glass-border: rgba(212, 180, 95, 0.12);
}

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

body { font-family: 'Inter', sans-serif; background-color: var(--bg-dark); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; scroll-behavior: smooth; }
h1, h2, h3, h4, .nav-title, .pre-heading { font-family: 'Outfit', sans-serif; }

/* Backgrounds & Navigation */
.background-wrapper { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 0.2s ease-out; filter: brightness(0.38) saturate(1.05); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(9,11,29,0.45) 0%, rgba(6,8,20,1) 100%); }

.navbar { position: fixed; top: 0; width: 100%; z-index: 100; padding: 20px 0; transition: all 0.3s; }
.navbar.scrolled { padding: 15px 0; background: rgba(9, 11, 29, 0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--glass-border); }
.nav-content { display: flex; justify-content: space-between; align-items: center; gap: 24px; max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.logo-area { display: flex; align-items: center; gap: 15px; text-decoration: none; }
.nav-logo { height: 40px; transition: transform 0.3s; }
.logo-area:hover .nav-logo { transform: scale(1.05); }
.nav-title { color: var(--text-primary); font-weight: 800; font-size: 1.2rem; letter-spacing: 2px; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a:not(.btn-outline) { color: var(--text-secondary); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.3s; }
.nav-links a:hover:not(.btn-outline) { color: var(--accent-cyan); }
.nav-links a.active { color: var(--accent-cyan); }

.btn-outline { padding: 8px 20px; border: 1px solid var(--glass-border); border-radius: 4px; color: var(--text-primary); text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: all 0.3s; }
.btn-outline:hover { background: rgba(212, 180, 95, 0.12); border-color: var(--accent-cyan); color: var(--accent-cyan); }
.nav-dashboard-login { padding: 9px 22px; border-radius: 4px; background: var(--accent-cyan); color: #111827; text-decoration: none; font-size: 0.9rem; font-weight: 800; white-space: nowrap; transition: transform 0.3s, box-shadow 0.3s; }
.nav-dashboard-login:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(212,180,95,0.22); }

/* Hero Section */
.hero { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; position: relative; padding: 0 20px; overflow: hidden; }
.hero-content { width: 100%; max-width: 900px; display: flex; flex-direction: column; align-items: center; z-index: 2; margin-top: 60px; }
.pre-heading { display: inline-block; padding: 6px 12px; font-family: 'Fira Code', monospace; color: var(--accent-cyan); font-size: 0.85rem; letter-spacing: 2px; background: rgba(212, 180, 95, 0.12); border: 1px solid rgba(212, 180, 95, 0.25); margin-bottom: 30px; border-radius: 4px; animation: fadeDown 1s ease-out; }

.glitch-title { width: 100%; max-width: 900px; font-size: clamp(3rem, 6vw, 5rem); font-weight: 800; line-height: 1.1; margin-bottom: 30px; background: linear-gradient(135deg, #f8f4e6, #cbbf9d); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-transform: uppercase; animation: fadeUp 1s ease-out 0.2s backwards; }
.hero-subtitle { font-size: 1.3rem; color: var(--text-secondary); margin-bottom: 50px; max-width: 750px; line-height: 1.6; animation: fadeUp 1s ease-out 0.4s backwards; }

.cta-group { display: flex; gap: 20px; animation: fadeUp 1s ease-out 0.6s backwards; }
.btn-primary { padding: 15px 35px; background: var(--accent-cyan); color: #111827; text-decoration: none; font-weight: 700; border-radius: 4px; transition: transform 0.3s, box-shadow 0.3s; border: none; cursor: pointer; font: inherit; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(212,180,95,0.25); }
.btn-secondary { padding: 15px 35px; background: rgba(212, 180, 95, 0.12); color: var(--accent-cyan); border: 1px solid rgba(212, 180, 95, 0.25); text-decoration: none; font-weight: 600; border-radius: 4px; transition: all 0.3s; backdrop-filter: blur(10px); cursor: pointer; font: inherit; }
.btn-secondary:hover { background: rgba(212,180,95,0.18); transform: translateY(-3px); }

.scroll-indicator { position: absolute; bottom: 40px; display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0.6; font-size: 0.75rem; letter-spacing: 3px; font-weight: 600; animation: fadeUp 1s ease-out 1s backwards; }
.mouse { width: 24px; height: 36px; border: 2px solid white; border-radius: 12px; position: relative; }
.mouse::before { content: ''; width: 4px; height: 8px; background: white; border-radius: 2px; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); animation: scrollMouse 2s infinite; }

/* General Sections */
.section { padding: 100px 40px; }
.bg-darker { background: var(--bg-darker); border-top: 1px solid var(--glass-border); border-bottom: 1px solid var(--glass-border); }
.container { max-width: 1200px; margin: 0 auto; }
.section-title { margin-bottom: 60px; }
.section-title h2 { font-size: 2.2rem; letter-spacing: 3px; color: white; margin-bottom: 15px; font-weight: 800; }
.section-title p.section-desc { color: var(--text-secondary); font-family: 'Fira Code', monospace; font-size: 0.85rem; letter-spacing: 0.5px; }
.accent-line { height: 1px; width: 40px; background: var(--accent-cyan); margin-top: 18px; opacity: 0.7; }
.text-center { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* Capabilities Grid */
.capabilities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.capability-card { background: var(--bg-element); border: 1px solid var(--glass-border); border-radius: 6px; padding: 36px; transition: transform 0.3s, border-color 0.3s; }
.capability-card:hover { transform: translateY(-6px); border-color: rgba(212,180,95,0.3); }
.icon-wrapper { width: 44px; height: 44px; display: flex; justify-content: center; align-items: center; font-size: 1.1rem; border-radius: 6px; margin-bottom: 24px; border: 1px solid var(--glass-border); font-style: normal; }
.icon-wrapper.cyan { background: rgba(212, 180, 95, 0.1); color: var(--accent-cyan); }
.icon-wrapper.purple { background: rgba(212, 180, 95, 0.06); color: var(--text-secondary); }
.icon-wrapper.emerald { background: rgba(212, 180, 95, 0.06); color: var(--text-secondary); }
.capability-card h3 { font-size: 1.2rem; margin-bottom: 12px; color: white; letter-spacing: 0.5px; }
.capability-card p { color: var(--text-secondary); font-size: 0.93rem; line-height: 1.75; }

/* Showcases */
.project-showcase { display: flex; flex-direction: column; gap: 80px; margin-top: 60px; }
.project-card { display: flex; align-items: center; gap: 60px; }
.project-card.is-unavailable { display: none; }
.project-card.reverse { flex-direction: row-reverse; }
.project-content { flex: 1; }
.project-visual { flex: 1; min-height: 350px; background: rgba(255,255,255,0.02); border: 1px solid var(--glass-border); border-radius: 10px; display: flex; justify-content: center; align-items: center; position: relative; overflow: hidden; }

.preview-card { width: 100%; height: 100%; display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; border: 1px solid rgba(212, 180, 95, 0.15); background: rgba(12, 14, 35, 0.94); box-shadow: inset 0 0 0 1px rgba(212, 180, 95, 0.08); }
.preview-link { display: block; width: 100%; height: 100%; text-decoration: none; transition: transform 0.3s ease, box-shadow 0.3s ease; border-radius: 16px; overflow: hidden; }
.preview-button { appearance: none; border: 0; padding: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.preview-link:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(212, 180, 95, 0.2); }
.preview-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 22px; background: rgba(212, 180, 95, 0.08); border-bottom: 1px solid rgba(212, 180, 95, 0.12); }
.preview-title { font-family: 'Fira Code', monospace; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 1px; color: var(--text-secondary); }
.preview-badge { min-width: 0; font-family: 'Fira Code', monospace; font-size: 0.75rem; color: var(--accent-cyan); background: rgba(212, 180, 95, 0.18); padding: 6px 12px; border-radius: 999px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-image-wrap { position: relative; overflow: hidden; aspect-ratio: 16 / 9; flex: 0 0 auto; min-height: 0; background: #0d1018; }
.preview-image { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top center; transition: transform 0.5s ease; }
.preview-link:hover .preview-image { transform: scale(1.025); }
.preview-footer { padding: 16px 22px; color: var(--text-secondary); font-size: 0.9rem; border-top: 1px solid rgba(212, 180, 95, 0.12); background: rgba(212, 180, 95, 0.02); }
.preview-placeholder { justify-content: center; align-items: center; }
.preview-fallback { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 30px; text-align: center; color: var(--text-secondary); background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.07)); }
.preview-fallback strong { display: block; margin-bottom: 12px; color: white; font-size: 1rem; }
.preview-fallback p { max-width: 280px; line-height: 1.8; }

.project-tag { font-family: 'Fira Code', monospace; font-size: 0.75rem; color: var(--accent-cyan); background: rgba(212, 180, 95, 0.08); padding: 4px 10px; border-radius: 3px; display: inline-block; margin-bottom: 16px; letter-spacing: 1px; border: 1px solid rgba(212,180,95,0.15); }
.project-content h3 { font-size: 2rem; color: white; margin-bottom: 18px; letter-spacing: 0.5px; }
.project-content p { color: var(--text-secondary); font-size: 1rem; margin-bottom: 28px; line-height: 1.75; }
.tech-stack { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tech-stack li { border: 1px solid var(--glass-border); padding: 5px 12px; border-radius: 3px; font-size: 0.8rem; color: #94a3b8; font-family: 'Fira Code', monospace; }


/* Footer */
.footer { background: #000; padding: 80px 40px 30px; border-top: 1px solid var(--glass-border); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 50px; margin-bottom: 50px; }
.brand-col .footer-logo { height: 45px; opacity: 0.6; margin-bottom: 20px; filter: grayscale(1); transition: 0.3s; }
.brand-col .footer-logo:hover { opacity: 1; filter: grayscale(0); }
.brand-col p { color: #64748b; font-size: 0.95rem; max-width: 400px; }
.contact-col h4 { color: white; margin-bottom: 15px; font-size: 1.2rem; }
.contact-link { color: var(--accent-cyan); font-size: 1.3rem; text-decoration: none; display: inline-block; margin-bottom: 20px; font-family: 'Fira Code', monospace; }
.status-msg { color: #64748b; font-size: 0.85rem; display: flex; align-items: center; gap: 10px; }
.pulse-dot { width: 8px; height: 8px; background: var(--accent-emerald); border-radius: 50%; box-shadow: 0 0 10px var(--accent-emerald); animation: blink 2s infinite; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 30px; text-align: center; color: #475569; font-size: 0.85rem; font-family: 'Fira Code', monospace; }

/* Animations */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes scrollMouse { 0% { top: 6px; opacity: 1; } 100% { top: 20px; opacity: 0; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes dash { to { stroke-dashoffset: -1000; } }

/* Responsiveness */
@media (max-width: 992px) {
    .nav-links { gap: 18px; }
    .project-card, .project-card.reverse { flex-direction: column; gap: 40px; }
    .project-visual { min-height: 250px; width: 100%; }
    .glitch-title { font-size: 3.5rem; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-content { padding: 0 24px; }
    .hero { padding: 96px 20px 110px; justify-content: flex-start; }
    .hero-content { margin-top: 0; }
    .pre-heading { margin-bottom: 24px; font-size: 0.78rem; letter-spacing: 1.5px; }
    .glitch-title { font-size: clamp(2.15rem, 10vw, 2.75rem); line-height: 1.08; margin-bottom: 24px; }
    .hero-subtitle { font-size: 1.05rem; line-height: 1.55; margin-bottom: 36px; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta-group { flex-direction: column; width: 100%; }
    .btn-primary, .btn-secondary { text-align: center; }
    .section { padding: 72px 20px; }
    .project-showcase { gap: 56px; }
    .project-card, .project-card.reverse { gap: 28px; }
    .project-content h3 { font-size: 1.7rem; }
    .preview-header { padding: 14px 16px; gap: 12px; }
    .preview-badge { font-size: 0.68rem; padding: 5px 9px; }
    .preview-footer { padding: 14px 16px; font-size: 0.82rem; }
    .message-box { padding: 40px 20px; }
}
@media (max-width: 420px) {
    .nav-content { padding: 0 16px; gap: 12px; }
    .logo-area { gap: 10px; }
    .nav-logo { height: 34px; }
    .nav-title { font-size: 0.88rem; letter-spacing: 1px; }
    .nav-dashboard-login { padding: 8px 14px; font-size: 0.82rem; }
    .hero { padding-left: 16px; padding-right: 16px; }
    .glitch-title { font-size: clamp(2rem, 9.5vw, 2.35rem); }
    .hero-subtitle { font-size: 1rem; }
}
