/* ===== ROOT VARIABLES ===== */
:root {
    --primary-bg: #ffffff;
    --primary-text: #1a1a1a;
    --secondary-text: #666666;
    --accent-color: #0969da;
    --accent-light: #f0f6fc;
    --accent-dark: #0550ae;
    --border-color: #e5e7eb;
    --success-color: #238636;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.1);
    --card-bg: rgba(0, 0, 0, 0.03);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(9, 105, 218, 0.15);
    --shadow-lg: 0 10px 30px rgba(9, 105, 218, 0.2);
    --gradient-primary: linear-gradient(135deg, #0969da 0%, #0550ae 100%);
    --gradient-hero: linear-gradient(135deg, #f0f6fc 0%, #ffffff 100%);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme */
body.dark-mode {
    --primary-bg: #0d1117;
    --primary-text: #e6edf3;
    --secondary-text: #8b949e;
    --accent-color: #58a6ff;
    --accent-light: #161b22;
    --accent-dark: #388bfd;
    --border-color: #30363d;
    --glass-bg: rgba(13, 17, 23, 0.85);
    --glass-border: rgba(88, 166, 255, 0.2);
    --card-bg: rgba(56, 139, 253, 0.08);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(88, 166, 255, 0.15);
    --shadow-lg: 0 10px 30px rgba(88, 166, 255, 0.25);
    --gradient-primary: linear-gradient(135deg, #58a6ff 0%, #388bfd 100%);
    --gradient-hero: linear-gradient(135deg, #161b22 0%, #0d1117 100%);
}

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

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

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

*:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-primary);
    width: 0%;
    z-index: 10000;
    transition: width 0.1s ease-out;
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(9, 105, 218, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ===== NAVBAR ===== */
nav {
    background: var(--primary-bg);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    white-space: nowrap;
}

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

.nav-link {
    text-decoration: none;
    color: var(--primary-text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
    background: var(--accent-light);
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--primary-text);
    transition: color 0.3s;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    color: var(--accent-color);
    background: var(--accent-light);
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    gap: 5px;
    z-index: 10001;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--primary-text);
    border-radius: 2px;
    transition: all var(--transition-smooth);
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-hero);
    padding: 6rem 2rem 2rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(9, 105, 218, 0.08) 0%, transparent 40%),
                radial-gradient(circle at 80% 20%, rgba(9, 105, 218, 0.06) 0%, transparent 40%);
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(88, 166, 255, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 30%);
    animation: heroGlow 8s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes heroGlow {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}

/* Hero floating shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.hero-shape-element {
    position: absolute;
    opacity: 0.15;
    animation: heroFloat 15s infinite ease-in-out;
}

.hero-shape-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    background: var(--accent-color);
    border-radius: 20% 80% 50% 50% / 50% 20% 80% 50%;
    animation-delay: 0s;
}

.hero-shape-element:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 70%;
    right: 15%;
    background: #8b5cf6;
    border-radius: 50%;
    animation-delay: -2s;
}

.hero-shape-element:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 30%;
    right: 25%;
    background: #06b6d4;
    transform: rotate(45deg);
    animation-delay: -4s;
}

.hero-shape-element:nth-child(4) {
    width: 100px;
    height: 100px;
    bottom: 15%;
    left: 20%;
    background: #f472b6;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: -6s;
}

.hero-shape-element:nth-child(5) {
    width: 50px;
    height: 50px;
    top: 20%;
    right: 60%;
    background: #34d399;
    border-radius: 50% 50% 20% 80% / 60% 40% 60% 40%;
    animation-delay: -8s;
}

@keyframes heroFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg) scale(1); 
        opacity: 0.1;
    }
    25% { 
        transform: translateY(-20px) rotate(90deg) scale(1.1); 
        opacity: 0.2;
    }
    50% { 
        transform: translateY(-10px) rotate(180deg) scale(0.95); 
        opacity: 0.15;
    }
    75% { 
        transform: translateY(-25px) rotate(270deg) scale(1.05); 
        opacity: 0.18;
    }
}

/* Hero particles */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.4;
    animation: particleFloat 10s infinite linear;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 12s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; animation-duration: 14s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; animation-duration: 10s; }
.particle:nth-child(4) { left: 40%; animation-delay: 3s; animation-duration: 16s; }
.particle:nth-child(5) { left: 50%; animation-delay: 4s; animation-duration: 11s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 13s; }
.particle:nth-child(7) { left: 70%; animation-delay: 6s; animation-duration: 15s; }
.particle:nth-child(8) { left: 80%; animation-delay: 7s; animation-duration: 9s; }
.particle:nth-child(9) { left: 90%; animation-delay: 8s; animation-duration: 17s; }

@keyframes particleFloat {
    0% { 
        transform: translateY(100vh) scale(0); 
        opacity: 0; 
    }
    10% { 
        opacity: 0.6; 
    }
    90% { 
        opacity: 0.6; 
    }
    100% { 
        transform: translateY(-100px) scale(1); 
        opacity: 0; 
    }
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.08;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 750px;
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-light);
    border: 1px solid var(--accent-color);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.hero-badge .pulse {
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-text);
    line-height: 1.2;
}

.hero h1 .highlight {
    color: var(--accent-color);
}

.hero h2 {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.typing-text {
    color: var(--accent-color);
}

.hero p {
    font-size: 1.15rem;
    color: var(--secondary-text);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-smooth);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(9, 105, 218, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: white;
}

/* ===== SECTIONS ===== */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
    color: var(--primary-text);
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--secondary-text);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== ABOUT ===== */
.about {
    background-color: var(--accent-light);
    border-radius: 8px;
    margin: 2rem;
    max-width: calc(100% - 4rem);
}

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

.about-content p {
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.9;
}

/* ===== TIMELINE ===== */
.timeline {
    margin-top: 2.5rem;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-color), var(--accent-dark));
}

.timeline-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: var(--primary-bg);
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-color);
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.timeline-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.timeline-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.timeline-content h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.timeline-content p {
    color: var(--secondary-text);
    font-size: 0.95rem;
}

/* ===== SKILLS ===== */
.skills {
    background: var(--primary-bg);
}

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

.skill-category {
    background-color: var(--accent-light);
    padding: 2rem;
    border-radius: 8px;
    border-top: 3px solid var(--accent-color);
    transition: transform 0.3s;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-text);
}

.skill-proficiency {
    font-size: 0.75rem;
    color: var(--accent-color);
    font-weight: 500;
    background: var(--accent-light);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #0d47a1);
    border-radius: 4px;
    transition: width 1s ease;
}

.tech-badge {
    display: inline-block;
    background-color: var(--primary-bg);
    color: var(--accent-color);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0.3rem 0.3rem 0 0;
    border: 1px solid var(--accent-color);
    transition: all 0.2s ease;
}

.tech-badge:hover {
    transform: translateY(-2px);
    background: var(--accent-color);
    color: white;
}

/* ===== PROJECTS ===== */
.projects {
    background-color: var(--primary-bg);
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.4rem;
    border: 1px solid var(--border-color);
    background: var(--primary-bg);
    color: var(--secondary-text);
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--accent-color);
    box-shadow: var(--shadow-sm);
}

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

.project-card {
    background-color: var(--accent-light);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border: 1px solid var(--border-color);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

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

.project-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, var(--accent-color), #0d47a1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 0.5rem;
}

.project-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--secondary-text);
}

.project-stars {
    color: #f59e0b;
}

.project-description {
    color: var(--secondary-text);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background-color: var(--primary-bg);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.tech-tag:hover {
    transform: translateY(-2px);
    background: var(--accent-color);
    color: white;
}

.project-links {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.project-link {
    flex: 1;
    padding: 0.7rem;
    background: var(--accent-light);
    color: var(--accent-color);
    border: none;
    border-radius: var(--radius-sm);
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--transition-smooth);
    cursor: pointer;
}

.project-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

/* ===== UNDER DEVELOPMENT ===== */
.under-development {
    background-color: var(--accent-light);
    border-radius: 8px;
    margin: 2rem;
    max-width: calc(100% - 4rem);
}

.under-dev-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.under-dev-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.under-dev-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.under-dev-image {
    position: relative;
    width: 100%;
    height: 200px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.under-dev-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shine 3s infinite;
}

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

.under-dev-image i {
    font-size: 4rem;
    opacity: 0.8;
}

.dev-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.under-dev-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.under-dev-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-text);
    margin-bottom: 0.8rem;
}

.under-dev-description {
    color: var(--secondary-text);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.under-dev-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.under-dev-placeholder {
    margin-top: auto;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.under-dev-placeholder img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform var(--transition-smooth);
}

.under-dev-card:hover .under-dev-placeholder img {
    transform: scale(1.03);
}

/* ===== ACHIEVEMENTS ===== */
.achievements {
    background-color: var(--accent-light);
    border-radius: 8px;
    margin: 2rem;
    max-width: calc(100% - 4rem);
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.achievement-card {
    background: var(--primary-bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all var(--transition-smooth);
}

.achievement-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.achievement-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    pointer-events: none;
    z-index: 0;
}

.achievement-card:nth-child(1)::after {
    box-shadow: inset 0 0 30px rgba(99, 102, 241, 0.2);
}

.achievement-card:nth-child(2)::after {
    box-shadow: inset 0 0 30px rgba(139, 92, 246, 0.2);
}

.achievement-card:nth-child(3)::after {
    box-shadow: inset 0 0 30px rgba(236, 72, 153, 0.2);
}

.achievement-card:nth-child(4)::after {
    box-shadow: inset 0 0 30px rgba(6, 182, 212, 0.2);
}

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

.achievement-card {
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.5s;
    z-index: 1;
    pointer-events: none;
}

.achievement-card:hover::before {
    transform: translateX(100%);
}

.achievement-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: iconFloat 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}
}

body.dark-mode .achievement-icon {
    background: linear-gradient(135deg, #58a6ff 0%, #388bfd 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.achievement-card:nth-child(1) .achievement-icon { animation-delay: 0s; }
.achievement-card:nth-child(2) .achievement-icon { animation-delay: 0.5s; }
.achievement-card:nth-child(3) .achievement-icon { animation-delay: 1s; }
.achievement-card:nth-child(4) .achievement-icon { animation-delay: 1.5s; }

.achievement-card h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.achievement-card p {
    color: var(--secondary-text);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ===== GITHUB STATS ===== */
.github-stats {
    background: var(--primary-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-box {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all var(--transition-smooth);
}

.stat-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.stat-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    pointer-events: none;
    z-index: 0;
}

.stat-box:nth-child(1)::after {
    box-shadow: inset 0 0 30px rgba(99, 102, 241, 0.2);
}

.stat-box:nth-child(2)::after {
    box-shadow: inset 0 0 30px rgba(139, 92, 246, 0.2);
}

.stat-box:nth-child(3)::after {
    box-shadow: inset 0 0 30px rgba(236, 72, 153, 0.2);
}

.stat-box:nth-child(4)::after {
    box-shadow: inset 0 0 30px rgba(6, 182, 212, 0.2);
}

.stat-box:hover::after {
    opacity: 1;
}

.stat-box {
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.5s;
    z-index: 1;
    pointer-events: none;
}

.stat-box:hover::before {
    transform: translateX(100%);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-icon {
    font-size: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    animation: iconPulse 2s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

body.dark-mode .stat-icon {
    background: linear-gradient(135deg, #58a6ff 0%, #388bfd 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.stat-box:nth-child(1) .stat-icon { animation-delay: 0s; }
.stat-box:nth-child(2) .stat-icon { animation-delay: 0.3s; }
.stat-box:nth-child(3) .stat-icon { animation-delay: 0.6s; }
.stat-box:nth-child(4) .stat-icon { animation-delay: 0.9s; }

.stat-label {
    color: var(--secondary-text);
    font-size: 0.95rem;
    font-weight: 500;
}

.contribution-graph {
    width: 100%;
    max-width: 100%;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.contribution-graph h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: center;
}

.contribution-months {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.contribution-month {
    display: flex;
    gap: 2px;
    flex-direction: column;
}

.contribution-day {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    background: var(--border-color);
    transition: all var(--transition-fast);
}

.contribution-day:hover {
    transform: scale(1.4);
    cursor: pointer;
    border-color: var(--accent-color);
}

.contribution-day.level1 { background: #c6e48b; }
.contribution-day.level2 { background: #7bc96f; }
.contribution-day.level3 { background: #239a3b; }
.contribution-day.level4 { background: #196127; }

/* ===== CONTACT ===== */
.contact {
    background-color: var(--primary-bg);
}

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

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-text);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--accent-light);
    color: var(--primary-text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

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

.form-submit {
    width: 100%;
    padding: 1rem;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(9, 105, 218, 0.3);
}

.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-color);
    display: block;
    border: 1px solid var(--success-color);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    display: block;
    border: 1px solid #ef4444;
}

.contact-info {
    margin-top: 2.5rem;
    padding: 1.5rem;
    background: var(--primary-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.contact-info h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 600;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.contact-card {
    padding: 1rem;
    background: var(--primary-bg);
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.contact-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px);
}

.contact-card i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    display: block;
}

.contact-card .card-title {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary-text);
    display: block;
    margin-bottom: 0.25rem;
}

.contact-card .card-value {
    font-size: 0.75rem;
    color: var(--secondary-text);
}

/* ===== FOOTER ===== */
footer {
    background: var(--primary-bg);
    padding: 3rem 2rem 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--secondary-text);
    text-decoration: none;
    transition: all var(--transition-fast);
    display: inline-block;
}

.footer-section a:hover {
    color: var(--accent-color);
    transform: translateX(3px);
}

.social-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link {
    width: 44px;
    height: 44px;
    background: var(--card-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    text-decoration: none;
    transition: all var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.social-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--secondary-text);
    font-size: 0.9rem;
}

.footer-bottom .heart {
    color: #ef4444;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 20000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
    overflow-y: auto;
    padding: 2rem 1rem;
}

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

.modal-content {
    background: var(--primary-bg);
    margin: 5% auto;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 550px;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s;
    border: 1px solid var(--border-color);
}

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

.modal-close {
    color: var(--secondary-text);
    float: right;
    font-size: 1.8rem;
    cursor: pointer;
    transition: color var(--transition-fast);
    line-height: 1;
    padding: 0.25rem;
}

.modal-close:hover {
    color: var(--accent-color);
}

.modal-title {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}

.modal-content h4 {
    color: var(--primary-text);
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.modal-content p {
    color: var(--secondary-text);
    margin-bottom: 0.8rem;
    line-height: 1.7;
}

.modal-content ul {
    margin-left: 1.25rem;
    color: var(--secondary-text);
}

.modal-content li {
    margin-bottom: 0.5rem;
}

/* ===== PRIVACY BANNER (Subtle) ===== */
.privacy-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    z-index: 99998;
    display: none;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.privacy-banner.show {
    display: flex;
}

.privacy-banner p {
    color: var(--secondary-text);
    font-size: 0.9rem;
    margin: 0;
    flex: 1;
    min-width: 250px;
}

.privacy-banner a {
    color: var(--accent-color);
    text-decoration: underline;
}

.privacy-banner-buttons {
    display: flex;
    gap: 0.75rem;
}

.privacy-banner .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    nav {
        z-index: 10001;
    }

    .nav-container {
        padding: 0 1.5rem;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        flex-direction: column;
        background: var(--primary-bg);
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
        gap: 0;
        list-style: none;
        z-index: 10000;
        overflow-y: auto;
    }

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

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        padding: 1rem;
        font-size: 1.1rem;
        border-radius: var(--radius-md);
    }

    .theme-toggle {
        width: 100%;
        margin: 0.5rem 0;
        justify-content: center;
        border-radius: var(--radius-md);
    }

    .hero {
        min-height: 100vh;
        padding: 6rem 1.5rem 3rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero h2 {
        font-size: 1.3rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .section-title {
        font-size: 2rem;
    }

    section {
        padding: 3rem 1.5rem;
    }

    .about,
    .under-development,
    .achievements,
    .contact,
    .projects {
        margin: 1rem;
        max-width: calc(100% - 2rem);
        border-radius: var(--radius-md);
    }

    .skills-container,
    .projects-grid,
    .achievements-grid,
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-links {
        flex-direction: column;
    }

    .timeline-item {
        flex-direction: column;
        gap: 1rem;
    }

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

    .timeline-icon {
        width: 40px;
        height: 40px;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
        margin: 15% auto;
    }

    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
    }

    .contact-cards {
        grid-template-columns: 1fr 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .privacy-banner {
        padding: 1rem;
    }

    .privacy-banner-buttons {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0.6rem 0;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .nav-brand {
        font-size: 1.2rem;
    }

    .hero {
        padding: 5rem 1rem 2.5rem;
    }

    .hero-badge {
        font-size: 0.8rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero h2 {
        font-size: 1.15rem;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    section {
        padding: 2.5rem 1rem;
    }

    .about,
    .under-development,
    .achievements,
    .contact,
    .projects {
        margin: 0.75rem;
        max-width: calc(100% - 1.5rem);
    }

    .timeline-item {
        padding: 1rem;
    }

    .skill-category,
    .project-card {
        padding: 1.25rem;
    }

    .project-image {
        height: 140px;
    }

    .under-dev-image {
        height: 160px;
    }

    .achievement-icon {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }
}

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

    html {
        scroll-behavior: auto;
    }
}

/* ===== ANIMATIONS ===== */
[data-aos] {
    opacity: 0;
}

[data-aos].aos-animate {
    opacity: 1;
}

/* ===== GLOW EFFECT ON HOVER ===== */
.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-lg);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    pointer-events: none;
    z-index: 0;
}

.project-card:nth-child(1)::after {
    box-shadow: inset 0 0 30px rgba(99, 102, 241, 0.3);
}

.project-card:nth-child(2)::after {
    box-shadow: inset 0 0 30px rgba(139, 92, 246, 0.3);
}

.project-card:nth-child(3)::after {
    box-shadow: inset 0 0 30px rgba(236, 72, 153, 0.3);
}

.project-card:nth-child(4)::after {
    box-shadow: inset 0 0 30px rgba(6, 182, 212, 0.3);
}

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

/* ===== MICROINTERACTIONS - Buttons & Links ===== */
.btn-primary,
.btn-secondary,
.nav-link,
.project-link,
.contact-card,
.social-link,
.tech-badge,
.tech-tag {
    position: relative;
    overflow: hidden;
}

.btn-primary::after,
.btn-secondary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
}

.btn-primary:active::after,
.btn-secondary:active::after {
    width: 200px;
    height: 200px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::before {
    width: 60%;
}

.project-link::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.5s;
}

.project-link:hover::before {
    left: 100%;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 6px;
    opacity: 0;
    transition: opacity 0.3s;
    box-shadow: inset 0 0 20px rgba(9, 105, 218, 0.3);
}

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

.social-link::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid var(--accent-color);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.social-link:hover::after {
    opacity: 1;
    transform: scale(1);
}

.tech-badge,
.tech-tag {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.tech-badge:hover,
.tech-tag:hover {
    transform: translateY(-3px) scale(1.05);
}

/* ===== ANIMATED ICONS - Skills Section ===== */
.skill-category i {
    animation: iconFloat 3s ease-in-out infinite;
}

.skill-category:nth-child(1) i { animation-delay: 0s; }
.skill-category:nth-child(2) i { animation-delay: 0.5s; }
.skill-category:nth-child(3) i { animation-delay: 1s; }

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-3px) rotate(5deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(3px) rotate(-5deg); }
}

.timeline-icon {
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(9, 105, 218, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(9, 105, 218, 0); }
}

/* ===== MORPHING BACKGROUND SHAPES ===== */
.morph-bg-1,
.morph-bg-2 {
    position: fixed;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
    animation: morphBg 20s ease-in-out infinite;
}

.morph-bg-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-color);
    top: -200px;
    left: -200px;
}

.morph-bg-2 {
    width: 500px;
    height: 500px;
    background: #8b5cf6;
    bottom: -150px;
    right: -150px;
    animation-delay: -10s;
    animation-direction: reverse;
}

@keyframes morphBg {
    0%, 100% { 
        border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
        transform: rotate(0deg) scale(1);
    }
    25% { 
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(90deg) scale(1.1);
    }
    50% { 
        border-radius: 50% 50% 30% 70% / 60% 40% 60% 40%;
        transform: rotate(180deg) scale(1);
    }
    75% { 
        border-radius: 70% 30% 50% 50% / 40% 60% 40% 60%;
        transform: rotate(270deg) scale(0.9);
    }
}

/* ===== LIQUID MOTION EFFECTS - Hero ===== */
.hero-liquid {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.hero-liquid::before,
.hero-liquid::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(ellipse at center, rgba(9, 105, 218, 0.08) 0%, transparent 70%);
    animation: liquidMove 15s ease-in-out infinite;
}

.hero-liquid::after {
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.05) 0%, transparent 70%);
    animation: liquidMove 20s ease-in-out infinite reverse;
}

@keyframes liquidMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(5%, 5%) scale(1.05); }
    50% { transform: translate(-5%, 10%) scale(0.95); }
    75% { transform: translate(-10%, -5%) scale(1.02); }
}

/* ===== REAL-TIME RENDERING - Canvas Particles ===== */
.hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ===== ANIMATED LOGO - Nav Brand ===== */
.nav-brand {
    position: relative;
}

.nav-brand::before {
    content: 'R';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-color);
    animation: logoReveal 2s ease-out forwards;
    opacity: 0;
    transform: translateX(-10px);
}

@keyframes logoReveal {
    0% { 
        opacity: 0;
        transform: translateX(-10px) scale(0.5);
    }
    50% {
        opacity: 0.5;
    }
    100% { 
        opacity: 0;
        transform: translateX(-20px) scale(1);
    }
}

/* ===== AR VR - 3D Perspective Elements in Hero ===== */
.hero-3d {
    position: absolute;
    perspective: 1000px;
    z-index: 1;
}

.hero-vr-cube {
    width: 40px;
    height: 40px;
    position: relative;
    transform-style: preserve-3d;
    animation: vrRotate 10s infinite linear;
    opacity: 0.1;
}

.hero-vr-cube .vr-face {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-color);
    background: rgba(9, 105, 218, 0.05);
}

.hero-vr-cube .vr-face.front  { transform: translateZ(20px); }
.hero-vr-cube .vr-face.back   { transform: rotateY(180deg) translateZ(20px); }
.hero-vr-cube .vr-face.right  { transform: rotateY(90deg) translateZ(20px); }
.hero-vr-cube .vr-face.left   { transform: rotateY(-90deg) translateZ(20px); }
.hero-vr-cube .vr-face.top    { transform: rotateX(90deg) translateZ(20px); }
.hero-vr-cube .vr-face.bottom { transform: rotateX(-90deg) translateZ(20px); }

@keyframes vrRotate {
    0% { transform: rotateX(-20deg) rotateY(0deg); }
    100% { transform: rotateX(-20deg) rotateY(360deg); }
}

.hero-vr-ring {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 1px solid rgba(9, 105, 218, 0.2);
    border-radius: 50%;
    animation: vrRingPulse 3s infinite ease-out;
}

.hero-vr-ring:nth-child(2) {
    animation-delay: 0.5s;
    width: 60px;
    height: 60px;
}

@keyframes vrRingPulse {
    0%, 100% { transform: scale(0.8); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.1; }
}

/* ===== ADDITIONAL ANIMATIONS ===== */

/* Gradient Text Animation */
.gradient-text {
    background: linear-gradient(90deg, var(--accent-color), #8b5cf6, var(--accent-color));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Custom Cursor Trail */
.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    opacity: 0.5;
    transition: transform 0.1s ease;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
}

/* 3D Card Tilt Effect */
.project-card,
.skill-category,
.achievement-card,
.stat-box,
.contact-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.project-card:hover,
.skill-category:hover,
.achievement-card:hover,
.stat-box:hover,
.contact-card:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateZ(10px);
}

/* Animated Border Gradient */
.gradient-border {
    position: relative;
    background: var(--primary-bg);
    border-radius: var(--radius-lg);
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(90deg, var(--accent-color), #8b5cf6, #06b6d4, var(--accent-color));
    background-size: 300% 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: borderGradient 4s linear infinite;
}

@keyframes borderGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* Shimmer Effect */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Glitch Effect (subtle) */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    color: #ff0000;
    animation: glitch1 2s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch::after {
    color: #0000ff;
    animation: glitch2 2s infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(-2px, 2px); }
}

/* Heartbeat */
.heartbeat {
    animation: heartbeat 1s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

/* Rubber Band */
.rubber-band {
    animation: rubberBand 1s ease-in-out;
}

@keyframes rubberBand {
    0% { transform: scale3d(1, 1, 1); }
    30% { transform: scale3d(1.25, 0.75, 1); }
    40% { transform: scale3d(0.75, 1.25, 1); }
    50% { transform: scale3d(1.15, 0.85, 1); }
    65% { transform: scale3d(0.95, 1.05, 1); }
    75% { transform: scale3d(1.05, 0.95, 1); }
    100% { transform: scale3d(1, 1, 1); }
}

/* Wobble */
.wobble {
    animation: wobble 1s ease-in-out;
}

@keyframes wobble {
    0%, 100% { transform: translateX(0); }
    15% { transform: translateX(-25%) rotate(-5deg); }
    30% { transform: translateX(20%) rotate(3deg); }
    45% { transform: translateX(-15%) rotate(-3deg); }
    60% { transform: translateX(10%) rotate(2deg); }
    75% { transform: translateX(-5%) rotate(-1deg); }
}

/* Slide In Animations */
.slide-in-left {
    animation: slideInLeft 0.5s ease-out forwards;
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out forwards;
}

.slide-in-up {
    animation: slideInUp 0.5s ease-out forwards;
}

.slide-in-down {
    animation: slideInDown 0.5s ease-out forwards;
}

@keyframes slideInLeft {
    from { transform: translateX(-100px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

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

@keyframes slideInDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Zoom Animations */
.zoom-in {
    animation: zoomIn 0.4s ease-out forwards;
}

.zoom-out {
    animation: zoomOut 0.4s ease-out forwards;
}

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

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

/* Fade & Scale */
.fade-scale {
    animation: fadeScale 0.4s ease-out forwards;
}

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

/* Bouncing Dots Loader */
.bouncing-dots {
    display: flex;
    gap: 5px;
}

.bouncing-dots span {
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: bounceDot 1.4s infinite ease-in-out both;
}

.bouncing-dots span:nth-child(1) { animation-delay: -0.32s; }
.bouncing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounceDot {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Spin Loader */
.spinner {
    width: 30px;
    height: 30px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Text Reveal Animation */
.reveal-text {
    overflow: hidden;
}

.reveal-text span {
    display: inline-block;
    transform: translateY(100%);
    animation: revealUp 0.6s forwards;
}

@keyframes revealUp {
    to { transform: translateY(0); }
}

/* Enhanced Typing Cursor */
.typing-text::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--accent-color);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Section Title Animation */
.section-title {
    animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { text-shadow: 0 0 0 transparent; }
    50% { text-shadow: 0 0 20px rgba(9, 105, 218, 0.3); }
}

/* Image Hover Zoom */
.project-image {
    overflow: hidden;
}

.project-image img {
    transition: transform 0.5s ease;
}

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

/* Nav Brand Hover Glow */
.nav-brand:hover {
    animation: brandGlow 0.5s ease;
}

@keyframes brandGlow {
    0% { text-shadow: 0 0 0 transparent; }
    50% { text-shadow: 0 0 20px var(--accent-color); }
    100% { text-shadow: 0 0 0 transparent; }
}

/* Achievement Icon Spin on Hover */
.achievement-icon {
    transition: transform 0.3s ease;
}

.achievement-card:hover .achievement-icon {
    transform: rotate(360deg);
}

/* Stat Number Count Animation Enhancement */
.stat-number {
    animation: statPulse 2s ease-in-out infinite;
}

@keyframes statPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Contact Form Input Focus Animation */
.form-group input:focus,
.form-group textarea:focus {
    animation: inputGlow 0.3s ease;
}

@keyframes inputGlow {
    0% { box-shadow: 0 0 0 transparent; }
    50% { box-shadow: 0 0 15px rgba(9, 105, 218, 0.3); }
    100% { box-shadow: 0 0 0 transparent; }
}

/* Footer Links Hover Wave */
.footer-section a {
    position: relative;
}

.footer-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-section a:hover::after {
    width: 100%;
}
