/* =========================================
   1. RESET & VARIABLES
   ========================================= */
:root {
    /* DARK THEME (Default) */
    --bg-color: #0a192f;
    --text-primary: #ccd6f6;
    --text-secondary: #8892b0;
    --accent-cyan: #64ffda;
    --accent-cyan-rgb: 100, 255, 218;
    /* RGB for Alpha usage */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --nav-bg: rgba(10, 25, 47, 0.85);

    --font-main: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
    --nav-height: 80px;
    --transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* LIGHT THEME OVERRIDES */
body.light-theme {
    --bg-color: #f5f7fa;
    --text-primary: #0a192f;
    --text-secondary: #1f2d40;
    --accent-cyan: #0d9488;
    --accent-cyan-rgb: 13, 148, 136;
    /* RGB for Alpha usage */
    /* Darker teal for contrast on light bg */
    --glass-bg: rgba(10, 25, 47, 0.05);
    /* Dark tint for contrast */
    --glass-border: rgba(10, 25, 47, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    --nav-bg: rgba(255, 255, 255, 0.85);
}

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

img {
    max-width: 100%;
    display: block;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

ul {
    list-style: none;
}

section {
    padding: 100px 0;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* =========================================
   2. TYPOGRAPHY & UTILITIES
   ========================================= */
.section-title {
    display: flex;
    align-items: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.section-title::after {
    content: "";
    display: block;
    width: 200px;
    height: 1px;
    background: var(--glass-border);
    margin-left: 20px;
}

/* =========================================
   3. NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: background-color 0.3s ease;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-primary);
    position: relative;
    transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-cyan);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-cyan);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background: var(--accent-cyan);
}

/* Theme Toggle Button */
#theme-toggle {
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 20px;
}

#theme-toggle:hover {
    background: rgba(var(--accent-cyan-rgb), 0.1);
    transform: translateY(-2px);
}



@media (max-width: 768px) {
    #theme-toggle {
        margin-left: 0;
        margin-top: 20px;
    }
}

/* =========================================
   4. HERO SECTION
   ========================================= */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
}

.greeting {
    font-family: var(--font-mono);
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.name {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 10px;
}

.role {
    font-size: 3rem;
    color: var(--text-secondary);
    line-height: 1.1;
    margin-bottom: 30px;
}

.quote-box {
    border-left: 3px solid var(--accent-cyan);
    padding-left: 15px;
    margin-bottom: 40px;
    font-style: italic;
    color: var(--text-secondary);
    max-width: 500px;
}

.hero-info-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    margin-top: -15px;
}

.info-item {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
}

.info-item:hover {
    color: var(--accent-cyan);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.img-wrapper {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 2px solid var(--accent-cyan);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(var(--accent-cyan-rgb), 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 6s ease-in-out infinite, glow 3s infinite alternate;
}

.img-wrapper::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
    opacity: 0;
    z-index: -1;
    animation: pulse-ring 2.5s infinite;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

@keyframes glow {
    from {
        box-shadow: 0 0 20px rgba(var(--accent-cyan-rgb), 0.2);
    }

    to {
        box-shadow: 0 0 50px rgba(var(--accent-cyan-rgb), 0.6), 0 0 10px var(--accent-cyan);
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.15);
        opacity: 0;
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0);
    }
}

/* =========================================
   5. FOOTER
   ========================================= */
footer {
    text-align: center;
    padding: 20px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* =========================================
   6. RESPONSIVE GLOBAL
   ========================================= */
@media (max-width: 1024px) {
    .container {
        width: 90%;
    }

    .section-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {

    /* TYPOGRAPHY */
    html {
        font-size: 15px;
    }

    .name {
        font-size: 2.8rem;
    }

    .role {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-title::after {
        width: 100px;
        margin-left: 0;
    }

    /* NAVIGATION */
    .nav-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--nav-bg);
        /* Using same var for consistency, or I could add another var */
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), background-color 0.3s ease;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-item {
        margin: 15px 0;
    }

    .nav-link {
        font-size: 1.1rem;
    }

    /* HERO SECTION */
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 110px;
        /* Offset for fixed header */
    }

    .hero-text {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .img-wrapper {
        width: 200px;
        height: 200px;
        margin-bottom: 40px;
    }

    .hero-info-bar {
        justify-content: center;
        gap: 15px;
    }

    .hero-buttons {
        justify-content: center;
        width: 100%;
    }

    .quote-box {
        margin: 20px auto;
        border-left: none;
        border-top: 2px solid var(--accent-cyan);
        padding-top: 15px;
        padding-left: 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 2.2rem;
    }

    .role {
        font-size: 1.4rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .hero-info-bar {
        flex-direction: column;
        gap: 10px;
    }
}
