/* ==========================================
   MODERN RESET & BASE STYLES
   ========================================== */

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

:root {
    /* Modern Color Palette - Dark Theme with Electric Accents */
    --primary: #00f5ff;
    --primary-glow: rgba(0, 245, 255, 0.3);
    --secondary: #ff006e;
    --accent: #8338ec;

    /* Dark Theme Base */
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: #12121a;
    --bg-elevated: #1a1a26;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b88;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00f5ff 0%, #8338ec 100%);
    --gradient-secondary: linear-gradient(135deg, #ff006e 0%, #8338ec 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #12121a 100%);

    /* Borders & Dividers */
    --border: rgba(255, 255, 255, 0.1);
    --border-bright: rgba(0, 245, 255, 0.3);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px var(--primary-glow);
    --shadow-glow-pink: 0 0 40px rgba(255, 0, 110, 0.3);

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Space Grotesk', 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 120px;
    --container-padding: 24px;

    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    scroll-padding-top: 80px; /* Account for fixed navbar */
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-full {
    width: 100%;
    max-width: 100%;
}

/* ==========================================
   NAVIGATION - Sleek & Modern
   ========================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all var(--transition);
}

.navbar.scrolled {
    background-color: rgba(10, 10, 15, 0.95);
    border-bottom-color: var(--border-bright);
    box-shadow: var(--shadow-md);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    transition: all var(--transition);
}

.logo:hover {
    color: var(--primary);
    text-shadow: 0 0 20px var(--primary-glow);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition);
    position: relative;
}

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

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

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

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--transition);
    border-radius: 2px;
}

/* ==========================================
   HERO SECTION - Bold & Confident
   ========================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 140px;
    overflow: hidden;
}

.hero-bg-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%,
        rgba(131, 56, 236, 0.15) 0%,
        rgba(0, 245, 255, 0.1) 25%,
        transparent 50%);
    animation: rotate 20s linear infinite;
    z-index: 0;
}

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

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid var(--border-bright);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.6;
    }
    25% {
        transform: scale(1.1) rotate(1deg);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.15) rotate(-1deg);
        opacity: 1;
    }
    75% {
        transform: scale(1.1) rotate(1deg);
        opacity: 0.8;
    }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
    animation: fadeInUp 0.8s ease backwards;
}

.gradient-text {
    background: linear-gradient(90deg, #00f5ff, #8b5cf6, #00f5ff, #8b5cf6);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    animation: gradient-shift 8s ease infinite;
    padding-bottom: 12px;
}

.gradient-text::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    animation: typewriter 2s steps(14) 0.5s forwards;
    z-index: 1;
}

.gradient-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #00f5ff, #8b5cf6);
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
    animation: underline-grow 0.8s ease 2.5s forwards;
    z-index: 0;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes typewriter {
    to {
        width: 0;
    }
}

@keyframes underline-grow {
    to {
        width: 100%;
    }
}

.hero-subtitle {
    font-size: 1.35rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-cta {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 600px;
    margin: 0 auto;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, #00f5ff, #8b5cf6, #00f5ff);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

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

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator {
    display: block;
    width: 32px;
    height: 52px;
    border: 2px solid var(--border-bright);
    border-radius: 20px;
    position: relative;
    transition: all var(--transition);
}

.scroll-indicator:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.scroll-indicator span {
    display: block;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDown 2s infinite;
    box-shadow: 0 0 10px var(--primary-glow);
}

@keyframes scrollDown {
    0%, 20% { top: 10px; opacity: 1; }
    100% { top: 32px; opacity: 0; }
}

/* ==========================================
   BUTTONS - Modern & Bold
   ========================================== */

.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-dark);
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.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 ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px var(--primary-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-bright);
}

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

.btn-cta {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow-glow-pink);
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(255, 0, 110, 0.4);
}

.btn-block {
    width: 100%;
    display: block;
}

/* ==========================================
   SECTION STYLES
   ========================================== */

section {
    padding: var(--section-padding) 0;
    position: relative;
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
    color: #ffffff;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #00f5ff, #8b5cf6);
    box-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
    z-index: 0;
}

.section-title.animate-underline::after {
    animation: underline-grow 0.8s ease forwards;
}

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

@keyframes typewriter-section {
    to {
        width: 0;
    }
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
}

/* ==========================================
   PORTFOLIO SECTION - Horizontal Scroll Gallery
   ========================================== */

.portfolio {
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
}

.portfolio .section-header {
    max-width: 1280px;
    margin: 0 auto 3rem;
    padding: 0 var(--container-padding);
}

/* Portfolio Controls */
.portfolio-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
}

.portfolio-arrow {
    position: absolute;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.15), rgba(0, 195, 255, 0.08));
    border: 1px solid rgba(0, 245, 255, 0.4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: all;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0.8;
}

.portfolio-arrow:hover {
    background: linear-gradient(135deg, rgba(0, 245, 255, 0.25), rgba(0, 195, 255, 0.15));
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
    opacity: 1;
}

.portfolio-arrow:active {
    transform: scale(0.95);
}

.portfolio-arrow svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
    filter: drop-shadow(0 0 3px rgba(0, 245, 255, 0.5));
}

.portfolio-arrow:hover svg {
    color: #ffffff;
    filter: drop-shadow(0 0 6px rgba(0, 245, 255, 0.8));
}

.portfolio-arrow-left {
    left: 2rem;
}

.portfolio-arrow-left:hover {
    transform: translateX(-3px) scale(1.05);
}

.portfolio-arrow-right {
    right: 2rem;
}

.portfolio-arrow-right:hover {
    transform: translateX(3px) scale(1.05);
}

/* Scroll hint for mouse users */
.portfolio-scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 245, 255, 0.2);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0;
    animation: fadeInUp 1s ease 2s forwards;
    z-index: 5;
}

.portfolio-scroll-hint span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.portfolio-scroll-hint kbd {
    padding: 0.2rem 0.4rem;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid rgba(0, 245, 255, 0.3);
    border-radius: 4px;
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--primary);
}

@keyframes fadeInUp {
    to {
        opacity: 0.8;
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Hide navigation controls on mobile where touch scrolling works */
@media (max-width: 768px) {
    .portfolio-controls,
    .portfolio-scroll-hint {
        display: none !important;
    }
}

/* Horizontal Gallery */
.portfolio-gallery {
    display: flex;
    gap: 2rem;
    overflow-x: scroll;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0 max(2rem, calc((100vw - 1280px) / 2));
    margin-bottom: 2rem;
    height: auto;
}

.portfolio-gallery::-webkit-scrollbar {
    display: none;
}

.portfolio-gallery {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Project Cards */
.project-card {
    flex: 0 0 min(60vw, 720px);
    scroll-snap-align: center;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all var(--transition-slow);
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition);
}

.project-card:hover {
    border-color: var(--border-bright);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

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

/* Project Image */
.project-image {
    position: relative;
    background: linear-gradient(135deg, #1a1a26 0%, #12121a 100%);
    padding: 2rem 2rem 0;
}

.image-frame {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px 12px 0 0;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    scroll-behavior: smooth;
}

.image-frame::-webkit-scrollbar {
    width: 8px;
}

.image-frame::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 12px 0;
}

.image-frame::-webkit-scrollbar-thumb {
    background: var(--border-bright);
    border-radius: 4px;
}

.image-frame::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.image-frame img {
    width: 100%;
    height: auto;
    display: block;
    transition: none;
}

/* Scroll hint for tall images */
.image-frame::after {
    content: '';
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(26, 26, 38, 0.95) 0%, transparent 100%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition);
}

.image-frame.has-scroll::after {
    opacity: 1;
}

/* Image Placeholder (shown when image fails to load) */
.image-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 38, 0.9) 0%, rgba(18, 18, 26, 0.9) 100%);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
}

.placeholder-label {
    position: relative;
    z-index: 2;
    color: var(--text-muted);
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.5;
}

.image-frame.placeholder-active img {
    display: none;
}

.image-frame.placeholder-active .image-placeholder {
    display: flex;
}

/* Project Content */
.project-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-category {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
    line-height: 1.2;
    background: linear-gradient(120deg, var(--text-primary) 0%, var(--text-primary) 50%, var(--primary) 50%, var(--primary) 100%);
    background-size: 220% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: background-position 0.5s ease;
}

.project-card:hover .project-title {
    background-position: 0 0;
}

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

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

.tag {
    background: rgba(0, 245, 255, 0.1);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(0, 245, 255, 0.2);
    transition: all var(--transition);
}

.tag:hover {
    background: rgba(0, 245, 255, 0.2);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Progress Indicators */
.portfolio-indicators {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0 var(--container-padding) 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    padding: 0;
}

.indicator:hover {
    background: var(--border-bright);
    transform: scale(1.2);
}

.indicator.active {
    background: var(--primary);
    box-shadow: 0 0 16px var(--primary-glow);
    width: 32px;
    border-radius: 6px;
    position: relative;
}

/* Auto-play progress animation */
@keyframes autoPlayProgress {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.indicator.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    animation: autoPlayProgress 3s linear infinite;
}

/* ==========================================
   ABOUT SECTION - FAQ Style
   ========================================== */

.about {
    background: var(--bg-dark);
    position: relative;
}

/* Floating Hero Card */
.about-hero-card {
    max-width: 700px;
    margin: 4rem auto;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.about-hero-card::before {
    content: '';
    position: absolute;
    top: -60px;
    left: -60px;
    right: -60px;
    bottom: -60px;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
    filter: blur(100px);
    animation: pulse 4s ease-in-out infinite reverse;
    z-index: -2;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.card-glow {
    position: absolute;
    top: -40px;
    left: -40px;
    right: -40px;
    bottom: -40px;
    background:
        radial-gradient(circle at 30% 20%, rgba(100, 200, 255, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(139, 92, 246, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, var(--primary-glow) 0%, transparent 60%);
    opacity: 0.8;
    filter: blur(60px);
    animation: pulse 4s ease-in-out infinite;
    z-index: -1;
}

.card-content {
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 40px rgba(139, 92, 246, 0.1),
        0 0 80px rgba(100, 200, 255, 0.05),
        inset 0 0 20px rgba(139, 92, 246, 0.02);
    transition: all var(--transition);
}

.card-content:hover {
    border-color: rgba(139, 92, 246, 0.5);
    box-shadow:
        0 0 60px rgba(139, 92, 246, 0.2),
        0 0 100px rgba(100, 200, 255, 0.1),
        inset 0 0 30px rgba(139, 92, 246, 0.03);
}

.card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: shimmer 3s linear infinite;
}

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

.card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.typing-indicator {
    display: flex;
    gap: 4px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    30% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Active topic indicator - single pulsing dot */
.card-header.active-topic .typing-indicator span {
    animation: active-pulse 1.5s ease-in-out infinite;
}

.card-header.active-topic .typing-indicator span:nth-child(2),
.card-header.active-topic .typing-indicator span:nth-child(3) {
    display: none;
}

@keyframes active-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        background: var(--primary);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.3);
        background: var(--primary-bright);
    }
}

.card-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    transition: color 0.3s ease;
}

.card-header.active-topic .card-subtitle {
    color: var(--text-primary);
    font-weight: 500;
}

.card-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.topic-card {
    background: rgba(0, 245, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.topic-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.topic-card:hover::before,
.topic-card.active::before {
    transform: translateX(0);
}

.topic-card:hover {
    background: rgba(0, 245, 255, 0.1);
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px var(--primary-glow);
}

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

.topic-card:hover .topic-text {
    color: var(--primary);
}

.topic-card.active {
    background: rgba(0, 245, 255, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--primary-glow);
}

.topic-icon {
    font-size: 1.75rem;
    display: block;
    transition: transform 0.3s ease;
}

.topic-text {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    white-space: nowrap;
    transition: color 0.3s ease;
}

/* Dynamic Answer Section */
.answer-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    min-height: 200px;
    animation: expandIn 0.4s ease;
}

@keyframes expandIn {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 600px;
    }
}

.answer-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.answer-question {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    font-family: var(--font-heading);
    line-height: 1.3;
}

.close-answer {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-secondary);
}

.close-answer:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: rotate(90deg);
}

.close-answer svg {
    width: 16px;
    height: 16px;
}

.answer-content {
    position: relative;
}

.answer-text {
    display: none;
    animation: fadeIn 0.4s ease;
}

.answer-text.active {
    display: block;
}

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

.answer-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.answer-text ul {
    list-style: none;
    margin: 1rem 0;
}

.answer-text li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
}

.answer-text li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.benefit-list li::before {
    content: '✓';
}

.faq-container {
    max-width: 900px;
    margin: 4rem auto 0;
}

.faq-item {
    margin-bottom: 1rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition);
}

.faq-item:hover {
    border-color: var(--border-bright);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 0 30px var(--primary-glow);
}

.faq-question {
    width: 100%;
    padding: 1.5rem 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    text-align: left;
    transition: all var(--transition);
    position: relative;
    z-index: 1;
}

.faq-question:hover {
    background: rgba(0, 245, 255, 0.05);
}

.faq-question span {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}

.faq-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
    transition: transform var(--transition);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer-content {
    padding: 0 2rem 2rem;
    color: var(--text-secondary);
}

.faq-answer-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-answer-content ul {
    list-style: none;
    margin: 1rem 0;
}

.faq-answer-content li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.faq-answer-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.benefit-list li::before {
    content: '✓';
    color: var(--primary);
}

.tech-grid-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.tech-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 245, 255, 0.1);
    border: 1px solid var(--border-bright);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    transition: all var(--transition);
}

.tech-badge:hover {
    background: rgba(0, 245, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--primary-glow);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */

.contact {
    background: var(--gradient-dark);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1.25rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.contact-details {
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-icon {
    width: 28px;
    height: 28px;
    color: var(--primary);
    flex-shrink: 0;
}

.contact-icon svg {
    width: 100%;
    height: 100%;
}

.contact-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.contact-value {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.contact-value a {
    color: var(--primary);
    text-decoration: none;
    transition: all var(--transition);
}

.contact-value a:hover {
    text-shadow: 0 0 20px var(--primary-glow);
}

.cta-box {
    background: var(--gradient-primary);
    padding: 2.5rem;
    border-radius: 16px;
    color: var(--bg-dark);
    margin-top: 2.5rem;
    box-shadow: var(--shadow-glow);
}

.cta-box h4 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.cta-box p {
    margin-bottom: 1.75rem;
    line-height: 1.7;
    font-size: 1.05rem;
}

.cta-box .btn {
    background: var(--bg-dark);
    color: var(--primary);
    border: 2px solid var(--bg-dark);
}

.cta-box .btn:hover {
    background: transparent;
    color: var(--bg-dark);
    border-color: var(--bg-dark);
}

.contact-form-wrapper {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

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

.form-group input,
.form-group textarea {
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: var(--font-main);
    background: var(--bg-elevated);
    color: var(--text-primary);
    transition: all var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

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

.form-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    background: var(--bg-darker);
    color: var(--text-secondary);
    padding: 4rem 0;
    border-top: 1px solid var(--border);
}

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

.footer-text p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 2.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition);
    font-weight: 500;
}

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

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 968px) {
    :root {
        --section-padding: 80px;
    }

    .hero-title {
        font-size: 3.5rem;
    }

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

    .faq-container {
        padding: 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-stats {
        gap: 2rem;
    }

    /* Portfolio responsive */
    .project-card {
        flex: 0 0 75vw;
    }

    .project-title {
        font-size: 1.5rem;
    }

    .portfolio-controls {
        display: block;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem 0;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
        gap: 0;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
        padding: 1rem 0;
    }

    .hero-title {
        font-size: 2.75rem;
    }

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

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

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

    .faq-question {
        padding: 1.25rem 1.5rem;
    }

    .faq-question span {
        font-size: 1.05rem;
    }

    .faq-answer-content {
        padding: 0 1.5rem 1.5rem;
    }

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

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 60px;
        --container-padding: 20px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

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

    .hero-cta .btn {
        width: 100%;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }

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

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

    /* Portfolio mobile */
    .project-card {
        flex: 0 0 85vw;
    }

    .portfolio-gallery {
        padding: 0 1rem;
        gap: 1.5rem;
    }

    .project-content {
        padding: 1.5rem;
    }

    .project-title {
        font-size: 1.35rem;
    }

    .project-description {
        font-size: 0.9rem;
    }

    .portfolio-arrow {
        width: 44px;
        height: 44px;
    }

    .portfolio-arrow-left {
        left: 0.75rem;
    }

    .portfolio-arrow-right {
        right: 0.75rem;
    }

    .image-frame {
        height: 320px;
    }

    .project-image {
        padding: 1.25rem 1.25rem 0;
    }
}

/* ==========================================
   CUSTOM SCROLLBAR
   ========================================== */

::-webkit-scrollbar {
    width: 12px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border-bright);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ==========================================
   SELECTION
   ========================================== */

::selection {
    background: var(--primary);
    color: var(--bg-dark);
}

::-moz-selection {
    background: var(--primary);
    color: var(--bg-dark);
}
