/* SCli Art Core Design System - Cinematic Noir (Concept 5) */

:root {
    --bg-color: #05070a;
    --card-bg: rgba(255, 255, 255, 0.03);
    --text-color: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #00a2ff;
    --accent-glow: rgba(0, 162, 255, 0.3);
    --border-color: rgba(255, 255, 255, 0.1);
    --hero-height: 100vh;
    --nav-height: 80px;
    --container-max-width: 1400px;
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* Glassmorphism Utility */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--border-color);
}

/* Layout */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
nav {
    height: var(--nav-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100000;
    background: rgba(5, 7, 10, 0.6);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-color);
    padding: 0 4rem;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    background: linear-gradient(to right, #fff, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: var(--text-secondary);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-color);
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Kinetic Typography & Hero */
.hero {
    height: var(--hero-height);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.kinetic-text {
    font-size: clamp(3rem, 9vw, 7rem);
    text-transform: uppercase;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.text-reveal {
    display: block;
    overflow: hidden;
    padding-right: 0.5rem;
}

.text-reveal span {
    display: block;
    transform: translateY(110%);
    animation: revealText 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.text-reveal:nth-child(2) span {
    animation-delay: 0.2s;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeIn 1s forwards 1s;
}

@keyframes revealText {
    to { transform: translateY(0); }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* CTA Buttons */
.cta-button {
    padding: 1rem 2.5rem;
    background: var(--accent-color);
    color: white;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: 5px;
    box-shadow: 0 0 20px var(--accent-glow);
    transition: var(--transition-smooth);
    opacity: 0;
    animation: fadeIn 1s forwards 1.2s;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 30px var(--accent-color);
}

/* Sections */
section {
    padding: 10rem 4rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 4rem;
    text-align: center;
}

/* Experience Grid */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.exp-card {
    padding: 3rem;
    border-radius: 15px;
    transition: var(--transition-smooth);
}

.exp-card:hover {
    transform: scale(1.02);
    border-color: var(--accent-color);
}

/* Footer */
footer {
    padding: 6rem 4rem;
    background: #000;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.social-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--text-secondary);
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--accent-glow);
}

.social-icon:hover svg {
    fill: #fff;
}

/* Mobile Hamburger Menu - Professional Design */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    cursor: pointer;
    z-index: 9999999;
    padding: 10px;
    background: rgba(0, 162, 255, 0.15);
    border: 1px solid rgba(0, 162, 255, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
}

.hamburger:hover,
.hamburger:active {
    background: rgba(0, 162, 255, 0.25);
    border-color: rgba(0, 162, 255, 0.5);
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    transform-origin: center;
}

.hamburger span:nth-child(1) {
    margin-bottom: 5px;
}

.hamburger span:nth-child(3) {
    margin-top: 5px;
}

/* Animate to X */
.hamburger.active {
    background: rgba(255, 100, 100, 0.2);
    border-color: rgba(255, 100, 100, 0.4);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    transform: scaleX(0);
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Overlay - Positioned outside nav to escape stacking context */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(5, 7, 10, 0.99);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    z-index: 999999;
    padding: 100px 2rem 2rem 2rem;
    box-sizing: border-box;
}

.mobile-menu-overlay.active {
    display: flex;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 100, 100, 0.2);
    border: 1px solid rgba(255, 100, 100, 0.4);
    border-radius: 8px;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-menu-close:active {
    background: rgba(255, 100, 100, 0.4);
}

.mobile-menu-overlay a {
    font-size: 1.3rem;
    letter-spacing: 0.1rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    width: 80%;
    max-width: 280px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
}

.mobile-menu-overlay a:hover,
.mobile-menu-overlay a:active {
    background: rgba(0, 162, 255, 0.2);
    border-color: rgba(0, 162, 255, 0.4);
    color: #00a2ff;
}

/* Legacy support for pages not yet updated */
.nav-links.mobile-open {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow-y: auto;
    background: rgba(5, 7, 10, 0.99);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    z-index: 999999;
    padding: 100px 2rem 2rem 2rem;
    box-sizing: border-box;
}

.nav-links.mobile-open a {
    font-size: 1.3rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    width: 80%;
    max-width: 280px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 1024px) {
    nav {
        padding: 0 1.5rem;
    }

    .hamburger {
        display: flex !important;
        z-index: 1001;
        background: rgba(255,255,255,0.1);
        border-radius: 4px;
        padding: 8px;
    }

    .nav-links {
        display: none;
    }

    .kinetic-text {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    section {
        padding: 4rem 1.5rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* Stack grids on mobile */
    .experience-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .exp-card {
        padding: 2rem;
    }

    /* Footer adjustments */
    footer {
        padding: 4rem 1.5rem;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 1rem !important;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    .hero {
        padding: 0 1rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
    }

    section {
        padding: 3rem 1rem;
    }
}
