/* ==========================================================================
   CSS Variables & Theme Setup
   ========================================================================== */
:root {
    /* Custom Bespoke Palette - Emerald, Gold, and Deep Onyx */
    --bg-dark: #0a1114; 
    --bg-darker: #05080a; 
    --primary: #10b981; 
    --primary-light: #34d399; 
    --accent: #f59e0b; 
    
    --text-main: #fdf8f5; 
    --text-muted: #a1a1aa; 
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(10, 17, 20, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    --glass-highlight: rgba(255, 255, 255, 0.05);
    --glass-highlight-strong: rgba(255, 255, 255, 0.1);
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --section-pad: 100px 0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg-dark: #f0fdf4; /* Very light mint/gray */
    --bg-darker: #ffffff; /* Pure white */
    
    --text-main: #18181b; /* Near black */
    --text-muted: #52525b; /* Gray */
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(16, 185, 129, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    
    --glass-highlight: rgba(16, 185, 129, 0.05);
    --glass-highlight-strong: rgba(16, 185, 129, 0.1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    background-color: var(--bg-darker);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Dynamic Background Ornaments */
.bg-shape {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.bg-shape-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, rgba(5, 8, 10, 0) 70%);
}

.bg-shape-2 {
    bottom: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.2) 0%, rgba(5, 8, 10, 0) 70%);
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, 5%); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--primary);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--section-pad);
}

/* ==========================================================================
   Components (Glassmorphism & Buttons)
   ========================================================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    padding: 2.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, var(--glass-highlight) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg);
    transition: left 0.7s ease;
    z-index: 1;
    pointer-events: none;
}

.glass-card:hover::before {
    left: 200%;
}

.glass-card:hover {
    border-color: rgba(16, 185, 129, 0.3);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--bg-darker);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-primary:hover {
    color: var(--bg-darker);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
    transform: translateY(-2px);
}

.btn-glass {
    background: var(--glass-highlight);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
}

.btn-glass:hover {
    background: var(--glass-highlight-strong);
    color: var(--primary);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: rgba(16, 185, 129, 0.1);
    color: var(--text-main);
    border-color: var(--text-main);
}

.section-header {
    margin-bottom: 4rem;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    display: inline-block;
    text-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

.section-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    margin-top: 0.5rem;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--bg-darker);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:not(.btn):hover, .nav-links a.active {
    color: var(--text-main);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-size: 1.25rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.theme-toggle-btn:hover {
    background: var(--glass-highlight);
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; 
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content .greeting {
    display: block;
    color: var(--primary-light);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-content .name {
    font-size: clamp(3.5rem, 5vw, 5.5rem);
    font-weight: 800;
    margin-bottom: 0;
    background: linear-gradient(to right, var(--text-main), var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content .role {
    font-size: clamp(1.5rem, 2vw, 2.5rem);
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.hero-content .bio {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    gap: 1.25rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.25rem;
}

.social-links a:hover {
    background: var(--primary);
    color: var(--bg-darker);
    border-color: var(--primary);
    transform: translateY(-3px);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.profile-card {
    width: 320px;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.1), var(--glass-bg));
    position: relative;
    border-radius: 32px;
}

.profile-icon {
    font-size: 5rem;
    color: var(--primary-light);
    opacity: 0.5;
}

.tech-stack-floating {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.tech-badge {
    position: absolute;
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--glass-shadow);
    animation: float-badge 6s infinite ease-in-out;
    color: var(--text-main);
}

.tech-badge.react { top: 15%; left: -10%; color: #61dafb; animation-delay: 0s; }
.tech-badge.node { bottom: 25%; right: -15%; color: #10b981; animation-delay: 1.5s; }
.tech-badge.python { bottom: 15%; left: -5%; color: #f59e0b; animation-delay: 3s; }
.tech-badge.sap { top: 25%; right: -20%; color: #34d399; animation-delay: 4.5s; }

@keyframes float-badge {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* ==========================================================================
   About & Skills Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.about-text h3 {
    font-size: 1.75rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.soft-skills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.soft-skills li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-main);
}

.soft-skills i {
    color: var(--primary-light);
}

.skills-container h3 {
    font-size: 1.75rem;
    color: var(--text-main);
    margin-bottom: 2rem;
}

.skill-category {
    margin-bottom: 1.75rem;
}

.skill-category:last-child {
    margin-bottom: 0;
}

.skill-category h4 {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-family: var(--font-primary);
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-light);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary);
    color: var(--bg-darker);
    border-color: var(--primary);
}

/* ==========================================================================
   Experience Timeline
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary) 0%, rgba(16, 185, 129, 0) 100%);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 3rem;
}

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

.timeline-dot {
    position: absolute;
    left: 13px;
    top: 24px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-darker);
    border: 3px solid var(--primary);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
    z-index: 2;
}

.timeline-content {
    padding: 2rem;
}

.timeline-header {
    margin-bottom: 1.5rem;
}

.timeline-header h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.timeline-header .company {
    display: block;
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.timeline-header .date {
    display: inline-block;
    background: var(--glass-highlight);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.timeline-details {
    list-style: disc;
    padding-left: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.timeline-details li {
    margin-bottom: 0.5rem;
}

.achievement {
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid var(--accent);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    color: var(--text-main);
    font-size: 0.95rem;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.achievement i {
    color: var(--accent);
    margin-top: 0.25rem;
}

/* ==========================================================================
   Education & Certifications
   ========================================================================== */
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.edu-card {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.edu-icon {
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    flex-shrink: 0;
}

.edu-info h3 {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.edu-info h4 {
    font-size: 1rem;
    color: var(--primary-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-family: var(--font-primary);
}

.edu-location {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.edu-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-main);
    background: var(--glass-highlight);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-flex;
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cert-item {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: transform 0.3s ease;
}

.cert-icon {
    font-size: 1.5rem;
    color: var(--accent);
}

.cert-item h4 {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.cert-item span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Footer / Contact
   ========================================================================== */
.footer {
    padding-bottom: 2rem;
}

.contact-card {
    text-align: center;
    padding: 4rem 2rem;
    margin-bottom: 4rem;
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.05) 0%, rgba(5, 8, 10, 0) 100%);
}

.contact-header {
    margin-bottom: 3rem;
}

.contact-header h2 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.contact-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    padding: 1rem 1.5rem;
    background: var(--glass-highlight);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    min-width: 250px;
}

.contact-item:hover {
    background: var(--glass-highlight-strong);
    transform: translateY(-5px);
    border-color: var(--primary-light);
}

.contact-item .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-item span {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--text-main);
    font-weight: 500;
    margin: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Premium Visual Effects (V2 Enhancements)
   ========================================================================== */

/* Cursor Glow */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, rgba(0, 0, 0, 0) 60%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    transition: width 0.3s, height 0.3s, background 0.3s;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary-light));
    z-index: 10000;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px var(--primary);
}

/* High-Tech Grid Background */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    z-index: -2;
    pointer-events: none;
}

/* Typing Effect */
.typing-text {
    color: var(--primary-light);
    font-weight: 600;
    text-shadow: 0 0 20px rgba(52, 211, 153, 0.5);
}

.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--text-main);
    animation: blink 0.75s step-end infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ==========================================================================
   Animations & Reveal Effects
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s forwards cubic-bezier(0.5, 0, 0, 1);
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1.2s forwards ease-in-out;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container, .about-grid, .two-col-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-content {
        text-align: center;
        order: 2;
    }
    
    .hero-content .bio {
        margin: 0 auto 2.5rem auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .hero-visual {
        order: 1;
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 60px 0;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(5, 8, 10, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        transition: 0.5s ease;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-item {
        padding-left: 30px;
    }
    
    .timeline-dot {
        left: -7px;
    }
    
    .tech-badge {
        display: none; 
    }
}
