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

:root {
    /* Modern Minimalist Color Palette */
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent-primary: #00d4ff;
    --accent-secondary: #ff6b35;
    --accent-tertiary: #7c3aed;
    --border-color: #2a2a2a;
    --shadow-light: rgba(0, 212, 255, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.3);
    --shadow-heavy: rgba(0, 0, 0, 0.6);
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Mobile optimizations */
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Modern browsers with CSS custom properties support */
@supports (--css: variables) {
    body {
        background: var(--bg-primary);
        color: var(--text-primary);
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 24px 40px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

nav.scrolled {
    background: rgba(10, 10, 10, 0.95);
    padding: 16px 40px;
    border-bottom: 1px solid var(--accent-primary);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    font-size: 1.125rem;
    font-weight: 300;
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid transparent;
}

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

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: var(--bg-primary);
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    left: 50%;
    transform: translateX(-50%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 300vw;
    height: 100vh;
    background:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.03) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.02) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.01) 0%, transparent 70%),
        linear-gradient(to bottom, transparent 0%, transparent 70%, rgba(0, 0, 0, 0.3) 90%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
    pointer-events: none;
    animation: gentleFloat 12s ease-in-out infinite;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 300vw;
    height: 100vh;
    background:
        radial-gradient(circle at 60% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 30% 80%, rgba(255, 255, 255, 0.015) 0%, transparent 50%),
        linear-gradient(to bottom, transparent 0%, transparent 70%, rgba(0, 0, 0, 0.2) 90%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 0;
    pointer-events: none;
    animation: gentlePulse 8s ease-in-out infinite reverse;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 300vw;
    height: 100vh;
    background:
        radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.01) 0%, transparent 60%),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, 0.008) 0%, transparent 60%),
        linear-gradient(to bottom, transparent 0%, transparent 70%, rgba(0, 0, 0, 0.1) 90%, rgba(0, 0, 0, 0.4) 100%);
    z-index: -1;
    pointer-events: none;
    animation: gentleDrift 15s ease-in-out infinite;
}






@keyframes gentleFloat {

    0%,
    100% {
        transform: translateY(0px) scale(1);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-20px) scale(1.02);
        opacity: 1;
    }
}

@keyframes gentlePulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@keyframes gentleDrift {

    0%,
    100% {
        transform: translateX(0px) translateY(0px) rotate(0deg);
        opacity: 0.4;
    }

    33% {
        transform: translateX(10px) translateY(-15px) rotate(0.5deg);
        opacity: 0.7;
    }

    66% {
        transform: translateX(-5px) translateY(-10px) rotate(-0.3deg);
        opacity: 0.6;
    }
}

/* Sparkle animations removed */

@keyframes heroNameFade {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

@keyframes heroSubtitleFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroButtonFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* @keyframes subtleFloat {

    0%,
    100% {
        transform: translateY(0px) scale(1) rotate(0deg);
        opacity: 0.8;
    }

    25% {
        transform: translateY(-15px) scale(1.05) rotate(1deg);
        opacity: 1;
    }

    50% {
        transform: translateY(-5px) scale(0.95) rotate(-1deg);
        opacity: 0.9;
    }

    75% {
        transform: translateY(-20px) scale(1.02) rotate(0.5deg);
        opacity: 1;
    }
} */



.hero-content {
    z-index: 2;
    max-width: 800px;
    animation: fadeIn 2s ease-out;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    font-family: 'Inter', sans-serif;
    margin-bottom: 32px;
    color: var(--text-primary);
    letter-spacing: 2px;
    line-height: 1.2;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
    opacity: 0;
    animation: heroNameFade 2s ease-out 0.5s forwards;
}

.hero p {
    font-size: 1rem;
    margin-bottom: 64px;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    animation: heroSubtitleFade 2s ease-out 1s forwards;
}

.cta-button {
    display: inline-block;
    padding: 16px 32px;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    border: 1px solid var(--text-primary);
    font-weight: 300;
    font-size: 14px;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    animation: heroButtonFade 2s ease-out 1.5s forwards;
}

.cta-button:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

/* Hero Buttons Container */
.hero-buttons {
    display: flex;
    gap: 24px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* CV Download Button */
.cv-download {
    background: transparent;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(20px);
    animation: heroButtonFade 2s ease-out 1.5s forwards;
}

.cv-download:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.cv-download i {
    font-size: 14px;
}

/* Section Styles */
section {
    padding: 160px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 300;
    margin-bottom: 80px;
    text-align: center;
    color: var(--text-primary);
    letter-spacing: 3px;
    line-height: 1.2;
    text-transform: uppercase;
}

.about-content {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 120px;
    padding: 0;
}

.about-text {
    text-align: left;
    margin: 0;
    max-width: 600px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.01em;
}

.about-intro h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.about-skills h4,
.about-philosophy h4,
.about-passions h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 8px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.about-intro,
.about-skills,
.about-philosophy,
.about-passions {
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.about-intro {
    animation-delay: 0.2s;
}

.about-skills {
    animation-delay: 0.4s;
}

.about-philosophy {
    animation-delay: 0.6s;
}

.about-passions {
    animation-delay: 0.8s;
}

.intro-text {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Highlight and skill-tag styles removed - using simple bold text */

.profile-glow {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, var(--shadow-light) 0%, transparent 70%);
    z-index: 1;
    filter: blur(0px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-profile {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    box-shadow: 0 8px 32px var(--shadow-medium);
    position: relative;
    z-index: 2;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-glow:hover::before {
    filter: blur(8px);
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
}

.profile-glow:hover .about-profile {
    box-shadow: 0 16px 48px var(--shadow-light);
    transform: scale(1.02);
    border-color: var(--accent-primary);
}

@media (max-width: 900px) {
    .about-content {
        flex-direction: column;
        gap: 24px;
    }

    .about-text {
        text-align: center;
    }
}

/* Skills Section - Modern Layout with Fallbacks */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 60px;
    justify-content: center;
    align-items: stretch;
}

/* Modern browsers with CSS Grid support */
@supports (display: grid) {
    .skills {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 40px;
        margin-top: 60px;
    }
}

.skill-group {
    /* Fallback for browsers without CSS custom properties */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 32px 28px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    flex: 1 1 300px;
    max-width: 400px;
    min-width: 280px;
}

/* Modern browsers with CSS custom properties support */
@supports (--css: variables) {
    .skill-group {
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
    }
}

.skill-group::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-group:hover::before {
    transform: scaleX(1);
}

.skill-group:hover {
    transform: translateY(-4px);
    border-color: #4ecdc4;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* Modern browsers with CSS custom properties support */
@supports (--css: variables) {
    .skill-group::before {
        background: var(--gradient-primary);
    }

    .skill-group:hover {
        border-color: var(--accent-primary);
        box-shadow: 0 12px 32px var(--shadow-medium);
    }
}

.skill-group h3 {
    font-size: 1.25rem;
    margin-bottom: 24px;
    color: #ffffff;
    letter-spacing: 0.5px;
    font-weight: 600;
    text-align: center;
}

/* Modern browsers with CSS custom properties support */
@supports (--css: variables) {
    .skill-group h3 {
        color: var(--text-primary);
    }
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.skill {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 0;
}

.skill:hover {
    transform: translateY(-2px);
    background: #4ecdc4;
    color: #0f0f0f;
    border-color: #4ecdc4;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Modern browsers with CSS custom properties support */
@supports (--css: variables) {
    .skill {
        background: var(--bg-tertiary);
        color: var(--text-secondary);
        border: 1px solid var(--border-color);
    }

    .skill:hover {
        background: var(--accent-primary);
        color: var(--bg-primary);
        border-color: var(--accent-primary);
        box-shadow: 0 4px 16px var(--shadow-light);
    }
}

/* Projects Section */
.projects-grid {
    display: flex;
    flex-direction: row;
    gap: 32px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 40px 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.projects-grid::-webkit-scrollbar {
    display: none;
}

.project-card {
    flex: 0 0 380px;
    max-width: 90vw;
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 0;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 48px var(--shadow-medium);
    border-color: var(--accent-primary);
}

.project-carousel {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .carousel-slide img {
    transform: scale(1.05);
}

.carousel-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .carousel-slide::after {
    opacity: 1;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    z-index: 3;
    opacity: 0;
}

.project-card:hover .carousel-nav {
    opacity: 1;
}

.carousel-nav:hover {
    background: rgba(255, 107, 107, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: #4ecdc4;
    transform: scale(1.3);
}

/* Project Content */
.project-content {
    padding: 32px;
}

.project-content a {
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-content a:hover {
    color: var(--accent-primary);
    transform: translateY(-1px);
}

.project-card h3 {
    font-size: 1.375rem;
    margin-bottom: 16px;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}




.project-card p {
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-tag:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
}

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

}

.project-links a {
    color: #4ecdc4;

    font-weight: 500;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.project-links a:hover {
    color: #ff6b6b;
}

/* Placeholder for missing images */
.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.3), rgba(78, 205, 196, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 3rem;
}

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

.social-links {
    display: inline-flex;
    justify-content: center;
    gap: 24px;
    margin-top: 0px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 20px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 56px;
    height: 56px;
}

.social-links a:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 24px var(--shadow-light);
    transform: translateY(-2px);
}

/* Projects Carousel */
.projects-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.projects-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(30, 30, 50, 0.7);
    border: none;
    color: #fff;
    font-size: 2rem;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    transition: background 0.2s, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projects-arrow.left {
    left: 0;
}

.projects-arrow.right {
    right: 0;
}

.projects-arrow:hover {
    background: #4ecdc4;
    color: #0f0f0f;
    transform: translateY(-50%) scale(1.1);
}

/* Hamburger menu icon */
.menu-icon {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 300;
    cursor: pointer;
    margin-right: 0;
    z-index: 1101;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 4px;
    display: none;
    /* Hidden by default, shown on mobile */
    min-width: 44px;
    /* Touch-friendly size */
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-icon:hover {
    color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Show menu icon on mobile */
@media (max-width: 768px) {
    .menu-icon {
        display: flex;
    }
}

/* Sidebar panel styles */
.side-panel {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background: rgba(15, 15, 15, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.3);
    z-index: 1100;
    padding: 60px 32px 32px 32px;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.side-panel.open {
    left: 0;
    animation: slideInLeft 0.3s ease-out;
}

@keyframes slideInLeft {
    from {
        left: -300px;
        opacity: 0;
    }

    to {
        left: 0;
        opacity: 1;
    }
}

.side-panel #close-panel {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 300;
    position: absolute;
    top: 24px;
    right: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 4px;
}

.side-panel #close-panel:hover {
    color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
}

.side-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.side-panel ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    padding: 12px 16px;
    border-radius: 8px;
    display: block;
    border: 1px solid transparent;
}

.side-panel ul li a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

/* Remove special styling for home link - make all links consistent */
.side-panel .home-link {
    /* Remove all special styling to match other links */
}

/* Mobile-specific side panel improvements */
@media (max-width: 768px) {
    .side-panel {
        backdrop-filter: blur(20px);
        background: rgba(15, 15, 15, 0.98);
    }

    .side-panel ul li a {
        transition: all 0.2s ease;
    }

    .side-panel ul li a:active {
        transform: scale(0.98);
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Certificates Section */
.certificates-container {
    max-width: 700px;
    margin: 0 auto;
}

#certificates-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.certificate-card {
    display: flex;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 2px 16px rgba(30, 30, 50, 0.06);
    gap: 28px;
    transition: 0.2s
}

.certificate-card:hover {


    box-shadow: 0px 0px 15px rgb(5, 193, 218);
    transform: scale(1.05);
    transition: 0.2s;
}

.certificate-logo img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 1px 4px rgba(30, 30, 50, 0.07);
}

.certificate-info {
    flex: 1;
}

.certificate-info h4 {
    margin: 0 0 6px 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.certificate-org {
    color: #4ecdc4;
    font-size: 1rem;
    margin-bottom: 4px;
}

.certificate-date {
    color: #bbb;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.certificate-link {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    background: linear-gradient(90deg, #0fcec1 0%, #0a50d3 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    transition: 0.2s;
}

.certificate-link:hover {
    background: rgb(20, 175, 236);
    color: rgb(12, 19, 22);
    box-shadow: 0px 0px 15px rgb(20, 175, 236);
    transform: scale(1.1);
    transition: 0.2s;
}

/* Education Section */
.education-container {
    max-width: 700px;
    margin: 0 auto;
}

#education-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.education-card {
    display: flex;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 2px 16px rgba(30, 30, 50, 0.06);
    gap: 28px;
    transition: 0.2s;
}

.education-card:hover {
    box-shadow: 0px 0px 15px rgb(5, 193, 218);
    transform: scale(1.03);
}

.education-logo img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #eee;
    box-shadow: 0 1px 4px rgba(30, 30, 50, 0.07);
}

.education-info {
    flex: 1;
}

.education-info h4 {
    margin: 0 0 6px 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.education-degree {
    color: #4ecdc4;
    font-size: 1rem;
    margin-bottom: 4px;
}

.education-date {
    color: #bbb;
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.education-skills {
    color: #fff;
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Mobile Navigation - Enhanced */
@media (max-width: 768px) {

    /* Hide desktop navigation on mobile */
    .nav-links {
        display: none;
    }

    /* Show mobile menu icon */
    .menu-icon {
        display: flex;
        font-size: 1.8rem;
        padding: 12px;
        min-width: 48px;
        min-height: 48px;
    }

    nav {
        padding: 12px 16px;
        backdrop-filter: blur(20px);
        background: rgba(10, 10, 10, 0.95);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav.scrolled {
        padding: 8px 16px;
        background: rgba(10, 10, 10, 0.98);
    }

    .nav-container {
        justify-content: space-between;
        max-width: 100%;
    }

    .logo {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }
}

/* Mobile Hero Section - Enhanced */
@media (max-width: 768px) {
    .hero {
        padding: 0 16px;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        max-width: 100%;
        padding: 0;
        width: 100%;
        text-align: center;
    }

    .hero h1 {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
        margin-bottom: 20px;
        line-height: 1.1;
        letter-spacing: 1px;
        word-break: break-word;
    }

    .hero p {
        font-size: 0.85rem;
        margin-bottom: 32px;
        line-height: 1.4;
        letter-spacing: 0.5px;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

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

    .cta-button {
        padding: 14px 20px;
        font-size: 13px;
        width: 100%;
        max-width: 260px;
        text-align: center;
        letter-spacing: 1px;
        border-radius: 6px;
    }

    .cv-download {
        justify-content: center;
        gap: 6px;
    }

    .cv-download i {
        font-size: 12px;
    }
}

/* Mobile About Section - Enhanced */
@media (max-width: 768px) {
    section {
        padding: 60px 16px;
    }

    h2 {
        font-size: clamp(1.2rem, 4vw, 1.6rem);
        margin-bottom: 40px;
        letter-spacing: 1.5px;
        line-height: 1.2;
    }

    .about-content {
        flex-direction: column;
        gap: 32px;
        text-align: center;
        align-items: center;
    }

    .about-text {
        max-width: 100%;
        font-size: 0.9rem;
        line-height: 1.6;
        padding: 0 8px;
    }

    .about-intro h3 {
        font-size: 1rem;
        margin-bottom: 10px;
        line-height: 1.3;
    }

    .about-skills h4,
    .about-philosophy h4,
    .about-passions h4 {
        font-size: 0.85rem;
        margin: 16px 0 6px 0;
        letter-spacing: 0.5px;
    }

    .intro-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .about-intro,
    .about-skills,
    .about-philosophy,
    .about-passions {
        margin-bottom: 20px;
    }

    .profile-glow {
        width: 220px;
        height: 220px;
        margin: 0 auto;
    }

    .about-profile {
        width: 180px;
        height: 180px;
    }
}

/* Mobile Skills Section - Enhanced */
@media (max-width: 768px) {
    .skills {
        flex-direction: column;
        gap: 20px;
        margin-top: 32px;
        padding: 0;
    }

    .skill-group {
        flex: none;
        max-width: 100%;
        min-width: auto;
        padding: 20px 16px;
        border-radius: 10px;
    }

    .skill-group h3 {
        font-size: 1rem;
        margin-bottom: 16px;
        letter-spacing: 0.5px;
    }

    .skill {
        padding: 8px 14px;
        font-size: 0.85rem;
        border-radius: 6px;
        margin-bottom: 8px;
    }

    .skill-list {
        gap: 8px;
        justify-content: center;
    }

    /* Modern browsers with CSS Grid support */
    @supports (display: grid) {
        .skills {
            grid-template-columns: 1fr;
            gap: 20px;
        }
    }
}

/* Mobile Projects Section - Enhanced */
@media (max-width: 768px) {
    .projects-carousel-wrapper {
        padding: 0 8px;
        margin: 0 -8px;
    }

    .projects-arrow {
        display: none;
        /* Hide arrows on mobile for cleaner look */
    }

    .projects-grid {
        gap: 16px;
        padding: 16px 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .projects-grid::-webkit-scrollbar {
        display: none;
    }

    .project-card {
        flex: 0 0 85vw;
        max-width: 85vw;
        scroll-snap-align: center;
        border-radius: 12px;
    }

    .project-carousel {
        height: 180px;
        border-radius: 12px 12px 0 0;
    }

    .project-content {
        padding: 20px 16px;
    }

    .project-content h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
        line-height: 1.3;
    }

    .project-content a {
        font-size: 1.1rem;
    }

    .tech-tag {
        padding: 5px 10px;
        font-size: 0.75rem;
        border-radius: 4px;
        margin-bottom: 4px;
    }

    .project-tech-stack {
        gap: 6px;
        margin-bottom: 16px;
    }
}

/* Mobile Contact Section - Enhanced */
@media (max-width: 768px) {
    .contact-content {
        padding: 0 16px;
    }

    .social-links {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
    }

    .social-links a {
        width: 48px;
        height: 48px;
        font-size: 16px;
        padding: 10px;
        border-radius: 10px;
        transition: all 0.2s ease;
    }

    .social-links a:active {
        transform: scale(0.95);
    }
}

/* Mobile Typography and Spacing - Enhanced */
@media (max-width: 768px) {
    body {
        font-size: 14px;
        line-height: 1.5;
    }

    .site-footer {
        padding: 24px 16px 20px 16px;
        font-size: 0.8rem;
        margin-top: 40px;
        text-align: center;
        line-height: 1.4;
    }

    /* Music toggle button */
    #music-toggle {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
        border-radius: 50%;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    }

    /* Improve overall spacing */
    * {
        -webkit-tap-highlight-color: transparent;
    }

    /* Better focus states for accessibility */
    .cta-button:focus,
    .social-links a:focus,
    .menu-icon:focus {
        outline: 2px solid var(--accent-primary);
        outline-offset: 2px;
    }
}

/* Small Mobile Devices - Enhanced */
@media (max-width: 480px) {
    nav {
        padding: 10px 12px;
    }

    .logo {
        font-size: 0.85rem;
        letter-spacing: 0.5px;
    }

    .menu-icon {
        font-size: 1.6rem;
        padding: 10px;
        min-width: 44px;
        min-height: 44px;
    }

    section {
        padding: 50px 12px;
    }

    .hero {
        padding: 0 12px;
    }

    .hero h1 {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
        margin-bottom: 16px;
        letter-spacing: 0.5px;
    }

    .hero p {
        font-size: 0.8rem;
        margin-bottom: 28px;
        max-width: 240px;
    }

    .hero-buttons {
        margin-top: 20px;
        gap: 10px;
    }

    .cta-button {
        padding: 12px 18px;
        font-size: 12px;
        max-width: 240px;
        letter-spacing: 0.5px;
    }

    h2 {
        font-size: clamp(1.1rem, 3.5vw, 1.4rem);
        margin-bottom: 32px;
        letter-spacing: 1px;
    }

    .about-text {
        font-size: 0.85rem;
        padding: 0 4px;
    }

    .about-intro h3 {
        font-size: 0.95rem;
    }

    .about-skills h4,
    .about-philosophy h4,
    .about-passions h4 {
        font-size: 0.8rem;
    }

    .profile-glow {
        width: 180px;
        height: 180px;
    }

    .about-profile {
        width: 150px;
        height: 150px;
    }

    .skill-group {
        padding: 16px 12px;
        border-radius: 8px;
    }

    .skill-group h3 {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .skill {
        padding: 6px 12px;
        font-size: 0.8rem;
        border-radius: 4px;
    }

    .project-card {
        flex: 0 0 92vw;
        max-width: 92vw;
        border-radius: 10px;
    }

    .project-carousel {
        height: 160px;
        border-radius: 10px 10px 0 0;
    }

    .project-content {
        padding: 16px 12px;
    }

    .project-content h3 {
        font-size: 1rem;
        margin-bottom: 8px;
    }

    .tech-tag {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    .social-links {
        gap: 12px;
    }

    .social-links a {
        width: 44px;
        height: 44px;
        font-size: 15px;
        padding: 8px;
    }

    #music-toggle {
        bottom: 12px;
        right: 12px;
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }

    .site-footer {
        padding: 20px 12px 16px 12px;
        font-size: 0.75rem;
        margin-top: 32px;
    }
}

/* Additional Mobile Optimizations - Enhanced */
@media (max-width: 768px) {

    /* Improve touch targets */
    .cta-button,
    .social-links a,
    .carousel-nav,
    .projects-arrow,
    .menu-icon {
        min-height: 44px;
        min-width: 44px;
    }

    /* Better scrolling on mobile */
    .projects-grid {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        overscroll-behavior-x: contain;
    }

    /* Improve carousel touch interactions */
    .carousel-container {
        touch-action: pan-x;
    }

    /* Better spacing for mobile */
    .about-intro,
    .about-skills,
    .about-philosophy,
    .about-passions {
        margin-bottom: 20px;
    }

    /* Improve side panel for mobile */
    .side-panel {
        width: 100vw;
        max-width: 280px;
        padding: 70px 20px 24px 20px;
    }

    .side-panel ul li a {
        padding: 14px 16px;
        font-size: 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        border-radius: 6px;
    }

    /* Prevent horizontal scroll */
    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    /* Better image handling */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Improve button interactions */
    .cta-button:active,
    .social-links a:active {
        transform: scale(0.98);
    }

    /* Better focus management */
    .menu-icon:focus-visible {
        outline: 2px solid var(--accent-primary);
        outline-offset: 2px;
    }
}

/* Landscape mobile orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 20px;
    }

    .hero h1 {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 16px;
    }

    .hero p {
        margin-bottom: 24px;
    }

    .hero-buttons {
        flex-direction: row;
        gap: 16px;
        margin-top: 20px;
    }

    .cta-button {
        max-width: 200px;
    }

    section {
        padding: 60px 20px;
    }

    h2 {
        margin-bottom: 40px;
    }
}

/* High DPI mobile devices */
@media (-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi) {

    .about-profile,
    .carousel-slide img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 360px) {
    nav {
        padding: 8px 10px;
    }

    .logo {
        font-size: 0.8rem;
    }

    .menu-icon {
        font-size: 1.4rem;
        padding: 8px;
        min-width: 40px;
        min-height: 40px;
    }

    section {
        padding: 40px 10px;
    }

    .hero {
        padding: 0 10px;
    }

    .hero h1 {
        font-size: clamp(1.2rem, 5vw, 1.6rem);
        margin-bottom: 14px;
    }

    .hero p {
        font-size: 0.75rem;
        margin-bottom: 24px;
        max-width: 220px;
    }

    .cta-button {
        padding: 10px 16px;
        font-size: 11px;
        max-width: 220px;
    }

    h2 {
        font-size: clamp(1rem, 3vw, 1.3rem);
        margin-bottom: 28px;
    }

    .about-text {
        font-size: 0.8rem;
        padding: 0 2px;
    }

    .profile-glow {
        width: 160px;
        height: 160px;
    }

    .about-profile {
        width: 130px;
        height: 130px;
    }

    .skill-group {
        padding: 14px 10px;
    }

    .skill {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .project-card {
        flex: 0 0 90vw;
        max-width: 90vw;
    }

    .project-carousel {
        height: 140px;
    }

    .project-content {
        padding: 14px 10px;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 14px;
        padding: 6px;
    }

    #music-toggle {
        bottom: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* Very Large Mobile Devices / Small Tablets */
@media (min-width: 481px) and (max-width: 768px) {
    .hero h1 {
        font-size: clamp(1.8rem, 6vw, 2.4rem);
    }

    .hero p {
        font-size: 0.9rem;
        max-width: 300px;
    }

    .cta-button {
        max-width: 280px;
    }

    .about-text {
        font-size: 0.95rem;
    }

    .profile-glow {
        width: 240px;
        height: 240px;
    }

    .about-profile {
        width: 190px;
        height: 190px;
    }

    .project-card {
        flex: 0 0 80vw;
        max-width: 80vw;
    }
}

@media (max-width: 900px) {
    .project-card {
        flex: 0 0 80vw;
        max-width: 95vw;
    }

    .projects-grid {
        gap: 20px;
        padding: 20px;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.site-footer {
    width: 100%;
    text-align: center;
    padding: 40px 0 32px 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    background: transparent;
    letter-spacing: 0.5px;
    margin-top: 80px;
    border-top: 1px solid var(--border-color);
}
