/* ==========================================================================
   MNNT Apps - Portfolio Mobile Developer
   Modern & Vivid Design - Electric Blue & Magenta
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables
   -------------------------------------------------------------------------- */
:root {
    /* Colors */
    --color-bg: #0a0a0f;
    --color-bg-light: #12121a;
    --color-bg-card: #1a1a24;
    --color-text: #e0e0e8;
    --color-text-muted: #8888a0;
    --color-electric: #00d4ff;
    --color-magenta: #ff00aa;
    --color-white: #ffffff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-electric) 0%, var(--color-magenta) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(0, 212, 255, 0.3) 0%, rgba(255, 0, 170, 0.3) 100%);

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

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    --space-3xl: 8rem;

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.3), 0 0 80px rgba(255, 0, 170, 0.2);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
}

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

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

/* --------------------------------------------------------------------------
   Container
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* --------------------------------------------------------------------------
   Background Animated Shapes
   -------------------------------------------------------------------------- */
.bg-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.shape-1 {
    width: 600px;
    height: 600px;
    background: var(--color-electric);
    top: -200px;
    right: -200px;
    animation-delay: 0s;
}

.shape-2 {
    width: 500px;
    height: 500px;
    background: var(--color-magenta);
    bottom: -150px;
    left: -150px;
    animation-delay: -5s;
}

.shape-3 {
    width: 300px;
    height: 300px;
    background: var(--color-electric);
    top: 50%;
    left: 30%;
    animation-delay: -10s;
}

.shape-4 {
    width: 400px;
    height: 400px;
    background: var(--color-magenta);
    top: 20%;
    right: 20%;
    animation-delay: -15s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(-30px, -20px) scale(1.02);
    }
}

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

.logo {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    transition: var(--transition-normal);
}

.logo:hover {
    transform: scale(1.05);
}

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

.logo-apps {
    color: var(--color-white);
}

.nav-list {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    transition: var(--transition-normal);
    position: relative;
}

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

.nav-link:hover {
    color: var(--color-white);
}

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

.nav-link--cta {
    padding: var(--space-xs) var(--space-md);
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    color: var(--color-bg) !important;
    font-weight: 600;
}

.nav-link--cta::after {
    display: none;
}

.nav-link--cta:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

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

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: var(--transition-normal);
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    z-index: 999;
    padding-top: 100px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

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

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.mobile-nav-link {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
    transition: var(--transition-normal);
}

.mobile-nav-link:hover {
    color: var(--color-electric);
}

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

    .nav-toggle {
        display: flex;
    }

    .mobile-nav {
        display: block;
    }

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

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

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

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3xl) var(--space-lg);
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero-tag {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-electric);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: var(--space-md);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards 0.2s;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-md);
}

.hero-title-line {
    display: block;
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 0.8s ease forwards;
}

.hero-title-line:nth-child(1) {
    animation-delay: 0.3s;
    color: var(--color-white);
}

.hero-title-line:nth-child(2) {
    animation-delay: 0.5s;
}

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

.hero-description {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 480px;
    margin-bottom: var(--space-lg);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards 0.7s;
}

.hero-visual {
    position: relative;
    opacity: 0;
    transform: translateX(40px);
    animation: fadeInRight 0.8s ease forwards 0.9s;
}

.phone-mockup {
    width: 280px;
    height: 560px;
    background: linear-gradient(135deg, #1a1a24 0%, #0a0a0f 100%);
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.1),
        var(--shadow-glow),
        0 40px 80px rgba(0, 0, 0, 0.5);
    position: relative;
}

.phone-mockup::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: 42px;
    z-index: -1;
    opacity: 0.5;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--color-bg-card);
    border-radius: 32px;
    overflow: hidden;
    position: relative;
}

.phone-notch {
    width: 120px;
    height: 28px;
    background: #0a0a0f;
    border-radius: 0 0 16px 16px;
    margin: 0 auto;
}

.phone-content {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.phone-app-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    animation: pulse 2s ease-in-out infinite;
}

.phone-lines {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.phone-lines span {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
}

.phone-lines span:nth-child(1) { width: 100%; }
.phone-lines span:nth-child(2) { width: 80%; }
.phone-lines span:nth-child(3) { width: 60%; }

.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-text-muted);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards 1.2s;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-electric), transparent);
    animation: scrollLine 1.5s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 150px;
    }

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

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        margin-top: var(--space-xl);
    }

    .phone-mockup {
        width: 220px;
        height: 440px;
    }
}

@media (max-width: 480px) {
    .hero-visual {
        display: none;
    }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1rem;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.2) 100%);
    opacity: 0;
    transition: var(--transition-normal);
}

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

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-bg);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards 0.9s;
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: 1.1rem;
}

.btn-view {
    background: var(--color-white);
    color: var(--color-bg);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-normal);
}

.btn-view:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section {
    padding: var(--space-3xl) 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: baseline;
    gap: var(--space-md);
}

.section-title--center {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: var(--space-xs);
}

.section-tag {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-magenta);
    letter-spacing: 2px;
}

.section-intro {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

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

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.about-text strong {
    color: var(--color-electric);
    font-weight: 600;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.stat-card {
    background: var(--color-bg-card);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--color-electric);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2);
}

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

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

.stat-detail {
    display: block;
    font-size: 0.75rem;
    color: var(--color-electric);
    margin-top: 4px;
}

.about-visual {
    display: flex;
    justify-content: center;
}

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

.about-decoration {
    position: absolute;
    width: 280px;
    height: 280px;
    border: 2px solid var(--color-magenta);
    border-radius: var(--radius-xl);
    top: 20px;
    left: 20px;
    opacity: 0.5;
}

.about-photo {
    width: 260px;
    height: 260px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-bg-card);
    margin: 3px;
    border-radius: calc(var(--radius-xl) - 3px);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .about-visual {
        order: -1;
    }
}

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

/* --------------------------------------------------------------------------
   Projects Section
   -------------------------------------------------------------------------- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--space-lg);
}

.project-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: transparent;
    box-shadow:
        0 0 0 2px var(--color-electric),
        0 20px 40px rgba(0, 0, 0, 0.4);
}

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

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

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.project-info {
    padding: var(--space-md);
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-xs);
}

.project-description {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
    line-height: 1.5;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-sm);
}

.tag {
    padding: 4px 12px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-electric);
}

.project-links {
    display: flex;
    gap: var(--space-sm);
}

.store-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    color: var(--color-text-muted);
    transition: var(--transition-normal);
}

.store-link:hover {
    background: var(--gradient-primary);
    color: var(--color-bg);
}

.store-link--disabled {
    opacity: 0.3;
    pointer-events: none;
}

@media (max-width: 400px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Project Modal
   -------------------------------------------------------------------------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 1000px;
    max-height: 90vh;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9) translateY(20px);
    transition: var(--transition-slow);
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: var(--transition-normal);
}

.modal-close:hover {
    background: var(--color-magenta);
    transform: rotate(90deg);
}

.modal-gallery {
    background: var(--color-bg);
    display: flex;
    flex-direction: column;
}

.gallery-main {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.gallery-image {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.gallery-nav:hover {
    background: var(--color-electric);
    color: var(--color-bg);
}

.gallery-prev { left: var(--space-sm); }
.gallery-next { right: var(--space-sm); }

.gallery-thumbs {
    display: flex;
    gap: var(--space-xs);
    padding: var(--space-sm);
    background: rgba(0, 0, 0, 0.3);
    overflow-x: auto;
    justify-content: center;
}

.gallery-thumbs img {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    opacity: 0.5;
    cursor: pointer;
    transition: var(--transition-normal);
}

.gallery-thumbs img:hover,
.gallery-thumbs img.active {
    opacity: 1;
    outline: 2px solid var(--color-electric);
}

.modal-info {
    padding: var(--space-xl);
    overflow-y: auto;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.modal-description h4,
.modal-details h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-magenta);
    margin-bottom: var(--space-sm);
}

.modal-text {
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.modal-list {
    margin-bottom: var(--space-lg);
}

.modal-list li {
    position: relative;
    padding-left: var(--space-md);
    color: var(--color-text-muted);
    margin-bottom: var(--space-xs);
}

.modal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--color-electric);
    border-radius: 50%;
}

.modal-actions {
    display: flex;
    gap: var(--space-sm);
}

.modal-actions .store-link {
    width: auto;
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-xs);
    font-size: 0.9rem;
}

@media (max-width: 800px) {
    .modal-content {
        grid-template-columns: 1fr;
        max-height: 95vh;
    }

    .gallery-main {
        height: 250px;
    }
}

/* --------------------------------------------------------------------------
   Stack Section
   -------------------------------------------------------------------------- */
.stack {
    background: var(--color-bg-light);
}

.stack-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

.stack-category {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
}

.stack-category:hover {
    border-color: rgba(255, 0, 170, 0.3);
}

.stack-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-magenta);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--space-md);
}

.stack-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

.stack-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.stack-item:hover {
    background: rgba(0, 212, 255, 0.1);
}

.stack-item:hover .stack-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--color-electric);
}

.stack-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-xs);
    color: var(--color-text-muted);
    transition: var(--transition-normal);
}

.stack-item span {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

@media (max-width: 900px) {
    .stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .stack-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact {
    background: var(--gradient-glow);
    text-align: center;
}

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

.contact .section-title {
    justify-content: center;
    flex-direction: column;
    gap: var(--space-xs);
}

.contact-intro {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
}

.contact-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.contact-actions .btn-primary {
    opacity: 1;
    transform: none;
    animation: none;
}

.contact-links {
    display: flex;
    gap: var(--space-md);
}

.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(--color-text-muted);
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--color-electric);
    border-color: var(--color-electric);
    color: var(--color-bg);
    transform: translateY(-4px) scale(1.1);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    padding: var(--space-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

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

.footer-logo {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.2rem;
}

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

.footer-links {
    display: flex;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--color-text-muted);
    transition: var(--transition-normal);
}

.footer-links a:hover {
    color: var(--color-electric);
}

@media (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 20px rgba(0, 212, 255, 0);
    }
}

/* Scroll Reveal Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: var(--transition-slow);
}

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

/* Staggered Animation */
.stagger > * {
    opacity: 0;
    transform: translateY(20px);
}

.stagger.revealed > *:nth-child(1) { transition-delay: 0.1s; }
.stagger.revealed > *:nth-child(2) { transition-delay: 0.2s; }
.stagger.revealed > *:nth-child(3) { transition-delay: 0.3s; }
.stagger.revealed > *:nth-child(4) { transition-delay: 0.4s; }
.stagger.revealed > *:nth-child(5) { transition-delay: 0.5s; }
.stagger.revealed > *:nth-child(6) { transition-delay: 0.6s; }
.stagger.revealed > *:nth-child(7) { transition-delay: 0.7s; }

.stagger.revealed > * {
    opacity: 1;
    transform: translateY(0);
    transition: var(--transition-slow);
}
