/* =========================================
   CSS VARIABLES & RESET
   ========================================= */
:root {
    --bg-main: #0b0c0e;
    --bg-darker: #111318;
    --text-primary: #ecedee;
    --text-secondary: #b0b8c1;
    --accent: #8a9cf0;
    --accent-hover: #a5b3f5;
    --card-bg: #15171d;
    --border-color: rgba(255, 255, 255, 0.05);
    --radius: 1.5rem;
    --transition: 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.bg-darker {
    background-color: var(--bg-darker);
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(11, 12, 14, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color var(--transition);
}

.nav-links a:hover {
    color: #fff;
}

.btn-header {
    background-color: var(--accent);
    color: #000 !important;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}

.btn-header:hover {
    background-color: var(--accent-hover);
}

/* =========================================
   HERO
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 30% 40%, rgba(138, 156, 240, 0.08) 0%, transparent 50%);
    padding-top: 70px;
}

.hero-content {
    max-width: 800px;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 1.2rem;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-highlight {
    background: linear-gradient(145deg, #d9e2ff, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-desc {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    min-height: 2rem;
}

.hero-award {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    background: rgba(138, 156, 240, 0.12);
    border: 1px solid rgba(138, 156, 240, 0.3);
    border-radius: 40px;
    padding: 0.6rem 1.3rem;
    margin-bottom: 1.8rem;
    font-size: 0.9rem;
    color: #d1d8ff;
    flex-wrap: wrap;
}

.hero-award i {
    font-size: 1.1rem;
    color: #f0c040;
}

.hero-award strong {
    color: #fff;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 40px;
    font-weight: 600;
    transition: all 0.2s;
    border: 2px solid transparent;
    font-size: 1rem;
    white-space: nowrap;
}

.btn-primary {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.btn-primary:hover {
    background: #e0e5ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.btn-outline {
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.05);
}

/* =========================================
   EMBEDDED VIDEO (Spin to Lose)
   ========================================= */
.video-embed {
    position: relative;
    width: 100%;
    max-width: 720px;
    margin: 1.8rem 0 0 0;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.video-embed::before {
    content: "";
    display: block;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* =========================================
   ABOUT
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.skill-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.skill-tags li {
    background: rgba(255,255,255,0.06);
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.08);
}

/* Photo replaces the quote box */
.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    aspect-ratio: 1 / 1;        /* square container */
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================
   SKILLS GRID
   ========================================= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.skill-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: transform var(--transition), border-color var(--transition);
    text-align: center;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.15);
}

.skill-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.2rem;
}

.skill-card h3 {
    margin-bottom: 0.8rem;
}

.skill-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.card-link {
    font-weight: 600;
}

/* =========================================
   YOUTUBE GRID
   ========================================= */
.youtube-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.youtube-grid iframe {
    width: 100%;
    height: 260px;
    border: none;
    border-radius: var(--radius);
    background: #1a1d24;
}

/* =========================================
   CONTACT
   ========================================= */
.contact-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: #fff;
    font-size: 1.4rem;
    transition: background var(--transition), transform var(--transition);
}

.contact-icon:hover {
    background: var(--accent);
    color: #000;
    transform: translateY(-3px);
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    text-align: center;
    padding: 2rem;
    background: var(--bg-darker);
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

/* =========================================
   SCROLL TO TOP
   ========================================= */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    background: var(--accent);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    pointer-events: auto;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
}

/* =========================================
   DEV PAGE
   ========================================= */
.dev-page {
    min-height: 80vh;
}

.dev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.dev-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform var(--transition), border-color var(--transition);
}

.dev-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.15);
}

.dev-media {
    height: 160px;
    background: #1e2128;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background-size: cover;
}

.dev-content {
    padding: 1.5rem;
}

.dev-tag {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 0.5rem;
    display: inline-block;
}

.dev-content h3 {
    margin-bottom: 0.5rem;
}

.dev-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.dev-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.dev-tech span {
    background: rgba(255,255,255,0.06);
    padding: 0.25rem 0.8rem;
    border-radius: 30px;
    font-size: 0.75rem;
}

/* =========================================
   RESPONSIVE BREAKPOINTS
   ========================================= */
@media (max-width: 992px) {
    .about-grid {
        gap: 2rem;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }
    
    .hero-desc {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 60px;
        padding: 0 1rem;
    }
    
    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }
    
    .logo {
        font-size: 1.3rem;
    }
    
    .btn-header {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }

    .hero {
        min-height: 90vh;
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-desc {
        font-size: 1rem;
    }
    
    .hero-award {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .skill-tags li {
        font-size: 0.8rem;
        padding: 0.3rem 1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skill-card {
        padding: 1.5rem;
    }
    
    .skill-card i {
        font-size: 2rem;
    }

    .youtube-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .youtube-grid iframe {
        height: 200px;
    }

    .contact-icon {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
    }

    .dev-grid {
        grid-template-columns: 1fr;
    }
    
    .dev-media {
        height: 140px;
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .header-inner {
        height: auto;
        flex-wrap: wrap;
        padding: 0.8rem 1rem;
    }
    
    .logo {
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .nav-links {
        width: 100%;
        justify-content: center;
        gap: 1.2rem;
    }
    
    .btn-header {
        margin-top: 0.5rem;
        align-self: center;
    }
    
    .hero {
        padding-top: 140px;
        min-height: auto;
        padding-bottom: 4rem;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-desc {
        font-size: 0.95rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .hero-cta .btn {
        width: 100%;
        text-align: center;
    }

    .hero-award {
        font-size: 0.75rem;
    }
    
    .about-highlight,
    .about-image {
        padding: 0; /* image doesn't need internal padding */
        border-radius: var(--radius);
    }
    
    .about-image {
        aspect-ratio: 1 / 1;
    }
    
    .about-highlight blockquote {
        font-size: 1rem;
    }
    
    .skill-card {
        padding: 1.2rem;
    }
    
    .contact-links {
        gap: 1rem;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .site-footer {
        padding: 1.5rem;
    }
}