/* ============================================
   COSMIC ARCHITECT — Design System & Styles
   Awards-worthy 3D Portfolio
   ============================================ */

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
    /* Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #0e0e16;
    --bg-tertiary: #14141f;
    --accent-violet: #7c3aed;
    --accent-violet-light: #a78bfa;
    --accent-cyan: #06d6a0;
    --accent-pink: #f72585;
    --accent-blue: #4361ee;
    --accent-amber: #f59e0b;
    --text-primary: #e8e6f0;
    --text-secondary: #a5a0c4;
    --text-muted: #6b6690;
    --glass-bg: rgba(124, 58, 237, 0.05);
    --glass-border: rgba(124, 58, 237, 0.1);
    --glass-hover-bg: rgba(124, 58, 237, 0.1);
    --glass-hover-border: rgba(124, 58, 237, 0.2);

    /* Typography */
    --font-heading: 'Space Grotesk', -apple-system, sans-serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    /* Spacing */
    --section-py: clamp(80px, 12vh, 140px);
    --container-max: 1200px;
    --container-px: clamp(20px, 5vw, 40px);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --t-fast: 0.2s var(--ease-out);
    --t-medium: 0.5s var(--ease-out);
    --t-slow: 0.8s var(--ease-out);

    /* Border Radius */
    --r-sm: 8px;
    --r-md: 16px;
    --r-lg: 24px;
    --r-xl: 32px;
    --r-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-violet) var(--bg-primary);
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

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

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

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

::selection {
    background: rgba(124, 58, 237, 0.3);
    color: var(--text-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--t-fast);
}

img {
    max-width: 100%;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
    color: inherit;
}

input,
textarea {
    font: inherit;
    color: inherit;
}

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

section {
    position: relative;
    padding: var(--section-py) 0;
    z-index: 1;
}

/* ---------- TYPOGRAPHY ---------- */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-violet), var(--accent-cyan), var(--accent-pink), var(--accent-violet));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 8s ease infinite;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.section-label {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent-violet);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ---------- GLASSMORPHISM CARD ---------- */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--r-lg);
    transition: background var(--t-medium), border-color var(--t-medium), transform var(--t-medium), box-shadow var(--t-medium);
}

.glass-card:hover {
    background: var(--glass-hover-bg);
    border-color: var(--glass-hover-border);
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--r-full);
    transition: all var(--t-medium);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-violet), var(--accent-blue));
    color: white;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(124, 58, 237, 0.5);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-violet));
    opacity: 0;
    transition: opacity var(--t-medium);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
}

.btn-outline {
    border: 1.5px solid var(--glass-hover-border);
    color: var(--text-primary);
    background: rgba(124, 58, 237, 0.04);
}

.btn-outline:hover {
    border-color: var(--accent-violet);
    background: rgba(124, 58, 237, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.15);
}

/* ---------- LOADING SCREEN ---------- */
#loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease 0.2s, visibility 0.8s ease 0.2s;
}

#loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.loader-ring {
    width: 56px;
    height: 56px;
    border: 2px solid rgba(124, 58, 237, 0.1);
    border-top-color: var(--accent-violet);
    border-right-color: var(--accent-cyan);
    border-radius: 50%;
    animation: loader-spin 1s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.loader-ring-2 {
    width: 72px;
    height: 72px;
    border-top-color: var(--accent-pink);
    border-right-color: transparent;
    animation-direction: reverse;
    animation-duration: 1.5s;
}

.loader-text {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 56px;
    animation: pulse-opacity 1.5s ease-in-out infinite;
}

/* ---------- CUSTOM CURSOR ---------- */
.cursor,
.cursor-follower {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    mix-blend-mode: difference;
}

body.custom-cursor {
    cursor: none;
}

body.custom-cursor a,
body.custom-cursor button,
body.custom-cursor input,
body.custom-cursor textarea {
    cursor: none;
}

body.custom-cursor .cursor,
body.custom-cursor .cursor-follower {
    display: block;
}

.cursor {
    width: 8px;
    height: 8px;
    background: white;
    margin: -4px 0 0 -4px;
    transition: width 0.3s, height 0.3s, margin 0.3s, opacity 0.3s;
}

.cursor.cursor-hover {
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    background: rgba(124, 58, 237, 0.5);
    mix-blend-mode: normal;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    transition: width 0.3s, height 0.3s, margin 0.3s, opacity 0.3s, border-color 0.3s;
}

.cursor-follower.cursor-hover {
    width: 60px;
    height: 60px;
    margin: -30px 0 0 -30px;
    border-color: var(--accent-violet);
    opacity: 0.5;
}

/* ---------- THREE.JS CANVAS ---------- */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ---------- NAVIGATION ---------- */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: padding var(--t-medium), background var(--t-medium), backdrop-filter var(--t-medium);
}

#header.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.06);
}

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

.logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-violet), var(--accent-cyan), var(--accent-pink));
    background-size: 300% 300%;
    animation: gradient-shift 6s ease infinite;
    transition: transform var(--t-medium), box-shadow var(--t-medium);
}

.logo img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid var(--bg-primary);
}

.logo:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.4), 0 0 40px rgba(6, 214, 160, 0.2);
}

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

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 4px 0;
    transition: color var(--t-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-violet);
    border-radius: 1px;
    transition: width var(--t-medium);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 4px;
    z-index: 1001;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--t-medium);
    transform-origin: center;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-medium), visibility var(--t-medium);
}

.mobile-nav.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 600;
    color: var(--text-secondary);
    transition: color var(--t-fast);
    opacity: 0;
    transform: translateY(20px);
}

.mobile-nav.active .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.5s ease, transform 0.5s ease, color var(--t-fast);
}

.mobile-nav.active .mobile-nav-link:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-nav.active .mobile-nav-link:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-nav.active .mobile-nav-link:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-nav.active .mobile-nav-link:nth-child(4) {
    transition-delay: 0.4s;
}

.mobile-nav-link:hover {
    color: var(--accent-violet-light);
}

/* ---------- HERO SECTION ---------- */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    padding: 0 var(--container-px);
}

.hero-greeting {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 500;
    color: var(--accent-violet-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 12vw, 9rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.hero-description {
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: float 3s ease-in-out infinite;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-violet), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

.scroll-text {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ---------- ABOUT SECTION ---------- */
#about {
    background: linear-gradient(180deg, transparent 0%, rgba(14, 14, 22, 0.5) 50%, transparent 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.02rem;
}

.about-lead {
    font-size: 1.2rem !important;
    color: var(--text-primary) !important;
    font-weight: 400;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-card {
    padding: 28px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-violet), var(--accent-cyan));
    opacity: 0;
    transition: opacity var(--t-medium);
}

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

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-violet-light);
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

.stat-label {
    display: block;
    margin-top: 8px;
    font-size: 0.825rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ---------- PROJECTS SECTION ---------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.project-card {
    overflow: hidden;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.2);
}

/* Gradient thumbnails for each project */
.project-image {
    height: 220px;
    position: relative;
    overflow: hidden;
    transition: transform var(--t-medium);
}

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

.project-banner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.project-gradient-1 {
    background: linear-gradient(135deg, #1a0533 0%, #7c3aed 40%, #06d6a0 70%, #0a0a0f 100%);
    background-size: 200% 200%;
    animation: gradient-shift 12s ease infinite;
}

.project-gradient-2 {
    background: linear-gradient(135deg, #0a1628 0%, #4361ee 35%, #06d6a0 65%, #0a0a0f 100%);
    background-size: 200% 200%;
    animation: gradient-shift 14s ease infinite reverse;
}

.project-gradient-3 {
    background: linear-gradient(135deg, #1a0025 0%, #f72585 35%, #7c3aed 65%, #0a0a0f 100%);
    background-size: 200% 200%;
    animation: gradient-shift 10s ease infinite;
}

.project-gradient-4 {
    background: linear-gradient(135deg, #0a1a10 0%, #06d6a0 35%, #4361ee 65%, #0a0a0f 100%);
    background-size: 200% 200%;
    animation: gradient-shift 16s ease infinite reverse;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--t-medium);
}

.project-overlay svg {
    color: white;
    transform: scale(0.8);
    transition: transform var(--t-medium);
}

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

.project-card:hover .project-overlay svg {
    transform: scale(1);
}

.project-info {
    padding: 28px;
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.project-description {
    font-size: 0.92rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: var(--r-full);
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent-violet-light);
    border: 1px solid rgba(124, 58, 237, 0.15);
    transition: all var(--t-fast);
}

.tag:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: var(--accent-violet);
}

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

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--t-fast);
}

.project-link:hover {
    color: var(--accent-violet-light);
}

/* Coming Soon Card */
.coming-soon-card {
    cursor: default;
}

.coming-soon-card:hover {
    transform: none;
    box-shadow: none;
}

.coming-soon-card .project-image {
    height: 100%;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coming-soon-content {
    text-align: center;
    padding: 40px 24px;
    color: var(--text-secondary);
}

.coming-soon-content svg {
    color: var(--accent-violet-light);
    margin-bottom: 20px;
    opacity: 0.6;
    animation: float 4s ease-in-out infinite;
}

.coming-soon-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.coming-soon-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ---------- SKILLS SECTION ---------- */
#skills {
    background: linear-gradient(180deg, transparent 0%, rgba(14, 14, 22, 0.5) 50%, transparent 100%);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.skill-category {
    padding: 36px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.skill-category::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-violet), transparent);
    opacity: 0;
    transition: opacity var(--t-medium), width var(--t-medium);
}

.skill-category:hover::after {
    opacity: 1;
    width: 90%;
}

.skill-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.12);
}

.skill-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--r-md);
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent-violet-light);
    margin-bottom: 20px;
    transition: all var(--t-medium);
}

.skill-category:hover .skill-icon {
    background: rgba(124, 58, 237, 0.2);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.2);
    transform: scale(1.1);
}

.skill-category-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.skill-item {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: var(--r-full);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all var(--t-fast);
}

.skill-item:hover {
    background: rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.25);
    color: var(--accent-violet-light);
    transform: translateY(-2px);
}

/* ---------- CONTACT SECTION ---------- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-heading {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.contact-text {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-detail-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    transition: color var(--t-fast);
}

.contact-detail-item svg {
    color: var(--accent-violet-light);
    flex-shrink: 0;
}

.contact-detail-item:hover {
    color: var(--accent-violet-light);
}

.social-links {
    display: flex;
    gap: 14px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--r-md);
    background: rgba(124, 58, 237, 0.06);
    border: 1px solid rgba(124, 58, 237, 0.1);
    color: var(--text-secondary);
    transition: all var(--t-medium);
}

.social-link:hover {
    background: rgba(124, 58, 237, 0.15);
    border-color: var(--accent-violet);
    color: var(--accent-violet-light);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.2);
}

/* Contact Form */
.contact-form {
    padding: 36px;
}

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

.form-label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: var(--r-md);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all var(--t-fast);
    outline: none;
}

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

.form-input:focus {
    border-color: var(--accent-violet);
    background: rgba(124, 58, 237, 0.05);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

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

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

/* ---------- FOOTER ---------- */
#footer {
    position: relative;
    z-index: 1;
    padding: 32px 0;
    border-top: 1px solid rgba(124, 58, 237, 0.06);
}

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

.footer-text {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.1);
    color: var(--text-secondary);
    transition: all var(--t-medium);
}

.back-to-top:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: var(--accent-violet);
    color: var(--accent-violet-light);
    transform: translateY(-3px);
}

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* Stagger delays for children */
.reveal:nth-child(2) {
    transition-delay: 0.1s;
}

.reveal:nth-child(3) {
    transition-delay: 0.2s;
}

.reveal:nth-child(4) {
    transition-delay: 0.3s;
}

/* ---------- KEYFRAMES ---------- */
@keyframes gradient-shift {

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

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

@keyframes loader-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes pulse-opacity {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

@keyframes float {

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

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

@keyframes scroll-pulse {
    0% {
        opacity: 1;
        transform: scaleY(1);
    }

    50% {
        opacity: 0.3;
        transform: scaleY(0.5);
    }

    100% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-name {
        letter-spacing: -1px;
    }

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

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

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

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

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

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

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

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 180px;
    }

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}