/*=============== CSS VARIABLES ===============*/
:root {
    --header-height: 4.5rem;
    
    /* Colors - Modern Vibrant Palette */
    --primary-color: #7c3aed;
    --primary-light: #a78bfa;
    --primary-dark: #5b21b6;
    --secondary-color: #06b6d4;
    --accent-color: #ec4899;
    --success-color: #10b981;
    --danger-color: #f43f5e;
    
    --title-color: #f8fafc;
    --text-color: #cbd5e1;
    --text-light: #94a3b8;
    --bg-color: #0a0a0f;
    --bg-light: #13131a;
    --card-color: rgba(28, 28, 38, 0.7);
    --white: #ffffff;
    --border-color: rgba(148, 163, 184, 0.12);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-accent: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --gradient-dark: linear-gradient(135deg, #0a0a0f 0%, #1c1c26 100%);
    
    /* Typography */
    --font-primary: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: "Space Grotesk", -apple-system, sans-serif;
    --big-font-size: clamp(3rem, 10vw, 5.5rem);
    --h1-font-size: clamp(2rem, 6vw, 3.25rem);
    --h2-font-size: clamp(1.5rem, 4vw, 2rem);
    --h3-font-size: clamp(1.25rem, 3vw, 1.5rem);
    --normal-font-size: 1.0625rem;
    --small-font-size: 0.9375rem;
    --smaller-font-size: 0.8125rem;
    
    /* Font weights */
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 2.5rem;
    --space-3xl: 3rem;
    
    /* Other */
    --border-radius: 1rem;
    --border-radius-sm: 0.625rem;
    --border-radius-lg: 1.5rem;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.16);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.24);
    --shadow-xl: 0 24px 56px rgba(0, 0, 0, 0.32);
    --shadow-glow: 0 0 60px rgba(124, 58, 237, 0.4);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: var(--normal-font-size);
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background with Mesh Gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 15%, rgba(124, 58, 237, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 85% 85%, rgba(236, 72, 153, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
    z-index: -1;
    animation: meshMove 15s ease infinite;
}

@keyframes meshMove {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% { 
        transform: scale(1.1) rotate(5deg);
        opacity: 0.8;
    }
}

/* Floating particles effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 60% 70%, rgba(236, 72, 153, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 80% 10%, rgba(6, 182, 212, 0.03) 1px, transparent 1px);
    background-size: 80px 80px, 120px 120px, 100px 100px;
    z-index: -1;
    animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
    from { transform: translateY(0); }
    to { transform: translateY(-100px); }
}

h1, h2, h3 {
    color: var(--title-color);
    font-weight: var(--font-bold);
    font-family: var(--font-secondary);
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: var(--white);
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/*=============== REUSABLE CLASSES ===============*/
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-xl);
}

.section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.section-title {
    font-size: var(--h1-font-size);
    text-align: center;
    margin-bottom: var(--space-3xl);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    width: 100%;
    font-weight: var(--font-extrabold);
    letter-spacing: -0.03em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: var(--gradient-primary);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.5);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--border-radius);
    font-weight: var(--font-semibold);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: inherit;
    font-size: var(--normal-font-size);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 48px rgba(124, 58, 237, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--primary-color);
    position: relative;
}

.btn-outline::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    border-radius: var(--border-radius);
    z-index: -1;
}

.btn-outline:hover::after {
    opacity: 1;
}

.btn-outline:hover {
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.4);
}

/*=============== HEADER ===============*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
    transition: var(--transition);
}

.header.scroll-header {
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.nav {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    font-size: var(--h3-font-size);
    font-weight: var(--font-extrabold);
    font-family: var(--font-secondary);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    position: relative;
}

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

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

.nav__list {
    display: flex;
    gap: var(--space-xl);
    list-style: none;
}

.nav__link {
    color: var(--text-light);
    font-weight: var(--font-medium);
    position: relative;
    transition: var(--transition);
    padding: var(--space-xs) var(--space-sm);
}

.nav__link::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: var(--transition);
}

.nav__link:hover,
.nav__link.active {
    color: var(--white);
}

.nav__link:hover::before,
.nav__link.active::before {
    transform: translateX(-50%) scaleX(1);
}

.nav__toggle {
    display: none;
    font-size: 1.75rem;
    cursor: pointer;
    color: var(--white);
}

/*=============== HOME ===============*/
.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--header-height) + var(--space-xl));
    position: relative;
    overflow: hidden;
}

.home__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.home__data h1 {
    font-size: var(--big-font-size);
    font-weight: var(--font-extrabold);
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.04em;
}

.home__subtitle {
    font-size: var(--h2-font-size);
    color: var(--text-light);
    font-weight: var(--font-semibold);
    display: block;
    margin-bottom: var(--space-md);
}

.home__name {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(10deg); }
}

.home__description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: var(--space-xl);
    line-height: 1.8;
    max-width: 540px;
}

.home__buttons {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.home__social {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.home__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: var(--card-color);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    color: var(--white);
    font-size: 1.375rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.home__social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.home__social-link:hover::before {
    opacity: 1;
}

.home__social-link i {
    position: relative;
    z-index: 1;
}

.home__social-link:hover {
    transform: translateY(-6px) rotate(5deg);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.4);
    border-color: transparent;
}

.home__img {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.home__img::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.4;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.6;
    }
}

.home__profile {
    width: 380px;
    height: 380px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid transparent;
    background: linear-gradient(var(--bg-color), var(--bg-color)) padding-box,
                var(--gradient-primary) border-box;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    75% { transform: translateY(-10px) rotate(-1deg); }
}

/*=============== ABOUT ===============*/
.about {
    background: var(--bg-light);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(124, 58, 237, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.about__container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about__img {
    position: relative;
}

.about__img::before {
    content: '';
    position: absolute;
    top: -24px;
    left: -24px;
    right: 24px;
    bottom: 24px;
    background: var(--gradient-accent);
    border-radius: var(--border-radius-lg);
    opacity: 0.2;
    z-index: 0;
}

.about__img::after {
    content: '';
    position: absolute;
    inset: -4px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.about__img:hover::after {
    opacity: 0.15;
}

.about__profile {
    width: 100%;
    border-radius: var(--border-radius-lg);
    position: relative;
    z-index: 1;
    transition: var(--transition);
    border: 2px solid var(--border-color);
}

.about__profile:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

.about__text {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: var(--space-xl);
    line-height: 1.9;
}

.about__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.about__stat {
    text-align: center;
    padding: var(--space-xl);
    background: var(--card-color);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.about__stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.about__stat:hover::before {
    transform: scaleX(1);
}

.about__stat:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.3);
}

.about__stat-number {
    font-size: var(--h1-font-size);
    font-weight: var(--font-extrabold);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: var(--space-xs);
}

.about__stat-label {
    font-size: var(--small-font-size);
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: var(--font-semibold);
}

/*=============== SKILLS ===============*/
.skills__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-xl);
}

.skills__card {
    background: var(--card-color);
    backdrop-filter: blur(10px);
    padding: var(--space-2xl);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

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

.skills__card::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50px;
    width: 150px;
    height: 150px;
    background: var(--gradient-primary);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0;
    transition: var(--transition);
}

.skills__card:hover::before {
    transform: translateX(0);
}

.skills__card:hover::after {
    opacity: 0.15;
}

.skills__card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 48px rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.3);
}

.skills__header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.skills__icon {
    font-size: 2.25rem;
    color: var(--primary-color);
    background: rgba(124, 58, 237, 0.1);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
}

.skills__title {
    font-size: var(--h3-font-size);
    font-weight: var(--font-bold);
    color: var(--title-color);
}

.skills__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.skills__item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(124, 58, 237, 0.08);
    border-radius: var(--border-radius-sm);
    font-weight: var(--font-medium);
    font-size: var(--small-font-size);
    color: var(--text-color);
    transition: var(--transition);
    border: 1px solid transparent;
}

.skills__item:hover {
    background: rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateX(4px);
}

.skills__item i {
    color: var(--primary-light);
    font-size: 1.125rem;
}

/*=============== PROJECTS ===============*/
.projects {
    background: var(--bg-light);
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle at 80% 50%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.projects__container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: var(--space-2xl);
}

.project__card {
    background: var(--card-color);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
}

.project__card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.project__card:hover::before {
    opacity: 0.05;
}

.project__card:hover {
    transform: translateY(-12px);
    box-shadow: 0 24px 56px rgba(124, 58, 237, 0.25);
    border-color: rgba(124, 58, 237, 0.3);
}

.project__img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: var(--transition-slow);
    position: relative;
}

.project__card:hover .project__img {
    transform: scale(1.08);
}

.project__content {
    padding: var(--space-xl);
    position: relative;
    z-index: 1;
}

.project__title {
    font-size: var(--h3-font-size);
    margin-bottom: var(--space-sm);
    color: var(--title-color);
    font-weight: var(--font-bold);
}

.project__description {
    color: var(--text-light);
    margin-bottom: var(--space-lg);
    font-size: var(--normal-font-size);
    line-height: 1.7;
}

.project__tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.project__tech-item {
    padding: 0.375rem 0.75rem;
    background: rgba(124, 58, 237, 0.12);
    border-radius: var(--border-radius-sm);
    font-size: var(--smaller-font-size);
    color: var(--primary-light);
    font-weight: var(--font-semibold);
    border: 1px solid rgba(124, 58, 237, 0.2);
    transition: var(--transition);
}

.project__tech-item:hover {
    background: rgba(124, 58, 237, 0.2);
    transform: translateY(-2px);
}

.project__links {
    display: flex;
    gap: var(--space-lg);
}

.project__link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--primary-color);
    font-weight: var(--font-semibold);
    font-size: var(--small-font-size);
    transition: var(--transition);
    position: relative;
}

.project__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.project__link:hover::after {
    width: 100%;
}

.project__link:hover {
    color: var(--primary-light);
    transform: translateX(4px);
}

/*=============== CONTACT ===============*/
.contact__container {
    max-width: 640px;
    margin: 0 auto;
}

.contact__form {
    background: var(--card-color);
    backdrop-filter: blur(10px);
    padding: var(--space-3xl);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.contact__group {
    position: relative;
    margin-bottom: var(--space-xl);
}

.contact__input {
    width: 100%;
    padding: var(--space-md) var(--space-md) var(--space-md) 3.25rem;
    background: var(--bg-color);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--white);
    font-family: inherit;
    font-size: var(--normal-font-size);
    transition: var(--transition);
    outline: none;
}

.contact__input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
    background: rgba(124, 58, 237, 0.03);
}

.contact__input::placeholder {
    color: var(--text-light);
}

.contact__icon {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    font-size: 1.375rem;
    transition: var(--transition);
}

.contact__group:focus-within .contact__icon {
    color: var(--primary-light);
    transform: translateY(-50%) scale(1.1);
}

.contact__textarea {
    resize: vertical;
    min-height: 140px;
    padding-top: var(--space-md);
}

.contact__button {
    width: 100%;
    justify-content: center;
    font-size: var(--normal-font-size);
    padding: var(--space-lg);
}

/*=============== FOOTER ===============*/
.footer {
    background: var(--bg-color);
    padding: var(--space-3xl) 0 var(--space-xl);
    border-top: 1px solid var(--border-color);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: var(--gradient-primary);
}

.footer__container {
    text-align: center;
}

.footer__title {
    font-size: var(--h2-font-size);
    font-weight: var(--font-extrabold);
    margin-bottom: var(--space-md);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.footer__description {
    color: var(--text-light);
    margin-bottom: var(--space-2xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.footer__social {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
    flex-wrap: wrap;
}

.footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    background: var(--card-color);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    color: var(--white);
    font-size: 1.375rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.footer__social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition);
}

.footer__social-link:hover::before {
    opacity: 1;
}

.footer__social-link i {
    position: relative;
    z-index: 1;
}

.footer__social-link:hover {
    transform: translateY(-6px) rotate(-5deg);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.4);
    border-color: transparent;
}

.footer__copy {
    color: var(--text-light);
    font-size: var(--small-font-size);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
}

/*=============== SCROLL UP ===============*/
.scrollup {
    position: fixed;
    right: var(--space-xl);
    bottom: var(--space-xl);
    background: var(--gradient-primary);
    color: var(--white);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 50;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.scrollup.show-scroll {
    opacity: 1;
    visibility: visible;
}

.scrollup:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 16px 40px rgba(124, 58, 237, 0.6);
}

/*=============== FLASH MESSAGES ===============*/
.flash-messages {
    position: fixed;
    top: calc(var(--header-height) + var(--space-md));
    right: var(--space-xl);
    z-index: 200;
    max-width: 400px;
}

.flash-message {
    padding: var(--space-md) var(--space-xl);
    margin-bottom: var(--space-sm);
    border-radius: var(--border-radius);
    font-weight: var(--font-semibold);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    animation: slideInRight 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.flash-success {
    background: rgba(16, 185, 129, 0.95);
    color: var(--white);
}

.flash-danger {
    background: rgba(244, 63, 94, 0.95);
    color: var(--white);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/*=============== LOADING ANIMATION ===============*/
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: var(--transition-slow);
}

.loader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader__spinner {
    width: 64px;
    height: 64px;
    border: 4px solid rgba(124, 58, 237, 0.2);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.3);
}

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

/*=============== MOBILE RESPONSIVE ===============*/
@media screen and (max-width: 1024px) {
    .home__container,
    .about__container {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .home__img {
        order: -1;
    }

    .home__profile {
        width: 320px;
        height: 320px;
    }
    
    .about__container {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --big-font-size: clamp(2.5rem, 8vw, 4rem);
        --h1-font-size: clamp(1.75rem, 5vw, 2.5rem);
        --space-3xl: 2rem;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .nav__list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 350px;
        height: 100vh;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: var(--space-2xl);
        transition: var(--transition-slow);
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.5);
        border-left: 1px solid var(--border-color);
    }

    .nav__list.show-menu {
        right: 0;
    }

    .nav__toggle {
        display: block;
    }

    .nav__close {
        position: absolute;
        top: var(--space-xl);
        right: var(--space-xl);
        font-size: 1.75rem;
        cursor: pointer;
        display: none;
        color: var(--white);
    }

    .home__profile {
        width: 280px;
        height: 280px;
    }

    .home__buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .home__buttons .btn {
        width: 100%;
        justify-content: center;
    }

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

    .skills__list {
        grid-template-columns: 1fr;
    }

    .skills__container {
        grid-template-columns: 1fr;
    }

    .footer__social {
        flex-wrap: wrap;
    }

    .contact__form {
        padding: var(--space-2xl);
    }
}

@media screen and (max-width: 480px) {
    :root {
        --header-height: 4rem;
        --space-xl: 1.5rem;
        --space-2xl: 2rem;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .section {
        padding: var(--space-2xl) 0;
    }

    .home__profile {
        width: 240px;
        height: 240px;
    }

    .home__img::before {
        width: 280px;
        height: 280px;
    }

    .about__stats {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .about__stat {
        padding: var(--space-lg);
    }

    .projects__container {
        grid-template-columns: 1fr;
    }

    .contact__form {
        padding: var(--space-xl);
    }

    .flash-messages {
        right: var(--space-md);
        left: var(--space-md);
        max-width: none;
    }

    .scrollup {
        right: var(--space-md);
        bottom: var(--space-md);
        width: 48px;
        height: 48px;
    }
}

/*=============== UTILITY ANIMATIONS ===============*/
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Add stagger animation for elements */
.home__data > * {
    animation: fadeIn 0.8s ease backwards;
}

.home__data h1 {
    animation-delay: 0.1s;
}

.home__description {
    animation-delay: 0.2s;
}

.home__buttons {
    animation-delay: 0.3s;
}

.home__social {
    animation-delay: 0.4s;
}

.home__img {
    animation: scaleIn 1s ease backwards;
    animation-delay: 0.2s;
}

/*=============== ACCESSIBILITY ===============*/
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible styles */
*:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--border-radius);
    z-index: 9999;
    transition: var(--transition);
}

.skip-to-content:focus {
    top: var(--space-md);
}