:root {
    --color-background: #0a0a0f;
    --color-surface: #12121a;
    --color-text: #f5f5f7;
    --color-text-secondary: #a1a1aa;
    --color-primary: #6366f1;
    --color-primary-hover: #818cf8;
    --color-border: rgba(99, 102, 241, 0.2);
    --color-card-border: rgba(99, 102, 241, 0.15);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
    --gradient-accent: linear-gradient(135deg, #f472b6 0%, #c084fc 50%, #818cf8 100%);
    --glow-primary: 0 0 20px rgba(99, 102, 241, 0.5), 0 0 40px rgba(168, 85, 247, 0.3);
    --glow-secondary: 0 0 20px rgba(6, 182, 212, 0.5), 0 0 40px rgba(59, 130, 246, 0.3);
}

/* Announcement Banner */
.announcement-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 12px 0;
    z-index: 1001;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    display: block;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.announcement-banner:hover {
    transform: scale(1.01);
}

.announcement-content {
    display: flex;
    white-space: nowrap;
    animation: scrollBanner 20s linear infinite;
}

.announcement-text {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    padding: 0 50px;
    letter-spacing: 0.5px;
}

@keyframes scrollBanner {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Particle Canvas */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.08) 30%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1;
    transition: opacity 0.3s ease;
    mix-blend-mode: screen;
}

/* Animated Background Gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 60%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
    animation: gradientShift 15s ease-in-out infinite alternate;
}

@keyframes gradientShift {
    0% {
        opacity: 1;
        background: 
            radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
            radial-gradient(ellipse at 80% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
            radial-gradient(ellipse at 40% 60%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
    }
    100% {
        opacity: 1;
        background: 
            radial-gradient(ellipse at 80% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
            radial-gradient(ellipse at 20% 70%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
            radial-gradient(ellipse at 60% 40%, rgba(236, 72, 153, 0.08) 0%, transparent 50%);
    }
}

/* Floating Social Icons */
.floating-social-icons {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1001;
    background: rgba(18, 18, 26, 0.6);
    backdrop-filter: blur(20px);
    padding: 16px 12px;
    border-radius: 50px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: var(--glow-primary);
    transition: all 0.3s ease;
}

.floating-social-icons:hover {
    background: rgba(18, 18, 26, 0.8);
    box-shadow: 0 8px 40px rgba(99, 102, 241, 0.4);
    border-color: rgba(99, 102, 241, 0.4);
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f5f5f7;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.15);
    box-shadow: 0 5px 25px rgba(99, 102, 241, 0.5);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.social-icon i {
    position: relative;
    z-index: 1;
}

body.scrolled .floating-social-icons {
    background: rgba(18, 18, 26, 0.9);
    border-color: rgba(99, 102, 241, 0.3);
}

body.scrolled .social-icon {
    color: #f5f5f7;
    background: rgba(99, 102, 241, 0.15);
}

body.scrolled .social-icon:hover {
    color: #ffffff;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .floating-social-icons {
        top: auto;
        bottom: 20px;
        left: auto;
        right: 20px;
        transform: none;
        flex-direction: row;
        padding: 10px 14px;
    }
    
    .social-icon {
        width: 42px;
        height: 42px;
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-background: #0a0a0f;
        --color-surface: #12121a;
        --color-text: #f5f5f7;
        --color-text-secondary: #a1a1aa;
        --color-primary: #6366f1;
        --color-primary-hover: #818cf8;
        --color-border: rgba(99, 102, 241, 0.2);
        --color-card-border: rgba(99, 102, 241, 0.15);
    }
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    padding-top: 120px;
}

/* Selection styling */
::selection {
    background: rgba(99, 102, 241, 0.3);
    color: #fff;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* Navigation */
nav {
    position: fixed;
    top: 48px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.7);
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    padding: 1rem 2rem;
    z-index: 1000;
    backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

body.scrolled nav {
    background: rgba(10, 10, 15, 0.95);
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 4px 30px rgba(99, 102, 241, 0.1);
}

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

nav .logo {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
    z-index: 1001;
    position: relative;
}

nav .logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

nav .logo:hover::after {
    transform: scaleX(1);
}

body.scrolled nav .logo {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

body.scrolled .hamburger span {
    background: var(--gradient-primary);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-social-icons {
    display: none;
}

@media (max-width: 768px) {
    .nav-social-icons {
        display: flex !important;
    }
}

nav a {
    color: #a1a1aa;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

nav a:hover {
    color: #f5f5f7;
}

nav a:hover::after {
    transform: scaleX(1);
}

body.scrolled nav a {
    color: #a1a1aa;
}

body.scrolled nav a:hover {
    color: #f5f5f7;
}

nav a.active {
    color: #f5f5f7;
}

nav a.active::after {
    transform: scaleX(1);
}

/* Parallax Section */
/* Parallax Section */
.parallax-section {
    position: relative;
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0;
    /* Add these overrides */
    max-width: none !important;
    padding: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Gradient overlay for hero */
.parallax-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, var(--color-background) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

/* Setup Scene with Background Image */
.setup-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

/* Animated border glow for hero */
.setup-scene::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid transparent;
    background: linear-gradient(var(--color-background), var(--color-background)) padding-box,
                var(--gradient-primary) border-box;
    opacity: 0;
    animation: borderGlow 3s ease-in-out infinite;
    z-index: 3;
    pointer-events: none;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.3; }
}


.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    z-index: 0;
}



body.scrolled .hero-image {
    opacity: 0;
}

/* Hero Content Animations */
.hero-content {
    display: none;
}

/* Standalone Scroll Indicator for Mobile */
.hero-scroll-mobile {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    margin-top: -3rem;
    background: rgba(18, 18, 26, 0.5);
    padding: 1rem 2rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.hero-scroll-mobile:hover {
    transform: translate(-50%, -50%) translateY(5px);
    margin-top: -3rem;
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: var(--glow-primary);
}

.hero-scroll-mobile .scroll-arrow {
    font-size: 2rem;
    animation: bounce 2s infinite;
    display: block;
    margin-top: 0.5rem;
}

/* Hero Resume Buttons */
.hero-resume-buttons {
    position: absolute;
    bottom: 8rem;
    right: 3rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 0.8s forwards;
    opacity: 0;
}

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

.hero-resume-btn {
    background: rgba(18, 18, 26, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-resume-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.4s ease;
    z-index: -1;
}

.hero-resume-btn:hover::before {
    left: 0;
}

.hero-resume-btn:hover {
    border-color: rgba(99, 102, 241, 0.6);
    transform: translateY(-4px);
    box-shadow: var(--glow-primary);
}

.hero-resume-btn span {
    position: relative;
    z-index: 1;
}


@keyframes fadeInContent {
    to {
        opacity: 1;
    }
}

body.scrolled .hero-content {
    transform: translateY(-100px);
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Glitch Effect for Name */
.glitch {
    position: relative;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.8),
                 0 0 60px rgba(0, 0, 0, 0.6),
                 4px 4px 20px rgba(0, 0, 0, 0.9),
                 0 0 10px rgba(255, 255, 255, 0.3);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 2.5s infinite;
    color: #00f2fe;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 2.5s infinite;
    color: #f093fb;
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(-2px, 2px); }
}

.subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.9),
                 0 0 20px rgba(0, 0, 0, 0.7);
    font-weight: 300;
    letter-spacing: 2px;
}

.intro-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 2px 2px 12px rgba(0, 0, 0, 0.9),
                 0 0 15px rgba(0, 0, 0, 0.7);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Scroll Indicator */
.scroll-indicator {
    margin-top: 3rem;
    cursor: pointer;
    transition: transform 0.3s;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.scroll-indicator:hover {
    transform: translateY(5px);
}


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

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Section Styles */
section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
    position: relative;
    z-index: 1;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

section h2 {
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    width: 100%;
}

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

/* Projects Section */
#projects {
    opacity: 0;
    transform: scale(0.95) translateY(100px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

body.scrolled #projects {
    opacity: 1;
    transform: scale(1) translateY(0);
}

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

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

.project-card {
    background: rgba(18, 18, 26, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.1);
    background-clip: padding-box;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 1px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 0;
}

.project-card:hover::after {
    width: 400%;
    height: 400%;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--glow-primary);
    border-color: rgba(99, 102, 241, 0.3);
}

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

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

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

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

.project-card:nth-child(2) .project-image {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.project-card:nth-child(3) .project-image {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.project-card:nth-child(4) .project-image {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.project-card:nth-child(5) .project-image {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.project-card:nth-child(6) .project-image {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.project-card:nth-child(7) .project-image {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.project-card:nth-child(8) .project-image {
    background: linear-gradient(135deg, #fc466b 0%, #3f5efb 100%);
}

.project-card:nth-child(9) .project-image {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}

.project-card:nth-child(10) .project-image {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.project-card:nth-child(11) .project-image {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}

.project-image::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.6s;
}

.project-card:hover .project-image::after {
    opacity: 1;
    transform: translate(25%, 25%);
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.project-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
    transition: all 0.3s ease;
    position: relative;
    font-weight: 600;
}

.project-card:hover .project-content h3 {
    transform: translateX(4px);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.project-content p {
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    flex: 1;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    line-height: 1.7;
}

.project-card:hover .project-content p {
    color: var(--color-text);
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.tag {
    padding: 0.3rem 0.85rem;
    background: rgba(99, 102, 241, 0.1);
    color: #a5b4fc;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s;
    font-family: 'Fira Code', monospace;
}

.tag:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.4);
}

.project-card:hover .tag {
    animation: tagPulse 0.6s ease-in-out;
}

@keyframes tagPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.project-links {
    margin-top: 0.75rem;
    text-align: center;
}

.project-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 50%;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
}

.project-link:hover::before {
    width: 100%;
    height: 100%;
}

.project-link:hover {
    transform: translateY(-4px) scale(1.15) rotate(360deg);
    box-shadow: var(--glow-primary);
}

.project-link i {
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: scale(1.1);
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: rgba(18, 18, 26, 0.6);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: translateX(-100%);
    transition: transform 0.4s;
}

.skill-category::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: all 0.6s;
    pointer-events: none;
}

.skill-category:hover::before {
    transform: translateX(0);
}

.skill-category:hover::after {
    opacity: 1;
    transform: translate(25%, 25%);
}

.skill-category:hover {
    transform: translateY(-8px);
    box-shadow: var(--glow-primary);
    border-color: rgba(99, 102, 241, 0.3);
}

.skill-category h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    position: relative;
    transition: all 0.3s;
    font-weight: 600;
}

.skill-category:hover h3 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.75rem 0;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    transform-origin: left;
    font-size: 0.95rem;
}

.skill-category li:hover {
    color: var(--color-text);
    transform: translateX(10px);
}

.skill-category li:before {
    content: '▹';
    color: #6366f1;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 0.8rem;
}

.skill-category li:hover:before {
    transform: scale(1.3);
    color: #a855f7;
}

/* About Section */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-image {
    flex: 0 0 350px;
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: var(--gradient-primary);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.5;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.3; }
}

.about-image img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--glow-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 4px solid transparent;
    background: linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
                var(--gradient-primary) border-box;
    position: relative;
    z-index: 1;
}

.about-image img:hover {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.5);
}

.about-text {
    flex: 1;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.9;
    text-align: left;
}

.about-text p:first-child {
    font-size: 1.25rem;
    color: var(--color-text);
    font-weight: 500;
}

.resume-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.resume-btn {
    background: var(--gradient-primary);
    padding: 1rem 2rem;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.resume-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    transition: left 0.4s ease;
    z-index: 0;
}

.resume-btn:hover::before {
    left: 0;
}

.resume-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--glow-primary);
}

/* Contact Section */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(18, 18, 26, 0.6);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    backdrop-filter: blur(10px);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--color-text);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    background: rgba(10, 10, 15, 0.6);
    color: var(--color-text);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15), var(--glow-primary);
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #52525b;
}

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

/* Button */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    transition: left 0.4s;
}

.btn:hover::before {
    left: 0;
}

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

.btn span {
    position: relative;
    z-index: 1;
}

/* Footer */
footer {
    background: rgba(18, 18, 26, 0.8);
    border-top: 1px solid rgba(99, 102, 241, 0.1);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-text {
    font-size: 1rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.footer-text .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.footer-copyright {
    font-size: 0.9rem;
    color: #52525b;
}

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

.social-links a {
    color: var(--color-text-secondary);
    font-size: 1.5rem;
    transition: color 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a i {
    font-size: 1.8rem;
}

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

/* Resume Dropdown */
.resume-dropdown {
    position: relative;
    display: inline-block;
}

.resume-icon {
    color: var(--color-text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.resume-icon i {
    font-size: 1.8rem;
}

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

.resume-dropdown-content {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-surface);
    min-width: 160px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    z-index: 1;
    margin-bottom: 0.5rem;
    overflow: hidden;
    border: 1px solid var(--color-border);
}

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

.resume-dropdown-content a {
    color: var(--color-text);
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.resume-dropdown-content a:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    color: var(--color-primary);
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

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

/* Tablet Responsive (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    nav .container {
        padding: 0 1.5rem;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .glitch {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.3rem;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        gap: 2rem;
    }

    .about-image {
        flex: 0 0 300px;
    }

    .about-image img {
        width: 300px;
        height: 300px;
    }

    section {
        padding: 4rem 2rem;
    }
}

/* Mobile Responsive (max-width: 768px) */
@media (max-width: 768px) {
    /* Navigation */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.98);
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
        gap: 0;
        backdrop-filter: blur(20px);
        border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    }

    body.scrolled .nav-menu {
        background: rgba(10, 10, 15, 0.98);
    }

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

    .nav-menu li {
        margin: 0;
    }

    .nav-menu a {
        color: #a1a1aa;
        padding: 1rem;
        display: block;
        font-size: 1.1rem;
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-menu a:hover {
        background: rgba(99, 102, 241, 0.1);
        color: #f5f5f7;
    }

    body.scrolled .nav-menu a {
        color: #a1a1aa;
    }

    .nav-social-icons {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        padding: 1.5rem 0;
        border-top: 1px solid rgba(99, 102, 241, 0.2);
        margin-top: 1rem;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        list-style: none;
    }

    .nav-social-link {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 45px;
        height: 45px;
        border-radius: 50%;
        background: var(--gradient-primary);
        color: white !important;
        transition: all 0.3s ease;
        flex-shrink: 0;
        padding: 0;
    }

    .nav-social-link:hover {
        transform: translateY(-3px) scale(1.1);
        box-shadow: var(--glow-primary);
    }

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

    .floating-social-icons {
        display: none;
    }

    /* Cursor glow */
    .cursor-glow {
        display: none;
    }

    /* Hero Section */
    .hero-content {
        margin-top: 80px;
        padding: 1.5rem;
    }

    .glitch {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.1rem;
        letter-spacing: 1px;
    }

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

    .scroll-indicator {
        margin-top: 2rem;
        font-size: 0.9rem;
    }

    /* Sections */
    section {
        padding: 3rem 1.5rem;
    }

    section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-card {
        transform: none;
    }

    .project-card:hover {
        transform: translateY(-8px) scale(1.01);
    }

    .project-content h3 {
        font-size: 1.3rem;
    }

    .project-content p {
        font-size: 0.95rem;
    }

    /* Skills */
    .skills-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-category {
        padding: 1.5rem;
    }

    .skill-category h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .skill-category li {
        font-size: 0.95rem;
        padding: 0.6rem 0;
    }

    /* About Section */
    .about-content {
        flex-direction: column;
        gap: 2rem;
    }

    .about-image {
        flex: 0 0 auto;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .about-image img {
        width: 280px;
        height: 280px;
    }

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

    .about-text p {
        text-align: center;
        font-size: 1rem;
    }

    .resume-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .resume-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    /* Contact Form */
    .contact-form {
        padding: 0 0.5rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Hero Resume Buttons */
    .hero-resume-buttons {
        bottom: 5rem;
        right: 1.25rem;
        left: 1.25rem;
        flex-direction: row;
        gap: 0.75rem;
        align-items: center;
        justify-content: center;
    }

    .hero-resume-btn {
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
        flex: 1;
        max-width: 180px;
        background: rgba(18, 18, 26, 0.7);
        backdrop-filter: blur(15px);
        border: 1px solid rgba(99, 102, 241, 0.3);
    }

    .hero-resume-btn:hover {
        background: rgba(99, 102, 241, 0.3);
    }

    /* Show mobile scroll indicator */
    .hero-scroll-mobile {
        display: block;
    }

    /* Footer */
    footer {
        padding: 1.5rem;
        font-size: 0.9rem;
    }

    /* Modal */
    .modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 1rem;
    }

    .modal-header {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem 1rem;
    }

    .modal-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .modal-title {
        font-size: 1.4rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-description {
        font-size: 0.95rem;
    }

    .modal-details h3,
    .modal-tech h3 {
        font-size: 1.1rem;
    }

    .modal-features li {
        font-size: 0.9rem;
    }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    nav .logo {
        font-size: 1.3rem;
    }

    .glitch {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .intro-text {
        font-size: 0.9rem;
    }

    section {
        padding: 2.5rem 1rem;
    }

    section h2 {
        font-size: 1.75rem;
    }

    .project-content h3 {
        font-size: 1.2rem;
    }

    .project-content p {
        font-size: 0.9rem;
    }

    .tag {
        font-size: 0.8rem;
        padding: 0.2rem 0.6rem;
    }

    .about-image {
        max-width: 240px;
    }

    .about-image img {
        width: 240px;
        height: 240px;
    }

    .hero-resume-buttons {
        bottom: 4.5rem;
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-resume-btn {
        font-size: 0.85rem;
        padding: 0.875rem 1rem;
        flex: none;
        width: 100%;
        max-width: 280px;
    }

    .hero-resume-btn span {
        white-space: nowrap;
    }

    .floating-social-icons {
        gap: 8px;
        padding: 6px 10px;
        bottom: 15px;
        right: 15px;
        left: auto;
    }

    .social-icon {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.modal-content {
    background: rgba(18, 18, 26, 0.95);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 24px;
    max-width: 700px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--glow-primary);
    backdrop-filter: blur(20px);
}

.modal-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    z-index: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    line-height: 1;
    padding: 0;
}

.modal-close:hover {
    color: var(--color-text);
    background: rgba(99, 102, 241, 0.2);
    transform: rotate(90deg);
}

.modal-header {
    padding: 2.5rem 2rem 1.5rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.modal-icon {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 16px;
    flex-shrink: 0;
    overflow: hidden;
}

.modal-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-title {
    font-size: 1.8rem;
    margin: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-body {
    padding: 2rem;
}

.modal-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
}

.modal-details h3,
.modal-tech h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--color-text);
    font-weight: 600;
}

.modal-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.modal-features li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.modal-features li:before {
    content: '▹';
    position: absolute;
    left: 0;
    color: #6366f1;
    font-weight: bold;
}

.modal-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.modal-tags .tag {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .modal-header {
        flex-direction: column;
        text-align: center;
    }

    .modal-title {
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
    }
}