* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --neon-cyan: #00fff5;
    --neon-pink: #ff00ff;
    --neon-green: #39ff14;
    --dark-bg: #0a0e27;
    --darker-bg: #050814;
    --card-bg: #121736;
    --text-primary: #e8e8f5;
    --text-secondary: #9b9baf;
}

body {
    cursor: url("../images/coursor.svg") 10 10, auto !important;
}

button:hover {
    cursor: url('../images/coursor-pointer.svg'), pointer;
}

/* Custom cursor for links */
a:hover {
    cursor: url('../images/coursor-pointer.svg'), pointer;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.7;
}

/* Animated Grid Background */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            linear-gradient(90deg, rgba(0, 255, 245, 0.03) 1px, transparent 1px),
            linear-gradient(rgba(0, 255, 245, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: perspective(500px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(500px) rotateX(60deg) translateY(40px); }
}

/* Glowing orbs background */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    pointer-events: none;
    z-index: 0;
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--neon-cyan);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: var(--neon-pink);
    bottom: -150px;
    left: -150px;
    animation-delay: 2s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--neon-green);
    top: 50%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-30px, 30px) scale(0.9); }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: .5rem 5%;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 255, 245, 0.1);
    z-index: 1000;
    transition: transform 0.3s ease-in-out, padding 0.3s ease, background 0.3s ease;
    transform: translateY(0);
}

nav.scrolled {
    padding: 1rem 5%;
    background: rgba(10, 14, 39, 0.95);
    box-shadow: 0 5px 30px rgba(0, 255, 245, 0.1);
}

nav.nav-hidden {
    transform: translateY(-100%);
    box-shadow: none;
}

nav.scrolled {
    padding: 1rem 5%;
    background: rgba(10, 14, 39, 0.95);
    box-shadow: 0 5px 30px rgba(0, 255, 245, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.logo {
    font-family: 'Oxanium', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--neon-cyan);
    text-shadow: 0 0 20px var(--neon-cyan);
    letter-spacing: 2px;
}

.logo span {
    color: var(--neon-pink);
    text-shadow: 0 0 20px var(--neon-pink);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a::before {
    content: '>';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--neon-cyan);
}

.nav-links a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

.nav-links a:hover::before {
    opacity: 1;
    left: -20px;
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--neon-cyan);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px var(--neon-cyan);
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 5% 4rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 1400px;
    width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-tag {
    display: inline-block;
    color: var(--neon-green);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--neon-green);
    border-radius: 20px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 5px var(--neon-green); }
    to { box-shadow: 0 0 20px var(--neon-green), 0 0 30px var(--neon-green); }
}

.hero-title {
    font-family: 'Oxanium', sans-serif;
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--neon-cyan) 0%, var(--neon-pink) 50%, var(--neon-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-subtitle span {
    color: var(--neon-cyan);
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.8;
}

.btn-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: 'Oxanium', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    color: var(--dark-bg);
    box-shadow: 0 5px 20px rgba(0, 255, 245, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 255, 245, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--neon-cyan);
    border: 2px solid var(--neon-cyan);
}

.btn-secondary:hover {
    background: var(--neon-cyan);
    color: var(--dark-bg);
    box-shadow: 0 5px 20px rgba(0, 255, 245, 0.5);
    transform: translateY(-3px);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.code-window {
    background: rgba(18, 23, 54, 0.8);
    border: 1px solid rgba(0, 255, 245, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 20px 60px rgba(0, 255, 245, 0.2);
    backdrop-filter: blur(10px);
}

.window-header {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
}

.window-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--neon-pink);
    box-shadow: 0 0 10px var(--neon-pink);
}

.window-btn:nth-child(2) {
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
}

.window-btn:nth-child(3) {
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.code-content {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

.code-line {
    display: block;
    animation: typewriter 3s steps(40) infinite;
}

.keyword { color: var(--neon-pink); }
.function { color: var(--neon-cyan); }
.string { color: var(--neon-green); }
.comment { color: var(--text-secondary); }

/* Tech Stack Floating */
.tech-stack {
    position: absolute;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    bottom: -50px;
    left: 0;
    animation: fadeIn 1s ease-out 0.5s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tech-badge {
    padding: 0.6rem 1.2rem;
    background: rgba(18, 23, 54, 0.8);
    border: 1px solid var(--neon-cyan);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
    animation: float 3s ease-in-out infinite;
}

.tech-badge:nth-child(2) {
    border-color: var(--neon-pink);
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
    animation-delay: 0.5s;
}

.tech-badge:nth-child(3) {
    border-color: var(--neon-green);
    color: var(--neon-green);
    text-shadow: 0 0 10px var(--neon-green);
    animation-delay: 1s;
}

.tech-badge:nth-child(4) {
    animation-delay: 1.5s;
}

.tech-badge:nth-child(5) {
    border-color: var(--neon-pink);
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
    animation-delay: 2s;
}

/* Section Styles */
section {
    padding: 6rem 5%;
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    color: var(--neon-pink);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Oxanium', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.about-content h3 {
    font-family: 'Oxanium', sans-serif;
    font-size: 2rem;
    color: var(--neon-cyan);
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skill-category {
    background: rgba(18, 23, 54, 0.6);
    border: 1px solid rgba(0, 255, 245, 0.2);
    border-radius: 10px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 245, 0.3);
}

.skill-category h4 {
    font-family: 'Oxanium', sans-serif;
    font-size: 1.3rem;
    color: var(--neon-pink);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.skill-category li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--neon-cyan);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.project-card {
    background: rgba(18, 23, 54, 0.6);
    border: 1px solid rgba(0, 255, 245, 0.2);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 255, 245, 0.1), rgba(255, 0, 255, 0.1));
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 1;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-cyan);
    box-shadow: 0 20px 60px rgba(0, 255, 245, 0.3);
}

.project-header {
    height: 220px;
    background: linear-gradient(135deg, rgba(0, 255, 245, 0.1), rgba(255, 0, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-header::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: conic-gradient(
            transparent,
            var(--neon-cyan),
            transparent 30%
    );
    animation: rotate 4s linear infinite;
}

.project-icon {
    font-size: 5rem;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 20px rgba(0, 255, 245, 0.8));
}

.project-body {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.project-title {
    font-family: 'Oxanium', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
}

.project-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    padding: 0.4rem 0.9rem;
    background: rgba(0, 255, 245, 0.1);
    border: 1px solid rgba(0, 255, 245, 0.3);
    border-radius: 5px;
    font-size: 0.85rem;
    color: var(--neon-cyan);
    font-weight: 600;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    padding: 0.7rem 1.5rem;
    background: transparent;
    border: 1px solid var(--neon-pink);
    color: var(--neon-pink);
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.project-link:hover {
    background: var(--neon-pink);
    color: var(--dark-bg);
    transform: translateX(5px);
}

/* Contact Section */
.contact-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.contact-card {
    background: rgba(18, 23, 54, 0.6);
    border: 1px solid rgba(0, 255, 245, 0.2);
    border-radius: 15px;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 255, 245, 0.3);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 10px var(--neon-cyan));
}

.contact-card h3 {
    font-family: 'Oxanium', sans-serif;
    font-size: 1.3rem;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
}

.contact-card a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
}

.contact-card a:hover {
    color: var(--neon-cyan);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(18, 23, 54, 0.6);
    border: 2px solid var(--neon-cyan);
    border-radius: 10px;
    color: var(--neon-cyan);
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--neon-cyan);
    color: var(--dark-bg);
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 10px 30px rgba(0, 255, 245, 0.5);
}

/* Footer */
footer {
    padding: 2rem 5%;
    text-align: center;
    background: rgba(10, 14, 39, 0.8);
    border-top: 1px solid rgba(0, 255, 245, 0.1);
    position: relative;
    z-index: 1;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

footer span {
    color: var(--neon-pink);
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Horizontal Scroll Section */
.horizontal-scroll-wrapper {
    height: 400vh;
    position: relative;
}

.sticky-container {
    position: sticky;
    top: 0;
    /*height: 100vh;*/
    overflow: hidden;
}

.horizontal-content {
    display: flex;
    align-items: center;
    /*height: 100vh;*/
    will-change: transform;
    padding: 30px 5%;
    gap: 3rem;
}

.scroll-card {
    min-width: 380px;
    max-width: 380px;
    background: rgba(18, 23, 54, 0.6);
    border: 1px solid rgba(0, 255, 245, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.scroll-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
}

.scroll-card:hover {
    transform: translateY(-15px);
    border-color: var(--neon-cyan);
    box-shadow: 0 20px 60px rgba(0, 255, 245, 0.4);
}

.scroll-card-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 15px var(--neon-cyan));
}

.scroll-card h3 {
    font-family: 'Oxanium', sans-serif;
    font-size: 1.8rem;
    color: var(--neon-cyan);
    margin-bottom: 1rem;
}

.scroll-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.scroll-card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.scroll-tech-tag {
    padding: 0.4rem 0.8rem;
    background: rgba(0, 255, 245, 0.1);
    border: 1px solid rgba(0, 255, 245, 0.3);
    border-radius: 5px;
    font-size: 0.8rem;
    color: var(--neon-cyan);
    font-weight: 600;
}

/* Feature Stack Section */
.feature-stack-section {
    padding: 0;
    margin: 6rem 0;
}

.feature-stack-header {
    text-align: center;
    padding: 0 5%;
    margin-bottom: 4rem;
}

.feature-stack-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
}

.feature-stack-card {
    background: rgba(18, 23, 54, 1);
    border: 2px solid rgba(0, 255, 245, 0.2);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 2rem;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.feature-stack-card.card-cyan {
    border-color: var(--neon-cyan);
}

.feature-stack-card.card-pink {
    border-color: var(--neon-pink);
}

.feature-stack-card.card-green {
    border-color: var(--neon-green);
}

.feature-stack-card .glow-effect {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
}

.feature-stack-card.card-cyan .glow-effect {
    background: var(--neon-cyan);
    bottom: -150px;
    left: -150px;
}

.feature-stack-card.card-pink .glow-effect {
    background: var(--neon-pink);
    bottom: -150px;
    right: -100px;
    display: none;
}

.feature-stack-card.card-green .glow-effect {
    background: var(--neon-green);
    bottom: -150px;
    left: -150px;
}

.feature-card-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.feature-card-text h3 {
    font-family: 'Oxanium', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-stack-card.card-cyan .feature-card-text h3 {
    color: var(--neon-cyan);
}

.feature-stack-card.card-pink .feature-card-text h3 {
    color: var(--neon-pink);
}

.feature-stack-card.card-green .feature-card-text h3 {
    color: var(--neon-green);
}

.feature-card-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.feature-card-visual {
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8rem;
    filter: drop-shadow(0 0 30px rgba(0, 255, 245, 0.6));
}

/* Stacking Animation */
.feature-stack-card:nth-child(1) {
    z-index: 1;
}

.feature-stack-card:nth-child(2) {
    z-index: 2;
}

.feature-stack-card:nth-child(3) {
    z-index: 3;
}

.feature-stack-card:nth-child(4) {
    z-index: 4;
}

.feature-stack-card.scroll-active {
    position: sticky;
}

.feature-stack-card:nth-child(1).scroll-active {
    top: 100px;
    transform: scale(0.90) translateY(20px);
}

.feature-stack-card:nth-child(2).scroll-active {
    top: 110px;
    transform: scale(0.93) translateY(40px);
}

.feature-stack-card:nth-child(3).scroll-active {
    top: 120px;
    transform: scale(0.96) translateY(60px);
}

.feature-stack-card:nth-child(4).scroll-active {
    top: 130px;
    transform: scale(0.99) translateY(55px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-cyan), var(--neon-pink));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

@keyframes rotate {
    to { transform: rotate(360deg); }
}

/* ========================================
   TABLET RESPONSIVE (768px - 968px)
======================================== */
@media (max-width: 968px) {
    /* Navigation */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 400px;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s ease;
        border-left: 1px solid rgba(0, 255, 245, 0.2);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .mobile-toggle {
        display: flex;
    }

    /* Hero Section */
    .hero {
        padding: 6rem 5% 3rem;
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-visual {
        order: -1;
    }

    .hero-description {
        font-size: 1rem;
    }

    .code-window {
        padding: 1rem;
    }

    .code-content {
        font-size: 0.8rem;
    }

    .tech-stack {
        position: static;
        margin-top: 2rem;
        justify-content: center;
    }

    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-content h3 {
        font-size: 1.8rem;
    }

    .about-content p {
        font-size: 1rem;
    }

    .skills-container {
        grid-template-columns: 1fr;
    }

    .skill-category {
        padding: 1.5rem;
    }

    /* Projects - Horizontal Scroll */
    .scroll-card {
        min-width: 320px;
        max-width: 320px;
        padding: 2rem;
    }

    .scroll-card h3 {
        font-size: 1.5rem;
    }

    .scroll-card-icon {
        font-size: 3rem;
    }

    .horizontal-scroll-wrapper {
        height: 300vh;
    }

    /* Feature Cards */
    .feature-card-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-card-visual {
        height: 200px;
        font-size: 5rem;
    }

    .feature-card-text h3 {
        font-size: 2rem;
    }

    .feature-card-text p {
        font-size: 1rem;
    }

    .feature-stack-card {
        padding: 2rem;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Sections */
    section {
        padding: 4rem 5%;
    }

    .section-subtitle {
        font-size: 1rem;
    }
}

/* ========================================
   MOBILE RESPONSIVE (481px - 767px)
======================================== */
@media (max-width: 767px) {
    /* Navigation */
    .logo {
        font-size: 1.5rem;
    }

    nav {
        padding: 1rem 5%;
    }

    nav.scrolled {
        padding: 0.8rem 5%;
    }

    /* Hero Section */
    .hero {
        padding: 5rem 5% 2rem;
    }

    .hero-tag {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        letter-spacing: 2px;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: clamp(1.1rem, 4vw, 1.4rem);
        margin-bottom: 1.5rem;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .btn-group {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        text-align: center;
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
    }

    .code-window {
        padding: 1rem;
    }

    .code-content {
        font-size: 0.75rem;
        line-height: 1.6;
    }

    .tech-badge {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    /* Sections */
    section {
        padding: 3rem 5%;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    .section-tag {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    .section-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }

    .section-subtitle {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* About Section */
    .about-content h3 {
        font-size: 1.6rem;
    }

    .about-content p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .skill-category {
        padding: 1.5rem;
    }

    .skill-category h4 {
        font-size: 1.1rem;
    }

    .skill-category li {
        font-size: 0.9rem;
    }

    /* Projects */
    .scroll-card {
        min-width: 280px;
        max-width: 280px;
        padding: 1.5rem;
    }

    .scroll-card-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .scroll-card h3 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }

    .scroll-card p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .scroll-tech-tag {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    /* Feature Cards */
    .feature-stack-section {
        margin: 4rem 0;
    }

    .feature-stack-header {
        margin-bottom: 2.5rem;
    }

    .feature-stack-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .feature-card-visual {
        height: 150px;
        font-size: 4rem;
    }

    .feature-card-text h3 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .feature-card-text p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    /* Disable stacking on mobile */
    .feature-stack-card.scroll-active {
        position: relative;
        transform: none !important;
        top: 0 !important;
    }

    /* Contact */
    .contact-card {
        padding: 2rem;
    }

    .contact-icon {
        font-size: 2.5rem;
    }

    .contact-card h3 {
        font-size: 1.2rem;
    }

    .contact-card a {
        font-size: 0.9rem;
    }

    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    /* Footer */
    footer {
        padding: 1.5rem 5%;
    }

    footer p {
        font-size: 0.85rem;
    }
}

/* ========================================
   SMALL MOBILE RESPONSIVE (≤480px)
======================================== */
@media (max-width: 480px) {
    /* Orbs - reduce size for performance */
    .orb-1 {
        width: 250px;
        height: 250px;
    }

    .orb-2 {
        width: 200px;
        height: 200px;
    }

    .orb-3 {
        width: 180px;
        height: 180px;
    }

    /* Navigation */
    .logo {
        font-size: 1.3rem;
    }

    .nav-links {
        width: 85%;
    }

    .mobile-toggle span {
        width: 22px;
    }

    /* Hero */
    .hero {
        padding: 4.5rem 5% 2rem;
    }

    .hero-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.85rem 1.2rem;
        font-size: 0.9rem;
    }

    .code-content {
        font-size: 0.7rem;
    }

    .window-btn {
        width: 10px;
        height: 10px;
    }

    .tech-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }

    /* Sections */
    section {
        padding: 2.5rem 5%;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }

    .section-tag {
        font-size: 0.75rem;
    }

    /* About */
    .about-content h3 {
        font-size: 1.4rem;
    }

    .about-content p {
        font-size: 0.9rem;
    }

    .skill-category {
        padding: 1.2rem;
    }

    .skill-category h4 {
        font-size: 1rem;
    }

    .skill-category li {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }

    /* Projects */
    .scroll-card {
        min-width: 260px;
        max-width: 260px;
        padding: 1.2rem;
    }

    .scroll-card-icon {
        font-size: 2rem;
    }

    .scroll-card h3 {
        font-size: 1.2rem;
    }

    .scroll-card p {
        font-size: 0.85rem;
    }

    .scroll-tech-tag {
        padding: 0.25rem 0.5rem;
        font-size: 0.7rem;
    }

    .horizontal-scroll-wrapper {
        height: 250vh;
    }

    /* Feature Cards */
    .feature-stack-card {
        padding: 1.2rem;
    }

    .feature-card-visual {
        height: 120px;
        font-size: 3rem;
    }

    .feature-card-text h3 {
        font-size: 1.4rem;
    }

    .feature-card-text p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* Contact Form */
    .contact-container > div {
        padding: 2rem 1.5rem !important;
    }

    .contact-container h3 {
        font-size: 1.5rem !important;
    }

    .contact-container input,
    .contact-container textarea {
        padding: 0.8rem !important;
        font-size: 0.9rem !important;
    }

    .contact-container label {
        font-size: 0.9rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    /* Footer */
    footer p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
}

/* ========================================
   EXTRA SMALL MOBILE (≤360px)
======================================== */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .scroll-card {
        min-width: 240px;
        max-width: 240px;
        padding: 1rem;
    }

    .btn {
        padding: 0.8rem 1rem;
        font-size: 0.85rem;
    }

    .tech-badge {
        font-size: 0.65rem;
    }
}

/* ========================================
   LANDSCAPE MOBILE OPTIMIZATION
======================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 5rem 5% 2rem;
    }

    .hero-grid {
        gap: 2rem;
    }

    .code-window {
        padding: 1rem;
    }

    section {
        padding: 3rem 5%;
    }

    .feature-card-visual {
        height: 150px;
        font-size: 4rem;
    }
}

/* ========================================
   TOUCH DEVICE OPTIMIZATIONS
======================================== */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .btn-primary:hover,
    .btn-secondary:hover,
    .project-card:hover,
    .skill-category:hover,
    .contact-card:hover {
        transform: none;
    }

    /* Increase touch target sizes */
    .nav-links a {
        padding: 0.5rem 0;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .btn {
        min-height: 44px;
    }

    .social-link {
        min-width: 44px;
        min-height: 44px;
    }
}

/* ========================================
   SERVICES SECTION - TILT CARDS
======================================== */
.services-section {
    padding: 6rem 5%;
    position: relative;
    z-index: 1;
}

.services-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-top: 1rem;
}

/* Tilt Card Base */
.tilt-card {
    position: relative;
    background: rgba(18, 23, 54, 0.7);
    border: 1px solid rgba(0, 255, 245, 0.15);
    border-radius: 16px;
    padding: 2.2rem;
    cursor: default;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg);
    transition: transform 0.1s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    will-change: transform;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.tilt-card:hover {
    border-color: rgba(0, 255, 245, 0.5);
    box-shadow: 0 20px 60px rgba(0, 255, 245, 0.15), 0 0 30px rgba(0, 255, 245, 0.05);
}

/* Glowing spotlight that follows the tilt */
.tilt-card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 255, 245, 0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    transform: translateZ(0);
}

.tilt-card:hover .tilt-card-glow {
    opacity: 1;
}

/* Inner content lifted in z-space */
.tilt-card-inner {
    position: relative;
    transform: translateZ(20px);
    z-index: 1;
}

.tilt-card-icon {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    display: block;
    filter: drop-shadow(0 0 10px rgba(0, 255, 245, 0.4));
    transition: transform 0.3s ease;
}

.tilt-card:hover .tilt-card-icon {
    transform: scale(1.15) translateZ(10px);
}

.tilt-card h3 {
    font-family: 'Oxanium', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.tilt-card:hover h3 {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 255, 245, 0.4);
}

.tilt-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.tilt-card-list {
    list-style: none;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.tilt-card-list li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-left: 1.2rem;
    position: relative;
}

.tilt-card-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--neon-cyan);
    font-size: 0.75rem;
}

/* Color badges */
.tilt-card-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    font-family: 'Oxanium', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge-cyan {
    background: rgba(0, 255, 245, 0.12);
    border: 1px solid rgba(0, 255, 245, 0.4);
    color: var(--neon-cyan);
}

.badge-pink {
    background: rgba(255, 0, 255, 0.12);
    border: 1px solid rgba(255, 0, 255, 0.4);
    color: var(--neon-pink);
}

.badge-green {
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid rgba(57, 255, 20, 0.4);
    color: var(--neon-green);
}

/* Shimmer line on bottom edge of card */
.tilt-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s ease;
}

.tilt-card:hover::after {
    transform: scaleX(1);
}

/* Responsive */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 4rem 5%;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .tilt-card {
        transform: none !important;
    }
}

/* ========================================
   SPLASH SCREEN
======================================== */
#splashScreen {
    position: fixed;
    inset: 0;
    background: var(--darker-bg);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}
#splashScreen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.splash-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.splash-logo {
    font-family: 'Oxanium', sans-serif;
    font-size: clamp(5rem, 15vw, 9rem);
    font-weight: 800;
    color: var(--neon-cyan);
    text-shadow: 0 0 40px var(--neon-cyan), 0 0 80px var(--neon-cyan);
    letter-spacing: 6px;
    position: relative;
    animation: splashPulse 1.5s ease-in-out infinite alternate;
}
.splash-logo span {
    color: var(--neon-pink);
    text-shadow: 0 0 40px var(--neon-pink), 0 0 80px var(--neon-pink);
}
.splash-glitch,
.splash-glitch2 {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    font-family: 'Oxanium', sans-serif;
    font-size: inherit;
    font-weight: 800;
    letter-spacing: 6px;
    pointer-events: none;
}
.splash-glitch {
    color: var(--neon-cyan);
    text-shadow: -3px 0 var(--neon-pink);
    animation: glitch1 2s infinite;
    clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%);
}
.splash-glitch span { color: var(--neon-pink); text-shadow: -3px 0 var(--neon-cyan); }
.splash-glitch2 {
    color: var(--neon-cyan);
    text-shadow: 3px 0 var(--neon-green);
    animation: glitch2 2s infinite;
    clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
}
.splash-glitch2 span { color: var(--neon-pink); text-shadow: 3px 0 var(--neon-cyan); }
@keyframes glitch1 {
    0%, 90%, 100% { transform: translate(0); opacity: 0; }
    92% { transform: translate(-5px, 2px); opacity: 0.8; }
    94% { transform: translate(5px, -2px); opacity: 0.8; }
    96% { transform: translate(-3px, 0); opacity: 0.8; }
    98% { transform: translate(0); opacity: 0; }
}
@keyframes glitch2 {
    0%, 85%, 100% { transform: translate(0); opacity: 0; }
    87% { transform: translate(5px, -2px); opacity: 0.6; }
    90% { transform: translate(-5px, 2px); opacity: 0.6; }
    93% { transform: translate(0); opacity: 0; }
}
@keyframes splashPulse {
    from { text-shadow: 0 0 20px var(--neon-cyan), 0 0 40px var(--neon-cyan); }
    to   { text-shadow: 0 0 60px var(--neon-cyan), 0 0 120px var(--neon-cyan), 0 0 5px #fff; }
}
.splash-bar-wrapper {
    width: 220px;
    height: 3px;
    background: rgba(0, 255, 245, 0.15);
    border-radius: 2px;
    overflow: hidden;
}
.splash-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
    border-radius: 2px;
    box-shadow: 0 0 12px var(--neon-cyan);
    animation: splashLoad 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes splashLoad {
    0%   { width: 0%; }
    60%  { width: 70%; }
    80%  { width: 85%; }
    100% { width: 100%; }
}
.splash-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--neon-cyan);
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

/* ========================================
   SCROLL PROGRESS BAR
======================================== */
#scrollProgress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink), var(--neon-green));
    z-index: 9999;
    box-shadow: 0 0 10px var(--neon-cyan), 0 0 20px rgba(0,255,245,0.4);
    transition: width 0.1s linear;
}

/* ========================================
   TYPEWRITER
======================================== */
#typewriterText {
    color: var(--neon-cyan);
    font-weight: 600;
}
.typewriter-cursor {
    color: var(--neon-cyan);
    font-weight: 300;
    animation: cursorBlink 0.8s step-end infinite;
    margin-left: 1px;
}
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

/* ========================================
   STATS COUNTER SECTION
======================================== */
.stats-section {
    padding: 2rem 5% 5rem;
    position: relative;
    z-index: 1;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.stat-item {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: rgba(18, 23, 54, 0.6);
    border: 1px solid rgba(0,255,245,0.2);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}
.stat-item::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}
.stat-item:hover::before { transform: scaleX(1); }
.stat-item:hover {
    border-color: var(--neon-cyan);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,255,245,0.25);
}
.stat-item:nth-child(2) { border-color: rgba(255,0,255,0.2); }
.stat-item:nth-child(2):hover { border-color: var(--neon-pink); box-shadow: 0 20px 50px rgba(255,0,255,0.25); }
.stat-item:nth-child(2)::before { background: linear-gradient(90deg, var(--neon-pink), var(--neon-green)); }
.stat-item:nth-child(3) { border-color: rgba(57,255,20,0.2); }
.stat-item:nth-child(3):hover { border-color: var(--neon-green); box-shadow: 0 20px 50px rgba(57,255,20,0.25); }
.stat-item:nth-child(3)::before { background: linear-gradient(90deg, var(--neon-green), var(--neon-cyan)); }
.stat-item:nth-child(4)::before { background: linear-gradient(90deg, var(--neon-pink), var(--neon-cyan)); }
.stat-number {
    font-family: 'Oxanium', sans-serif;
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--neon-cyan);
    line-height: 1;
    display: inline-block;
}
.stat-item:nth-child(2) .stat-number { color: var(--neon-pink); text-shadow: 0 0 20px var(--neon-pink); }
.stat-item:nth-child(3) .stat-number { color: var(--neon-green); text-shadow: 0 0 20px var(--neon-green); }
.stat-number.counted { text-shadow: 0 0 30px currentColor; }
.stat-plus {
    font-family: 'Oxanium', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--neon-cyan);
    display: inline-block;
    margin-left: 2px;
    vertical-align: top;
    margin-top: 0.3rem;
}
.stat-item:nth-child(2) .stat-plus { color: var(--neon-pink); }
.stat-item:nth-child(3) .stat-plus { color: var(--neon-green); }
.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
}

/* ========================================
   3D TILT ON FEATURE STACK CARDS
======================================== */
.feature-stack-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
}
.feature-stack-card .tilt-shine {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
            circle at var(--shine-x, 50%) var(--shine-y, 50%),
            rgba(255,255,255,0.08) 0%,
            transparent 60%
    );
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.feature-stack-card:hover .tilt-shine { opacity: 1; }
.feature-stack-card.tilt-reset {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow 0.5s ease,
    border-color 0.3s ease !important;
}

/* ========================================
   STATS RESPONSIVE
======================================== */
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
    .stat-item { padding: 1.5rem 1rem; }
}

/* Splash scroll lock - uses class not inline style so nav JS isn't affected */
html.splash-active {
    overflow: hidden;
}