/* =========================================
   PREMIUM MINIMALIST VISUALS
========================================= */
:root {
    /* Color Palette - Dark Mode */
    --bg-primary: #0a0a0c;
    --bg-alt: #121214;
    --bg-card: rgba(255, 255, 255, 0.03);

    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --accent: #2997ff;
    /* Apple Blue */
    --accent-hover: #147ce5;

    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    /* Typography */
    --font-main: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-header: "SF Pro Display", "SF Pro Icons", "Helvetica Neue", Helvetica, Arial, sans-serif;

    /* Effects */
    --radius-soft: 16px;
    --radius-round: 50px;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.2);
    --glass-blur: blur(20px);

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
}

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

/* Typography styles */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-header);
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* Utilities */
.section {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 0;
    scroll-snap-align: start;
    scroll-margin-top: 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.text-primary {
    color: var(--accent);
}

.ml-2 {
    margin-left: 0.5rem;
}

.center-btn {
    text-align: center;
    margin-top: 3rem;
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3.5rem;
    text-align: center;
}

/* =========================================
   BUTTONS
========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-round);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--text-secondary);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.btn i {
    margin-right: 8px;
}

/* =========================================
   NAVIGATION (Glassmorphism)
========================================= */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 0;
    z-index: 1000;
    background: rgba(10, 10, 12, 0.7);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    transition: padding var(--transition-smooth);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.hamburger {
    display: none;
    font-size: 1.2rem;
    cursor: pointer;
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    scroll-snap-align: start;
}

/* Subtle glowing background gradient */
.hero-bg-gradient {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(41, 151, 255, 0.05) 0%, rgba(10, 10, 12, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-name {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #fff 0%, #86868b 100%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title {
    font-size: 1.8rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 2rem;
    height: 40px;
}

.cursor {
    color: var(--accent);
    animation: blink 1s infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.hero-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* =========================================
   ABOUT SECTION
========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.about-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-soft);
    padding: 2rem;
    transition: var(--transition-smooth);
}

.info-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-5px);
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

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

/* =========================================
   SKILLS SECTION
========================================= */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-soft);
    padding: 2rem;
    transition: var(--transition-smooth);
}

.skill-box:hover {
    border-color: var(--border-hover);
}

.skill-box h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-round);
    font-size: 0.85rem;
    font-weight: 500;
}

/* =========================================
   EDUCATION SECTION (Minimal Timeline)
========================================= */
.timeline {
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    width: 2px;
    background: var(--border-color);
    position: relative;
}

.timeline-marker::before {
    content: '';
    position: absolute;
    top: 0;
    left: -5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--text-primary);
}

.timeline-content {
    padding-bottom: 2rem;
}

.timeline-date {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
}

.timeline-content h4 {
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* =========================================
   CONTACT SECTION
========================================= */
.contact-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-soft);
    padding: 4rem 2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 500px;
    margin-inline: auto;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.method-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-round);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.method-card:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* =========================================
   FOOTER
========================================= */
footer {
    padding: 3rem 0;
    text-align: center;
    scroll-snap-align: end;
}

footer strong {
    font-weight: 600;
}

.copyright {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 1rem;
}

/* =========================================
   LANGUAGE TOGGLE & TRANSITION
========================================= */
.lang-text {
    transition: opacity 0.3s ease-in-out;
}

.lang-fading {
    opacity: 0 !important;
}

#lang-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-round);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-left: auto; /* Pushes it to the right in nav */
}

#lang-toggle:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */
@media (max-width: 900px) {
    .hero-name {
        font-size: 3.5rem;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .about-grid,
    .timeline-item {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .timeline-item {
        flex-direction: column;
        gap: 1rem;
    }

    .timeline-marker {
        display: none;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: 0;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 12, 0.95);
        backdrop-filter: var(--glass-blur);
        width: 100%;
        text-align: center;
        padding: 2rem 0;
        opacity: 0;
        pointer-events: none;
        transition: var(--transition-smooth);
    }

    .nav-menu.active {
        opacity: 1;
        pointer-events: all;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 250px;
    }
}