/* Root Variables - Modern White & Blue Theme */
:root {
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    --secondary-gradient: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --accent-gradient: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    --card-background: #ffffff;
    --card-background-hover: #f8fafc;
    --card-border: #e2e8f0;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --text-primary: #1e293b;
    --text-secondary: rgba(30, 41, 59, 0.8);
    --text-tertiary: rgba(30, 41, 59, 0.6);
    --border-radius: 16px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 40% 40%, rgba(29, 78, 216, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Ultra-Modern Background Elements */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

/* Dynamic Mesh Grid */
.grid-lines {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    opacity: 0.08;
    background-image: 
        linear-gradient(45deg, rgba(37, 99, 235, 0.1) 1px, transparent 1px),
        linear-gradient(-45deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
    background-size: 80px 80px;
    animation: meshRotate 30s linear infinite;
    transform-origin: center center;
}

/* Simple Geometric Shapes */
.geometric-shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.02) 50%, transparent 100%);
    border: 1px solid rgba(37, 99, 235, 0.1);
    animation: simpleFloat 15s ease-in-out infinite;
    transform: translateZ(0);
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 15%;
    left: 5%;
    transform: rotate(45deg);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation-delay: 0s;
    border: 1px solid rgba(37, 99, 235, 0.15);
}

.shape-2 {
    width: 120px;
    height: 300px;
    top: 20%;
    right: 8%;
    clip-path: polygon(0% 0%, 100% 0%, 80% 100%, 20% 100%);
    animation-delay: 2s;
    border: 1px solid rgba(30, 41, 59, 0.08);
}

.shape-3 {
    width: 250px;
    height: 150px;
    bottom: 25%;
    left: 15%;
    clip-path: polygon(25% 0%, 100% 0%, 75% 100%, 0% 100%);
    animation-delay: 4s;
    border: 1px solid rgba(37, 99, 235, 0.12);
}

.shape-4 {
    width: 180px;
    height: 180px;
    top: 45%;
    right: 25%;
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    animation-delay: 1s;
    border: 1px solid rgba(30, 41, 59, 0.06);
}

/* Animated Lines */
.animated-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.4), transparent);
    height: 1px;
    animation: lineMove 15s linear infinite;
}

.line-1 {
    top: 20%;
    left: -100%;
    width: 300px;
    animation-delay: 0s;
}

.line-2 {
    top: 60%;
    right: -100%;
    width: 400px;
    animation-delay: 5s;
    background: linear-gradient(90deg, transparent, rgba(30, 41, 59, 0.3), transparent);
}

.line-3 {
    top: 80%;
    left: -100%;
    width: 250px;
    animation-delay: 10s;
}

/* Particle Dots */
.particle-dot {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(30, 41, 59, 0.4);
    border-radius: 50%;
    animation: particleFloat 12s ease-in-out infinite;
}

.dot-1 { top: 10%; left: 30%; animation-delay: 0s; }
.dot-2 { top: 25%; right: 20%; animation-delay: 2s; background: rgba(37, 99, 235, 0.6); }
.dot-3 { bottom: 30%; left: 40%; animation-delay: 4s; }
.dot-4 { top: 70%; right: 35%; animation-delay: 6s; background: rgba(37, 99, 235, 0.4); }
.dot-5 { bottom: 15%; right: 15%; animation-delay: 8s; }
.dot-6 { top: 50%; left: 25%; animation-delay: 10s; }

/* Topographical Contour Lines */
.topography-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    overflow: hidden;
    --mouse-x: 50%;
    --mouse-y: 50%;
    --scroll-progress: 0;
    transition: all 0.1s ease-out;
}

.topography-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: topographyFlow 12s ease-in-out infinite;
    transform: translateX(calc((var(--mouse-x) - 50%) * 0.2px)) 
               translateY(calc((var(--mouse-y) - 50%) * 0.3px))
               rotate(calc((var(--mouse-x) - 50%) * 0.02deg));
    transition: transform 0.3s ease-out;
}

.contour-line {
    fill: none;
    stroke-width: calc(1.5px + (var(--mouse-y) / 100) * 1px);
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: contourFlow 8s ease-in-out infinite;
    opacity: calc(0.3 + (var(--mouse-y) / 200) + (var(--scroll-progress) / 100));
    transform: translateX(calc((var(--mouse-x) - 50%) * 0.1px)) 
               translateY(calc((var(--mouse-y) - 50%) * 0.05px));
    transition: all 0.2s ease-out;
}

.line-1 {
    stroke: rgba(37, 99, 235, 0.6);
    animation: contourFlow 8s ease-in-out infinite;
    animation-delay: 0s;
}

.line-2 {
    stroke: rgba(59, 130, 246, 0.5);
    animation: contourFlowReverse 9s ease-in-out infinite;
    animation-delay: 0.5s;
}

.line-3 {
    stroke: rgba(37, 99, 235, 0.7);
    animation: contourFlow 7s ease-in-out infinite;
    animation-delay: 1s;
}

.line-4 {
    stroke: rgba(96, 165, 250, 0.4);
    animation: contourFlowWave 10s ease-in-out infinite;
    animation-delay: 1.5s;
}

.line-5 {
    stroke: rgba(37, 99, 235, 0.6);
    animation: contourFlow 8s ease-in-out infinite;
    animation-delay: 2s;
}

.line-6 {
    stroke: rgba(59, 130, 246, 0.6);
    animation: contourFlowReverse 9s ease-in-out infinite;
    animation-delay: 2.5s;
}

.line-7 {
    stroke: rgba(147, 197, 253, 0.5);
    animation: contourFlowWave 11s ease-in-out infinite;
    animation-delay: 3s;
}

.line-8 {
    stroke: rgba(37, 99, 235, 0.5);
    animation: contourFlow 7s ease-in-out infinite;
    animation-delay: 3.5s;
}

.line-9 {
    stroke: rgba(59, 130, 246, 0.7);
    animation: contourFlowReverse 8s ease-in-out infinite;
    animation-delay: 4s;
}

.line-10 {
    stroke: rgba(96, 165, 250, 0.6);
    animation: contourFlowWave 9s ease-in-out infinite;
    animation-delay: 4.5s;
}

.line-11 {
    stroke: rgba(37, 99, 235, 0.4);
    animation: contourFlow 10s ease-in-out infinite;
    animation-delay: 5s;
}

.line-12 {
    stroke: rgba(147, 197, 253, 0.6);
    animation: contourFlowReverse 11s ease-in-out infinite;
    animation-delay: 5.5s;
}

/* Ultra-Modern Animation Keyframes */
@keyframes meshRotate {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(0.9); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes geometricFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.08;
    }
    25% { 
        transform: translateY(-20px) rotate(90deg) scale(1.15);
        opacity: 0.15;
    }
    50% { 
        transform: translateY(-40px) rotate(180deg) scale(1.3);
        opacity: 0.25;
    }
    75% { 
        transform: translateY(-20px) rotate(270deg) scale(1.15);
        opacity: 0.15;
    }
}

@keyframes lineMove {
    0% { 
        transform: translateX(-100%) scaleX(0.5); 
        opacity: 0; 
    }
    10% { 
        transform: translateX(-50%) scaleX(1); 
        opacity: 1; 
    }
    50% { 
        transform: translateX(25%) scaleX(1.2); 
        opacity: 1; 
    }
    90% { 
        transform: translateX(50%) scaleX(1); 
        opacity: 1; 
    }
    100% { 
        transform: translateX(100vw) scaleX(0.5); 
        opacity: 0; 
    }
}

@keyframes particleFloat {
    0%, 100% { 
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.3;
    }
    25% { 
        transform: translateY(-20px) translateX(10px) scale(1.5);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-40px) translateX(-5px) scale(2);
        opacity: 1;
    }
    75% { 
        transform: translateY(-20px) translateX(-10px) scale(1.5);
        opacity: 0.8;
    }
}

@keyframes cardEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95) rotateX(10deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0px) scale(1) rotateX(0deg);
    }
}

@keyframes profileFloat {
    0%, 100% { 
        transform: translateY(0px);
    }
    50% { 
        transform: translateY(-5px);
    }
}

@keyframes ringRotate {
    0% { 
        transform: rotate(0deg);
    }
    100% { 
        transform: rotate(360deg);
    }
}

@keyframes simpleFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.08;
    }
    50% { 
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.15;
    }
}

/* Topographical Animations */
@keyframes topographyFlow {
    0%, 100% {
        transform: translateX(0px) translateY(0px) scale(1) rotate(0deg);
    }
    25% {
        transform: translateX(15px) translateY(-20px) scale(1.03) rotate(0.5deg);
    }
    50% {
        transform: translateX(-10px) translateY(-30px) scale(0.97) rotate(-0.3deg);
    }
    75% {
        transform: translateX(20px) translateY(-15px) scale(1.02) rotate(0.4deg);
    }
}

@keyframes contourFlow {
    0%, 100% {
        stroke-opacity: 0.3;
        stroke-width: 1.5;
        transform: translateX(0px) translateY(0px) scaleX(1);
    }
    20% {
        stroke-opacity: 0.7;
        stroke-width: 2.2;
        transform: translateX(-8px) translateY(-6px) scaleX(1.05);
    }
    40% {
        stroke-opacity: 0.9;
        stroke-width: 2.5;
        transform: translateX(12px) translateY(-12px) scaleX(0.95);
    }
    60% {
        stroke-opacity: 0.6;
        stroke-width: 1.8;
        transform: translateX(-5px) translateY(-8px) scaleX(1.03);
    }
    80% {
        stroke-opacity: 0.8;
        stroke-width: 2.1;
        transform: translateX(10px) translateY(-4px) scaleX(0.98);
    }
}

@keyframes contourFlowReverse {
    0%, 100% {
        stroke-opacity: 0.4;
        stroke-width: 1.8;
        transform: translateX(0px) translateY(0px) scaleX(1);
    }
    25% {
        stroke-opacity: 0.8;
        stroke-width: 2.3;
        transform: translateX(15px) translateY(-10px) scaleX(0.93);
    }
    50% {
        stroke-opacity: 0.6;
        stroke-width: 1.6;
        transform: translateX(-12px) translateY(-15px) scaleX(1.08);
    }
    75% {
        stroke-opacity: 0.9;
        stroke-width: 2.6;
        transform: translateX(8px) translateY(-5px) scaleX(0.97);
    }
}

@keyframes contourFlowWave {
    0%, 100% {
        stroke-opacity: 0.5;
        stroke-width: 2;
        transform: translateX(0px) translateY(0px) scaleX(1) scaleY(1);
    }
    16% {
        stroke-opacity: 0.7;
        stroke-width: 2.4;
        transform: translateX(-6px) translateY(-8px) scaleX(1.06) scaleY(0.94);
    }
    33% {
        stroke-opacity: 0.9;
        stroke-width: 1.4;
        transform: translateX(18px) translateY(-16px) scaleX(0.88) scaleY(1.12);
    }
    50% {
        stroke-opacity: 0.4;
        stroke-width: 2.8;
        transform: translateX(-10px) translateY(-20px) scaleX(1.15) scaleY(0.85);
    }
    66% {
        stroke-opacity: 0.8;
        stroke-width: 1.9;
        transform: translateX(14px) translateY(-12px) scaleX(0.92) scaleY(1.08);
    }
    83% {
        stroke-opacity: 0.6;
        stroke-width: 2.5;
        transform: translateX(-4px) translateY(-6px) scaleX(1.03) scaleY(0.97);
    }
}

/* Advanced Scroll Animation Keyframes */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-60px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideInFromRight {
    0% {
        opacity: 0;
        transform: translateX(60px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.9) rotateX(10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotateX(0deg);
    }
}

@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0px);
    }
}

@keyframes projectCardReveal {
    0% {
        opacity: 0;
        transform: translateY(40px) rotateX(15deg) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg) scale(1);
    }
}

@keyframes skillItemReveal {
    0% {
        opacity: 0;
        transform: translateX(-30px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes sectionFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth 2D Card Base Class */
.glass-card {
    background: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease-out;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    will-change: transform, box-shadow;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease-out;
}

.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(37, 99, 235, 0.02) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease-out;
    pointer-events: none;
}

/* Smooth Hover Effects */
.glass-card:hover::before {
    transform: scaleX(1);
}

.glass-card:hover::after {
    opacity: 1;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: var(--card-background-hover);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.15),
                0 4px 20px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(37, 99, 235, 0.2);
    border-color: rgba(37, 99, 235, 0.3);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 4rem);
    max-width: 1200px;
}

.nav-container {
    background: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

/* Modern NW Logo */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-n, .logo-w {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-family);
    transition: var(--transition);
    position: relative;
    display: inline-block;
}

.logo-n {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-right: -0.1em;
    z-index: 2;
    transform: translateX(0);
}

.logo-w {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 1;
    transform: translateX(0);
}

.logo-container::before {
    content: '';
    position: absolute;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, transparent 100%);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 12px;
    z-index: 0;
    transition: var(--transition);
    transform: rotate(0deg);
}

.logo-container:hover::before {
    transform: rotate(5deg) scale(1.1);
    border-color: rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, transparent 100%);
}

.logo-container:hover .logo-n {
    transform: translateX(-1px) scale(1.05);
    text-shadow: 0 0 15px rgba(30, 41, 59, 0.3);
}

.logo-container:hover .logo-w {
    transform: translateX(1px) scale(1.05);
    text-shadow: 0 0 15px rgba(37, 99, 235, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: 25px;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

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

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 5px;
    transition: var(--transition);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-md);
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-content {
    max-width: 1000px;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Proportional scaling based on viewport */
.hero-card {
    padding: var(--spacing-xl);
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    position: relative;
    overflow: hidden;
    width: clamp(300px, 90vw, 1000px);
    margin: 0 auto;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(37, 99, 235, 0.05), transparent);
    animation: cardShimmer 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes cardShimmer {
    0%, 100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 1;
    }
}

/* Smooth scaling for hero layout */
.hero-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 4vw, 4rem);
    text-align: left;
    min-height: clamp(300px, 40vh, 500px);
    padding: clamp(1rem, 3vw, 4rem);
}

.hero-text {
    flex: 1;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Profile Image Styling */
.hero-profile {
    display: flex !important;
    justify-content: center;
    flex-shrink: 0;
    opacity: 1 !important;
    visibility: visible !important;
}

.profile-image-container {
    position: relative;
    display: inline-block !important;
    animation: profileFloat 6s ease-in-out infinite;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Profile image that scales with viewport */
.profile-image {
    width: clamp(120px, 20vw, 300px) !important;
    height: clamp(120px, 20vw, 300px) !important;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 3px solid rgba(37, 99, 235, 0.3) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(37, 99, 235, 0.1);
    transition: var(--transition);
    transform: scale(1);
    z-index: 999 !important;
    position: relative;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    max-width: none !important;
    max-height: none !important;
    animation: blueGlow 4s ease-in-out infinite;
}

.profile-image:hover {
    animation: blueRipple 1s ease-out;
}

.profile-ring {
    position: absolute;
    top: -8px;
    left: -8px;
    width: 256px;
    height: 256px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(45deg, rgba(37, 99, 235, 0.5), rgba(59, 130, 246, 0.3), rgba(37, 99, 235, 0.5)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: subtract;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask-composite: subtract;
    animation: ringRotate 8s linear infinite;
    opacity: 0.7;
}

.profile-image-container:hover .profile-image {
    transform: scale(1.05);
    border-color: rgba(37, 99, 235, 0.6);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2),
                0 0 30px rgba(37, 99, 235, 0.3),
                0 0 0 1px rgba(37, 99, 235, 0.2);
}

.profile-image-container:hover .profile-ring {
    opacity: 1;
    animation-duration: 4s;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 4rem) !important;
    font-weight: 700 !important;
    margin-bottom: var(--spacing-sm);
    color: #1e293b !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transform: translateZ(0);
    transition: all 0.3s ease-out;
    z-index: 999 !important;
    position: relative !important;
    line-height: 1.1 !important;
    text-align: left !important;
    width: 100% !important;
    height: auto !important;
    text-shadow: none !important;
    background: none !important;
    -webkit-text-fill-color: #1e293b !important;
    letter-spacing: -0.02em !important;
}

/* Name that scales smoothly */
h1[style*="font-size"] {
    font-size: clamp(2rem, 5vw, 4rem) !important;
    letter-spacing: -0.02em !important;
}

/* Responsive scrolling subtitle */
div[style*="animation: customScroll"] {
    font-size: clamp(1rem, 2.5vw, 1.8rem) !important;
    line-height: 1.2 !important;
}

.hero-title:hover {
    transform: scale(1.01) translateZ(0);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 4vw, 2rem);
    font-weight: 300;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    transition: all 0.3s ease-in-out;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    overflow: hidden;
    position: relative;
    width: 100%;
}



.rotating-title {
    background: linear-gradient(135deg, var(--text-secondary) 0%, rgba(37, 99, 235, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.scrolling-text {
    animation: continuousScroll 20s linear infinite, textGlow 4s ease-in-out infinite;
    display: inline-block;
}

@keyframes textGlow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.1);
    }
}

@keyframes customScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-150%);
    }
}

/* Elegant blue glow animations */
@keyframes blueGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(37, 99, 235, 0.6), 0 0 60px rgba(59, 130, 246, 0.4);
    }
}

@keyframes blueRipple {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

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



.hero-description {
    font-size: 1.1rem;
    color: var(--text-tertiary);
    margin-bottom: var(--spacing-lg);
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* Smooth 2D Buttons */
.glass-button {
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--card-border);
    border-radius: 50px;
    background: var(--card-background);
    color: var(--text-primary);
    font-family: var(--font-family);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-out;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transform: translateZ(0);
}

.glass-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50px;
}

.glass-button:hover::before {
    opacity: 1;
}

.glass-button.primary {
    background: var(--primary-gradient);
    border: none;
}

.glass-button.secondary {
    background: transparent;
}



.glass-button:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2),
                0 4px 15px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(37, 99, 235, 0.3);
}

.glass-button.primary:hover {
    border-color: rgba(37, 99, 235, 0.7);
}

.glass-button:active {
    transform: translateY(0px) scale(1);
    transition: all 0.1s ease;
}

/* Sections */
section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(37, 99, 235, 0.25);
    filter: drop-shadow(0 2px 10px rgba(37, 99, 235, 0.1));
}

/* About Section */
.about .glass-card {
    padding: var(--spacing-lg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.about-text p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.skills h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.skill-tag {
    padding: var(--spacing-xs) var(--spacing-sm);
    background: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: 25px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    transform: scale(1);
}

.skill-tag:hover {
    background: var(--card-background-hover);
    border-color: rgba(37, 99, 235, 0.3);
    transform: scale(1.05);
}

/* Projects Section */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    max-width: 800px;
    margin: 0 auto;
}

.project-card {
    padding: var(--spacing-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    min-height: 220px;
    transition: var(--transition);
}

.project-card:hover .project-image {
    transform: scale(1.02);
    border-color: rgba(37, 99, 235, 0.2);
}

.project-card:hover .project-content h3 {
    color: rgba(37, 99, 235, 0.9);
}

.project-image {
    width: 220px;
    height: 160px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.02) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    flex-shrink: 0;
    transition: var(--transition);
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: var(--transition);
}

/* Specific adjustments for individual projects */
.project-card:nth-child(3) .project-image {
    border: none;
}

.project-card:nth-child(4) .project-img {
    object-fit: contain;
    transform: scale(0.92);
}

.project-card:nth-child(5) .project-image {
    border: none;
}

.project-card:nth-child(5) .project-img {
    object-fit: contain;
    transform: scale(0.85);
}

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

.project-card:nth-child(4):hover .project-img {
    transform: scale(0.97);
}

.project-card:nth-child(5):hover .project-img {
    transform: scale(0.9);
}

.placeholder-image {
    color: var(--text-tertiary);
    font-size: 1.1rem;
    font-weight: 500;
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    position: relative;
}

.company-logo {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

.logo-img {
    width: 60px;
    height: auto;
    max-height: 40px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    filter: grayscale(0.2);
}

.logo-img:hover {
    opacity: 1;
    filter: grayscale(0);
}

.project-content h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.project-subtitle {
    color: var(--text-tertiary) !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    margin: 0 0 1rem 0 !important;
    line-height: 1.4 !important;
    font-style: italic;
}

.project-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.tag {
    padding: 0.4rem 0.8rem;
    background: var(--primary-gradient);
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    color: white;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.project-links {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xs);
}

.project-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--card-border);
    border-radius: 25px;
    transition: var(--transition);
    background: var(--card-background);
}

.project-link:hover {
    border-color: rgba(37, 99, 235, 0.3);
    background: var(--card-background-hover);
    transform: translateY(-1px);
}

/* Contact Section */
.contact .glass-card {
    padding: var(--spacing-lg);
}

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

.contact-content > p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
}

.contact-form {
    margin-bottom: var(--spacing-lg);
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.glass-input {
    width: 100%;
    padding: var(--spacing-sm);
    background: var(--card-background);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: var(--font-family);
    transition: var(--transition);
    box-shadow: var(--card-shadow);
}

.glass-input::placeholder {
    color: var(--text-tertiary);
}

.glass-input:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.5);
    background: var(--card-background-hover);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1),
                0 0 0 2px rgba(37, 99, 235, 0.3);
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

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

.contact-label {
    display: block;
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.contact-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* Footer */
.footer {
    padding: var(--spacing-md) 0;
}

.footer-card {
    padding: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

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

/* Responsive Design - Proportional Scaling */
@media (max-width: 1200px) {
    .hero-layout {
        gap: 2rem;
        padding: 2rem;
    }
    
    .profile-image {
        width: 200px !important;
        height: 200px !important;
    }
    
    h1[style*="font-size: 4rem"] {
        font-size: 3rem !important;
    }
}

@media (max-width: 900px) {
    .hero-layout {
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .profile-image {
        width: 160px !important;
        height: 160px !important;
    }
    
    h1[style*="font-size"] {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 768px) {
    .hero-layout {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-lg);
        min-height: 300px;
        padding: 1rem;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 5vw, 1.5rem);
    }
    
    .nav-links {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .profile-image {
        width: 140px !important;
        height: 140px !important;
    }
    
    h1[style*="font-size"] {
        font-size: 2rem !important;
    }
    
    .profile-ring {
        width: 156px;
        height: 156px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .project-card {
        flex-direction: column;
        text-align: center;
        min-height: auto;
    }
    
    .project-image {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .contact-info {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .footer-card {
        flex-direction: column;
        text-align: center;
    }
    
    .glass-nav {
        width: calc(100% - 2rem);
    }
    
    .nav-container {
        padding: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-md: 1rem;
        --spacing-lg: 2rem;
        --spacing-xl: 2.5rem;
    }
    
    .hero {
        padding: var(--spacing-lg) var(--spacing-sm);
    }
    
    .hero-card {
        padding: var(--spacing-lg);
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* Advanced Scroll Animation Classes */
.scroll-hidden {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: none;
}

.scroll-animate-card {
    animation: fadeInScale 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.text-hidden {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(1px);
    transition: none;
}

.scroll-animate-text {
    animation: textReveal 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.project-hidden {
    opacity: 0;
    transform: translateY(40px) rotateX(15deg) scale(0.95);
    transition: none;
}

.scroll-animate-project {
    animation: projectCardReveal 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.skill-hidden {
    opacity: 0;
    transform: translateX(-30px) scale(0.9);
    transition: none;
}

.scroll-animate-skill {
    animation: skillItemReveal 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.section-hidden {
    opacity: 0;
    transform: translateY(20px);
}

.section-visible {
    animation: sectionFadeIn 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Navbar Scroll Effects */
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled .logo {
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

/* Parallax Effects */
.hero-content {
    transition: transform 0.1s ease-out;
}

/* Special Animation Variations */
.glass-card:nth-child(even).scroll-animate-card {
    animation: slideInFromRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.glass-card:nth-child(odd).scroll-animate-card {
    animation: slideInFromLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.project-card:nth-child(even).scroll-animate-project {
    animation: slideInFromRight 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.project-card:nth-child(odd).scroll-animate-project {
    animation: slideInFromLeft 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Staggered delays for grouped elements */
.scroll-animate-skill:nth-child(1) { animation-delay: 0s; }
.scroll-animate-skill:nth-child(2) { animation-delay: 0.1s; }
.scroll-animate-skill:nth-child(3) { animation-delay: 0.2s; }
.scroll-animate-skill:nth-child(4) { animation-delay: 0.3s; }
.scroll-animate-skill:nth-child(5) { animation-delay: 0.4s; }
.scroll-animate-skill:nth-child(6) { animation-delay: 0.5s; }

/* Enhanced hover effects with scroll context */
.scroll-animate-card.glass-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.2),
                0 8px 40px rgba(0, 0, 0, 0.1);
}

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

/* Performance Optimizations */
.glass-card,
.glass-button,
.geometric-shape,
.particle-dot {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .geometric-shape,
    .profile-image-container,
    .hero-title {
        animation: none !important;
    }
    
    .glass-card:hover {
        transform: translateY(-4px) scale(1.01) !important;
    }
    
    /* Disable complex scroll animations on reduced motion */
    .scroll-hidden,
    .text-hidden,
    .project-hidden,
    .skill-hidden,
    .section-hidden {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
    
    .scroll-animate-card,
    .scroll-animate-text,
    .scroll-animate-project,
    .scroll-animate-skill,
    .section-visible {
        animation: none !important;
    }
}

/* Focus styles for accessibility */
.glass-button:focus,
.glass-input:focus,
.nav-links a:focus,
.project-link:focus,
.social-link:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
} 