/* Base Styles */
:root {
    /* Light Theme (Default) */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --accent: #6c5ce7;
    --border: #dfe6e9;
    --card-bg: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --header-bg: rgba(255, 255, 255, 0.9);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* Dark Theme */
[data-theme="dark"] {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --text-primary: #f8f9fa;
    --text-secondary: #adb5bd;
    --accent: #8a2be2;
    --border: #2a2a3a;
    --card-bg: #1e1e2f;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --header-bg: rgba(26, 26, 46, 0.9);
    --glass-bg: rgba(30, 30, 47, 0.5);
    --glass-border: rgba(255, 255, 255, 0.1);
}

/* Dim Theme */
[data-theme="dim"] {
    --bg-primary: #2c3e50;
    --bg-secondary: #34495e;
    --text-primary: #ecf0f1;
    --text-secondary: #bdc3c7;
    --accent: #3498db;
    --border: #3d566e;
    --card-bg: #2c3e50;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    --header-bg: rgba(44, 62, 80, 0.9);
    --glass-bg: rgba(44, 62, 80, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: var(--transition);
    overflow-x: hidden;
}

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

.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    transition: var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger .line {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.profile-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

.profile-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: none;
    box-shadow: none;
    transition: var(--transition);
}

.profile-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.tagline {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.bio {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.social-links {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.social-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--accent);
    font-size: 1.25rem;
    text-decoration: none;
    overflow: hidden;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 60%),
                radial-gradient(circle at 70% 70%, rgba(108,92,231,0.4), transparent 60%);
    transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--bg-primary);
    z-index: 1;
}

.social-link i {
    position: relative;
    z-index: 2;
}

.social-link:hover {
    transform: translateY(-4px) scale(1.05) rotate(-2deg);
    color: var(--accent);
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.45), transparent 55%),
                radial-gradient(circle at 80% 80%, rgba(108,92,231,0.7), transparent 55%);
}

.social-link:hover i {
    transform: translateY(-1px);
}

/* Resume Dropdown */
.resume-dropdown {
    position: relative;
    display: inline-block;
    margin: 1.5rem 0;
    text-align: center;
    width: 100%;
}

.resume-main-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.resume-main-btn:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.resume-main-btn i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.resume-dropdown:hover .resume-main-btn i {
    transform: rotate(180deg);
}

.resume-dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--card-bg);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    z-index: 1;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.resume-dropdown:hover .resume-dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

.resume-dropdown-content a {
    color: var(--text-primary);
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border);
}

.resume-dropdown-content a:last-child {
    border-bottom: none;
}

.resume-dropdown-content a:hover {
    background-color: var(--accent);
    color: white;
}

.resume-dropdown-content a i {
    width: 20px;
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translate(-50%, -10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@media (max-width: 480px) {
    .resume-dropdown {
        width: 100%;
        max-width: 250px;
        margin: 1.5rem auto;
    }
    
    .resume-main-btn {
        width: 100%;
    }
    
    .resume-dropdown-content {
        width: 100%;
    }
}

/* Experience Section */
.experience.section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    font-size: 2.5rem;
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Resume Button */
.resume-btn {
    display: inline-flex !important;
    visibility: visible !important;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    background: var(--accent);
    color: white;
    border: 2px solid var(--accent);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.resume-btn i {
    margin-left: 10px;
    transition: transform 0.3s ease;
    font-size: 0.9em;
}

.resume-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(108, 92, 231, 0.4);
}

.resume-btn:hover i {
    transform: translateX(5px);
}

.resume-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.resume-btn:hover::before {
    left: 100%;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #6c5ce7, #a29bfe, #6c5ce7);
    background-size: 200% 200%;
    z-index: -1;
    transition: var(--transition);
    opacity: 0;
}

.btn:hover::before {
    opacity: 1;
    animation: gradientBG 3s ease infinite;
}

.btn i {
    margin-left: 8px;
}

.download-btn {
    padding: 0.8rem 2.5rem;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    font-weight: 600;
}

.download-btn:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
}

/* Skills Section */
.skills {
background: radial-gradient(circle at top left, rgba(108,92,231,0.14), transparent 55%),
            radial-gradient(circle at bottom right, rgba(52,152,219,0.14), transparent 55%),
            var(--bg-primary);
}

.skills-container {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
gap: 2rem;
margin-top: 2.5rem;
}

.skills-category {
background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
border-radius: 18px;
padding: 1.7rem 1.6rem;
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
border: 1px solid rgba(255, 255, 255, 0.06);
backdrop-filter: blur(10px);
}

.skills-category:hover {
transform: translateY(-6px) translateZ(0);
box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
border-color: rgba(108, 92, 231, 0.4);
}

.skills-category h3 {
font-size: 1.35rem;
margin-bottom: 1.3rem;
color: var(--text-primary);
position: relative;
padding-bottom: 0.7rem;
letter-spacing: 0.02em;
}

.skills-category h3::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 58px;
height: 3px;
background: linear-gradient(90deg, var(--accent), #6c5ce7);
border-radius: 999px;
}

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

.skill-item {
display: flex;
align-items: center;
gap: 1rem;
}

.skill-item i {
font-size: 1.4rem;
color: var(--accent);
width: 34px;
text-align: center;
}

.skill-item span {
flex: 1;
color: var(--text-primary);
font-weight: 500;
min-width: 130px;
}

.skill-level {
height: 8px;
flex: 2;
background: rgba(99, 110, 114, 0.2);
border-radius: 999px;
overflow: hidden;
position: relative;
}

.skill-level::before {
content: '';
position: absolute;
inset: 0;
background: linear-gradient(90deg, rgba(255,255,255,0.18), transparent 60%);
opacity: 0.25;
}

.skill-progress {
height: 100%;
width: 0;
background: linear-gradient(90deg, var(--accent), #6c5ce7);
border-radius: inherit;
box-shadow: 0 0 12px rgba(108, 92, 231, 0.5);
transition: width 1s ease-out;
}

/* Animate skill bars when in view */
.skill-progress.animate {
width: var(--skill-level);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .skill-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .skill-level {
        width: 100%;
    }
}

/* Experience Section */
.experience {
    background-color: var(--bg-secondary);
    padding: 80px 0;
    position: relative;
    min-height: 100vh; /* Ensure the section takes up at least the full viewport height */
    overflow: hidden; /* Prevent any content from overflowing */
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, var(--accent), #6e45e2, #89d4cf, var(--accent));
    top: 0;
    bottom: 0;
    left: 20px;
    opacity: 0.8;
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.3);
    animation: lineGlow 3s ease-in-out infinite alternate;
}

@keyframes lineGlow {
    0% {
        box-shadow: 0 0 10px rgba(108, 92, 231, 0.3);
    }
    100% {
        box-shadow: 0 0 20px rgba(108, 92, 231, 0.6);
    }
}

.timeline-item {
    padding: 20px 0 20px 40px;
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.5s ease;
    text-align: left;
}

.timeline-item.visible {
    /* Keep this for any additional visible state styles */
    opacity: 1;
    transform: translateY(0);
}

/* Remove the alternating layout */
.timeline-item:nth-child(odd),
.timeline-item:nth-child(even) {
    left: 0;
    padding-left: 60px;
    padding-right: 0;
    text-align: left;
}

.timeline-content {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(108, 92, 231, 0.1);
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent), #6e45e2);
    transition: all 0.4s ease;
    opacity: 0;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-color: rgba(108, 92, 231, 0.2);
}

.timeline-content:hover::before {
    opacity: 1;
}

.timeline-header h3 {
    color: var(--text-primary);
    margin-bottom: 8px;
    font-size: 1.4rem;
    position: relative;
    display: inline-block;
}

.timeline-header h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, var(--accent), #6e45e2);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.timeline-content:hover .timeline-header h3::after {
    width: 80px;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.timeline-header {
    margin-bottom: 15px;
    position: relative;
}

.timeline-header h3 {
    margin: 0 0 5px;
    color: var(--text-primary);
    font-size: 1.3rem;
    font-weight: 600;
}

.company {
    display: block;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 5px;
}

.duration {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: inline-block;
    background: var(--bg-primary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-top: 5px;
}

.responsibilities {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
}

.responsibilities li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
}

.responsibilities li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 1.1rem;
    line-height: 1.4;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tech-tags span {
    background: rgba(108, 92, 231, 0.1);
    color: var(--accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    border: 1px solid var(--border);
}

/* Add a dot on the timeline */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background: linear-gradient(145deg, var(--accent), #6e45e2);
    border-radius: 50%;
    top: 30px;
    left: 12px;
    z-index: 2;
    transition: all 0.4s ease;
    border: 3px solid var(--bg-secondary);
    box-shadow: 0 0 0 3px var(--accent), 0 0 15px rgba(108, 92, 231, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0.7), 0 0 0 0 rgba(108, 92, 231, 0.7);
    }
    40% {
        box-shadow: 0 0 0 10px rgba(108, 92, 231, 0), 0 0 0 20px rgba(108, 92, 231, 0);
    }
    80% {
        box-shadow: 0 0 0 10px rgba(108, 92, 231, 0), 0 0 0 20px rgba(108, 92, 231, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(108, 92, 231, 0), 0 0 0 0 rgba(108, 92, 231, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline::before {
        left: 9px;
        width: 3px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 15px;
        text-align: left !important;
    }

    .timeline-item::after {
        left: 4px !important;
        right: auto;
        width: 14px;
        height: 14px;
    }
    
    .timeline-content {
        padding: 20px;
    }
    
    .timeline-header h3 {
        font-size: 1.2rem;
    }
    
    .responsibilities li {
        font-size: 0.9rem;
    }
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    padding: 1.8rem;
    border: 1px solid var(--border);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.project-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.tech-stack span {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.project-link i {
    margin-right: 5px;
}

.project-link:hover {
    color: var(--text-primary);
    transform: translateX(5px);
}

/* Contact Section */
.contact {
    background:
        radial-gradient(circle at top right, rgba(108, 92, 231, 0.16), transparent 55%),
        radial-gradient(circle at bottom left, rgba(108, 92, 231, 0.12), transparent 55%),
        var(--bg-secondary);
}

.contact .container {
    max-width: 800px;
}

.contact-form {
    max-width: 640px;
    margin: 2rem auto 0;
    padding: 2.2rem 2rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.18), rgba(108, 92, 231, 0.04));
    border: 1px solid rgba(108, 92, 231, 0.35);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(14px);
}

.form-group {
    margin-bottom: 1.4rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.05rem;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.02);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 0 1px rgba(108, 92, 231, 0.35);
    transform: translateY(-1px);
}

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

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer p {
    color: var(--text-secondary);
    margin: 0;
}

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
}

.theme-toggle-btn {
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: var(--card-bg);
    color: var(--text-secondary);
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-toggle-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.theme-toggle-btn i {
    pointer-events: none;
}

/* Change icon based on theme */
body.light-theme .theme-icon i {
    color: #2d3436;
}

body.dark-theme .theme-icon i::before {
    content: "\f186"; /* sun icon */
    color: #f5f6fa;
}

body.dim-theme .theme-icon i::before {
    content: "\f0eb"; /* lightbulb icon */
    color: #f5f6fa;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #6c5ce7, #a29bfe);
    z-index: 1000;
    transition: width 0.1s ease-out;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-content::before {
        left: 60px;
        border: medium solid var(--bg-primary);
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--bg-primary) transparent transparent;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: var(--bg-primary);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: right 0.5s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .line:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }
    
    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .line:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
    
    .name {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.3rem;
    }
    
    .profile-image {
        width: 180px;
        height: 180px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
        padding: 0 15px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .name {
        font-size: 2.2rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .profile-image {
        width: 160px;
        height: 160px;
    }
    
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .timeline-content {
        padding: 20px;
    }
}
