:root {
    /* Light Theme Variables */
    --bg-color: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent-color: #2563eb;
    --accent-hover: #1d4ed8;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    --card-bg: rgba(255, 255, 255, 0.8);
    --timeline-line: #e2e8f0;
}

[data-theme="dark"] {
    /* Dark Theme Variables */
    --bg-color: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --accent-color: #3b82f6;
    --accent-hover: #60a5fa;
    --glass-bg: rgba(15, 23, 42, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --card-bg: rgba(30, 41, 59, 0.6);
    --timeline-line: #334155;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
}

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

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

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    padding: 2.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .glass-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

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

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

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

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

.icon-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.icon-btn:hover {
    background-color: var(--glass-border);
}

[data-theme="light"] .sun-icon { display: none; }
[data-theme="dark"] .moon-icon { display: none; }

/* Sections */
section {
    padding: 120px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    padding-top: 2rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px; /* offset for navbar */
}

.hero-content {
    max-width: 800px;
}

.greeting {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.name {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.title {
    font-size: 2.2rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.motto {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.8;
}

.cta-group {
    display: flex;
    gap: 1.2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.05rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: #fff;
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

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

.btn-outline:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: translateY(-3px);
}

/* About Section */
#about p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.15rem;
    line-height: 1.8;
}
#about p:last-child {
    margin-bottom: 0;
}

/* 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(--timeline-line);
}

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

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

.timeline-dot {
    position: absolute;
    left: 13px;
    top: 24px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 4px solid var(--bg-color);
    box-shadow: 0 0 0 4px var(--glass-border);
    transition: background-color 0.3s, border-color 0.3s;
}

.timeline-date {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--glass-border);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1.2rem;
}

.timeline-role {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.timeline-company {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1.2rem;
}

.timeline-company span {
    font-size: 0.95rem;
    opacity: 0.7;
}

.timeline-list {
    list-style-position: inside;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.timeline-list li {
    margin-bottom: 0.6rem;
    padding-left: 1.2rem;
    text-indent: -1.2rem;
}
.timeline-list li::before {
    content: '→';
    color: var(--accent-color);
    margin-right: 0.6rem;
    font-weight: bold;
}

/* Skills */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    justify-content: center;
}

.skill-tag {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1.2rem 1.8rem;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--text-primary);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
}

.skill-tag i {
    color: var(--accent-color);
}

.skill-tag:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

.skills-more {
    margin-top: 2.5rem;
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.skills-more a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.skills-more a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Contact Form */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 10px;
    background: var(--bg-color);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

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

.form-status {
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
    font-size: 0.95rem;
    min-height: 24px;
}

.form-status.success {
    color: #10b981; /* Green */
}

.form-status.error {
    color: #ef4444; /* Red */
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.5, 0, 0, 1), transform 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .name { font-size: 3.5rem; letter-spacing: -1px; }
    .title { font-size: 1.6rem; }
    
    .nav-links { gap: 1rem; }
    .nav-links a { display: none; }
    
    .timeline::before { left: 15px; }
    .timeline-dot { left: 8px; }
    .timeline-item { padding-left: 45px; }
    
    .cta-group { flex-direction: column; }
    .btn { justify-content: center; width: 100%; }
    
    .glass-card { padding: 1.5rem; }
    .footer-content { flex-direction: column; gap: 1rem; text-align: center; }
}
