/* CSS Custom Properties (Variables) */
:root {
    /* Light Theme Colors */
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --text-color: #111827;
    --text-light: #6b7280;
    --text-white: #ffffff;
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --bg-gradient: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    --card-bg: #ffffff;
    --card-hover: #f8fafc;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 10px rgba(0, 0, 0, 0.05);
    
    /* Light Theme Gradients */
    --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-accent: linear-gradient(135deg, #ec4899 0%, #3b82f6 100%);
    --gradient-text: linear-gradient(135deg, #3b82f6 0%, #ec4899 100%);
    --gradient-card: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    --gradient-hero: linear-gradient(135deg, #ffffff 0%, #f8fafc 25%, #f1f5f9 100%);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-code: 'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 20px;
    --container-max-width: 1200px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-small: 8px;
    --radius-medium: 12px;
    --radius-large: 20px;
    --radius-xl: 30px;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --text-color: #f8fafc;
    --text-light: #cbd5e1;
    --bg-color: #0f172a;
    --bg-light: #1e293b;
    --bg-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    --card-bg: #1e293b;
    --card-hover: #334155;
    --border-color: #475569;
    --border-light: #334155;
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-medium: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-heavy: 0 25px 50px rgba(0, 0, 0, 0.6);
    --gradient-card: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 100%);
}

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

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

/* Force light theme as default */
html:not([data-theme="dark"]) {
    background: #ffffff;
}

html:not([data-theme="dark"]) body {
    background: #ffffff;
    color: #111827;
}

/* Light theme text fixes */
html:not([data-theme="dark"]) .section-title,
html:not([data-theme="dark"]) .section-subtitle,
html:not([data-theme="dark"]) .about-text p,
html:not([data-theme="dark"]) .about-description p {
    color: #111827 !important;
}

html:not([data-theme="dark"]) .about-text p,
html:not([data-theme="dark"]) .about-description p {
    opacity: 0.85 !important;
}

html:not([data-theme="dark"]) .stat-label {
    color: #6b7280 !important;
}

/* Dark theme text fixes */
html[data-theme="dark"] .section-title,
html[data-theme="dark"] .section-subtitle,
html[data-theme="dark"] .about-text p,
html[data-theme="dark"] .about-description p {
    color: #f8fafc !important;
}

html[data-theme="dark"] .about-text p,
html[data-theme="dark"] .about-description p {
    opacity: 0.9 !important;
}

html[data-theme="dark"] .stat-label {
    color: #cbd5e1 !important;
}

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

/* Light Theme Enhanced Styling */
:root {
    background: var(--bg-gradient);
}

.card,
.skill-card,
.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-medium);
    border-radius: var(--radius-medium);
    transition: all var(--transition-normal);
}

.card:hover,
.skill-card:hover,
.project-card:hover {
    background: var(--card-hover);
    box-shadow: var(--shadow-heavy);
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

/* Dark Theme Enhanced Styling */
[data-theme="dark"] {
    background: var(--bg-gradient);
}

[data-theme="dark"] .card,
[data-theme="dark"] .skill-card,
[data-theme="dark"] .project-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

[data-theme="dark"] .card:hover,
[data-theme="dark"] .skill-card:hover,
[data-theme="dark"] .project-card:hover {
    background: var(--card-hover);
    box-shadow: var(--shadow-heavy);
    transform: translateY(-3px);
    border-color: var(--primary-color);
}

/* Selection Style */
::selection {
    background: var(--primary-color);
    color: var(--text-white);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--text-white);
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Container */
.container {
    max-width: min(var(--container-max-width), 95vw);
    margin: 0 auto;
    padding: var(--container-padding);
    width: 100%;
}

@media (min-width: 1600px) {
    .container {
        max-width: 1500px;
    }
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-padding {
    padding: var(--section-padding);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    width: 80px;
    height: 80px;
    position: relative;
}

.loader-inner {
    width: 100%;
    height: 100%;
    position: relative;
}

.loader-line-wrap {
    animation: spin 2s cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite;
    box-sizing: border-box;
    height: 50px;
    left: 50%;
    overflow: hidden;
    position: absolute;
    top: 50%;
    transform-origin: 50% 50%;
    width: 50px;
    z-index: 1;
}

.loader-line {
    border: 4px solid transparent;
    border-radius: 100%;
    box-sizing: border-box;
    height: 100px;
    left: 0;
    margin: 0 auto;
    position: absolute;
    right: 0;
    top: 0;
    width: 100px;
}

.loader-line-wrap:nth-child(1) {
    animation-delay: -50ms;
    transform: rotate(0deg) translate3d(0, -15px, 0);
}

.loader-line-wrap:nth-child(2) {
    animation-delay: -100ms;
    transform: rotate(90deg) translate3d(0, -15px, 0);
}

.loader-line-wrap:nth-child(3) {
    animation-delay: -150ms;
    transform: rotate(180deg) translate3d(0, -15px, 0);
}

.loader-line-wrap:nth-child(4) {
    animation-delay: -200ms;
    transform: rotate(270deg) translate3d(0, -15px, 0);
}

.loader-line-wrap:nth-child(1) .loader-line {
    border-color: var(--primary-color);
}

.loader-line-wrap:nth-child(2) .loader-line {
    border-color: var(--secondary-color);
}

.loader-line-wrap:nth-child(3) .loader-line {
    border-color: var(--accent-color);
}

.loader-line-wrap:nth-child(4) .loader-line {
    border-color: var(--primary-dark);
}

@keyframes spin {
    0% { transform: rotate(0deg) translate3d(0, -15px, 0); }
    25% { transform: rotate(90deg) translate3d(0, -15px, 0); }
    50% { transform: rotate(180deg) translate3d(0, -15px, 0); }
    75% { transform: rotate(270deg) translate3d(0, -15px, 0); }
    100% { transform: rotate(360deg) translate3d(0, -15px, 0); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(249, 250, 251, 0.9);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
    z-index: 1000;
    transition: all var(--transition-normal);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(25px);
    border-bottom: 1px solid rgba(71, 85, 105, 0.6);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled {
    padding: 15px 0;
    box-shadow: var(--shadow-light);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.nav-logo a {
    text-decoration: none;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.logo-text {
    color: var(--text-color);
}

.logo-dot {
    color: var(--primary-color);
    margin-left: 2px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 16px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0;
    transition: color var(--transition-fast);
}

.nav-link i {
    font-size: 18px;
    opacity: 0;
    transform: translateY(5px);
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover i {
    opacity: 1;
    transform: translateY(0);
}

.nav-link.active {
    color: var(--primary-color);
}

.nav-link.active i {
    opacity: 1;
    transform: translateY(0);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.theme-toggle {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-small);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    margin-left: 20px;
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: all var(--transition-fast);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-color);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
}

/* Hero Section Enhancements */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 25% 25%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 75% 75%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Dark Theme Hero Enhancement */
[data-theme="dark"] .hero {
    background: var(--gradient-hero);
}

[data-theme="dark"] .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 75% 75%, rgba(236, 72, 153, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

[data-theme="dark"] .hero-particles {
    background: radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.2) 0%, transparent 50%);
}

.hero-container {
    display: grid;
    grid-template-columns: 600px 400px;
    gap: 120px;
    align-items: center;
    justify-content: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
    padding-top: 100px;
    min-height: 600px;
}

.hero-content {
    z-index: 2;
    width: 600px;
    min-width: 600px;
    max-width: 600px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
    min-height: 4em;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
        text-align: center;
        min-height: 3em;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(1.8rem, 9vw, 2.2rem);
        min-height: 2.5em;
    }
}

.greeting {
    display: block;
    font-size: 1.2em;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 10px;
}

.name {
    display: block;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.typing-wrapper {
    display: block;
    font-size: 0.7em;
    color: var(--primary-color);
    font-family: var(--font-code);
    font-weight: 500;
    width: 100%;
    max-width: 500px;
    min-width: 300px;
    height: 1.5em;
    overflow: visible;
    white-space: nowrap;
    text-align: left;
    position: relative;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .typing-wrapper {
        text-align: center;
        font-size: 0.6em;
        max-width: 90vw;
        min-width: 280px;
    }
}

@media (max-width: 480px) {
    .typing-wrapper {
        font-size: 0.55em;
        max-width: 95vw;
        min-width: 250px;
    }
}

.typed-text {
    border-right: 2px solid var(--primary-color);
    display: inline-block;
    min-height: 1em;
}

.cursor-blink {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-description {
    font-size: 1.2em;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-medium);
    transition: all var(--transition-normal);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    min-height: 48px;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .btn {
        padding: 14px 24px;
        font-size: 15px;
        min-height: 50px;
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 48px;
        width: 100%;
        max-width: 280px;
    }
}

.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: left 0.5s;
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
}

/* Button Enhancements */
.btn-primary {
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.15);
}

.btn-secondary:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

/* Dark Theme Button Enhancements */
[data-theme="dark"] .btn-primary {
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.5), 0 0 0 1px rgba(99, 102, 241, 0.1);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

[data-theme="dark"] .btn-primary:hover {
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.7), 0 0 0 1px rgba(99, 102, 241, 0.3);
    transform: translateY(-3px);
}

[data-theme="dark"] .btn-secondary {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--border-color);
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .btn-secondary:hover {
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.6), 0 0 0 1px var(--primary-color);
    background: var(--primary-color);
}

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

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

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

.btn-outline:hover {
    background: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

.hero-social {
    display: flex;
    gap: 20px;
    align-items: center;
}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-decoration: none;
    transition: all var(--transition-normal);
    font-size: 20px;
}

.social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Hero Image */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 450px;
    min-width: 300px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .hero-image {
        max-width: 100%;
        margin: 0 auto;
        order: -1;
    }
}

.image-container {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    margin: 0 auto;
}

.image-bg {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
    z-index: -1;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid var(--bg-color);
}

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

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
    font-size: 14px;
    gap: 10px;
}

.scroll-arrow {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Section Styles */
section {
    padding: var(--section-padding);
    position: relative;
    scroll-margin-top: 80px;
}

@media (min-width: 1200px) {
    section {
        padding: 120px 0;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    section {
        padding: 60px 0;
    }
}

/* Light Theme Section Styling */
.hero {
    background: var(--gradient-hero);
}

/* About section with solid background for better contrast */
.about {
    background: #ffffff !important;
}

.experience {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.skills,
.contact {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.projects {
    background: linear-gradient(180deg, #f1f5f9 0%, #f8fafc 100%);
}

/* Dark Theme Section Enhancements */
[data-theme="dark"] .about,
[data-theme="dark"] .experience {
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%);
}

[data-theme="dark"] .skills,
[data-theme="dark"] .contact {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

[data-theme="dark"] .projects {
    background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
    text-align: center;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .section-title {
        margin-bottom: 15px;
        font-size: clamp(1.8rem, 5vw, 2.2rem);
    }
}

@media (max-width: 480px) {
    .section-title {
        margin-bottom: 12px;
        font-size: clamp(1.6rem, 6vw, 1.9rem);
    }
}

.section-subtitle {
    font-size: 1.2em;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* About Section */
.about {
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-description p {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 25px;
    color: var(--text-color);
    opacity: 0.9;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 40px 0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3em;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.9em;
    color: var(--text-light);
    margin-top: 10px;
}

.about-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.1;
}

/* Skills Section */
.skills-content {
    max-width: 1000px;
    margin: 0 auto;
}

.skills-categories {
    display: grid;
    gap: 60px;
}

.skill-category {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

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

.category-title {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-color);
}

.category-title i {
    font-size: 1.2em;
    color: var(--primary-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

@media (min-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius-medium);
    transition: all var(--transition-fast);
}

.skill-item:hover {
    background: var(--primary-color);
    color: white;
}

.skill-item:hover .skill-icon {
    color: white;
}

.skill-item:hover .progress-bar {
    background: rgba(255, 255, 255, 0.3);
}

.skill-item:hover .progress-bar::after {
    background: white;
}

.skill-icon {
    font-size: 2em;
    color: var(--primary-color);
    transition: color var(--transition-fast);
}

.skill-info {
    flex: 1;
}

.skill-name {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
}

.skill-progress {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    position: relative;
    width: 0;
    transition: width 2s ease;
}

.progress-bar::after {
    content: attr(data-percentage) '%';
    position: absolute;
    right: 10px;
    top: -25px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
}

/* Projects Section */
.projects {
    background: var(--bg-light);
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 12px 25px;
    border-radius: var(--radius-medium);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

@media (min-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 50px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

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

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(102, 126, 234, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: var(--radius-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-fast);
    font-size: 20px;
}

.project-link:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-content {
    padding: 30px;
}

.project-title {
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
}

.project-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background: var(--bg-light);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: var(--radius-small);
    font-size: 0.85em;
    font-weight: 500;
    border: 1px solid var(--primary-color);
}

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

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 80px;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 50px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 50px;
}

.timeline-marker {
    position: absolute;
    top: 20px;
    width: 60px;
    height: 60px;
    background: var(--card-bg);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--primary-color);
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -30px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -30px;
}

.timeline-content {
    background: var(--card-bg);
    padding: 30px;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    position: relative;
    transition: all var(--transition-normal);
}

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

.timeline-content::before {
    content: '';
    position: absolute;
    top: 30px;
    width: 20px;
    height: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transform: rotate(45deg);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -11px;
    border-left: none;
    border-bottom: none;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -11px;
    border-right: none;
    border-top: none;
}

.timeline-title {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-color);
}

.timeline-company {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-date {
    background: var(--bg-light);
    color: var(--text-light);
    padding: 5px 15px;
    border-radius: var(--radius-small);
    font-size: 0.9em;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 15px;
}

.timeline-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.timeline-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-small);
    font-size: 0.8em;
    font-weight: 500;
}

/* Contact Section */
.contact {
    background: var(--bg-light);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--card-bg);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.contact-details p {
    color: var(--text-light);
}

.contact-social {
    margin-top: 20px;
}

.contact-social h3 {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

/* Contact Form */
.contact-form {
    background: var(--card-bg);
    padding: 40px;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-light);
    border: 1px solid var(--border-color);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-medium);
    font-size: 16px;
    background: var(--bg-light);
    color: var(--text-color);
    transition: all var(--transition-fast);
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.form-label {
    position: absolute;
    top: 20px;
    left: 20px;
    color: var(--text-light);
    transition: all var(--transition-fast);
    pointer-events: none;
    background: var(--bg-light);
    padding: 0 8px;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
    top: -12px;
    left: 16px;
    font-size: 14px;
    color: var(--primary-color);
}

.form-submit {
    align-self: flex-start;
    margin-top: 10px;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 40px 0;
    text-align: center;
}

[data-theme="dark"] .footer {
    background: #020617;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-text p {
    margin-bottom: 5px;
    color: #94a3b8;
}

.footer-text i {
    color: #ef4444;
}

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

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-medium);
    transition: all var(--transition-normal);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--card-bg);
    border-radius: var(--radius-large);
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow-heavy);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--text-color);
    color: var(--bg-color);
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 1;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    transform: scale(1.1);
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design - Desktop Large */
@media (max-width: 1400px) {
    .container {
        max-width: 1200px;
    }
    
    .hero-container {
        grid-template-columns: 1fr 400px;
        gap: 80px;
    }
}

/* Responsive Design - Desktop Medium */
@media (max-width: 1200px) {
    .hero-container {
        grid-template-columns: 500px 350px;
        gap: 60px;
    }

    .hero-content {
        width: 500px;
        min-width: 500px;
        max-width: 500px;
    }

    .hero-image {
        width: 350px;
        min-width: 350px;
        max-width: 350px;
    }

    .typing-wrapper {
        width: 450px;
        min-width: 450px;
        max-width: 450px;
    }

    .image-container {
        width: 300px;
        height: 300px;
    }
}

/* Responsive Design - Tablet Landscape */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-container {
        grid-template-columns: 1fr 300px;
        gap: 40px;
        padding: 40px 20px;
    }
    
    .hero-content {
        width: 100%;
        max-width: 500px;
    }
    
    .hero-image {
        width: 300px;
        max-width: 300px;
    }
    
    .typing-wrapper {
        width: 100%;
        max-width: 450px;
    }
    
    .image-container {
        width: 250px;
        height: 250px;
    }
    
    .about-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .hero-buttons {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* Responsive Design - Tablet Portrait */
@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
        --container-padding: 0 20px;
    }

    .nav-toggle {
        display: flex !important;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--card-bg);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
        padding: 30px 0;
        transition: left 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 9999;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

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

    .nav-menu a {
        display: block;
        padding: 15px 20px;
        font-size: 1.1em;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--card-bg);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 50px 0;
        gap: 30px;
        transition: left var(--transition-normal);
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-medium);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        min-height: calc(100vh - 80px);
        justify-content: center;
        align-items: center;
        max-width: 100%;
        padding: 40px 20px;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-content {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        padding: 0 10px;
    }

    .hero-image {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        order: -1;
    }

    .hero-image {
        order: -1;
    }

    .image-container {
        width: 300px;
        height: 300px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-social {
        justify-content: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 80px !important;
        padding-right: 0 !important;
    }

    .timeline-marker {
        left: 20px !important;
        right: auto !important;
    }

    .timeline-content::before {
        left: -11px !important;
        right: auto !important;
        border-right: none !important;
        border-top: none !important;
        border-left: 1px solid var(--border-color) !important;
        border-bottom: 1px solid var(--border-color) !important;
    }

    .experience-timeline::before {
        left: 50px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

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

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

/* Mobile Design */
@media (max-width: 480px) {
    :root {
        --section-padding: 60px 0;
        --container-padding: 0 15px;
    }

    .hero-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        min-height: auto;
        text-align: center;
        line-height: 1.2;
        margin-bottom: 20px;
    }

    .greeting {
        font-size: 1em !important;
    }

    .name {
        font-size: 1em !important;
        margin-bottom: 10px !important;
    }

    .typing-wrapper {
        width: 100%;
        min-width: 280px;
        max-width: 100%;
        font-size: 0.65em;
        height: 1.5em;
        overflow: visible;
        text-align: center;
        margin: 0 auto;
    }

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-buttons {
        flex-direction: column;
        align-items: center;
    }

    .project-filters {
        flex-direction: column;
        align-items: center;
    }

    .image-container {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }

    .hero-container {
        min-height: auto;
        padding-top: 100px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        margin-top: 40px;
        width: 100%;
    }

    .btn {
        width: 90%;
        max-width: 300px;
        min-height: 50px;
        justify-content: center;
        padding: 15px 30px;
        font-size: 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
        margin-bottom: 30px;
        padding: 0 10px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .timeline-item {
        padding-left: 60px !important;
    }

    .timeline-marker {
        left: 10px !important;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .experience-timeline::before {
        left: 30px;
    }

    .social-links {
        justify-content: center;
    }

    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

/* Ultra Small Mobile Devices */
@media (max-width: 360px) {
    :root {
        --section-padding: 50px 0;
        --container-padding: 0 10px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .typing-wrapper {
        font-size: 0.6em;
        min-width: 250px;
    }
    
    .image-container {
        width: 220px;
        height: 220px;
    }
    
    .btn {
        width: 95%;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .hero-container {
        padding: 20px 10px;
        gap: 30px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .back-to-top,
    .scroll-indicator {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .hero {
        min-height: auto;
        page-break-after: always;
    }

    section {
        padding: 40px 0;
        page-break-inside: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.3);
        --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.4);
        --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.5);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-arrow,
    .cursor-blink {
        animation: none !important;
    }
}

/* Theme Override - Ensure Proper Theme Switching */

/* Light Theme Default */
:root,
html:not([data-theme="dark"]),
html:not([data-theme="dark"]) body {
    --text-color: #111827;
    --text-light: #6b7280;
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    background-color: #ffffff !important;
    color: #111827 !important;
}

/* Dark Theme Override */
html[data-theme="dark"],
html[data-theme="dark"] body {
    --text-color: #f8fafc;
    --text-light: #cbd5e1;
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --border-color: #475569;
    background-color: #0f172a !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .navbar {
    background: rgba(15, 23, 42, 0.9) !important;
    border-bottom-color: rgba(71, 85, 105, 0.6) !important;
}

html[data-theme="dark"] .nav-menu {
    background: #0f172a !important;
    border-top-color: rgba(71, 85, 105, 0.6) !important;
}

html[data-theme="dark"] .nav-menu a {
    border-bottom-color: rgba(71, 85, 105, 0.3) !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .nav-toggle .bar {
    background: #f8fafc !important;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .skill-card,
html[data-theme="dark"] .project-card {
    background: #1e293b !important;
    border-color: #475569 !important;
    color: #f8fafc !important;
}

html[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 100%) !important;
}

html[data-theme="dark"] .about {
    background: #1e293b !important;
}

html[data-theme="dark"] .experience {
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%) !important;
}

html[data-theme="dark"] .skills,
html[data-theme="dark"] .contact {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
}

html[data-theme="dark"] .projects {
    background: linear-gradient(180deg, #334155 0%, #1e293b 100%) !important;
}

/* Mobile Navigation & Responsive Fixes */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        margin-top: 30px;
        width: 100%;
    }

    .btn {
        width: 90%;
        max-width: 300px;
        justify-content: center;
        text-align: center;
    }

    .nav-toggle {
        display: flex !important;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-color);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 20px;
        padding: 40px 0;
        transition: left var(--transition-normal);
        z-index: 1000;
        border-top: 1px solid var(--border-color);
        box-shadow: var(--shadow-medium);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 90%;
        text-align: center;
    }

    .nav-menu a {
        display: block;
        padding: 15px 20px;
        font-size: 1.1em;
        font-weight: 500;
        border-radius: var(--radius-medium);
        transition: all var(--transition-fast);
    }

    .nav-menu a:hover {
        background: var(--primary-color);
        color: white;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* Dark Theme Mobile Navbar */
@media (max-width: 768px) {
    html[data-theme="dark"] .nav-menu {
        background: #0f172a !important;
        border-top-color: rgba(71, 85, 105, 0.6) !important;
    }

    html[data-theme="dark"] .nav-menu a {
        color: #f8fafc !important;
    }

    html[data-theme="dark"] .nav-menu a:hover {
        background: var(--primary-color) !important;
        color: white !important;
    }

    html[data-theme="dark"] .nav-toggle .bar {
        background: #f8fafc !important;
    }
}

.timeline-type {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    opacity: 0.7;
}

.timeline-title {
    margin-bottom: 5px;
}

.timeline-company {
    margin-bottom: 5px;
}

.timeline-date {
    display: inline-block;
    margin-bottom: 12px;
}

.timeline-description {
    margin-bottom: 14px;
}

.timeline-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.skill-tag {
    padding: 5px 10px;
    font-size: 0.78rem;
    border-radius: 6px;
}

