/* --- Variables & Theming --- */
:root {
    --color-bg: #0f172a; /* Slate 900 */
    --color-bg-secondary: #1e293b; /* Slate 800 */
    --color-text: #f8fafc; /* Slate 50 */
    --color-text-muted: #cbd5e1; /* Slate 300 */
    --color-primary: #38bdf8; /* Light Blue 400 */
    --color-primary-glow: rgba(56, 189, 248, 0.5);
    --color-secondary: #818cf8; /* Indigo 400 */
    
    --font-primary: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.theme-green {
    --color-bg: #0f1c15;
    --color-bg-secondary: #162c20;
    --color-primary: #4ade80;
    --color-primary-glow: rgba(74, 222, 128, 0.5);
    --color-secondary: #2dd4bf;
    --glass-bg: rgba(22, 44, 32, 0.7);
}

body.theme-yellow {
    --color-bg: #1c1917;
    --color-bg-secondary: #292524;
    --color-primary: #facc15;
    --color-primary-glow: rgba(250, 204, 21, 0.5);
    --color-secondary: #fb923c;
    --glass-bg: rgba(41, 37, 36, 0.7);
}


/* --- Global Reset & Typography --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    font-weight: 600;
}

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(to right, var(--color-text), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Utilities --- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 12px 40px var(--color-primary-glow);
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 2rem;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-bg);
    box-shadow: 0 4px 15px var(--color-primary-glow);
}

.btn-primary:hover {
    background: #0ea5e9; /* Light Blue 500 */
    box-shadow: 0 6px 20px var(--color-primary-glow);
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background: rgba(56, 189, 248, 0.1);
    transform: translateY(-2px);
}

/* --- Header / Navigation --- */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.glass-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    background: rgba(15, 23, 42, 0.95);
}

body.theme-green .glass-header {
    background: rgba(15, 28, 21, 0.8);
}

body.theme-green .glass-header.scrolled {
    background: rgba(15, 28, 21, 0.95);
}

body.theme-yellow .glass-header {
    background: rgba(28, 25, 23, 0.8);
}

body.theme-yellow .glass-header.scrolled {
    background: rgba(28, 25, 23, 0.95);
}

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

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

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

.nav-links a {
    font-weight: 500;
    color: var(--color-text-muted);
}

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

/* Theme Switcher */
.theme-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: auto;
    margin-right: 2rem;
}

.theme-btn {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.theme-btn.blue { background-color: #38bdf8; }
.theme-btn.green { background-color: #4ade80; }
.theme-btn.yellow { background-color: #facc15; }

.theme-btn.active {
    transform: scale(1.2);
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

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

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

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.greeting {
    font-size: 1.2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.name {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title {
    font-size: 2rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.tagline {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

/* Background Animations */
.hero-bg-animations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s infinite ease-in-out alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--color-primary);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--color-secondary);
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

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

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

.about-skills h3 {
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

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

.skills-list li {
    display: flex;
    align-items: center;
}

.skills-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--color-primary);
    margin-right: 0.8rem;
}

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

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

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

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

.timeline-dot {
    position: absolute;
    left: 12px;
    top: 24px;
    width: 18px;
    height: 18px;
    background: var(--color-bg);
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-primary-glow);
    z-index: 2;
}

.timeline-content .role {
    font-size: 1.5rem;
    color: #fff;
}

.timeline-content .company {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.timeline-content .date {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--color-text-muted);
}

/* --- Certifications --- */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.cert-card {
    text-align: center;
    padding: 3rem 2rem;
}

.cert-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

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

.cert-card p {
    color: var(--color-text-muted);
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    background: var(--color-bg-secondary);
}

.social-links {
    margin-bottom: 1.5rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    color: var(--color-text);
    margin: 0 0.5rem;
    font-size: 1.2rem;
}

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

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .mobile-menu-btn {
        display: block;
    }
    .name {
        font-size: 3rem;
    }
    .title {
        font-size: 1.5rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .hero-cta {
        flex-direction: column;
    }
}
