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

:root {
    --primary-color: #4F9CF9;
    --primary-blue: #4F9CF9;
    --secondary-blue: #7AB8FF;
    --light-blue: #A5D5FF;
    --bright-blue: #2E7CE8;
    --bg-card: rgba(79, 156, 249, 0.08);
    --bg-card-dark: rgba(79, 156, 249, 0.12);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-light: #ffffff;
    --glass-bg: rgba(0, 0, 0, 0.6);
    --glass-border: rgba(79, 156, 249, 0.3);
    --shadow-sm: 0 2px 8px rgba(79, 156, 249, 0.15);
    --shadow-md: 0 4px 16px rgba(79, 156, 249, 0.2);
    --shadow-lg: 0 12px 32px rgba(79, 156, 249, 0.3);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
    
    * {
        scroll-behavior: smooth;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
    background: #000000;
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

/* Dark gradient with pure blue glow */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(79, 156, 249, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(122, 184, 255, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(46, 124, 232, 0.04) 0%, transparent 50%);
    animation: gradientShift 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -3;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    z-index: 1000;
}

.nav-pill {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    width: calc(100% - 80px);
    max-width: 600px;
    margin: 0 auto;
    padding: 0.4rem 0.9rem;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid rgba(79, 156, 249, 0.3);
    border-radius: 56px;
    box-shadow: 0 4px 20px rgba(79, 156, 249, 0.3), 0 0 40px rgba(79, 156, 249, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Nav animation on scroll */
.nav.scrolled .nav-pill {
    background: rgba(0, 0, 0, 0.95);
    box-shadow: 0 8px 32px rgba(79, 156, 249, 0.4), 0 0 60px rgba(79, 156, 249, 0.2);
    border-color: rgba(79, 156, 249, 0.5);
}

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

.nav-center { display: flex; justify-content: center; }
.nav-right { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.nav-time { color: var(--text-secondary); font-size: 0.9rem; }
.nav-icon { color: var(--text-primary); text-decoration: none; opacity: 0.8; }
.nav-icon:hover { opacity: 1; }

.menu-toggle, .menu-close {
    border: 1px solid rgba(79, 156, 249, 0.4);
    background: rgba(79, 156, 249, 0.1);
    color: var(--text-primary);
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    /* Better touch targets */
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.menu-toggle:hover, .menu-close:hover {
    background: rgba(79, 156, 249, 0.2);
    border-color: rgba(79, 156, 249, 0.6);
    box-shadow: 0 0 20px rgba(79, 156, 249, 0.3);
}
.menu-toggle:active, .menu-close:active {
    background: rgba(79, 156, 249, 0.3);
    transform: scale(0.95);
}

.nav-logo {
    font-size: 1.1rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, #ffffff 0%, #8FC7FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    padding: 0.3rem 0.6rem;
    border: 2px solid rgba(79, 156, 249, 0.3);
    border-radius: 8px;
}

.nav-logo:hover {
    border-color: rgba(79, 156, 249, 0.6);
    box-shadow: 0 0 15px rgba(79, 156, 249, 0.4);
    transform: scale(1.05);
}

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

.nav-menu li {
    position: relative;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9375rem;
    padding: 0;
    transition: all 0.2s ease;
    position: relative;
    letter-spacing: 0;
    margin: 0 1.5rem;
    display: block;
}

.nav-link:hover {
    color: #4F9CF9;
}

.nav-link:last-child {
    margin-right: 0;
}

/* Side menu */
.menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.menu-backdrop.open { opacity: 1; pointer-events: auto; }

.side-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 360px;
    max-width: 90vw;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(79, 156, 249, 0.4);
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 30px rgba(79, 156, 249, 0.4), 0 0 60px rgba(79, 156, 249, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
    z-index: 1100;
    overflow-y: auto;
}
.side-menu.open { transform: translateX(0); }
.menu-close { margin-bottom: 2rem; }
.side-menu-links { display: flex; flex-direction: column; gap: 1.25rem; margin-bottom: 2rem; }
.side-link { 
    text-decoration: none; 
    color: var(--text-primary); 
    font-size: 2rem; 
    line-height: 1.1; 
    padding: 0.5rem 0;
    display: block;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}
.side-link:hover { color: #4F9CF9; }
.side-link:active { 
    color: #4F9CF9; 
    transform: translateX(5px);
}
.side-menu-group { margin-top: 1rem; }
.side-menu-label { color: var(--text-secondary); font-weight: 600; margin-bottom: 1rem; }
.side-tags { display: flex; flex-direction: column; gap: 0.75rem; }
.side-tag { text-decoration: none; color: var(--text-primary); background: #efefef; border-radius: 999px; padding: 0.5rem 1rem; width: fit-content; }
.side-tag:hover { background: #e6e6e6; }

body.menu-open { overflow: hidden; }

/* Navigation responsive styles moved to unified responsive section at bottom */

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
    padding-top: 6rem;
    overflow: hidden;
    background: transparent;
}

/* Animated gradient overlay for hero - pure blue tones */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 30% 40%, rgba(79, 156, 249, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(122, 184, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 80%, rgba(46, 124, 232, 0.06) 0%, transparent 40%);
    animation: heroGradientShift 12s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

@keyframes heroGradientShift {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(15px, -15px) scale(1.03);
        opacity: 0.7;
    }
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 900px;
    position: relative;
}

.hero-title {
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.05;
    color: #ffffff;
    letter-spacing: -0.03em;
    position: relative;
    padding-right: 0.1em;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: dropDown 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

/* Drop down reveal effect */
@keyframes dropDown {
    0% {
        transform: translateY(-100px);
        opacity: 0;
        filter: blur(10px);
    }
    60% {
        transform: translateY(10px);
        filter: blur(2px);
    }
    100% {
        transform: translateY(0);
        opacity: 1;
        filter: blur(0);
    }
}

/* Subtle blue glow effect behind text */
.hero-title::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(79, 156, 249, 0.4) 0%, transparent 70%);
    filter: blur(30px);
    z-index: -1;
    animation: glowPulse 3s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Hero title hover effect removed for cleaner design */

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.hero-subtitle:hover {
    color: rgba(255, 255, 255, 0.9);
}

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

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

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

.hero-scroll {
    margin-top: 4rem;
    animation: bounce 2s infinite;
}

.scroll-indicator {
    width: 2px;
    height: 30px;
    background: linear-gradient(180deg, #4F9CF9, #5BA3FF);
    margin: 0 auto;
    opacity: 0.8;
    box-shadow: 0 0 10px rgba(79, 156, 249, 0.5);
}

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

/* Floating Shapes */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #2E7CE8, #4F9CF9);
    opacity: 0.12;
    filter: blur(100px);
    animation: pulsate 8s ease-in-out infinite;
}

.shape-1 {
    width: 500px;
    height: 500px;
    top: 10%;
    left: 10%;
    animation: float-shape 20s ease-in-out infinite, pulsate 8s ease-in-out infinite;
    background: linear-gradient(135deg, #2E7CE8 0%, #4F9CF9 50%, #4F9CF9 100%);
}

.shape-2 {
    width: 600px;
    height: 600px;
    top: 50%;
    right: 10%;
    animation: float-shape 25s ease-in-out infinite reverse, pulsate 10s ease-in-out infinite 2s;
    background: linear-gradient(135deg, #4F9CF9 0%, #4F9CF9 50%, #2E7CE8 100%);
}

.shape-3 {
    width: 450px;
    height: 450px;
    bottom: 10%;
    left: 30%;
    animation: float-shape 18s ease-in-out infinite, pulsate 12s ease-in-out infinite 4s;
    background: linear-gradient(135deg, #4F9CF9 0%, #2E7CE8 50%, #2563EB 100%);
}

/* Right side blue glow */
.shape-4 {
    width: 400px;
    height: 600px;
    top: 30%;
    right: -100px;
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, #4F9CF9 0%, #7AB8FF 50%, #A5D5FF 100%);
    opacity: 0.25;
    filter: blur(120px);
    animation: rightGlow 15s ease-in-out infinite, pulsate 10s ease-in-out infinite 3s;
}

@keyframes rightGlow {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.25;
    }
    50% {
        transform: translateY(30px) scale(1.15);
        opacity: 0.35;
    }
}

@keyframes float-shape {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.25;
    }
    33% {
        transform: translate(40px, -40px) scale(1.2) rotate(120deg);
        opacity: 0.35;
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9) rotate(240deg);
        opacity: 0.2;
    }
}

@keyframes pulsate {
    0%, 100% {
        filter: blur(100px) brightness(1.2);
        opacity: 0.15;
    }
    50% {
        filter: blur(120px) brightness(1.6);
        opacity: 0.25;
    }
}

/* Sections */
.section {
    padding: 8rem 2rem;
    position: relative;
    background: transparent;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.02;
    pointer-events: none;
    z-index: 0;
    background-size: cover;
    background-position: center;
}

/* About Section */
.about::before {
    background:
        radial-gradient(circle at 30% 50%, rgba(79, 156, 249, 0.08), transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(122, 184, 255, 0.06), transparent 50%),
        radial-gradient(circle at 50% 30%, rgba(165, 213, 255, 0.04), transparent 50%);
    animation: sectionPulse 10s ease-in-out infinite alternate;
}

/* Experience Section */
.experience::before {
    display: none; /* Background handled by blocks */
}

/* Projects Section */
.projects {
    background: transparent;
}

.projects::before {
    background:
        radial-gradient(circle at 50% 50%, rgba(79, 156, 249, 0.08), transparent 60%),
        radial-gradient(circle at 20% 20%, rgba(122, 184, 255, 0.06), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(165, 213, 255, 0.04), transparent 50%);
    animation: sectionPulse 12s ease-in-out infinite alternate-reverse;
}

/* Blog Section */
.blog::before {
    background:
        radial-gradient(circle at 70% 40%, rgba(79, 156, 249, 0.08), transparent 50%),
        radial-gradient(circle at 30% 80%, rgba(122, 184, 255, 0.06), transparent 50%);
    animation: sectionPulse 14s ease-in-out infinite alternate;
}

/* Contact Section */
.contact::before {
    background:
        radial-gradient(circle at 50% 30%, rgba(79, 156, 249, 0.1), transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(122, 184, 255, 0.08), transparent 50%);
    animation: sectionPulse 16s ease-in-out infinite alternate-reverse;
}

@keyframes sectionPulse {
    0% {
        opacity: 0.02;
        transform: scale(1);
    }
    100% {
        opacity: 0.06;
        transform: scale(1.05);
    }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: clamp(3rem, 8vw, 6rem);
    text-align: center;
    margin-bottom: 6rem;
    color: var(--text-primary);
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease, opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: translateY(40px);
    line-height: 1.1;
    position: relative;
    z-index: 1;
}

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

.section-title:hover {
    background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 8px rgba(79, 156, 249, 0.5));
    transform: translateY(-2px);
}

.section-title.visible:hover {
    transform: translateY(-2px);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: rgba(79, 156, 249, 0.05);
    border: 1px solid rgba(79, 156, 249, 0.2);
    border-radius: 24px;
    padding: 3rem;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: translateY(40px);
    backdrop-filter: blur(20px);
}

.about-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 156, 249, 0.05), rgba(122, 184, 255, 0.05));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

/* Animated gradient border on hover */
.about-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #4F9CF9, #5BA3FF, #8FC7FF, #4F9CF9);
    background-size: 400% 400%;
    border-radius: 24px;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.6s ease;
    animation: gradientBorder 8s ease infinite;
}

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

.about-card:hover {
    border-color: rgba(79, 156, 249, 0.3);
    box-shadow: 0 12px 40px rgba(79, 156, 249, 0.15), 0 0 60px rgba(79, 156, 249, 0.08);
    transform: translateY(-8px) scale(1.02);
}

.about-card.visible:hover {
    transform: translateY(-8px) scale(1.02);
}

.about-card:hover::before {
    opacity: 0.5;
}

.about-card:hover::after {
    opacity: 0;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.about-card:hover .card-icon {
    transform: scale(1.1);
}

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

.about-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Education Section */
.education {
    background: var(--bg-light);
}

.education-content {
    max-width: 800px;
    margin: 0 auto;
}

.education-item {
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.education-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.education-item h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.education-item h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
}

.education-date {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 400;
}

/* Skills Section */
.skills {
    background: transparent;
}

.skills-marquee {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 2rem 0;
}

.skills-marquee::before,
.skills-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.skills-marquee::before {
    left: 0;
    width: 150px;
    background: linear-gradient(to right, #000000, transparent);
}

.skills-marquee::after {
    right: 0;
    width: 150px;
    background: linear-gradient(to left, #000000, transparent);
}

.skills-track {
    display: inline-flex;
    gap: 1.5rem;
    animation: scrollSkills 30s linear infinite;
}

.skills-track:hover {
    animation-play-state: paused;
}

.skill-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(79, 156, 249, 0.08);
    border: 1px solid rgba(79, 156, 249, 0.2);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(79, 156, 249, 0.2);
    flex-shrink: 0;
}

.skill-item i {
    font-size: 2.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
}

.skill-item img {
    max-width: 55px;
    max-height: 55px;
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(2) contrast(0.8);
}

.skill-item:hover {
    transform: translateY(-6px) scale(1.1);
    border-color: rgba(79, 156, 249, 0.5);
    box-shadow: 0 8px 24px rgba(79, 156, 249, 0.4), 0 0 40px rgba(79, 156, 249, 0.2);
    background: rgba(79, 156, 249, 0.15);
}

.skill-item:hover i {
    transform: scale(1.15);
}

.skill-item:hover img {
    transform: scale(1.15);
}

.skill-text-only {
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    padding: 0.5rem;
    line-height: 1.1;
    word-break: break-word;
}

.skill-text-only:hover {
    transform: translateY(-6px) scale(1.1);
    border-color: rgba(79, 156, 249, 0.5);
    box-shadow: 0 8px 24px rgba(79, 156, 249, 0.4), 0 0 40px rgba(79, 156, 249, 0.2);
    background: rgba(79, 156, 249, 0.15);
}

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

/* Experience Section */
.experience {
    background: transparent;
    padding: 0;
}

.experience .container {
    padding: 8rem 2rem 0 2rem;
}

.experience-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 90vh;
}

.exp-block {
    display: flex;
    flex-direction: column;
    padding: 4rem 3rem;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.exp-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.exp-block-left {
    background: rgba(79, 156, 249, 0.03);
    border-right: 1px solid rgba(79, 156, 249, 0.2);
}

.exp-block-right {
    background: linear-gradient(135deg, rgba(79, 156, 249, 0.08), rgba(122, 184, 255, 0.08));
    position: relative;
    overflow: hidden;
}

/* Animated pattern overlay for experience blocks */
.exp-block-right::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle, rgba(79, 156, 249, 0.15) 1px, transparent 1px),
        radial-gradient(circle, rgba(122, 184, 255, 0.15) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: 0 0, 25px 25px;
    opacity: 0;
    transition: opacity 1s ease;
    animation: patternShift 20s linear infinite;
    pointer-events: none;
}

.exp-block-right:hover::after {
    opacity: 1;
}

@keyframes patternShift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.exp-header {
    margin-bottom: 3rem;
}

.exp-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.exp-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.2;
}

.exp-company {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.company-link {
    color: #8FC7FF;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.company-link::after {
    content: '↗';
    font-size: 0.8em;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.company-link:hover {
    color: #4F9CF9;
    text-decoration: underline;
}

.company-link:hover::after {
    opacity: 1;
    transform: translate(2px, -2px);
}

.exp-location {
    color: var(--text-secondary);
    font-weight: 400;
}

.exp-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.exp-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin: 0;
}

/* Experience responsive styles moved to unified responsive section at bottom */

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

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

.project-card {
    background: rgba(79, 156, 249, 0.05);
    border: 1px solid rgba(79, 156, 249, 0.2);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    opacity: 0;
    transform: translateY(40px);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Animated gradient background on hover */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 156, 249, 0.15), rgba(122, 184, 255, 0.15));
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
}

.project-card > * {
    position: relative;
    z-index: 1;
}

.project-card:hover {
    border-color: rgba(79, 156, 249, 0.6);
    box-shadow: 0 20px 60px rgba(79, 156, 249, 0.4), 0 0 80px rgba(79, 156, 249, 0.2);
    transform: translateY(-8px) scale(1.02);
}

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

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

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.project-icon {
    font-size: 2.5rem;
}

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

.project-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 156, 249, 0.1);
    border: 1px solid rgba(79, 156, 249, 0.3);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.3rem;
}

.project-link:hover {
    color: #4F9CF9;
    border-color: rgba(79, 156, 249, 0.6);
    transform: scale(1.1);
    background: rgba(79, 156, 249, 0.2);
    box-shadow: 0 4px 12px rgba(79, 156, 249, 0.4), 0 0 20px rgba(79, 156, 249, 0.2);
}

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

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

.tag {
    padding: 0.4rem 0.8rem;
    background: rgba(79, 156, 249, 0.1);
    border: 1px solid rgba(79, 156, 249, 0.4);
    border-radius: 20px;
    font-size: 0.85rem;
    color: #8FC7FF;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
}

.tag:hover {
    background: rgba(79, 156, 249, 0.2);
    border-color: rgba(79, 156, 249, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 156, 249, 0.3);
    color: #5BA3FF;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    grid-auto-rows: 1fr;
}

.blog-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

.blog-card {
    background: rgba(79, 156, 249, 0.05);
    border: 1px solid rgba(79, 156, 249, 0.2);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(40px);
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 1;
    height: 100%;
    min-height: 450px;
}

.blog-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 156, 249, 0.15), rgba(122, 184, 255, 0.15));
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
}

.blog-card > * {
    position: relative;
    z-index: 1;
}

.blog-card-link:hover .blog-card {
    border-color: rgba(79, 156, 249, 0.6);
    box-shadow: 0 20px 60px rgba(79, 156, 249, 0.4), 0 0 80px rgba(79, 156, 249, 0.2);
    transform: translateY(-8px) scale(1.02);
}

.blog-card-link:hover .blog-card.visible {
    transform: translateY(-8px) scale(1.02);
}

.blog-card-link:hover .blog-card::before {
    opacity: 1;
}

.blog-image {
    height: 200px;
    background: linear-gradient(135deg, rgba(79, 156, 249, 0.2), rgba(122, 184, 255, 0.2));
    border-bottom: 1px solid rgba(79, 156, 249, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Animated gradient overlay for blog images */
.blog-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 156, 249, 0.4), rgba(122, 184, 255, 0.4));
    background-size: 200% 200%;
    animation: blogImageGradient 8s ease infinite;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.blog-card-link:hover .blog-image::before {
    opacity: 1;
}

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

.blog-placeholder {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.2rem;
}

.blog-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.blog-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

.blog-content h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.blog-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    flex: 1;
}

.blog-link {
    color: #5BA3FF;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.blog-link:hover {
    color: #4F9CF9;
    transform: translateX(5px);
}

/* Contact Section */
.contact {
    background: transparent;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-info h3.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.contact-info p.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(79, 156, 249, 0.08);
    border: 1px solid rgba(79, 156, 249, 0.3);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateX(-30px);
}

.contact-link.visible {
    opacity: 1;
    transform: translateX(0);
}

.contact-link:hover {
    border-color: rgba(79, 156, 249, 0.6);
    background: rgba(79, 156, 249, 0.15);
    box-shadow: 0 4px 16px rgba(79, 156, 249, 0.3), 0 0 40px rgba(79, 156, 249, 0.2);
}

.contact-link.visible:hover {
    transform: translateX(8px);
}

.link-icon {
    font-size: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.form-button {
    padding: 1rem 2rem;
    background: var(--primary-color);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.form-button::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: width 0.6s, height 0.6s;
}

.form-button:hover::before {
    width: 300px;
    height: 300px;
}

.form-button:hover {
    transform: translateY(-2px);
    background: #0051d5;
    box-shadow: var(--shadow-lg);
}

.form-button:active {
    transform: translateY(0);
}

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

/* Scroll Animations */
.reveal-element {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-element.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

/* Stagger animations for individual cards */
.reveal-from-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-from-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-from-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-from-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-from-bottom {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-from-bottom.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    pointer-events: none;
    animation: ripple-effect 0.6s ease-out;
}

@keyframes ripple-effect {
    from {
        transform: scale(0);
        opacity: 1;
    }
    to {
        transform: scale(2);
        opacity: 0;
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    /* Navigation adjustments */
    .nav {
        padding: 0.75rem 0.75rem;
    }
    
    .nav-pill { 
        width: calc(100% - 24px); 
        padding: 0.6rem 0.8rem; 
        grid-template-columns: auto 1fr auto;
        gap: 0.5rem;
        align-items: center;
    }
    
    .nav-logo {
        font-size: 1rem;
        padding: 0.2rem 0.4rem;
        justify-self: center;
    }
    
    .nav-time {
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .menu-toggle {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .nav-icon {
        font-size: 1rem;
    }
    
    .nav-left {
        justify-content: flex-start;
    }
    
    .nav-right {
        gap: 8px;
        justify-content: flex-end;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
        margin: 0 0.75rem;
    }
    
    .side-menu {
        width: 280px;
    }
    
    .side-link {
        font-size: 1.5rem;
    }
    
    /* Hero Section */
    html {
        scroll-padding-top: 80px;
    }
    
    .hero {
        min-height: 90vh;
        padding: 1rem;
        padding-top: 4rem;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 12vw, 4rem);
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 4vw, 1.25rem);
        margin-bottom: 3rem;
    }
    
    .hero-scroll {
        margin-top: 2rem;
    }
    
    /* Section adjustments */
    .section {
        padding: 4rem 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: clamp(2rem, 8vw, 4rem);
        margin-bottom: 3rem;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-card {
        padding: 2rem;
    }
    
    .about-card h3 {
        font-size: 1.5rem;
    }
    
    .card-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    /* Skills Section */
    .skills-container {
        max-width: 100%;
    }
    
    .skill-item {
        width: 60px;
        height: 60px;
        font-size: 0.8rem;
    }
    
    .skill-text-only {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    /* Experience Section */
    .experience-layout {
        grid-template-columns: 1fr;
    }
    
    .exp-block {
        padding: 2rem 1.5rem;
    }
    
    .exp-block-left {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    
    .exp-title {
        font-size: 1.5rem;
    }
    
    .exp-company {
        font-size: 1rem;
    }
    
    .exp-date {
        font-size: 0.85rem;
    }
    
    .exp-content p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        padding-left: 3rem;
    }
    
    .timeline-marker {
        left: 30px;
    }
    
    /* Projects Section */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-card {
        padding: 2rem;
    }
    
    .project-card h3 {
        font-size: 1.5rem;
    }
    
    .project-tags {
        gap: 0.5rem;
    }
    
    .tag {
        padding: 0.3rem 0.6rem;
        font-size: 0.8rem;
    }
    
    /* Blog Section */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .blog-card {
        border-radius: 20px;
    }
    
    .blog-image {
        height: 180px;
    }
    
    .blog-content {
        padding: 1.5rem;
    }
    
    .blog-card h3 {
        font-size: 1.3rem;
    }
    
    /* Contact Section */
    .contact-content {
        text-align: center;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .contact-link {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .link-icon {
        font-size: 1.5rem;
    }
    
    /* Footer */
    .footer {
        padding: 1.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Floating shapes - reduce size on mobile */
    .shape-1, .shape-2, .shape-3 {
        width: 200px;
        height: 200px;
    }
    
    .shape-4 {
        width: 250px;
        height: 400px;
    }
}

/* Tablet responsive adjustments */
@media (max-width: 968px) and (min-width: 769px) {
    .nav-pill {
        width: calc(100% - 64px);
        max-width: 500px;
    }
    
    .hero-title {
        font-size: clamp(3rem, 10vw, 5rem);
    }
    
    .hero-subtitle {
        font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    }
    
    .section {
        padding: 6rem 2rem;
    }
    
    .section-title {
        font-size: clamp(2.5rem, 7vw, 4.5rem);
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .blog-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    html {
        scroll-padding-top: 70px;
    }
    
    .nav {
        padding: 0.5rem;
    }
    
    .nav-pill {
        width: calc(100% - 16px);
        padding: 0.5rem 0.8rem;
    }
    
    .nav-logo {
        font-size: 0.9rem;
    }
    
    .menu-toggle {
        padding: 0.3rem 0.6rem;
        font-size: 0.85rem;
    }
    
    .hero {
        padding: 0.5rem;
        padding-top: 3rem;
    }
    
    .section {
        padding: 3rem 0.5rem;
    }
    
    .about-card, .project-card {
        padding: 1.5rem;
    }
    
    .exp-block {
        padding: 1.5rem;
    }
    
    .blog-image {
        height: 150px;
    }
    
    .section-title {
        margin-bottom: 2rem;
    }
    
    .tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Landscape orientation adjustments */
@media (max-width: 968px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-content {
        padding-top: 2rem;
    }
    
    .hero-title {
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        margin-bottom: 2rem;
    }
}

/* Large screens optimization */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-content {
        max-width: 1100px;
    }
    
    .nav-pill {
        max-width: 700px;
    }
}

