/* ============================================
   Mir Mirazimov Portfolio - Premium Design
   ============================================ */

/* CSS Custom Properties - Design Tokens */
:root {
    /* Colors - Dark Theme */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: rgba(26, 26, 37, 0.7);

    /* Accent Colors - Purple/Cyan Gradient */
    --accent-primary: #8B5CF6;
    --accent-secondary: #06B6D4;
    --accent-tertiary: #EC4899;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --accent-gradient-reverse: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

    /* Spacing */
    --section-padding: 120px 0;
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 50%;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

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

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

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

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

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    color: var(--text-secondary);
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent-secondary);
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-medium);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.nav-logo span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-primary);
    transition: all var(--transition-medium);
}

/* Language Switcher */
.lang-switcher {
    position: relative;
    margin-left: 20px;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px;
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-primary);
}

.lang-option.active {
    background: var(--accent-gradient);
    color: white;
}

.lang-flag {
    font-size: 1.2rem;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width var(--transition-medium);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition-fast);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Particle Canvas */
#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Gradient Orbs */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 8s ease-in-out infinite;
}

.gradient-orb-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-primary);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.gradient-orb-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    bottom: -150px;
    left: -100px;
    animation-delay: -4s;
}

.gradient-orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-tertiary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -2s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.8s ease;
}

.hero-badge .status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-title {
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-title .gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    color: var(--text-secondary);
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.8s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-medium);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.6);
    color: var(--text-primary);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: rgba(139, 92, 246, 0.1);
    color: var(--text-primary);
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.hero-scroll a {
    color: var(--text-muted);
    font-size: 1.5rem;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ============================================
   Section Headers
   ============================================ */
.section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.section-title {
    margin-bottom: 16px;
}

.section-description {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
}

/* ============================================
   About Section
   ============================================ */
.about {
    background: var(--bg-secondary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0.3;
    z-index: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(20%);
    transition: filter var(--transition-medium);
}

.about-image:hover img {
    filter: grayscale(0%);
}

.about-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent-primary);
    border-radius: var(--radius-lg);
    top: 20px;
    left: 20px;
    z-index: -1;
}

.about-content h2 {
    margin-bottom: 24px;
}

.about-content h2 .gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-text {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.about-languages {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.language-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.9rem;
}

.language-tag .level {
    color: var(--accent-secondary);
    font-weight: 600;
}

/* ============================================
   Skills Section
   ============================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all var(--transition-medium);
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
}

.skill-category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.skill-category-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    font-size: 1.5rem;
}

.skill-category h3 {
    font-size: 1.25rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.skill-tag:hover {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.skill-tag img {
    width: 20px;
    height: 20px;
}

/* Featured Skills - Large Icons */
.featured-skills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.featured-skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-medium);
    cursor: pointer;
}

.featured-skill:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.featured-skill img {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    filter: grayscale(100%) brightness(2);
    transition: filter var(--transition-medium);
}

.featured-skill:hover img {
    filter: grayscale(0%) brightness(1);
}

.featured-skill span {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

/* ============================================
   Experience Section
   ============================================ */
.experience {
    background: var(--bg-secondary);
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 3px;
}

/* Upward moving energy beam */
.timeline::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100px;
    /* Length of the beam */
    background: linear-gradient(to top,
            transparent,
            rgba(139, 92, 246, 0.5),
            #06b6d4,
            #ec4899,
            #06b6d4,
            rgba(139, 92, 246, 0.5),
            transparent);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.8), 0 0 30px rgba(236, 72, 153, 0.6);
    top: 100%;
    animation: timelineBeam 3s ease-in-out infinite;
    opacity: 0;
}

@keyframes timelineBeam {
    0% {
        top: 100%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: -100px;
        opacity: 0;
    }
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 50px 60px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 80px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 80px;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--accent-primary);
    border: 4px solid var(--bg-secondary);
    border-radius: 50%;
    top: 0;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: all var(--transition-medium);
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
}

.timeline-header {
    margin-bottom: 20px;
}

.timeline-period {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-primary);
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 1.25rem;
    margin-bottom: 5px;
}

.timeline-company {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-secondary);
    font-weight: 600;
}

.timeline-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 5px;
}

.timeline-type {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(6, 182, 212, 0.2);
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--accent-secondary);
    margin-left: 10px;
}

.timeline-highlights {
    list-style: none;
    margin-bottom: 20px;
}

.timeline-highlights li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.timeline-highlights li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

.timeline-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.timeline-tech span {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   Projects Section
   ============================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-medium);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transition: transform var(--transition-medium);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 30px 60px rgba(139, 92, 246, 0.2);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-header {
    padding: 30px 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.project-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    font-size: 1.75rem;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    color: var(--text-muted);
    font-size: 1.25rem;
    transition: color var(--transition-fast);
}

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

.project-body {
    padding: 25px 30px 30px;
}

.project-company {
    font-size: 0.85rem;
    color: var(--accent-secondary);
    font-weight: 600;
    margin-bottom: 10px;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.project-highlights {
    list-style: none;
    margin-bottom: 25px;
}

.project-highlights li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.project-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech span {
    padding: 6px 14px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--accent-primary);
}

/* ============================================
   Achievements Section
   ============================================ */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.achievement-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity var(--transition-medium);
}

.achievement-card:hover {
    transform: translateY(-5px);
    border-color: transparent;
}

.achievement-card:hover::before {
    opacity: 0.1;
}

.achievement-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    font-size: 2rem;
    position: relative;
    z-index: 1;
}

.achievement-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.achievement-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

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

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.education-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    backdrop-filter: blur(10px);
    transition: all var(--transition-medium);
    display: flex;
    gap: 25px;
}

.education-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
}

.education-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: var(--radius-md);
    font-size: 2rem;
    flex-shrink: 0;
}

.education-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.education-institution {
    color: var(--accent-secondary);
    font-weight: 600;
    margin-bottom: 10px;
}

.education-period {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    position: relative;
    overflow: hidden;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h2 {
    margin-bottom: 20px;
}

.contact-info h2 .gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-text {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-medium);
}

.contact-link:hover {
    border-color: var(--accent-primary);
    transform: translateX(10px);
}

.contact-link-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    font-size: 1.25rem;
}

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

.contact-link-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 3px;
}

/* Contact Form */
.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-social a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: all var(--transition-medium);
}

.footer-social a:hover {
    background: var(--accent-gradient);
    border-color: transparent;
    color: var(--text-primary);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px !important;
        padding-right: 0 !important;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-dot {
        left: 10px !important;
        right: auto !important;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--glass-border);
        padding: 20px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 15px 0;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-toggle {
        display: flex;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

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

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

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

    .education-card {
        flex-direction: column;
        text-align: center;
    }

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

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .timeline-content {
        padding: 20px;
    }

    .project-card .project-header,
    .project-card .project-body {
        padding: 20px;
    }
}

/* ============================================
   Animated Section Backgrounds - STUNNING EDITION
   ============================================ */

/* Base animated background for all sections */
.section-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* Ensure section content is above animation */
.section .container {
    position: relative;
    z-index: 1;
}

/* ===== ABOUT SECTION - Cyber Grid with Neon Lines ===== */
.about .section-bg-animation {
    background:
        /* Moving horizontal neon line */
        linear-gradient(90deg, transparent 40%, rgba(139, 92, 246, 0.8) 50%, transparent 60%),
        /* Cyber grid */
        linear-gradient(rgba(139, 92, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.1) 1px, transparent 1px),
        /* Glow spots */
        radial-gradient(circle at 20% 30%, rgba(139, 92, 246, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.15) 0%, transparent 25%);
    background-size: 200% 2px, 60px 60px, 60px 60px, 100% 100%, 100% 100%;
    background-position: 0% 50%, 0 0, 0 0, 0 0, 0 0;
    animation: aboutScan 4s ease-in-out infinite, gridGlow 8s ease-in-out infinite;
}

@keyframes aboutScan {

    0%,
    100% {
        background-position: -100% 30%, 0 0, 0 0, 0 0, 0 0;
    }

    50% {
        background-position: 200% 70%, 30px 30px, 30px 30px, 0 0, 0 0;
    }
}

@keyframes gridGlow {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Floating particles for About */
.about .section-bg-animation::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(3px 3px at 10% 20%, rgba(139, 92, 246, 0.8), transparent),
        radial-gradient(2px 2px at 30% 60%, rgba(6, 182, 212, 0.8), transparent),
        radial-gradient(3px 3px at 50% 40%, rgba(236, 72, 153, 0.8), transparent),
        radial-gradient(2px 2px at 70% 80%, rgba(139, 92, 246, 0.8), transparent),
        radial-gradient(3px 3px at 90% 30%, rgba(6, 182, 212, 0.8), transparent),
        radial-gradient(2px 2px at 15% 90%, rgba(236, 72, 153, 0.6), transparent),
        radial-gradient(3px 3px at 85% 10%, rgba(139, 92, 246, 0.6), transparent);
    animation: floatParticles 20s linear infinite;
}

@keyframes floatParticles {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0.8;
    }

    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 1;
    }

    50% {
        transform: translateY(-10px) translateX(-15px);
        opacity: 0.6;
    }

    75% {
        transform: translateY(-30px) translateX(5px);
        opacity: 0.9;
    }

    100% {
        transform: translateY(0) translateX(0);
        opacity: 0.8;
    }
}

/* Glowing orb for About */
.about .section-bg-animation::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(139, 92, 246, 0.1) 30%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    filter: blur(40px);
    animation: orbFloat 6s ease-in-out infinite;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50px, 50px) scale(1.2);
        opacity: 0.8;
    }
}

/* ===== SKILLS SECTION - Floating Hexagons + Data Streams ===== */
.skills .section-bg-animation {
    background:
        /* Hexagon grid pattern */
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='52'%3E%3Cpath d='M30 0L60 15v22L30 52 0 37V15z' fill='none' stroke='rgba(139,92,246,0.15)' stroke-width='1'/%3E%3C/svg%3E"),
        /* Flowing data lines */
        linear-gradient(90deg, transparent 48%, rgba(6, 182, 212, 0.3) 49%, rgba(6, 182, 212, 0.3) 51%, transparent 52%),
        linear-gradient(0deg, transparent 48%, rgba(139, 92, 246, 0.2) 49%, rgba(139, 92, 246, 0.2) 51%, transparent 52%);
    background-size: 60px 52px, 300px 100%, 100% 200px;
    animation: hexagonPulse 8s ease-in-out infinite, dataFlowHorizontal 4s linear infinite, dataFlowVertical 6s linear infinite;
}

@keyframes hexagonPulse {

    0%,
    100% {
        background-position: 0 0, -300px 0, 0 -200px;
        filter: brightness(1);
    }

    50% {
        background-position: 30px 26px, -300px 0, 0 -200px;
        filter: brightness(1.2);
    }
}

@keyframes dataFlowHorizontal {
    0% {
        background-position: 0 0, -300px 0, 0 0;
    }

    100% {
        background-position: 0 0, 300px 0, 0 0;
    }
}

@keyframes dataFlowVertical {
    0% {
        background-position: 0 0, 0 0, 0 -200px;
    }

    100% {
        background-position: 0 0, 0 0, 0 200px;
    }
}

/* Glowing 3D cube effect for Skills */
.skills .section-bg-animation::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    top: 10%;
    left: 5%;
    border: 2px solid rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, transparent 100%);
    animation: cube3DRotate 10s ease-in-out infinite;
    transform-style: preserve-3d;
    box-shadow:
        0 0 30px rgba(139, 92, 246, 0.3),
        inset 0 0 30px rgba(139, 92, 246, 0.1);
}

@keyframes cube3DRotate {
    0% {
        transform: perspective(1000px) rotateX(0deg) rotateY(0deg) rotateZ(0deg);
        border-color: rgba(139, 92, 246, 0.4);
    }

    25% {
        transform: perspective(1000px) rotateX(15deg) rotateY(45deg) rotateZ(5deg);
        border-color: rgba(6, 182, 212, 0.5);
    }

    50% {
        transform: perspective(1000px) rotateX(-10deg) rotateY(90deg) rotateZ(-5deg);
        border-color: rgba(236, 72, 153, 0.4);
    }

    75% {
        transform: perspective(1000px) rotateX(10deg) rotateY(135deg) rotateZ(5deg);
        border-color: rgba(6, 182, 212, 0.5);
    }

    100% {
        transform: perspective(1000px) rotateX(0deg) rotateY(180deg) rotateZ(0deg);
        border-color: rgba(139, 92, 246, 0.4);
    }
}

/* Floating orb with rainbow gradient for Skills */
.skills .section-bg-animation::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    bottom: -100px;
    right: -100px;
    background: conic-gradient(from 0deg,
            rgba(139, 92, 246, 0.4),
            rgba(6, 182, 212, 0.4),
            rgba(236, 72, 153, 0.4),
            rgba(255, 215, 0, 0.3),
            rgba(139, 92, 246, 0.4));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    filter: blur(60px);
    animation: skillsRainbowOrb 12s ease-in-out infinite;
}

@keyframes skillsRainbowOrb {

    0%,
    100% {
        transform: scale(1) rotate(0deg);
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        opacity: 0.6;
    }

    33% {
        transform: scale(1.2) rotate(120deg);
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
        opacity: 0.8;
    }

    66% {
        transform: scale(0.9) rotate(240deg);
        border-radius: 50% 50% 50% 50% / 60% 40% 60% 40%;
        opacity: 0.5;
    }
}

/* ===== EXPERIENCE SECTION - Smooth Flowing Gradient + Gentle Waves ===== */
/* ===== EXPERIENCE SECTION - Cyber Tech Design ===== */
.experience .section-bg-animation {
    background-color: var(--bg-primary);
    background-image:
        linear-gradient(rgba(139, 92, 246, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139, 92, 246, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
}

/* Subtle digital rain/scan effect */
.experience .section-bg-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(6, 182, 212, 0.1) 50%,
            transparent 100%);
    background-size: 100% 200%;
    animation: digitalScan 8s linear infinite;
}

@keyframes digitalScan {
    0% {
        background-position: 0% -100%;
    }

    100% {
        background-position: 0% 200%;
    }
}

/* Redesigned Timeline Structure */
.timeline::before {
    width: 4px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: none;
    border-radius: 0;
}

/* Timeline 'Active' Beam - Fixed & Elegant */
.timeline::after {
    width: 4px;
    background: linear-gradient(180deg,
            var(--accent-primary),
            var(--accent-secondary));
    box-shadow: 0 0 15px var(--accent-primary);
    height: 50%;
    top: 0;
    animation: timelineFill 10s ease-in-out infinite alternate;
}

@keyframes timelineFill {
    0% {
        height: 20%;
        top: 10%;
        opacity: 0.5;
    }

    50% {
        height: 60%;
        top: 20%;
        opacity: 0.8;
    }

    100% {
        height: 30%;
        top: 60%;
        opacity: 0.5;
    }
}

/* Premium Glass Cards */
.timeline-content {
    background: rgba(15, 23, 42, 0.8) !important;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-left: 4px solid var(--accent-primary);
    border-radius: 2px 8px 8px 2px;
    /* Tech look */
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px) scale(1.01);
    border-left-color: var(--accent-secondary);
    box-shadow:
        0 20px 40px -15px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(139, 92, 246, 0.2);
}

/* Card Hover scanning effect */
.timeline-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.05),
            transparent);
    transform: skewX(-25deg);
    transition: left 0.5s ease;
}

.timeline-content:hover::after {
    left: 150%;
    transition: left 0.7s ease;
}

/* Timeline Dots - Tech Nodes */
.timeline-dot {
    width: 16px;
    height: 16px;
    background: var(--bg-primary);
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    background: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-primary), 0 0 40px var(--accent-secondary);
    transform: scale(1.3);
}

/* Typography refinements */
.timeline-period {
    font-family: 'Space Mono', monospace;
    color: var(--accent-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: inline-block;
    padding: 4px 10px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 4px;
}

.timeline-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.timeline-company {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-highlights li {
    padding-left: 20px;
    margin-bottom: 8px;
    position: relative;
    color: var(--text-secondary);
}

.timeline-highlights li::before {
    content: '>';
    font-family: monospace;
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}





/* ===== PROJECTS SECTION - Neon Glow Boxes ===== */
.projects .section-bg-animation::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(139, 92, 246, 0.5);
    border-radius: 20px;
    top: 10%;
    left: 5%;
    animation: neonBoxRotate 20s linear infinite;
    box-shadow:
        0 0 20px rgba(139, 92, 246, 0.3),
        inset 0 0 20px rgba(139, 92, 246, 0.1);
}

@keyframes neonBoxRotate {
    0% {
        transform: rotate(0deg) scale(1);
        border-color: rgba(139, 92, 246, 0.5);
    }

    33% {
        transform: rotate(120deg) scale(1.1);
        border-color: rgba(6, 182, 212, 0.5);
    }

    66% {
        transform: rotate(240deg) scale(0.9);
        border-color: rgba(236, 72, 153, 0.5);
    }

    100% {
        transform: rotate(360deg) scale(1);
        border-color: rgba(139, 92, 246, 0.5);
    }
}

.projects .section-bg-animation::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border: 2px solid rgba(6, 182, 212, 0.5);
    border-radius: 50%;
    bottom: 10%;
    right: 5%;
    animation: neonCirclePulse 8s ease-in-out infinite;
    box-shadow:
        0 0 30px rgba(6, 182, 212, 0.3),
        inset 0 0 30px rgba(6, 182, 212, 0.1);
}

@keyframes neonCirclePulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(6, 182, 212, 0.3), inset 0 0 30px rgba(6, 182, 212, 0.1);
    }

    50% {
        transform: scale(1.2);
        box-shadow: 0 0 60px rgba(6, 182, 212, 0.6), inset 0 0 40px rgba(6, 182, 212, 0.2);
    }
}

.projects .section-bg-animation {
    background:
        /* Constellation pattern */
        radial-gradient(2px 2px at 10% 10%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(2px 2px at 90% 20%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 30% 80%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 70% 90%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 20% 40%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 80% 60%, rgba(255, 255, 255, 0.5), transparent);
    background-size: 200px 200px;
    animation: constellationTwinkle 4s ease-in-out infinite;
}

@keyframes constellationTwinkle {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* ===== ACHIEVEMENTS SECTION - Trophy Glow ===== */
.achievements .section-bg-animation {
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 30%);
    animation: achievementGlow 6s ease-in-out infinite;
}

@keyframes achievementGlow {

    0%,
    100% {
        background-size: 100% 100%, 100% 100%, 100% 100%;
        filter: brightness(1);
    }

    50% {
        background-size: 120% 120%, 130% 130%, 130% 130%;
        filter: brightness(1.2);
    }
}

.achievements .section-bg-animation::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 215, 0, 0.05) 45%,
            rgba(255, 215, 0, 0.1) 50%,
            rgba(255, 215, 0, 0.05) 55%,
            transparent 70%);
    animation: goldShimmer 3s ease-in-out infinite;
}

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

    100% {
        transform: translateX(100%);
    }
}

.achievements .section-bg-animation::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: conic-gradient(from 0deg, transparent, rgba(255, 215, 0, 0.2), transparent, rgba(139, 92, 246, 0.2), transparent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: achievementRotate 20s linear infinite;
    filter: blur(60px);
}

@keyframes achievementRotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ===== EDUCATION SECTION - Book/Knowledge Waves ===== */
.education .section-bg-animation {
    background:
        linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent),
        linear-gradient(180deg, rgba(6, 182, 212, 0.05) 0%, transparent 50%, rgba(139, 92, 246, 0.05) 100%);
    animation: educationWave 8s ease-in-out infinite;
}

@keyframes educationWave {

    0%,
    100% {
        background-position: -200% 0, 0 0;
    }

    50% {
        background-position: 200% 0, 0 0;
    }
}

.education .section-bg-animation::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M 0 200 Q 100 150 200 200 T 400 200' fill='none' stroke='rgba(139,92,246,0.1)' stroke-width='2'/%3E%3C/svg%3E");
    background-size: 100% 50px;
    background-position: 0 50%;
    animation: waveMove 10s linear infinite;
    opacity: 0.5;
}

@keyframes waveMove {
    0% {
        background-position: 0 50%;
    }

    100% {
        background-position: 400px 50%;
    }
}

.education .section-bg-animation::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
    top: 20%;
    right: -50px;
    animation: educationOrb 12s ease-in-out infinite;
    filter: blur(40px);
}

@keyframes educationOrb {

    0%,
    100% {
        transform: translate(0, 0);
        opacity: 0.3;
    }

    50% {
        transform: translate(-30px, 30px);
        opacity: 0.6;
    }
}

/* ===== CONTACT SECTION - Aurora Borealis ===== */
.contact .section-bg-animation {
    background: linear-gradient(135deg,
            rgba(139, 92, 246, 0.1) 0%,
            rgba(6, 182, 212, 0.05) 25%,
            rgba(236, 72, 153, 0.1) 50%,
            rgba(6, 182, 212, 0.05) 75%,
            rgba(139, 92, 246, 0.1) 100%);
    background-size: 400% 400%;
    animation: auroraFlow 15s ease infinite;
}

@keyframes auroraFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.contact .section-bg-animation::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 40% at 20% 60%, rgba(139, 92, 246, 0.2), transparent),
        radial-gradient(ellipse 60% 30% at 80% 40%, rgba(6, 182, 212, 0.2), transparent),
        radial-gradient(ellipse 70% 35% at 50% 80%, rgba(236, 72, 153, 0.15), transparent);
    animation: auroraWaves 8s ease-in-out infinite;
    filter: blur(30px);
}

@keyframes auroraWaves {

    0%,
    100% {
        transform: translateY(0) scaleY(1);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-20px) scaleY(1.1);
        opacity: 1;
    }
}

.contact .section-bg-animation::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(0deg, transparent, rgba(255, 255, 255, 0.03) 50%, transparent);
    background-size: 100% 200%;
    animation: auroraShine 4s ease-in-out infinite;
}

@keyframes auroraShine {

    0%,
    100% {
        background-position: 0 200%;
    }

    50% {
        background-position: 0 -100%;
    }
}

/* ===== GLOBAL ENHANCEMENTS ===== */

/* Glowing border on hover for cards */
.section:hover .section-bg-animation {
    filter: brightness(1.1);
}

/* Subtle parallax effect */
@media (prefers-reduced-motion: no-preference) {
    .section-bg-animation {
        will-change: transform, opacity;
    }

    .section-bg-animation::before,
    .section-bg-animation::after {
        will-change: transform, opacity;
    }
}

/* Reduce animations on mobile for performance */
@media (max-width: 768px) {

    .section-bg-animation::before,
    .section-bg-animation::after {
        animation-duration: 20s !important;
    }

    .about .section-bg-animation,
    .skills .section-bg-animation,
    .experience .section-bg-animation,
    .projects .section-bg-animation {
        animation-duration: 30s !important;
    }
}