/* Base Variables & Theme Setup */
:root {
    /* Dark Theme (Default) */
    --bg-primary: #020617; /* Very dark slate blue */
    --bg-secondary: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-primary: #0ea5e9; /* Vibrant cyan/blue */
    --accent-secondary: #38bdf8;
    
    --glass-bg: rgba(15, 23, 42, 0.6);
    --border-glass: rgba(255, 255, 255, 0.08);
    --glow-color: rgba(14, 165, 233, 0.15);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

[data-theme="light"] {
    --bg-primary: #f8fafc; /* Very light cool gray */
    --bg-secondary: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent-primary: #0284c7; 
    --accent-secondary: #0369a1;
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --border-glass: rgba(0, 0, 0, 0.05);
    --glow-color: rgba(2, 132, 199, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

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

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

/* Particles Background */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

[data-theme="dark"] .particles-container {
    opacity: 0.6;
}

[data-theme="light"] .particles-container {
    opacity: 0.3;
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: var(--transition);
}

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

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -1px;
}

.logo::after {
    content: '.';
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-primary);
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

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

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

.hero-text {
    flex: 1;
}

.greeting {
    font-size: 1.2rem;
    color: var(--accent-primary);
    margin-bottom: 10px;
    font-weight: 500;
}

.name {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.role {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-weight: 400;
}

.bio {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
}

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

.btn-primary, .btn-secondary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-primary);
    color: #ffffff;
    border: 1px solid var(--accent-primary);
    box-shadow: 0 4px 15px var(--glow-color);
}

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

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

.btn-secondary:hover {
    background-color: var(--glass-bg);
    border-color: var(--border-glass);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* Avatar */
.hero-avatar-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
}

.avatar-glow {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: pulseGlow 4s infinite alternate;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); opacity: 0.5; }
    100% { transform: scale(1.05); opacity: 1; }
}

.hero-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    border: 2px solid var(--border-glass);
    padding: 10px;
    background: var(--glass-bg);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.6;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background-color: var(--accent-primary);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
}

/* Timeline (Experience) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: var(--border-glass);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding: 30px;
    margin-left: 50px;
}

.timeline-dot {
    position: absolute;
    top: 35px;
    left: -35px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--glow-color);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 5px;
    flex-wrap: wrap;
    gap: 10px;
}

.timeline-header h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--accent-primary);
    font-weight: 500;
    background: var(--glass-bg);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
}

.company {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-weight: 500;
}

.duties {
    padding-left: 20px;
}

.duties li {
    margin-bottom: 8px;
    color: var(--text-secondary);
    position: relative;
}

.duties li::before {
    content: "▹";
    position: absolute;
    left: -20px;
    color: var(--accent-primary);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.skill-category {
    padding: 30px;
}

.skill-category h3 {
    margin-bottom: 25px;
    font-size: 1.3rem;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 10px;
}

.skill-bar-container {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.progress-line {
    width: 100%;
    height: 6px;
    background: var(--border-glass);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress-line span {
    display: block;
    height: 100%;
    background: var(--accent-primary);
    border-radius: 10px;
    width: 0; /* Animated via JS */
    transition: width 1.5s cubic-bezier(0.1, 0.5, 0.1, 1);
}

/* Edu & Cert Grid */
.edu-cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.edu-cert-grid > div {
    padding: 40px;
}

.cert-list {
    padding-left: 20px;
}

.cert-list li {
    margin-bottom: 12px;
    color: var(--text-secondary);
}

/* Footer / Contact */
.footer {
    padding: 80px 0 30px;
    background: var(--bg-secondary);
    text-align: center;
    border-top: 1px solid var(--border-glass);
    position: relative;
    z-index: 2;
}

.footer-heading {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.footer-content p {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--border-glass);
    padding: 12px 24px;
    border-radius: 30px;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
}

.contact-item:hover {
    border-color: var(--accent-primary);
    background: var(--accent-primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid var(--border-glass);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 50px;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .edu-cert-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .name {
        font-size: 2.5rem;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-item {
        margin-left: 20px;
    }
    
    .timeline-dot {
        left: -26px;
    }
}
