@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400..800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --header-height: 5rem;
    
    /* ========== Modern Professional Color Palette ========== */
    --primary-color: #4F46E5;
    --primary-light: #6366F1;
    --primary-dark: #4338CA;
    
    --secondary-color: #10B981;
    --secondary-light: #34D399;
    --secondary-dark: #059669;
    
    --accent-color: #8B5CF6;
    --accent-light: #A78BFA;
    --accent-dark: #7C3AED;
    
    --neutral-50: #F9FAFB;
    --neutral-100: #F3F4F6;
    --neutral-200: #E5E7EB;
    --neutral-300: #D1D5DB;
    --neutral-400: #9CA3AF;
    --neutral-500: #6B7280;
    --neutral-600: #4B5563;
    --neutral-700: #374151;
    --neutral-800: #1F2937;
    --neutral-900: #111827;
    
    /* Glass morphic tints - Professional variants */
    --glass-blue: rgba(99, 102, 241, 0.12);
    --glass-emerald: rgba(16, 185, 129, 0.12);
    --glass-purple: rgba(139, 92, 246, 0.12);
    --glass-amber: rgba(245, 158, 11, 0.12);
    --glass-rose: rgba(244, 63, 94, 0.12);
    
    /* Background colors */
    --body-color: #FFFFFF;
    --body-gradient: linear-gradient(135deg, #F9FAFB 0%, #F3F4F6 100%);
    --container-color: #FFFFFF;
    --card-color: rgba(255, 255, 255, 0.92);
    
    /* Text colors */
    --title-color: var(--neutral-900);
    --text-color: var(--neutral-700);
    --text-light: var(--neutral-500);
    
    /* Shadows and borders */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    --border-light: 1px solid rgba(255, 255, 255, 0.2);
    --border-regular: 1px solid rgba(226, 232, 240, 0.8);
    
    /* ========== Typography ========== */
    --body-font: "Inter", -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --heading-font: "Syne", -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --biggest-font-size: 3.75rem;
    --big-font-size: 2.25rem;
    --h1-font-size: 1.875rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --h4-font-size: 1.125rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --tiny-font-size: 0.75rem;
    
    /* ========== Font weights ========== */
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semi-bold: 600;
    --font-bold: 700;
    --font-extra-bold: 800;
    
    /* ========== z-index ========== */
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;
    --z-overlay: 9999;
    
    /* ========== Transitions ========== */
    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 400ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* ========== Spacing ========== */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
}

@media screen and (min-width: 768px) {
    :root {
        --biggest-font-size: 4.5rem;
        --big-font-size: 3rem;
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.875rem;
        --h3-font-size: 1.5rem;
        --h4-font-size: 1.25rem;
        --normal-font-size: 1.125rem;
    }
}

/* ========== RESET & BASE STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 2rem);
}

body {
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    font-weight: var(--font-regular);
    line-height: 1.6;
    color: var(--text-color);
    background: var(--body-gradient);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(at 20% 30%, var(--glass-blue) 0px, transparent 50%),
        radial-gradient(at 80% 0%, var(--glass-purple) 0px, transparent 50%),
        radial-gradient(at 0% 50%, var(--glass-emerald) 0px, transparent 50%),
        radial-gradient(at 80% 50%, var(--glass-amber) 0px, transparent 50%),
        radial-gradient(at 0% 100%, var(--glass-rose) 0px, transparent 50%);
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    color: var(--title-color);
    font-weight: var(--font-bold);
    line-height: 1.2;
}

p {
    margin-bottom: var(--space-md);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
    background: none;
}

/* ========== UTILITY CLASSES ========== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-4xl) 0;
}

.section__title {
    font-size: var(--h1-font-size);
    text-align: center;
    margin-bottom: var(--space-md);
    position: relative;
}

.section__title::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    width: 4rem;
    height: 0.25rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 0.125rem;
}

.section__subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: var(--h4-font-size);
    margin-bottom: var(--space-3xl);
    max-width: 48rem;
    margin-left: auto;
    margin-right: auto;
}

.grid {
    display: grid;
    gap: var(--space-xl);
}

/* ========== GLASS MORPHISM ========== */
.glass {
    background: var(--card-color);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

.glass:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-xl);
}

.glass-blue {
    border-color: rgba(99, 102, 241, 0.2);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(99, 102, 241, 0.02));
}

.glass-emerald {
    border-color: rgba(16, 185, 129, 0.2);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(16, 185, 129, 0.02));
}

.glass-purple {
    border-color: rgba(139, 92, 246, 0.2);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.08), rgba(139, 92, 246, 0.02));
}

/* ========== BUTTONS ========== */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 1rem 2rem;
    font-weight: var(--font-semi-bold);
    border-radius: 0.75rem;
    transition: all var(--transition-bounce);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    border: none;
    font-size: var(--normal-font-size);
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.button:hover::before {
    left: 100%;
}

.button--primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
}

.button--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(79, 70, 229, 0.4);
}

.button--outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.button--outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* ========== HEADER & NAVIGATION ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    z-index: var(--z-fixed);
    transition: all var(--transition-normal);
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--space-lg);
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--heading-font);
    font-size: var(--h3-font-size);
    font-weight: var(--font-bold);
    color: var(--primary-color);
}

.nav__logo i {
    font-size: 1.5rem;
}

.nav__menu {
    display: flex;
    align-items: center;
}

.nav__list {
    display: flex;
    gap: var(--space-sm); /* Reduce gap slightly for wave effect */
}

.nav__link {
    font-weight: var(--font-semi-bold);
    color: var(--neutral-700);
    position: relative;
    padding: var(--space-md) var(--space-lg);
    transition: color var(--transition-normal);
    z-index: 1;
}

.nav__link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50px;
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-color) 25%, 
        var(--secondary-color) 75%, 
        transparent 100%);
    opacity: 0;
    transform: translateY(10px);
    filter: blur(2px);
    transition: all var(--transition-normal);
}

.nav__link:hover,
.nav__link.active-link {
    color: white;
}

.nav__link:hover::before,
.nav__link.active-link::before {
    opacity: 1;
    transform: scale(1);
    animation: wave 0.6s ease-out;
}

.nav__link:hover::after,
.nav__link.active-link::after {
    opacity: 0.6;
    transform: translateY(0);
}

@keyframes wave {
    0% {
        border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40%/50% 60% 30% 60%;
    }
    100% {
        border-radius: 50px;
    }
}

.nav__toggle,
.nav__close {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--neutral-700);
    transition: var(--transition-fast);
}

.nav__toggle:hover,
.nav__close:hover {
    color: var(--primary-color);
}

/* ========== HOME SECTION ========== */
.home {
    padding-top: calc(var(--header-height) + 3rem);
    padding-bottom: var(--space-4xl);
}


.home__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

@media screen and (min-width: 992px) {
    .home__container {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-4xl);
    }
}

.home__data {
    text-align: center;
}

@media screen and (min-width: 992px) {
    .home__data {
        text-align: left;
    }
}

.home__name {
    font-size: var(--biggest-font-size);
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.home__profession {
    font-size: var(--big-font-size);
    color: var(--text-light);
    margin-bottom: var(--space-xl);
    min-height: 3.5rem;
}

.typewriter {
    display: inline-block;
    position: relative;
}

.typewriter::after {
    content: '|';
    position: absolute;
    right: -0.5em;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.home__description {
    font-size: var(--h4-font-size);
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
    color: var(--text-color);
}

.home__cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

@media screen and (min-width: 576px) {
    .home__cta {
        flex-direction: row;
    }
}

.home__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.stat {
    text-align: center;
    padding: var(--space-lg);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.stat__number {
    display: block;
    font-size: 2rem;
    font-weight: var(--font-bold);
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat__label {
    font-size: var(--small-font-size);
    color: var(--text-light);
}

.home__image {
    position: relative;
}

.image__container {
    padding: 2rem;
    position: relative;
}

/* ========== PROFILE IMAGE MODERN DISPLAY ========== */
.home__image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    isolation: isolate;
    min-height: 500px;
}

.home__img-container {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto;
}

/* Geometric frame made of lines */
.home__img-frame {
    position: absolute;
    inset: -10px;
    border: 2px solid transparent;
    border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.2) 0%, 
        rgba(16, 185, 129, 0.2) 50%, 
        rgba(139, 92, 246, 0.2) 100%);
    backdrop-filter: blur(10px);
    animation: frame-morph 8s ease-in-out infinite;
    z-index: 1;
}

.home__img-frame::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        transparent 40%, 
        var(--secondary-color) 60%, 
        transparent 100%);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: gradient-rotate 10s linear infinite;
}

/* Profile image with elegant shadow */
.home__img {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(99, 102, 241, 0.15)) 
            drop-shadow(0 10px 20px rgba(16, 185, 129, 0.1));
    z-index: 2;
    top: -35px; /* Adjust this value */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    animation: gentle-breathe 6s ease-in-out infinite;
    will-change: transform, filter;
}

.home__img:hover {
    transform: scale(1.02);
    filter: drop-shadow(0 30px 60px rgba(99, 102, 241, 0.25)) 
            drop-shadow(0 15px 30px rgba(16, 185, 129, 0.15));
}

/* Animated particles around the image */
.home__img-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    animation: particle-float var(--duration) ease-in-out infinite;
    opacity: 0.6;
}

.particle:nth-child(1) { 
    top: 10%; left: 15%; 
    --duration: 4s; 
    animation-delay: 0s; 
}
.particle:nth-child(2) { 
    top: 20%; right: 10%; 
    --duration: 5s; 
    animation-delay: 0.5s; 
}
.particle:nth-child(3) { 
    bottom: 15%; left: 20%; 
    --duration: 4.5s; 
    animation-delay: 1s; 
}
.particle:nth-child(4) { 
    bottom: 10%; right: 15%; 
    --duration: 5.5s; 
    animation-delay: 1.5s; 
}
.particle:nth-child(5) { 
    top: 40%; left: 5%; 
    --duration: 6s; 
    animation-delay: 0.25s; 
}
.particle:nth-child(6) { 
    top: 50%; right: 5%; 
    --duration: 4.8s; 
    animation-delay: 0.75s; 
}
.particle:nth-child(7) { 
    top: 5%; left: 50%; 
    --duration: 5.2s; 
    animation-delay: 1.25s; 
}
.particle:nth-child(8) { 
    bottom: 5%; left: 50%; 
    --duration: 4.7s; 
    animation-delay: 1.75s; 
}

/* Elegant badge with glass morphism */
.image__badge {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95), 
        rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--neutral-800);
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: var(--font-semi-bold);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 10px 20px rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    animation: badge-appear 0.8s ease-out,
               badge-shimmer 3s ease-in-out infinite;
    z-index: 3;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.image__badge::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, 
        var(--primary-color) 0%, 
        transparent 30%, 
        var(--secondary-color) 70%, 
        transparent 100%);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: gradient-shift 4s ease-in-out infinite;
}

.image__badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        transparent);
    animation: badge-shine 6s ease-in-out infinite;
}

.image__badge i {
    font-size: 1.25rem;
    color: var(--secondary-color);
    animation: icon-pulse 2s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.image__badge span {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, 
        var(--neutral-800) 0%, 
        var(--neutral-700) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.image__badge:hover {
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.12),
        0 15px 30px rgba(99, 102, 241, 0.15);
    animation-play-state: paused;
}

.image__badge:hover::after {
    animation-play-state: paused;
}

/* Subtle glow behind the image */
.home__img-glow {
    position: absolute;
    width: 120%;
    height: 120%;
    border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(99, 102, 241, 0.08) 0%,
        rgba(16, 185, 129, 0.05) 40%,
        transparent 70%
    );
    filter: blur(40px);
    animation: glow-pulse 8s ease-in-out infinite;
    z-index: 0;
}

/* ========== ANIMATIONS ========== */
@keyframes frame-morph {
    0%, 100% { 
        border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%;
        transform: rotate(0deg);
    }
    25% { 
        border-radius: 60% 40% 40% 60% / 60% 50% 50% 60%;
        transform: rotate(90deg);
    }
    50% { 
        border-radius: 50% 50% 60% 40% / 60% 40% 50% 50%;
        transform: rotate(180deg);
    }
    75% { 
        border-radius: 40% 60% 50% 50% / 50% 50% 60% 40%;
        transform: rotate(270deg);
    }
}

@keyframes gradient-rotate {
    0% { 
        background: linear-gradient(135deg, 
            var(--primary-color) 0%, 
            transparent 40%, 
            var(--secondary-color) 60%, 
            transparent 100%);
    }
    25% {
        background: linear-gradient(225deg, 
            var(--secondary-color) 0%, 
            transparent 40%, 
            var(--accent-color) 60%, 
            transparent 100%);
    }
    50% { 
        background: linear-gradient(315deg, 
            var(--accent-color) 0%, 
            transparent 40%, 
            var(--primary-color) 60%, 
            transparent 100%);
    }
    75% { 
        background: linear-gradient(45deg, 
            var(--primary-color) 0%, 
            transparent 40%, 
            var(--secondary-color) 60%, 
            transparent 100%);
    }
    100% { 
        background: linear-gradient(135deg, 
            var(--primary-color) 0%, 
            transparent 40%, 
            var(--secondary-color) 60%, 
            transparent 100%);
    }
}

@keyframes gentle-breathe {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 20px 40px rgba(99, 102, 241, 0.15)) 
                drop-shadow(0 10px 20px rgba(16, 185, 129, 0.1));
    }
    50% { 
        transform: scale(1.01);
        filter: drop-shadow(0 25px 50px rgba(99, 102, 241, 0.2)) 
                drop-shadow(0 15px 30px rgba(16, 185, 129, 0.15));
    }
}

@keyframes particle-float {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    33% { 
        transform: translate(5px, -10px) scale(1.2);
        opacity: 0.8;
    }
    66% { 
        transform: translate(-5px, 5px) scale(0.9);
        opacity: 0.4;
    }
}

@keyframes badge-appear {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes badge-shimmer {
    0%, 100% { 
        box-shadow: 
            0 20px 40px rgba(0, 0, 0, 0.08),
            0 10px 20px rgba(99, 102, 241, 0.1);
    }
    50% { 
        box-shadow: 
            0 25px 50px rgba(0, 0, 0, 0.12),
            0 15px 30px rgba(99, 102, 241, 0.15);
    }
}

@keyframes gradient-shift {
    0%, 100% { 
        opacity: 1;
    }
    50% { 
        opacity: 0.7;
    }
}

@keyframes badge-shine {
    0%, 90%, 100% {
        left: -100%;
    }
    45% {
        left: 100%;
    }
}

@keyframes icon-pulse {
    0%, 100% { 
        transform: scale(1);
    }
    50% { 
        transform: scale(1.1);
    }
}

@keyframes glow-pulse {
    0%, 100% { 
        opacity: 0.3;
        transform: scale(1);
    }
    50% { 
        opacity: 0.5;
        transform: scale(1.1);
    }
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */
@media screen and (max-width: 768px) {
    .home__img-container {
        width: 300px;
        height: 300px;
    }
    
    .home__img {
        filter: drop-shadow(0 15px 30px rgba(99, 102, 241, 0.15)) 
                drop-shadow(0 8px 16px rgba(16, 185, 129, 0.1));
    }
    
    .image__badge {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .particle {
        width: 3px;
        height: 3px;
    }
}

@media screen and (max-width: 480px) {
    .home__img-container {
        width: 250px;
        height: 250px;
    }
}

/* ========== PERFORMANCE OPTIMIZATION ========== */
@media (prefers-reduced-motion: reduce) {
    .home__img-frame,
    .home__img,
    .particle,
    .image__badge,
    .home__img-glow {
        animation: none !important;
    }
    
    .home__img {
        transition: none;
    }
}

/* ========== EXPERIENCE SECTION ========== */
.timeline {
    max-width: 48rem;
    margin: 0 auto;
}

.timeline__item {
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline__item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 100%;
    height: 2rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.timeline__header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

@media screen and (min-width: 576px) {
    .timeline__header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.timeline__title {
    font-size: var(--h3-font-size);
    color: var(--primary-color);
}

.timeline__company {
    font-weight: var(--font-semi-bold);
    color: var(--text-color);
}

.timeline__date {
    color: var(--text-light);
    font-size: var(--small-font-size);
}

.timeline__content p {
    margin-bottom: 1rem;
}

.timeline__list {
    list-style: none;
}

.timeline__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.timeline__list i {
    color: var(--secondary-color);
    margin-top: 0.25rem;
}

/* ========== SKILLS SECTION ========== */
.skills__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 72rem;
    margin: 0 auto;
}

.skill__category {
    padding: 2rem;
    text-align: center;
}

.skill__icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border-radius: 1rem;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
}

.skill__title {
    font-size: var(--h4-font-size);
    margin-bottom: 1.5rem;
}

.skill__items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.skill__item {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    transition: var(--transition-fast);
}

.skill__item:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

/* ========== PORTFOLIO SECTION ========== */
.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 72rem;
    margin: 0 auto;
}

.portfolio__card {
    overflow: hidden;
}

.portfolio__image {
    height: 200px;
    overflow: hidden;
    border-radius: 1rem 1rem 0 0;
}

.portfolio__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.portfolio__card:hover .portfolio__image img {
    transform: scale(1.1);
}

.portfolio__content {
    padding: 1.5rem;
}

.portfolio__title {
    font-size: var(--h4-font-size);
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.portfolio__description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: var(--small-font-size);
}

.portfolio__results {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.result {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--secondary-color);
    border-radius: 2rem;
    font-size: var(--small-font-size);
    font-weight: var(--font-semi-bold);
}

/* ========== SERVICES SECTION ========== */
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 72rem;
    margin: 0 auto;
}

.service__card {
    padding: 2rem;
    text-align: center;
}

.service__icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
    color: white;
    border-radius: 1rem;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
}

.service__title {
    font-size: var(--h4-font-size);
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service__description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service__features {
    list-style: none;
    text-align: left;
}

.service__features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.service__features i {
    color: var(--secondary-color);
}

/* ========== CONTACT SECTION ========== */
.contact__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 72rem;
    margin: 0 auto;
}

@media screen and (min-width: 992px) {
    .contact__grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact__info {
    padding: 3rem;
}

.contact__title {
    font-size: var(--h2-font-size);
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact__description {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact__details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact__item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact__item i {
    width: 3rem;
    height: 3rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: 1rem;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
}

.contact__label {
    display: block;
    font-size: var(--small-font-size);
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.contact__value {
    color: var(--text-color);
    font-weight: var(--font-medium);
}

.contact__value:hover {
    color: var(--primary-color);
}

.contact__social {
    display: flex;
    gap: 1rem;
}

.social__link {
    width: 3rem;
    height: 3rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    border-radius: 1rem;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    transition: var(--transition-normal);
}

.social__link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.contact__form {
    padding: 3rem;
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__input,
.form__textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--neutral-200);
    border-radius: 0.75rem;
    font-size: var(--normal-font-size);
    color: var(--text-color);
    transition: var(--transition-fast);
}

.form__input:focus,
.form__textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form__textarea {
    min-height: 150px;
    resize: vertical;
}

.form__button {
    width: 100%;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--neutral-900);
    color: var(--neutral-300);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media screen and (min-width: 768px) {
    .footer__content {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--heading-font);
    font-size: var(--h3-font-size);
    font-weight: var(--font-bold);
    color: white;
    margin-bottom: 1rem;
}

.footer__logo i {
    font-size: 1.5rem;
}

.footer__description {
    color: var(--neutral-400);
    line-height: 1.7;
}

.footer__title {
    color: white;
    font-size: var(--h4-font-size);
    margin-bottom: 1.5rem;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer__list a {
    color: var(--neutral-400);
    transition: var(--transition-fast);
}

.footer__list a:hover {
    color: white;
    padding-left: 0.5rem;
}

.footer__cta p {
    color: var(--neutral-400);
    margin-bottom: 1.5rem;
}

.footer__bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--neutral-800);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

@media screen and (min-width: 576px) {
    .footer__bottom {
        flex-direction: row;
    }
}

.footer__copyright {
    color: var(--neutral-500);
    font-size: var(--small-font-size);
}

.footer__legal {
    display: flex;
    gap: 2rem;
}

.footer__legal a {
    color: var(--neutral-500);
    font-size: var(--small-font-size);
    transition: var(--transition-fast);
}

.footer__legal a:hover {
    color: white;
}

/* ========== SCROLL TO TOP ========== */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(1rem);
    transition: all var(--transition-normal);
    z-index: var(--z-tooltip);
    border: none;
    box-shadow: var(--shadow-lg);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-xl);
}

/* ========== RESPONSIVE DESIGN ========== */
@media screen and (max-width: 767px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 6rem 2rem;
        transition: right var(--transition-normal);
        z-index: var(--z-modal);
    }

    .nav__menu.active {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        gap: 2rem;
    }

    .nav__toggle,
    .nav__close {
        display: block;
    }

    .nav__close {
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
    }

    .section {
        padding: 3rem 0;
    }

    .section__title {
        font-size: var(--h2-font-size);
    }

    .section__subtitle {
        font-size: var(--normal-font-size);
    }

    .home__name {
        font-size: 2.5rem;
    }

    .home__profession {
        font-size: 1.5rem;
    }

    .home__stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .timeline__item::before {
        display: none;
    }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp var(--transition-slow) forwards;
}

/* ========== SCROLLBAR STYLING ========== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--neutral-100);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-dark));
}




/* Default mobile layout - image first */
.home__container {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
}

.home__data {
    order: 1;
    text-align: center;
}

.home__image {
    order: 0;
}

.home__profession::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Desktop layout - side by side */
@media screen and (min-width: 992px) {
    .home__container {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-4xl);
        align-items: center;
    }
    
    .home__data {
        order: 0;
        text-align: left;
    }
    
    .home__image {
        order: 1;
    }
    
    .home__profession::after {
        left: 0;
        transform: none;
    }
}