/* Vercel-Style Minimal Design */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

:root {
    /* Vercel Colors with Magenta Accent */
    --background: #fafafa;
    --foreground: #000000;
    --muted: #666666;
    --muted-foreground: #999999;
    --border: #e5e5e5;
    --accent: #e91e63;
    --accent-foreground: #ffffff;
    --magenta: #e91e63;
    --magenta-light: #f8bbd9;
    --magenta-dark: #c2185b;
    
    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Layout */
    --max-width: 1200px;
    --header-height: 80px;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--foreground);
    background: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@keyframes backgroundShift {
    0%, 100% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 25% 75%, 0% 0%;
    }
    20% {
        background-position: 30% 20%, 70% 80%, 20% 60%, 80% 40%, 0% 0%;
    }
    40% {
        background-position: 60% 40%, 40% 60%, 80% 20%, 20% 80%, 0% 0%;
    }
    60% {
        background-position: 80% 60%, 20% 40%, 40% 80%, 60% 20%, 0% 0%;
    }
    80% {
        background-position: 50% 80%, 50% 20%, 60% 40%, 40% 60%, 0% 0%;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(250, 250, 250, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

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

.header-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    color: var(--foreground);
}

.logo-image {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.logo-text {
    font-weight: 600;
    font-size: 18px;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3) var(--space-6);
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--magenta-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--foreground);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--magenta);
    color: var(--background);
    border-color: var(--magenta);
}

.btn.btn-outline {
    background: transparent !important;
    color: var(--foreground) !important;
    border: 2px solid var(--border) !important;
}

.btn.btn-outline:hover {
    background: transparent !important;
    color: var(--foreground) !important;
    border-color: var(--border) !important;
}

.btn-large {
    padding: var(--space-4) var(--space-8);
    font-size: 16px;
}

/* Global Visual Elements */
.global-visual-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    background: transparent;
    transition: opacity 0.5s ease;
}

/* Animation States */
.global-visual-elements.animation-1 {
    opacity: 1;
}

.global-visual-elements.animation-2 {
    opacity: 0;
}

.global-visual-elements.animation-2.active {
    opacity: 1;
}

.global-visual-elements.animation-1.active {
    opacity: 0;
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.7;
    }
}

/* System Architecture Modules */
.system-module {
    position: absolute;
    border: 1px solid rgba(128, 128, 128, 0.2);
    background: rgba(128, 128, 128, 0.05);
    opacity: 0.3;
    animation: moduleBuild 12s ease-in-out infinite;
    border-radius: 2px;
}

.module-1 { width: 80px; height: 50px; top: 15%; left: 10%; animation-delay: 0s; }
.module-2 { width: 70px; height: 45px; top: 15%; left: 30%; animation-delay: 2s; }
.module-3 { width: 75px; height: 48px; top: 15%; left: 50%; animation-delay: 4s; }
.module-4 { width: 65px; height: 42px; top: 15%; left: 70%; animation-delay: 6s; }
.module-5 { width: 85px; height: 52px; top: 35%; left: 10%; animation-delay: 8s; }
.module-6 { width: 72px; height: 46px; top: 35%; left: 30%; animation-delay: 10s; }
.module-7 { width: 78px; height: 49px; top: 35%; left: 50%; animation-delay: 12s; }
.module-8 { width: 68px; height: 44px; top: 35%; left: 70%; animation-delay: 14s; }

@keyframes moduleBuild {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
        border-color: rgba(128, 128, 128, 0.15);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.02);
        border-color: rgba(128, 128, 128, 0.25);
    }
}

/* System Architecture Connections */
.connection-line {
    position: absolute;
    background: rgba(128, 128, 128, 0.2);
    opacity: 0.3;
    animation: connectionFlow 10s ease-in-out infinite;
    border-radius: 1px;
}

/* Horizontal connections between modules */
.line-1 { width: 20%; height: 1px; top: 27%; left: 10%; animation-delay: 0s; }
.line-2 { width: 20%; height: 1px; top: 27%; left: 30%; animation-delay: 2s; }
.line-3 { width: 20%; height: 1px; top: 27%; left: 50%; animation-delay: 4s; }
.line-4 { width: 20%; height: 1px; top: 47%; left: 10%; animation-delay: 6s; }
.line-5 { width: 20%; height: 1px; top: 47%; left: 30%; animation-delay: 8s; }
.line-6 { width: 20%; height: 1px; top: 47%; left: 50%; animation-delay: 10s; }

/* Vertical connections between modules */
.line-v1 { width: 1px; height: 20%; top: 15%; left: 20%; animation-delay: 1s; }
.line-v2 { width: 1px; height: 20%; top: 15%; left: 40%; animation-delay: 3s; }
.line-v3 { width: 1px; height: 20%; top: 15%; left: 60%; animation-delay: 5s; }
.line-v4 { width: 1px; height: 20%; top: 15%; left: 80%; animation-delay: 7s; }

@keyframes connectionFlow {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.01);
    }
}


/* Web3 Network Nodes */
.network-node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(128, 128, 128, 0.2);
    border-radius: 50%;
    opacity: 0.3;
    animation: nodePulse 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(128, 128, 128, 0.2);
}

.node-1 { top: 12%; left: 25%; animation-delay: 0s; }
.node-2 { top: 28%; right: 30%; animation-delay: 0.8s; }
.node-3 { top: 45%; left: 15%; animation-delay: 1.6s; }
.node-4 { top: 62%; right: 20%; animation-delay: 2.4s; }
.node-5 { top: 78%; left: 35%; animation-delay: 3.2s; }
.node-6 { top: 35%; left: 65%; animation-delay: 4s; }
.node-7 { top: 18%; left: 75%; animation-delay: 4.8s; }
.node-8 { top: 42%; right: 10%; animation-delay: 5.6s; }
.node-9 { top: 68%; left: 50%; animation-delay: 6.4s; }
.node-10 { top: 88%; right: 50%; animation-delay: 7.2s; }

@keyframes nodePulse {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1);
        box-shadow: 0 0 25px rgba(233, 30, 99, 0.8);
    }
    30% {
        opacity: 1;
        transform: scale(2.5);
        box-shadow: 0 0 50px rgba(233, 30, 99, 1);
    }
    70% {
        opacity: 1;
        transform: scale(2.5);
        box-shadow: 0 0 50px rgba(233, 30, 99, 1);
    }
}

/* Blockchain Blocks */
.blockchain-block {
    position: absolute;
    width: 12px;
    height: 12px;
    background: rgba(128, 128, 128, 0.15);
    border-radius: 2px;
    opacity: 0.2;
    animation: blockMine 15s ease-in-out infinite;
    box-shadow: 0 0 5px rgba(128, 128, 128, 0.1);
}

.block-1 { top: 25%; left: 30%; animation-delay: 0s; }
.block-2 { top: 45%; right: 25%; animation-delay: 2s; }
.block-3 { top: 65%; left: 20%; animation-delay: 4s; }
.block-4 { top: 85%; right: 35%; animation-delay: 6s; }

@keyframes blockMine {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1) rotate(0deg);
    }
    25% {
        opacity: 0.6;
        transform: scale(1.2) rotate(90deg);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.8) rotate(180deg);
    }
    75% {
        opacity: 0.7;
        transform: scale(1.1) rotate(270deg);
    }
}

/* Data Streams */
.data-stream {
    position: absolute;
    width: 1px;
    height: 120px;
    background: linear-gradient(180deg, transparent, rgba(128, 128, 128, 0.2), transparent);
    opacity: 0.3;
    animation: dataFlow 10s linear infinite;
    box-shadow: 0 0 6px rgba(128, 128, 128, 0.2);
}

.stream-1 { top: 0%; left: 20%; animation-delay: 0s; }
.stream-2 { top: 0%; right: 25%; animation-delay: 2.5s; }
.stream-3 { top: 0%; left: 55%; animation-delay: 5s; }

/* Connected System Networks */
.system-network {
    position: absolute;
    border: 1px solid rgba(128, 128, 128, 0.08);
    opacity: 0.15;
    animation: networkFlow 30s ease-in-out infinite;
}

.network-1 {
    width: 400px;
    height: 300px;
    top: 5%;
    left: 2%;
    border-radius: 50%;
    animation-delay: 0s;
}

.network-2 {
    width: 350px;
    height: 250px;
    top: 35%;
    right: 3%;
    border-radius: 40% 60% 30% 70%;
    animation-delay: 10s;
}

.network-3 {
    width: 380px;
    height: 280px;
    top: 65%;
    left: 5%;
    border-radius: 60% 40% 70% 30%;
    animation-delay: 20s;
}

@keyframes networkFlow {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.25;
        transform: scale(1.05);
    }
}

/* System Connection Lines */
.system-connection {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(128, 128, 128, 0.1), transparent);
    opacity: 0.1;
    animation: connectionFlow 25s ease-in-out infinite;
}

.conn-1 { width: 300px; top: 20%; left: 30%; animation-delay: 0s; }
.conn-2 { width: 250px; top: 50%; right: 25%; animation-delay: 8s; }
.conn-3 { width: 280px; top: 80%; left: 35%; animation-delay: 16s; }

@keyframes connectionFlow {
    0%, 100% {
        opacity: 0.05;
        transform: scaleX(0.5);
    }
    50% {
        opacity: 0.15;
        transform: scaleX(1);
    }
}

@keyframes dataFlow {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    10% {
        opacity: 0.4;
    }
    90% {
        opacity: 0.4;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Web3 Network Connections */
.network-connection {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(128, 128, 128, 0.4);
    border-radius: 50%;
    opacity: 0.6;
    animation: networkPulse 8s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(128, 128, 128, 0.3);
}

.connection-1 { top: 10%; left: 25%; animation-delay: 0s; }
.connection-2 { top: 30%; right: 20%; animation-delay: 2s; }
.connection-3 { top: 50%; left: 15%; animation-delay: 4s; }
.connection-4 { top: 70%; right: 35%; animation-delay: 6s; }
.connection-5 { top: 20%; left: 65%; animation-delay: 8s; }
.connection-6 { top: 60%; right: 10%; animation-delay: 10s; }

@keyframes networkPulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
        box-shadow: 0 0 6px rgba(128, 128, 128, 0.2);
    }
    50% {
        opacity: 0.8;
        transform: scale(4);
        box-shadow: 0 0 20px rgba(128, 128, 128, 0.5);
    }
}

/* Blockchain Data Flow */
.blockchain-flow {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(128, 128, 128, 0.3);
    border-radius: 50%;
    opacity: 0.5;
    animation: blockchainMove 20s linear infinite;
    box-shadow: 0 0 8px rgba(128, 128, 128, 0.2);
}

.flow-1 { top: 5%; left: 5%; animation-delay: 0s; }
.flow-2 { top: 25%; right: 15%; animation-delay: 5s; }
.flow-3 { top: 45%; left: 10%; animation-delay: 10s; }
.flow-4 { top: 65%; right: 25%; animation-delay: 15s; }

@keyframes blockchainMove {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    20% {
        transform: translate(80px, 50px) scale(2);
        opacity: 0.8;
    }
    40% {
        transform: translate(160px, 100px) scale(1);
        opacity: 0.4;
    }
    60% {
        transform: translate(240px, 150px) scale(1.5);
        opacity: 0.6;
    }
    80% {
        transform: translate(320px, 200px) scale(1.2);
        opacity: 0.5;
    }
    100% {
        transform: translate(400px, 250px) scale(1);
        opacity: 0.3;
    }
}

/* VANTA.NET Network Animation (Animation 2) */
#vanta-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.2; /* 20% opacity for rgba(102, 51, 153, 0.2) effect */
}

/* Main Content */
.main {
    margin-top: var(--header-height);
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero {
    padding: var(--space-24) 0;
    background: transparent;
}

/* Animation Toggle Section */
.animation-toggle {
    padding: var(--space-8) 0;
    background: transparent;
    text-align: center;
}

.animation-toggle-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.animation-toggle-text {
    font-size: 1.125rem;
    color: var(--muted);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    padding: var(--space-3) var(--space-6);
    border-radius: 8px;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.animation-toggle-text:hover {
    color: var(--foreground);
    border-color: var(--border);
    background: rgba(233, 30, 99, 0.05);
    transform: translateY(-2px);
}

.click-hint {
    font-size: 0.875rem;
    color: var(--magenta);
    font-weight: 500;
    margin-left: var(--space-2);
    opacity: 0.8;
}

.animation-toggle-text:hover .click-hint {
    opacity: 1;
    color: var(--magenta-dark);
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
    align-items: center;
}

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

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-6);
    color: var(--foreground);
    height: 5.5rem; /* Fixed height to prevent jumping */
    display: flex;
    align-items: center;
    justify-content: center;
}

.rotating-title {
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: relative;
}

.rotating-title::after {
    content: '|';
    color: var(--primary);
    font-weight: 300;
    animation: blink 1s infinite;
    margin-left: 2px;
}

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


.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: var(--space-8);
}


.hero-actions {
    display: flex;
    gap: var(--space-4);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 4px solid var(--magenta);
    box-shadow: 
        0 0 40px rgba(233, 30, 99, 0.3),
        0 0 80px rgba(233, 30, 99, 0.2),
        inset 0 0 20px rgba(233, 30, 99, 0.1);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.profile-image:hover {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 
        0 0 60px rgba(233, 30, 99, 0.4),
        0 0 120px rgba(233, 30, 99, 0.3),
        inset 0 0 30px rgba(233, 30, 99, 0.15);
}


/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-6);
    color: var(--foreground);
    text-align: center;
}

.section-description {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--muted);
    text-align: center;
    max-width: 780px;
    margin: 0 auto var(--space-16);
}

/* Services Section */
.services {
    padding: var(--space-20) 0;
    background: transparent;
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(233, 30, 99, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.service-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: var(--space-8);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--magenta), var(--magenta-light));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    border-color: var(--magenta);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(233, 30, 99, 0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Remove default highlighting from Web3 and AI cards */
.web3-card::before,
.ai-card::before {
    display: none;
}

.web3-card:hover::before,
.ai-card:hover::before {
    display: block;
}

.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--foreground);
    color: var(--background);
    border-radius: 8px;
    margin: 0 auto var(--space-4);
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--foreground);
}

.service-card p {
    color: var(--muted);
    font-size: 0.875rem;
    font-family: var(--font-mono);
}

/* Web3 Card with Floating Elements */
.web3-card {
    position: relative;
    overflow: hidden;
    background: var(--background);
    border: 1px solid var(--border);
}

.web3-icon {
    background: var(--foreground);
    color: var(--background);
}


/* AI Card Styles */
.ai-card {
    position: relative;
    overflow: hidden;
    background: var(--background);
    border: 1px solid var(--border);
}

.ai-icon {
    background: var(--foreground);
    color: var(--background);
}

/* Hover effects for Web3 and AI icons */
.service-card:hover .web3-icon,
.service-card:hover .ai-icon {
    background: var(--magenta);
    color: var(--background);
}


/* About Section */
.about {
    padding: var(--space-20) 0;
    background: transparent;
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(233, 30, 99, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

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

.about-content {
    max-width: 800px;
    margin: 0 auto var(--space-16);
    text-align: center;
}

.about-lead {
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--foreground);
    margin-bottom: var(--space-6);
}

.about-hero {
    margin-bottom: var(--space-12);
    text-align: center;
}

.about-hero-title {
    font-size: 2rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--foreground);
    margin: 0;
}

.highlight {
    color: var(--magenta);
    font-weight: 700;
}

.about-story {
    max-width: 800px;
    margin: 0 auto;
}

.about-intro {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--foreground);
    margin-bottom: var(--space-6);
    font-weight: 500;
}

.about-expertise {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: var(--space-8);
}

.about-signature {
    margin-top: var(--space-8);
    position: relative;
    text-align: center;
}

.signature-text {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--foreground);
    font-weight: 500;
    font-style: italic;
    position: relative;
    display: inline-block;
}

.signature-text::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20px;
    width: 3px;
    height: 60%;
    background: linear-gradient(180deg, var(--primary), var(--accent));
    transform: translateY(-50%);
    border-radius: 2px;
}

.signature-text .highlight {
    color: #663399;
    font-weight: 600;
    position: relative;
}

.signature-text .highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0.3;
    border-radius: 1px;
}

@media (max-width: 768px) {
    .about-signature {
        margin-top: var(--space-6);
    }
    
    .signature-text {
        font-size: 1.125rem;
    }
    
    .signature-text::before {
        left: -15px;
        width: 2px;
    }
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.highlight-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--space-6);
    transition: all 0.2s ease;
}

.highlight-card:hover {
    border-color: var(--foreground);
    transform: translateY(-2px);
}

.highlight-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--foreground);
}

.highlight-card p {
    color: var(--muted);
    line-height: 1.6;
}

/* Systems Section */
.systems {
    padding: var(--space-20) 0;
    background: transparent;
}

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

.systems-table {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.systems-mobile {
    display: none; /* Hide mobile cards on desktop */
}

.table-header {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    background: var(--foreground);
    color: var(--background);
    font-weight: 600;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

.table-row:hover {
    background: rgba(0, 0, 0, 0.02);
}

.table-row:last-child {
    border-bottom: none;
}

.table-cell {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.table-cell:not(:last-child) {
    border-right: 1px solid var(--border);
}

.system-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--foreground);
    font-family: var(--font-mono);
}

.table-cell h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: var(--space-2);
}

.table-cell p {
    color: var(--muted);
    line-height: 1.6;
}

.tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.tool-tag {
    padding: var(--space-1) var(--space-3);
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--muted);
    font-family: var(--font-mono);
}

/* Stack Section */
.stack {
    padding: var(--space-20) 0;
    background: transparent;
}

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

.stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.stack-category {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--space-6);
    transition: all 0.2s ease;
}

.stack-category:hover {
    border-color: var(--foreground);
    transform: translateY(-2px);
}

.stack-category h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--foreground);
}

.stack-tools {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.tool-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-3);
    background: rgba(0, 0, 0, 0.02);
    border-radius: 6px;
    transition: background 0.2s ease;
}

.tool-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

.tool-name {
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--foreground);
}

.tool-level {
    font-size: 0.75rem;
    padding: var(--space-1) var(--space-2);
    background: var(--magenta);
    color: var(--background);
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Blog Section */
.blog {
    padding: var(--space-20) 0;
    background: transparent;
}

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

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-6);
}

.blog-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--space-6);
    transition: all 0.2s ease;
    overflow: hidden;
}

.blog-image {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, var(--magenta-light), var(--magenta));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
    overflow: hidden;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.blog-image-placeholder {
    font-size: 2rem;
    opacity: 0.8;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.blog-card:hover {
    border-color: var(--magenta);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.1);
}

.blog-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--foreground);
    line-height: 1.4;
}

.blog-card p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.blog-link {
    color: var(--magenta);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.blog-link:hover {
    color: var(--magenta-dark);
    text-decoration: underline;
}

/* Testimonials Section */
.testimonials {
    padding: var(--space-20) 0;
    background: transparent;
}

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

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-6);
}

.testimonial-card {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--space-6);
    transition: all 0.2s ease;
}

.testimonial-card:hover {
    border-color: var(--foreground);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    margin-bottom: var(--space-6);
}

.testimonial-content p {
    color: var(--muted);
    line-height: 1.6;
    font-style: italic;
}

.testimonial-author h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-1);
    color: var(--foreground);
}

.testimonial-author p {
    color: var(--muted);
    font-size: 0.875rem;
}

/* Contact Section */
.contact {
    padding: var(--space-20) 0;
    background: transparent;
}

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

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

.contact-info {
    margin-bottom: var(--space-12);
}

.contact-info p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: var(--space-8);
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: var(--space-6);
}

.contact-method {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.contact-method:hover {
    border-color: var(--foreground);
    transform: translateY(-2px);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--magenta);
    color: var(--background);
    border-radius: 6px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.contact-label {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 500;
}

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

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

/* Footer */
.footer {
    padding: var(--space-12) 0;
    background: transparent;
    border-top: 1px solid var(--border);
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.footer-description {
    color: var(--muted);
    font-size: 0.875rem;
}

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

.footer-link {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--foreground);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: var(--space-12);
        text-align: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .systems-table {
        overflow-x: auto;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 200px 300px 200px;
        min-width: 700px;
    }
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background: var(--foreground);
    transition: all 0.3s ease;
    transform-origin: 1px;
}

.mobile-menu-toggle.active .hamburger-line:first-child {
    transform: rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:last-child {
    transform: rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--background);
    border-left: 1px solid var(--border);
    padding: 80px 0 20px;
    transition: right 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
}

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

.mobile-nav-link {
    display: block;
    padding: 16px 24px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
}

.mobile-nav-link:hover {
    color: var(--foreground);
    background: var(--muted-light);
}

.mobile-nav-link.mobile-cta {
    background: var(--primary);
    color: white;
    margin: 20px 24px;
    border-radius: 8px;
    text-align: center;
    border: none;
}

.mobile-nav-link.mobile-cta:hover {
    background: var(--primary-dark);
    color: white;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

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

@media (max-width: 768px) {
    .header-nav {
        display: none;
    }
    
    .header-actions {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero {
        padding: var(--space-16) 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        height: 3rem; /* Fixed height for mobile */
    }
    
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .services-grid,
    .about-highlights,
    .stack-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-container {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Mobile table redesign - convert to cards */
    .systems-table {
        display: none; /* Hide table on mobile */
    }
    
    .systems-mobile {
        display: block;
    }
    
    .system-card {
        background: var(--background);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: var(--space-6);
        margin-bottom: var(--space-6);
        transition: all 0.2s ease;
    }
    
    .system-card:hover {
        border-color: var(--foreground);
        transform: translateY(-2px);
    }
    
    .system-card-header {
        display: flex;
        align-items: center;
        margin-bottom: var(--space-4);
    }
    
    .system-card-number {
        background: var(--primary);
        color: white;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.875rem;
        font-weight: 600;
        margin-right: var(--space-4);
    }
    
    .system-card-title {
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--foreground);
        flex: 1;
    }
    
    .system-card-description {
        color: var(--muted);
        line-height: 1.6;
        margin-bottom: var(--space-4);
    }
    
    .system-card-tools {
        display: flex;
        flex-wrap: wrap;
        gap: var(--space-2);
    }
    
    .system-card-tool {
        background: var(--muted-light);
        color: var(--foreground);
        padding: 4px 8px;
        border-radius: 6px;
        font-size: 0.75rem;
        font-weight: 500;
    }
    
    /* Prevent layout shifts on mobile */
    .section {
        scroll-margin-top: 100px;
    }
    
    /* Improve mobile spacing */
    .systems {
        padding: var(--space-12) 0;
    }
    
    .systems-container {
        padding: 0 var(--space-4);
    }
}

@media (max-width: 480px) {
    .hero-container,
    .services-container,
    .about-container,
    .systems-container,
    .stack-container,
    .testimonials-container,
    .contact-container {
        padding: 0 var(--space-4);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .profile-image {
        width: 200px;
        height: 200px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus States */
.nav-link:focus,
.btn:focus,
.contact-method:focus,
.footer-link:focus {
    outline: 2px solid var(--foreground);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .header,
    .footer {
        display: none;
    }
    
    .main {
        margin-top: 0;
    }
}