/* ============================================
   CSS Custom Properties (Design System)
   ============================================ */

:root {
    /* Color Palette - Dark Cyberpunk with Turquoise/Purple */
    --color-deep-space-black: #0a0e14;
    --color-shadow-purple: #1a0f2e;
    --color-void-navy: #0d1520;

    --color-electric-turquoise: #00d9ff;
    --color-neon-purple: #a855f7;
    --color-deep-violet: #6b21a8;

    --color-ghost-white: #e6edf3;
    --color-slate-gray: #8b949e;
    --color-dim-cyan: #79c0c8;

    --color-success-teal: #10b981;
    --color-warning-amber: #f59e0b;
    --color-error-red: #ef4444;

    /* Typography */
    --font-system: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono", "Fira Code", monospace;

    /* Type Scale */
    --font-size-h1: 4rem;
    --font-size-h2: 3rem;
    --font-size-h3: 2.25rem;
    --font-size-h4: 1.75rem;
    --font-size-body: 1.125rem;
    --font-size-small: 0.875rem;

    /* Spacing */
    --spacing-unit: 8px;
    --spacing-section: 160px;
    --spacing-component: 48px;

    /* Layout */
    --container-max-width: 1400px;
    --content-max-width: 720px;
    --gutter: 32px;

    /* Transitions */
    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-Index Layers */
    --z-base: 1;
    --z-floating: 10;
    --z-nav: 100;
    --z-dropdown: 500;
    --z-modal: 1000;
    --z-toast: 2000;
}

/* Mobile Type Scale */
@media (max-width: 768px) {
    :root {
        --font-size-h1: 3rem;
        --font-size-h2: 2.25rem;
        --font-size-h3: 1.75rem;
        --font-size-h4: 1.5rem;
        --font-size-body: 1rem;
        --spacing-section: 80px;
        --gutter: 16px;
    }
}

/* ============================================
   Reset & Base Styles
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-system);
    font-size: var(--font-size-body);
    line-height: 1.6;
    color: var(--color-ghost-white);
    background-color: var(--color-deep-space-black);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-ghost-white);
}

h1 {
    font-size: var(--font-size-h1);
    letter-spacing: -0.02em;
}

h2 {
    font-size: var(--font-size-h2);
    letter-spacing: -0.01em;
}

h3 {
    font-size: var(--font-size-h3);
    font-weight: 600;
}

h4 {
    font-size: var(--font-size-h4);
    font-weight: 600;
}

p {
    margin-bottom: 1.5em;
}

a {
    color: var(--color-electric-turquoise);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-neon-purple);
}

a:focus-visible {
    outline: 2px solid var(--color-electric-turquoise);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ============================================
   Loading Screen
   ============================================ */

.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-deep-space-black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.loading-screen.loaded {
    opacity: 0;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    padding: var(--gutter);
}

.loading-title {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 48px;
    background: linear-gradient(135deg, var(--color-electric-turquoise), var(--color-neon-purple));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: loadingPulse 2s ease-in-out infinite;
}

.glitch-target-loader {
    text-shadow: 0 0 40px rgba(0, 217, 255, 0.2);
}

@keyframes loadingPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(139, 148, 158, 0.2);
    border-radius: 2px;
    margin: 0 auto 24px;
    overflow: hidden;
    position: relative;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--color-electric-turquoise), var(--color-neon-purple));
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease-out;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

.loading-text {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--color-dim-cyan);
    margin-top: 24px;
}

.loading-dots::after {
    content: '';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .loading-title {
        font-size: 3rem;
    }

    .loading-bar {
        width: 250px;
    }
}

/* ============================================
   Mysterious Background Effects
   ============================================ */

/* Scanline Overlay Effect */
.scanline-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: var(--z-toast);
    background: repeating-linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.03) 0px,
        transparent 1px,
        transparent 2px
    );
    animation: scanlines 60s linear infinite;
    opacity: 0.5;
}

@keyframes scanlines {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(100px);
    }
}

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(0, 217, 255, 0.08) 0%,
        rgba(168, 85, 247, 0.05) 50%,
        transparent 70%
    );
    pointer-events: none;
    z-index: var(--z-floating);
    transform: translate(-50%, -50%);
    transition: opacity var(--transition-normal);
    opacity: 0;
}

@media (hover: hover) {
    .cursor-glow {
        opacity: 1;
    }
}

/* Grid Overlay */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 217, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 72px;
    background: rgba(26, 15, 46, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(168, 85, 247, 0.2);
    z-index: var(--z-nav);
    transition: all var(--transition-normal);
}

.nav.scrolled {
    background: rgba(26, 15, 46, 0.95);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

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

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--color-electric-turquoise);
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
    font-weight: 500;
}

.nav-logo:hover {
    color: var(--color-electric-turquoise);
}

.terminal-prompt {
    color: var(--color-electric-turquoise);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-ghost-white);
    position: relative;
    transition: all var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-ghost-white);
    transition: all var(--transition-fast);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

.nav-toggle[aria-expanded="true"] .hamburger {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

.nav-menu {
    display: flex;
    gap: calc(var(--spacing-unit) * 4);
    list-style: none;
}

.nav-link {
    color: var(--color-ghost-white);
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-electric-turquoise);
    transition: width var(--transition-fast);
}

.nav-link:hover {
    color: var(--color-neon-purple);
    transform: scale(1.05);
}

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

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

/* Contact Button in Nav */
.nav-contact {
    padding: 8px 20px;
    background: rgba(0, 217, 255, 0.08);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 6px;
    color: var(--color-electric-turquoise) !important;
    backdrop-filter: blur(10px);
    transition: all var(--transition-normal);
}

.nav-contact::after {
    display: none;
}

.nav-contact:hover {
    background: rgba(0, 217, 255, 0.15);
    border-color: rgba(0, 217, 255, 0.6);
    color: var(--color-electric-turquoise) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.2);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav {
        height: 64px;
    }

    .nav-toggle {
        display: block;
        z-index: calc(var(--z-nav) + 1);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--color-shadow-purple);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: calc(var(--spacing-unit) * 6);
        transition: right var(--transition-normal);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.5rem;
    }
}

/* ============================================
   Hero Section
   ============================================ */

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        var(--color-shadow-purple) 0%,
        var(--color-deep-space-black) 100%
    );
    z-index: 0;
}

#particlesCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: var(--z-base);
    text-align: center;
    max-width: 900px;
    padding: 0 var(--gutter);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: calc(var(--spacing-unit) * 3);
    background: linear-gradient(135deg, var(--color-electric-turquoise) 0%, var(--color-neon-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(0, 217, 255, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

.glitch-target {
    position: relative;
}

/* Glitch Animation (triggered by JS) */
@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

.hero-tagline {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--color-slate-gray);
    margin-bottom: calc(var(--spacing-unit) * 6);
    line-height: 1.8;
}

.tagline-word {
    display: inline-block;
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.terminal-cursor {
    display: inline-block;
    color: var(--color-electric-turquoise);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

.hero-cta {
    display: flex;
    gap: calc(var(--spacing-unit) * 3);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s backwards;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: calc(var(--spacing-unit) * 4);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--spacing-unit));
    color: var(--color-dim-cyan);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============================================
   Page Header
   ============================================ */

.page-header {
    padding: calc(var(--spacing-unit) * 20) 0 calc(var(--spacing-unit) * 10);
    background: linear-gradient(
        135deg,
        var(--color-shadow-purple) 0%,
        var(--color-deep-space-black) 100%
    );
    text-align: center;
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: calc(var(--spacing-unit) * 3);
    background: linear-gradient(135deg, var(--color-electric-turquoise) 0%, var(--color-neon-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-slate-gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-block;
    padding: 14px 40px;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    text-align: center;
    position: relative;
}

.btn-primary {
    background: rgba(0, 217, 255, 0.08);
    color: var(--color-electric-turquoise);
    border-color: rgba(0, 217, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow:
        0 4px 12px rgba(0, 217, 255, 0.1),
        0 0 0 1px rgba(0, 217, 255, 0.1) inset;
    animation: btnFloat 3s ease-in-out infinite;
}

.btn-primary:hover {
    background: rgba(0, 217, 255, 0.15);
    color: var(--color-electric-turquoise);
    border-color: rgba(0, 217, 255, 0.6);
    box-shadow:
        0 8px 24px rgba(0, 217, 255, 0.25),
        0 0 0 1px rgba(0, 217, 255, 0.3) inset;
    transform: translateY(-4px);
}

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

.btn-secondary {
    background: transparent;
    color: var(--color-neon-purple);
    border-color: var(--color-neon-purple);
}

.btn-secondary:hover {
    background: var(--color-neon-purple);
    color: var(--color-deep-space-black);
}

.btn-ghost {
    background: transparent;
    color: var(--color-ghost-white);
    border-color: rgba(230, 237, 243, 0.3);
}

.btn-ghost:hover {
    border-color: var(--color-electric-turquoise);
    color: var(--color-electric-turquoise);
}

/* ============================================
   Sections
   ============================================ */

.section {
    padding: var(--spacing-section) 0;
    position: relative;
}

.section:nth-child(even) {
    background: var(--color-shadow-purple);
}

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

.section-title {
    font-size: var(--font-size-h2);
    margin-bottom: calc(var(--spacing-unit) * 8);
    font-family: var(--font-mono);
}

.section-title .terminal-prompt {
    margin-right: calc(var(--spacing-unit) * 2);
}

.section-footer {
    margin-top: calc(var(--spacing-unit) * 8);
    text-align: center;
}

.link-arrow {
    font-size: 1.125rem;
    color: var(--color-electric-turquoise);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: calc(var(--spacing-unit));
    transition: all var(--transition-fast);
}

.link-arrow:hover {
    color: var(--color-neon-purple);
    transform: translateX(8px);
}

/* ============================================
   Projects Section
   ============================================ */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: calc(var(--spacing-unit) * 4);
}

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

.project-card {
    position: relative;
    background: var(--color-void-navy);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    padding: 32px;
    transition: all var(--transition-normal);
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-electric-turquoise);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.project-thumbnail {
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.project-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 8px;
    color: var(--color-electric-turquoise);
    transition: all var(--transition-fast);
}

.project-card:hover .project-icon {
    background: rgba(0, 217, 255, 0.2);
    transform: scale(1.1);
}

.project-content {
    position: relative;
    z-index: var(--z-base);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--color-ghost-white);
}

.project-description {
    color: var(--color-slate-gray);
    margin-bottom: calc(var(--spacing-unit) * 3);
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: calc(var(--spacing-unit));
    flex-wrap: wrap;
    margin-top: auto;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.tag {
    padding: 4px 12px;
    background: var(--color-deep-violet);
    color: var(--color-dim-cyan);
    font-size: var(--font-size-small);
    border-radius: 4px;
    font-family: var(--font-mono);
}

.project-link {
    display: inline-block;
    color: var(--color-electric-turquoise);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-decoration: none;
    opacity: 0;
    transform: translateY(-4px);
    transition: all var(--transition-normal);
    position: relative;
}

.project-card:hover .project-link {
    opacity: 1;
    transform: translateY(0);
}

.project-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-electric-turquoise);
    transition: width var(--transition-fast);
}

.project-link:hover {
    text-shadow: 0 0 12px rgba(0, 217, 255, 0.4);
}

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

/* ============================================
   About Section
   ============================================ */

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: calc(var(--spacing-unit) * 8);
    align-items: center;
}

@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 6);
    }
}

.ascii-avatar {
    font-family: var(--font-mono);
    color: var(--color-electric-turquoise);
    font-size: 1rem;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
    padding: calc(var(--spacing-unit) * 4);
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 8px;
}

.about-text {
    margin-bottom: calc(var(--spacing-unit) * 4);
}

.lead {
    font-size: 1.5rem;
    color: var(--color-ghost-white);
    font-weight: 500;
}

/* ============================================
   Blog Section
   ============================================ */

.blog-list {
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 4);
}

.blog-card {
    padding: calc(var(--spacing-unit) * 3);
    border-left: 3px solid var(--color-electric-turquoise);
    background: transparent;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.blog-card:hover {
    background: var(--color-void-navy);
    padding-left: calc(var(--spacing-unit) * 4);
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit));
    color: var(--color-slate-gray);
    font-size: var(--font-size-small);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.meta-separator {
    color: var(--color-deep-violet);
}

.blog-title {
    font-size: 1.75rem;
    margin-bottom: calc(var(--spacing-unit) * 2);
    transition: color var(--transition-fast);
}

.blog-card:hover .blog-title a {
    color: var(--color-electric-turquoise);
    text-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
}

.blog-excerpt {
    color: var(--color-slate-gray);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.blog-tags {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    flex-wrap: wrap;
}

.tag-inline {
    color: var(--color-dim-cyan);
    font-size: var(--font-size-small);
    font-family: var(--font-mono);
}

.tag-inline::before {
    content: '#';
    color: var(--color-deep-violet);
}

/* ============================================
   Services Section
   ============================================ */

.services-section {
    background: var(--color-deep-space-black);
}

/* ============================================
   Contact Section
   ============================================ */

.contact-section {
    background: var(--color-shadow-purple);
    padding: calc(var(--spacing-unit) * 8) 0;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--color-slate-gray);
    margin-bottom: calc(var(--spacing-unit) * 8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: calc(var(--spacing-unit) * 4);
    margin-bottom: calc(var(--spacing-unit) * 8);
}

.service-card {
    background: var(--color-void-navy);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 12px;
    padding: calc(var(--spacing-unit) * 5);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-electric-turquoise);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 217, 255, 0.1);
    border-radius: 8px;
    margin-bottom: calc(var(--spacing-unit) * 3);
    color: var(--color-electric-turquoise);
    transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
    background: rgba(0, 217, 255, 0.2);
    transform: scale(1.05);
}

.service-title {
    font-size: 1.75rem;
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--color-ghost-white);
}

.service-description {
    color: var(--color-slate-gray);
    line-height: 1.6;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.service-features {
    list-style: none;
    margin-top: auto;
}

.service-features li {
    position: relative;
    padding-left: calc(var(--spacing-unit) * 3);
    margin-bottom: calc(var(--spacing-unit) * 1.5);
    color: var(--color-dim-cyan);
    font-size: 0.95rem;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-electric-turquoise);
    font-weight: bold;
}

.cta-footer {
    text-align: center;
    padding: calc(var(--spacing-unit) * 8) calc(var(--spacing-unit) * 4);
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.05), rgba(168, 85, 247, 0.05));
    border-radius: 12px;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.cta-text {
    font-size: 1.5rem;
    margin-bottom: calc(var(--spacing-unit) * 4);
    color: var(--color-ghost-white);
}

.cta-buttons-group {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: calc(var(--spacing-unit) * 4);
    }
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--color-shadow-purple);
    border-top: 1px solid rgba(168, 85, 247, 0.2);
    padding: calc(var(--spacing-unit) * 10) 0 calc(var(--spacing-unit) * 5);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: calc(var(--spacing-unit) * 8);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--spacing-unit) * 6);
    }
}

.footer-brand {
    font-family: var(--font-mono);
    font-size: 1.125rem;
    color: var(--color-electric-turquoise);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.footer-tagline {
    color: var(--color-slate-gray);
    font-size: var(--font-size-small);
    margin-bottom: calc(var(--spacing-unit) * 3);
    line-height: 1.8;
}

.footer-copyright {
    color: var(--color-dim-cyan);
    font-size: var(--font-size-small);
}

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: calc(var(--spacing-unit) * 3);
    color: var(--color-ghost-white);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
}

.footer-links a {
    color: var(--color-dim-cyan);
    font-size: var(--font-size-small);
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit));
}

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

.footer-social svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ============================================
   Scroll Reveal Animation
   ============================================ */

[data-scroll-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
}

[data-scroll-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Accessibility - Reduced Motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .cursor-glow,
    .scanline-overlay {
        display: none;
    }
}

/* ============================================
   Utility Classes
   ============================================ */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
