:root {
    /* Colors - Curated Dark Theme */
    --bg-deep: #0a0a0b;
    --bg-surface: #141416;
    --bg-card: rgba(255, 255, 255, 0.03);
    --primary: #ffffff;
    --secondary: #5fb5ff;
    --accent: #e0e0e0;
    --text-dim: #f5f5f7;
    --text-secondary: #d0d0d5;
    --border: rgba(255, 255, 255, 0.1);
    --glow-subtle: 0 0 15px rgba(255, 255, 255, 0.05);

    /* Typography - System Fonts */
    --font-display: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

body {
    background-color: var(--bg-deep);
    color: var(--accent);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.font-display {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    font-weight: 700;
}

/* Layout Utilities */
#main-content {
    padding-top: 80px;
    /* Account for fixed header */
    min-height: calc(100vh - 80px);
}

.section-padding {
    padding: 6rem 2rem;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 5rem 1.5rem;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Visual Effects */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    transition: var(--transition-smooth);
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeIn 0.8s var(--transition-smooth) forwards;
}

/* Component: Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
    background: transparent;
}

header.scrolled {
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 3rem;
    border-bottom: 1px solid var(--border);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-item {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    background: none;
    border: none;
    text-transform: uppercase;
}

.nav-item:hover {
    color: var(--primary);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.logo-svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0 0 10px rgba(95, 181, 255, 0.3));
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-align: left;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    color: var(--primary);
    text-transform: uppercase;
}

.brand-sub {
    font-size: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.5em;
    color: var(--secondary);
    text-transform: uppercase;
    margin-top: 2px;
}

/* Component: Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
}

.hero-subtitle {
    color: var(--secondary);
    letter-spacing: 0.4em;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.2s;
    display: block;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 7rem);
    line-height: 1;
    margin-bottom: 2rem;
    font-weight: 900;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.4s;
}

.hero-desc {
    font-size: 1.1rem;
    max-width: 700px;
    color: var(--text-dim);
    margin-bottom: 3.5rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.6s;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.8s;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--secondary), transparent);
    opacity: 0.5;
}

/* Component: Services & Portfolio */
.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.services-grid,
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.service-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.project-image {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-surface);
    margin-bottom: 1.5rem;
    border-radius: 2px;
}

/* Component: Glass Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-8px);
}

/* Component: Contact */
.contact-content {
    max-width: 600px;
    margin: 4rem auto 0;
}

.contact-header {
    text-align: center;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

input,
textarea {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: #fff;
    border-radius: 2px;
    font-family: inherit;
    width: 100%;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--secondary);
}

/* Component: Footer */
footer {
    padding: 1.5rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.5);
}

.badges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.badge {
    position: relative;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    cursor: help;
    opacity: 0.3;
}

.badge:hover {
    opacity: 0.8;
    color: var(--secondary);
    transform: translateY(-1px);
}

.tooltip {
    position: absolute;
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 10, 11, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 1rem 1.2rem;
    border-radius: 4px;
    color: #fff;
    font-size: 0.75rem;
    width: 220px;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--border);
}

.badge:hover .tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.tooltip-title {
    display: block;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 0.4rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}

.tooltip-desc {
    line-height: 1.5;
    opacity: 0.8;
}

.badge svg {
    width: 18px;
    height: 18px;
}

.copyright {
    font-size: 0.6rem;
    color: var(--text-dim);
    opacity: 0.2;
    letter-spacing: 0.05rem;
}

/* Component: Button (Global) */
.nc-btn {
    padding: 0.8rem 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    border-radius: 2px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
}

.nc-btn-primary {
    border: 1px solid var(--primary);
    background: var(--primary);
    color: var(--bg-deep);
}

.nc-btn-secondary {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--primary);
}

.nc-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.nc-btn:active {
    transform: scale(0.98);
}

/* Component: Login */
.login-wrapper {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.login-card {
    width: 100%;
    max-width: 400px;
}

.login-title {
    margin-bottom: 2rem;
    text-align: center;
}

.mt-1 {
    margin-top: 1rem;
}

.w-100 {
    width: 100%;
}

@media (max-width: 768px) {
    header {
        padding: 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
}