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

:root {
    /* Primary Colors */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    /* ✅ Fixed: Now darker, not lighter */
    --primary-light: #3b82f6;

    /* Secondary Colors */
    --secondary-color: #64748b;
    --accent-color: #0ea5e9;
    --accent-dark: #0284c7;

    /* Text Colors */
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-tertiary: #64748b;

    /* Background Colors */
    --background: #ffffff;
    --background-gray: #f8fafc;

    /* Border Colors */
    --border-color: #e2e8f0;
    --border-dark: #cbd5e1;

    /* Status Colors */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;

    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-highlight: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);

    /* Shadow Colors & Opacity */
    --shadow-color: rgba(0, 0, 0, 0.05);
    --shadow-dark: rgba(0, 0, 0, 0.1);
    --shadow-darker: rgba(0, 0, 0, 0.12);
    --shadow-overlay: rgba(37, 99, 235, 0.3);
    --shadow-overlay-dark: rgba(37, 99, 235, 0.4);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 var(--shadow-color);
    --shadow-md: 0 4px 6px -1px var(--shadow-dark);
    --shadow-lg: 0 10px 15px -3px var(--shadow-dark);
    --shadow-xl: 0 20px 25px -5px var(--shadow-dark);

    /* Button Opacity */
    --btn-hover-opacity: 0.1;
    --btn-active-opacity: 0.05;

    /* Transition Duration */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s ease;

    /* Hero & Footer Colors */
    --hero-gradient: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    --footer-bg: #1e293b;
}

/* Dark mode theme */
html[data-theme="dark"] {
    /* Text Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;

    /* Background Colors */
    --background: #0f172a;
    --background-gray: #1e293b;

    /* Border Colors */
    --border-color: #334155;
    --border-dark: #475569;

    /* Shadow Colors & Opacity */
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-dark: rgba(0, 0, 0, 0.5);
    --shadow-darker: rgba(0, 0, 0, 0.6);
    --shadow-overlay: rgba(37, 99, 235, 0.5);
    --shadow-overlay-dark: rgba(37, 99, 235, 0.6);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 var(--shadow-color);
    --shadow-md: 0 4px 6px -1px var(--shadow-dark);
    --shadow-lg: 0 10px 15px -3px var(--shadow-dark);
    --shadow-xl: 0 20px 25px -5px var(--shadow-darker);

    /* Hero & Footer Colors */
    --hero-gradient: linear-gradient(135deg, #1e3a8a 0%, #0c4a6e 100%);
    /* ✅ Darker gradient for dark mode */
    --footer-bg: #0f172a;
}


html[data-theme="dark"] .social-links a:hover {
    background: var(--primary-color);
    color: white;
}

.hero-title,
.hero-subtitle,
.hero-description {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    /* Subtle shadow for text */
}

body {
    font-family: system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
}

html {
    scroll-behavior: smooth;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

.section {
    padding: 80px 0;
}

.section-gray {
    background-color: var(--background-gray);
    border-radius: 12px;
}

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

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

/* ==================== NAVIGATION ==================== */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-normal);
}

html[data-theme="dark"] #navbar {
    background: rgba(15, 23, 42, 0.95);
}

#navbar.scrolled {
    box-shadow: var(--shadow-md);
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.nav-menu {
    display: flex;
    gap: 5px;
    align-items: center;
    list-style: none;
}

.nav-menu li {
    position: relative;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 14px;
    display: block;
    border-radius: 6px;
    transition: all var(--transition-normal);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 14px;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, var(--btn-active-opacity));
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 28px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all var(--transition-normal);
}

/* ==================== RESUME DROPDOWN ==================== */
.nav-resume {
    margin-left: 10px;
    border-left: 2px solid var(--border-color);
    padding-left: 10px;
}

.resume-dropdown {
    position: relative;
    display: inline-block;
}

.resume-dropbtn {
    background: var(--gradient-primary);
    color: white;
    padding: 8px 16px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px var(--shadow-overlay);
    white-space: nowrap;
}

.resume-dropbtn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e3a8a 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-overlay-dark);
}

.resume-dropbtn i {
    font-size: 0.95rem;
}

.dropdown-arrow {
    font-size: 0.75rem;
    margin-left: 4px;
    transition: transform var(--transition-slow);
    display: inline-flex;
    align-items: center;
}

.resume-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.resume-dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background-color: var(--background);
    min-width: 180px;
    box-shadow: 0 8px 16px var(--shadow-darker);
    z-index: 1001;
    border-radius: 8px;
    overflow: hidden;
    animation: slideDown 0.3s ease;
}

.resume-dropdown.open .resume-dropdown-content {
    display: block;
}

.dropdown-option {
    color: var(--text-primary);
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-normal);
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.dropdown-option:last-child {
    border-bottom: none;
}

.dropdown-option:hover {
    background-color: var(--background-gray);
    padding-left: 18px;
}

.dropdown-option i {
    color: var(--primary-color);
    font-size: 0.95rem;
    width: 16px;
    text-align: center;
}

.view-resume:hover {
    color: var(--primary-color);
}

.download-resume:hover {
    color: var(--success-color);
}

.download-resume:hover i {
    color: var(--success-color);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--hero-gradient);
    color: white;
    padding-top: 80px;
}

.hero-content {
    width: 100%;
    padding: 40px 20px;
    /* Top/Bottom, Left/Right */
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease;
}

.highlight {
    background: var(--gradient-highlight);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all var(--transition-normal);
    display: inline-block;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 20px;
    animation: fadeInUp 0.8s ease 0.8s both;
}

.social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all var(--transition-normal);
    color: white;
}

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

/* ==================== ABOUT SECTION ==================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Equal columns instead of 2fr 1fr */
    gap: 80px;
    /* Increased gap from 60px */
    align-items: flex-start;
    /* Changed from start to flex-start */
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    /* Add bottom margin */
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-text a {
    color: var(--primary-color);
    font-weight: 600;
}

.about-text a:hover {
    text-decoration: underline;
}

.about-list {
    margin: 30px 0;
    /* Changed from 25px to 30px */
    padding-left: 0;
}

.about-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.about-list i {
    color: var(--success-color);
    margin-top: 4px;
    font-size: 1rem;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
    /* Increased from 20px */
}

.stat-card {
    background: var(--background);
    padding: 40px;
    /* Increased from 30px */
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    min-height: 180px;
    /* Add minimum height */
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ==================== TIMELINE ==================== */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--gradient-primary);
}

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

.timeline-marker {
    position: absolute;
    left: -8px;
    top: 0;
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border: 4px solid var(--background-gray);
    border-radius: 50%;
}

.timeline-content {
    background: var(--background);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.timeline-content:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(5px);
}

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

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

.company {
    display: inline-block;
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 15px;
}

.duration {
    display: inline-block;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-right: 15px;
}

.location {
    display: inline-block;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.timeline-content ul {
    list-style: disc;
    padding-left: 20px;
}

.timeline-content li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
}

/* ==================== SKILLS LEGEND ==================== */
.skills-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==================== SKILLS SECTION ==================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding-bottom: 20px;
}

.skill-category {
    background: var(--background);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.skill-category:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.skill-category h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category i {
    color: var(--primary-color);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-normal);
    position: relative;
}

.tag.expert {
    background: var(--gradient-primary);
    color: white;
}

.tag.expert:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-overlay-dark);
}

.tag.advanced {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-dark) 100%);
    color: white;
}

.tag.advanced:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.tag.intermediate {
    background: var(--background-gray);
    color: var(--text-primary);
    border: 2px solid var(--border-dark);
}

.tag.intermediate:hover {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.tag.beginner {
    background: var(--background);
    color: var(--text-secondary);
    border: 2px solid var(--border-dark);
}

.tag.beginner:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ==================== PROJECTS SECTION ==================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--background);
    padding: 35px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
}

.project-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.project-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.project-icon i {
    font-size: 1.8rem;
    color: white;
}

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

.project-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    background: var(--background-gray);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* ==================== CONTACT SECTION ==================== */
.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-text p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: var(--background-gray);
    border-radius: 10px;
    transition: all var(--transition-normal);
}

.contact-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.contact-item i {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.contact-item:hover i {
    color: white;
}

.contact-item a {
    color: var(--text-primary);
}

.contact-item:hover a {
    color: white;
}

.social-links-large {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 35px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    font-weight: 600;
    transition: all var(--transition-normal);
}

.social-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.social-btn i {
    font-size: 1.2rem;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--footer-bg);
    color: white;
    text-align: center;
    padding: 50px 20px;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer p {
    margin: 0;
    padding: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.footer p:first-child {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 10px;
}

.footer-note {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 8px;
}

/* ==================== THEME TOGGLE ==================== */
.nav-theme-toggle {
    margin-left: 10px;
    border-left: 2px solid var(--border-color);
    padding-left: 10px;
}

.theme-toggle-btn {
    background: none;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    font-size: 1.1rem;
}

.theme-toggle-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.theme-toggle-btn i {
    transition: transform var(--transition-slow);
}

.theme-toggle-btn.dark-mode i::before {
    content: "\f185";
    /* Sun icon */
}

/* Smooth transition for theme */
html.theme-transition,
html.theme-transition * {
    transition: background-color var(--transition-normal), color var(--transition-normal), border-color var(--transition-normal) !important;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        flex-direction: row;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .nav-resume {
        margin-left: 5px;
        padding-left: 5px;
    }

    .resume-dropbtn {
        padding: 8px 14px;
        font-size: 0.9rem;
    }

    .dropdown-arrow {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--background);
        flex-direction: column;
        padding: 15px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-normal);
        gap: 0;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        padding: 12px 14px;
        display: block;
        border-radius: 0;
    }

    .nav-resume {
        border-left: none;
        border-top: 2px solid var(--border-color);
        padding: 12px 14px;
        margin-left: 0;
        padding-left: 14px;
    }

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

    .resume-dropdown-content {
        position: static;
        display: none;
        box-shadow: inset 0 2px 8px var(--shadow-dark);
        margin-top: 8px;
    }

    .resume-dropdown.open .resume-dropdown-content {
        display: block;
    }

    .dropdown-option {
        justify-content: flex-start;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        padding-left: 40px;
    }

    .timeline-marker {
        left: 2px;
    }

    .about-stats {
        flex-direction: column;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .social-links-large {
        flex-direction: column;
    }

    .hero-content {
        padding: 5%;
    }

    .skills-legend {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .footer {
        padding: 40px 20px;
        margin-top: 60px;
    }

    .footer p {
        font-size: 0.9rem;
    }

    .footer-note {
        font-size: 0.8rem;
    }

    .nav-theme-toggle {
        border-left: none;
        border-top: 2px solid var(--border-color);
        padding: 12px 14px;
        margin-left: 0;
        padding-left: 14px;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .theme-toggle-btn {
        width: 100%;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 30px 16px;
        /* Smaller padding on very small phones */
    }

    .hero-title {
        font-size: 1.8rem;
        /* Reduce title size on mobile */
    }

    .hero-subtitle {
        font-size: 1.2rem;
        /* Reduce subtitle size */
    }

    .hero-description {
        font-size: 1rem;
        /* Reduce description size */
    }

    .section {
        padding: 50px 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        /* Full width buttons on mobile */
        padding: 12px 20px;
    }

    .social-links {
        gap: 15px;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .dropdown-arrow {
        font-size: 0.65rem;
    }

    .footer {
        padding: 30px 15px;
        margin-top: 40px;
    }

    .footer p {
        font-size: 0.85rem;
    }

    .footer-note {
        font-size: 0.75rem;
    }
}