/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* Dark Theme - Cyberpunk meets Luxury */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --bg-card: rgba(25, 25, 35, 0.8);

    /* Accent Colors - Electric Cyan & Magenta */
    --accent-primary: #00f0ff;
    --accent-secondary: #ff00aa;
    --accent-tertiary: #7b2dff;

    /* Gradient */
    --gradient-primary: linear-gradient(135deg, #00f0ff 0%, #7b2dff 50%, #ff00aa 100%);
    --gradient-glow: linear-gradient(135deg, rgba(0, 240, 255, 0.3) 0%, rgba(123, 45, 255, 0.3) 50%, rgba(255, 0, 170, 0.3) 100%);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);

    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Spacing */
    --section-padding: clamp(80px, 15vh, 150px);
    --container-max: 1400px;
    --container-padding: clamp(20px, 5vw, 80px);

    /* Effects */
    --border-radius: 16px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Shadows */
    --shadow-glow: 0 0 60px rgba(0, 240, 255, 0.3);
    --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

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

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

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

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

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

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

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

/* ===== CUSTOM CURSOR ===== */
.cursor {
    position: fixed;
    width: 12px;
    height: 12px;
    background: var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out;
    will-change: left, top;
    contain: layout style;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: all 0.15s ease-out;
    opacity: 0.5;
    will-change: left, top, width, height;
    contain: layout style;
}

.cursor-follower.hover {
    width: 60px;
    height: 60px;
    border-color: var(--accent-secondary);
    opacity: 0.8;
}

/* ===== PARTICLES ===== */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 15s infinite;
    will-change: transform, opacity;
    contain: layout style paint;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        opacity: 0;
        transform: translateY(-100vh) scale(1);
    }
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px var(--container-padding);
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-logo {
    position: relative;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-glow {
    position: absolute;
    inset: -10px;
    background: var(--gradient-glow);
    filter: blur(20px);
    opacity: 0.5;
    z-index: -1;
}

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

.nav-link {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    padding: 8px 0;
    transition: color var(--transition-fast);
}

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

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

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

.nav-cta {
    display: flex;
    align-items: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

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

/* Hamburger active state - transforms to X */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

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

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

/* Mobile Menu Styles */
.nav-links.active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    padding: 30px var(--container-padding);
    gap: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.3s ease-out;
}

.nav-cta.active {
    display: flex !important;
    position: absolute;
    top: calc(100% + 140px);
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    padding: 20px var(--container-padding) 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 240, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}

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

.btn-outline:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1rem;
}

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

.btn-arrow {
    transition: transform var(--transition-fast);
}

.btn:hover .btn-arrow {
    transform: translateX(5px);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px var(--container-padding);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse at 70% 30%, rgba(0, 240, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 90% 80%, rgba(123, 45, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 650px;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--accent-primary);
    margin-bottom: 30px;
    animation: fadeInUp 0.6s ease-out;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    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 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.title-line {
    display: block;
    font-size: 0.4em;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 10px;
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.title-name {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

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

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glitch::before {
    animation: glitch-1 3s infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch::after {
    animation: glitch-2 3s infinite linear alternate-reverse;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {

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

    20% {
        transform: translateX(-3px);
    }

    40% {
        transform: translateX(3px);
    }

    60% {
        transform: translateX(-2px);
    }

    80% {
        transform: translateX(2px);
    }
}

@keyframes glitch-2 {

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

    20% {
        transform: translateX(3px);
    }

    40% {
        transform: translateX(-3px);
    }

    60% {
        transform: translateX(2px);
    }

    80% {
        transform: translateX(-2px);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

.typing-cursor {
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.highlight {
    color: var(--accent-primary);
    font-weight: 600;
}

.hero-cta {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    animation: fadeInUp 0.6s ease-out 0.5s backwards;
}

.hero-socials {
    display: flex;
    gap: 20px;
    animation: fadeInUp 0.6s ease-out 0.6s backwards;
}

.social-link {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--transition-smooth);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.social-link:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3);
}

/* Hero Visual - 3D Orbs */
.hero-visual {
    position: relative;
    width: 500px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orb-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: orbFloat 8s infinite ease-in-out;
    will-change: transform;
    contain: layout style;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-primary);
    top: 20%;
    left: 20%;
    opacity: 0.3;
    animation-delay: 0s;
}

.orb-2 {
    width: 250px;
    height: 250px;
    background: var(--accent-secondary);
    top: 40%;
    right: 10%;
    opacity: 0.25;
    animation-delay: -2s;
}

.orb-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-tertiary);
    bottom: 20%;
    left: 30%;
    opacity: 0.2;
    animation-delay: -4s;
}

@keyframes orbFloat {

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

    25% {
        transform: translate(20px, -20px) scale(1.05);
    }

    50% {
        transform: translate(-10px, 20px) scale(0.95);
    }

    75% {
        transform: translate(15px, 10px) scale(1.02);
    }
}

/* Code Sphere */
.code-sphere {
    position: absolute;
    width: 250px;
    height: 250px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    perspective: 1000px;
}

.sphere-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    opacity: 0.3;
    will-change: transform;
}

.ring-1 {
    animation: sphereRotate1 10s linear infinite;
}

.ring-2 {
    transform: rotateX(60deg);
    animation: sphereRotate2 15s linear infinite;
    border-color: var(--accent-secondary);
}

.ring-3 {
    transform: rotateY(60deg);
    animation: sphereRotate3 12s linear infinite;
    border-color: var(--accent-tertiary);
}

@keyframes sphereRotate1 {
    from {
        transform: rotateZ(0deg);
    }

    to {
        transform: rotateZ(360deg);
    }
}

@keyframes sphereRotate2 {
    from {
        transform: rotateX(60deg) rotateZ(0deg);
    }

    to {
        transform: rotateX(60deg) rotateZ(360deg);
    }
}

@keyframes sphereRotate3 {
    from {
        transform: rotateY(60deg) rotateZ(0deg);
    }

    to {
        transform: rotateY(60deg) rotateZ(360deg);
    }
}

.sphere-core {
    position: absolute;
    width: 80px;
    height: 80px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--gradient-primary);
    border-radius: 50%;
    box-shadow: 0 0 60px var(--accent-primary),
        0 0 120px var(--accent-secondary);
    animation: coreGlow 3s ease-in-out infinite;
}

@keyframes coreGlow {

    0%,
    100% {
        box-shadow: 0 0 60px var(--accent-primary), 0 0 120px var(--accent-secondary);
    }

    50% {
        box-shadow: 0 0 80px var(--accent-primary), 0 0 160px var(--accent-secondary);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

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

@keyframes scrollLine {

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

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

/* ===== SECTION STYLES ===== */
.section-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

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

.section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    position: relative;
}

.section-tag::before,
.section-tag::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--accent-primary);
}

.section-tag::before {
    left: -40px;
}

.section-tag::after {
    right: -40px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
}

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

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-top: 20px;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.about-intro {
    font-size: 1.375rem;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.skills-grid {
    display: grid;
    gap: 30px;
}

.skill-category h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--accent-primary);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

.skill-tag {
    font-size: 0.875rem;
    padding: 8px 18px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 50px;
    color: var(--text-primary);
    transition: all var(--transition-smooth);
    cursor: default;
}

.skill-tag:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.2);
}

/* Stats Card */
.about-visual {
    position: relative;
}

.stats-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 40px;
    backdrop-filter: blur(20px);
    display: grid;
    gap: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.1);
    transition: all var(--transition-smooth);
    contain: layout style;
}

.stat-item:hover {
    background: rgba(0, 240, 255, 0.1);
    transform: scale(1.05);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Floating Icons */
.floating-icons {
    position: absolute;
    inset: -50px;
    pointer-events: none;
}

.icon-float {
    position: absolute;
    font-size: 2rem;
    animation: iconFloat 6s ease-in-out infinite;
}

.icon-1 {
    top: 0;
    left: 10%;
    animation-delay: 0s;
}

.icon-2 {
    top: 20%;
    right: 0;
    animation-delay: -1.5s;
}

.icon-3 {
    bottom: 20%;
    left: -10%;
    animation-delay: -3s;
}

.icon-4 {
    bottom: 0;
    right: 20%;
    animation-delay: -4.5s;
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

/* ===== PROJECTS SECTION ===== */
.projects {
    padding: var(--section-padding) 0;
    position: relative;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.project-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-smooth);
    cursor: pointer;
    contain: layout style;
}

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

.project-image {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-gradient {
    position: absolute;
    inset: 0;
    opacity: 0.8;
}

.gradient-1 {
    background: linear-gradient(135deg, #00f0ff 0%, #0080ff 100%);
}

.gradient-2 {
    background: linear-gradient(135deg, #ff00aa 0%, #7b2dff 100%);
}

.gradient-3 {
    background: linear-gradient(135deg, #7b2dff 0%, #00f0ff 100%);
}

.gradient-4 {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
}

.gradient-5 {
    background: linear-gradient(135deg, #00c9ff 0%, #92fe9d 100%);
}

.gradient-6 {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
}

.project-icon {
    position: relative;
    z-index: 1;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    transition: transform var(--transition-smooth);
}

.project-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.project-card:hover .project-icon {
    transform: scale(1.1) rotate(5deg);
}

.project-content {
    padding: 30px;
}

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

.tag {
    font-size: 0.75rem;
    padding: 4px 12px;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 50px;
    color: var(--accent-primary);
    font-weight: 500;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    transition: color var(--transition-fast);
}

.project-card:hover .project-title {
    color: var(--accent-primary);
}

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

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

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-decoration: none;
    transition: all var(--transition-fast);
}

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

.project-link svg {
    transition: transform var(--transition-fast);
}

.project-link:hover svg {
    transform: translate(3px, -3px);
}

.project-hover-effect {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(0, 240, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    pointer-events: none;
}

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

.projects-cta {
    text-align: center;
}

/* ===== INTERACTIVE SPHERE HINT ===== */
.sphere-hint {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    animation: fadeInUp 0.6s ease-out 1s backwards;
}

/* ===== RUBIK'S CUBE SECTION ===== */
.interactive-section {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.interactive-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-secondary), transparent);
}

/* Rubik's Controls */
.rubiks-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.rubiks-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: rgba(0, 240, 255, 0.1);
    border: 2px solid var(--accent-primary);
    border-radius: 50px;
    color: var(--accent-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-smooth);
}

.rubiks-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3);
}

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

/* Face Control Buttons */
.face-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.face-controls-row {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.face-btn-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.face-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    min-width: 45px;
    text-align: center;
}

.face-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.face-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.3;
    transition: opacity var(--transition-fast);
}

/* Face button colors */
.face-btn-u::before {
    background: #ffffff;
}

.face-btn-d::before {
    background: #ffeb3b;
}

.face-btn-l::before {
    background: #ff9800;
}

.face-btn-r::before {
    background: #f44336;
}

.face-btn-f::before {
    background: #4caf50;
}

.face-btn-b::before {
    background: #2196f3;
}

.face-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.face-btn:hover::before {
    opacity: 0.5;
}

.face-btn:hover::before {
    opacity: 0.5;
}

.face-btn:active {
    transform: translateY(-1px) scale(0.98);
}

.face-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* View Controls */
.view-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 10px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(0, 240, 255, 0.3);
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.view-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 240, 255, 0.3);
}

.view-btn:active {
    transform: scale(0.95);
}

/* Move Counter */
.move-counter {
    text-align: center;
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.move-counter span:last-child {
    color: var(--accent-primary);
    font-weight: 700;
}

/* Rubik's Container */
.rubiks-container {
    width: 280px;
    height: 280px;
    margin: 0 auto 40px;
    perspective: 800px;
    cursor: grab;
}

.rubiks-container:active {
    cursor: grabbing;
}

.rubiks-cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

/* Individual Cubie */
.cubie {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-style: preserve-3d;
    will-change: transform;
}

.cubie-face {
    position: absolute;
    width: 76px;
    height: 76px;
    border: 2px solid rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.cubie-face:not(.black-face):hover {
    transform: scale(1.02);
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.2), 0 0 10px rgba(255, 255, 255, 0.2);
}

.cubie-face.black-face {
    cursor: default;
    pointer-events: none;
}

/* Rubik's Cube Colors */
.cubie-face.white {
    background: linear-gradient(145deg, #ffffff, #e8e8e8);
}

.cubie-face.yellow {
    background: linear-gradient(145deg, #ffeb3b, #fbc02d);
}

.cubie-face.red {
    background: linear-gradient(145deg, #f44336, #c62828);
}

.cubie-face.orange {
    background: linear-gradient(145deg, #ff9800, #ef6c00);
}

.cubie-face.blue {
    background: linear-gradient(145deg, #2196f3, #1565c0);
}

.cubie-face.green {
    background: linear-gradient(145deg, #4caf50, #2e7d32);
}

.cubie-face.black {
    background: linear-gradient(145deg, #1a1a1a, #0a0a0a);
}

/* Cubie Face Positions */
.cubie-face.front {
    transform: translateZ(38px);
}

.cubie-face.back {
    transform: rotateY(180deg) translateZ(38px);
}

.cubie-face.right {
    transform: rotateY(90deg) translateZ(38px);
}

.cubie-face.left {
    transform: rotateY(-90deg) translateZ(38px);
}

.cubie-face.top {
    transform: rotateX(90deg) translateZ(38px);
}

.cubie-face.bottom {
    transform: rotateX(-90deg) translateZ(38px);
}

/* Cubie Face Interaction */
.cubie-face:not(.black) {
    cursor: pointer;
    transition: filter 0.2s ease;
}

.cubie-face:not(.black):hover {
    filter: brightness(1.2);
}

/* Rubik's Hint */
.rubiks-hint {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 20px;
}

/* Layer rotation wrapper for animation */
.rotation-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Rotating Animation */
.rubiks-cube.rotating {
    pointer-events: none;
}

/* Victory Animation */
.rubiks-cube.solved {
    animation: victorySpin 1s ease-in-out;
}

@keyframes victorySpin {
    0% {
        transform: rotateX(-25deg) rotateY(-40deg) scale(1);
    }

    50% {
        transform: rotateX(0deg) rotateY(180deg) scale(1.1);
    }

    100% {
        transform: rotateX(-25deg) rotateY(320deg) scale(1);
    }
}

/* Mobile Responsive for Rubik's */
@media (max-width: 768px) {
    .rubiks-container {
        width: 220px;
        height: 220px;
    }

    .cubie {
        width: 60px;
        height: 60px;
    }

    .cubie-face {
        width: 56px;
        height: 56px;
        border-radius: 6px;
    }

    .cubie-face.front {
        transform: translateZ(28px);
    }

    .cubie-face.back {
        transform: rotateY(180deg) translateZ(28px);
    }

    .cubie-face.right {
        transform: rotateY(90deg) translateZ(28px);
    }

    .cubie-face.left {
        transform: rotateY(-90deg) translateZ(28px);
    }

    .cubie-face.top {
        transform: rotateX(90deg) translateZ(28px);
    }

    .cubie-face.bottom {
        transform: rotateX(-90deg) translateZ(28px);
    }

    .rotation-controls {
        gap: 8px;
    }

    .rotate-btn {
        width: 44px;
        height: 44px;
        font-size: 0.9rem;
    }

    .rubiks-controls {
        flex-wrap: wrap;
    }

    .rubiks-btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: var(--section-padding) 0;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

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

.contact-info .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.contact-info .section-tag {
    text-align: left;
}

.contact-info .section-tag::before {
    display: none;
}

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

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

.contact-link-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    text-decoration: none;
    transition: all var(--transition-smooth);
}

.contact-link-item:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--accent-primary);
    transform: translateX(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 240, 255, 0.1);
    border-radius: 12px;
    color: var(--accent-primary);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-link-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-link-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* Contact Form */
.contact-form-container {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    padding: 40px;
    backdrop-filter: blur(20px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    padding: 15px 0;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color var(--transition-fast);
}

.form-group textarea {
    resize: none;
}

.form-group label {
    position: absolute;
    left: 0;
    top: 15px;
    font-size: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all var(--transition-fast);
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:focus~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: -10px;
    font-size: 0.75rem;
    color: var(--accent-primary);
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-smooth);
}

.form-group input:focus~.form-line,
.form-group textarea:focus~.form-line {
    width: 100%;
}

/* ===== FOOTER ===== */
.footer {
    padding: 60px var(--container-padding);
    background: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

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

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

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-socials {
        justify-content: center;
    }

    .hero-visual {
        width: 350px;
        height: 350px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

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

@media (max-width: 768px) {

    .nav-links,
    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .hero-visual {
        width: 280px;
        height: 280px;
    }

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

    .cube-container {
        width: 220px;
        height: 220px;
    }

    .cube-face {
        width: 140px;
        height: 140px;
        left: 40px;
        top: 40px;
        font-size: 0.75rem;
    }

    .cube-face.front {
        transform: translateZ(70px);
    }

    .cube-face.back {
        transform: rotateY(180deg) translateZ(70px);
    }

    .cube-face.right {
        transform: rotateY(90deg) translateZ(70px);
    }

    .cube-face.left {
        transform: rotateY(-90deg) translateZ(70px);
    }

    .cube-face.top {
        transform: rotateX(90deg) translateZ(70px);
    }

    .cube-face.bottom {
        transform: rotateX(-90deg) translateZ(70px);
    }
}

@media (max-width: 480px) {

    .section-tag::before,
    .section-tag::after {
        display: none;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

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

    .skill-tags {
        justify-content: center;
    }
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {

    .cursor,
    .cursor-follower {
        display: none;
    }

    body {
        cursor: auto;
    }
}