/* ========================================
   ReefStack Technologies - Main Styles
   ======================================== */

/* CSS Custom Properties */
:root {
    /* Brand Colors - extracted from logo */
    --color-primary: #4A6FA5;
    --color-primary-dark: #3A5A8A;
    --color-primary-light: #6B8FC7;
    --color-accent: #2D5A4A;
    --color-accent-light: #3D7A6A;
    
    /* Neutral Palette */
    --color-bg: #FAFBFC;
    --color-bg-alt: #F1F4F8;
    --color-bg-card: #FFFFFF;
    --color-text: #1A2B3C;
    --color-text-muted: #5A6B7C;
    --color-text-light: #8A9BAC;
    --color-border: #E1E8EF;
    --color-border-light: #EDF2F7;
    
    /* Functional Colors */
    --color-success: #2D8A5A;
    --color-error: #D64545;
    
    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Sizing */
    --container-max: 1200px;
    --nav-height: 72px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-smooth: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(26, 43, 60, 0.05);
    --shadow-md: 0 4px 12px rgba(26, 43, 60, 0.08);
    --shadow-lg: 0 8px 24px rgba(26, 43, 60, 0.12);
    --shadow-xl: 0 16px 48px rgba(26, 43, 60, 0.15);
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-light);
}

/* Selection */
::selection {
    background: rgba(74, 111, 165, 0.2);
    color: var(--color-text);
}

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

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

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

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

ul, ol {
    list-style: none;
}

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

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

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(250, 251, 252, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: all var(--transition-base);
}

.nav.scrolled {
    background: rgba(250, 251, 252, 0.95);
    border-bottom-color: var(--border-light);
    box-shadow: var(--shadow-sm);
}

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

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 42px;
    width: auto;
    transition: transform var(--transition-base);
}

.logo-img:hover {
    transform: scale(1.02);
}

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

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color var(--transition-fast);
    position: relative;
    padding: var(--space-xs) 0;
}

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

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

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

.nav-cta {
    background: var(--color-primary);
    color: white !important;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

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

.nav-cta:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-sm);
}

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

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

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    padding: calc(var(--nav-height) + var(--space-2xl)) var(--space-lg) var(--space-2xl);
    overflow: hidden;
}

.hero-container {
    max-width: var(--container-max);
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    flex: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-shape {
    position: absolute;
    border: 1px solid var(--border);
    opacity: 0.4;
}

.hero-shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 5%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: float 20s ease-in-out infinite;
}

.hero-shape-2 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    left: 8%;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(10px, -10px) rotate(5deg); }
    66% { transform: translate(-10px, 10px) rotate(-5deg); }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(var(--color-border-light) 1px, transparent 1px),
        linear-gradient(90deg, var(--color-border-light) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.4;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    animation: gridFadeIn 1.5s ease forwards;
}

@keyframes gridFadeIn {
    from { opacity: 0; }
    to { opacity: 0.4; }
}

.hero-glow {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(74, 111, 165, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-glow::before {
    content: '';
    position: absolute;
    top: 30%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(45, 90, 74, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-tagline {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--color-bg-card);
    border: 1px solid var(--border);
    padding: var(--space-sm) var(--space-md);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.title-line {
    display: block;
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.title-line:nth-child(1) { animation-delay: 0.1s; }
.title-line:nth-child(2) { animation-delay: 0.2s; }

.highlight {
    color: var(--color-primary);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    width: 100%;
    height: 0.3em;
    background: rgba(74, 111, 165, 0.15);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    animation: highlightIn 0.4s ease forwards 0.5s;
}

@keyframes highlightIn {
    to { transform: scaleX(1); }
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    max-width: 500px;
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.6s ease forwards 0.3s;
    opacity: 0;
    line-height: 1.7;
}
    opacity: 0;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.6s ease forwards 0.4s;
    opacity: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.95rem;
    font-weight: 600;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.btn svg {
    transition: transform var(--transition-fast);
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-secondary {
    background: var(--color-bg-card);
    color: var(--color-text);
    border: 1px solid var(--border);
}

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

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    padding: var(--space-xl);
    margin-top: auto;
    border-top: 1px solid var(--border-light);
    background: rgba(250, 251, 252, 0.8);
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 2;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    line-height: 1;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
}

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

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ========================================
   Hero Visual - Screenshot Carousel
   ======================================== */

.hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.screenshot-carousel {
    position: relative;
    width: 100%;
    max-width: 520px;
}

.carousel-frame {
    position: relative;
    background: linear-gradient(145deg, #2A3B4C 0%, #1A2B3C 100%);
    border-radius: 16px 16px 0 0;
    padding: 12px;
    box-shadow: 
        0 25px 50px -12px rgba(26, 43, 60, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.carousel-screen {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a2e;
}

.carousel-images {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder when screenshots don't exist */
.carousel-slide img[src*="screenshot"]:not([src=""]) {
    min-height: 100%;
}

.carousel-slide img.onerror-placeholder {
    display: none !important;
}

.carousel-slide .placeholder-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a2b3c 0%, #2d4a5c 100%);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.carousel-slide .placeholder-content svg {
    width: 48px;
    height: 48px;
    margin-bottom: var(--space-md);
    opacity: 0.4;
}

.carousel-base {
    height: 16px;
    background: linear-gradient(180deg, #1A2B3C 0%, #0F1820 100%);
    border-radius: 0 0 8px 8px;
    margin: 0 -4px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    transition: all var(--transition-base);
    cursor: pointer;
}

.carousel-dot:hover {
    background: var(--color-text-light);
}

.carousel-dot.active {
    background: var(--color-primary);
    width: 24px;
    border-radius: 4px;
}

/* Floating Products */
.floating-products {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-product {
    position: absolute;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    animation: floatIn 1s ease forwards;
}

.fp-1 {
    top: 15%;
    right: 55%;
    width: 60px;
    height: 60px;
    animation-delay: 0.8s;
    animation-name: floatIn1;
}

.fp-2 {
    bottom: 35%;
    left: 8%;
    width: 50px;
    height: 50px;
    animation-delay: 1s;
    animation-name: floatIn2;
}

.fp-3 {
    top: 25%;
    left: 5%;
    width: 45px;
    height: 45px;
    animation-delay: 1.2s;
    animation-name: floatIn3;
}

@keyframes floatIn1 {
    from { opacity: 0; transform: translateY(20px) rotate(-5deg); }
    to { opacity: 0.7; transform: translateY(0) rotate(-5deg); }
}

@keyframes floatIn2 {
    from { opacity: 0; transform: translateY(20px) rotate(8deg); }
    to { opacity: 0.6; transform: translateY(0) rotate(8deg); }
}

@keyframes floatIn3 {
    from { opacity: 0; transform: translateY(20px) rotate(-3deg); }
    to { opacity: 0.5; transform: translateY(0) rotate(-3deg); }
}

/* ========================================
   Section Styles
   ======================================== */

section {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-3xl);
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    background: rgba(74, 111, 165, 0.1);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--color-text-muted);
}

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

.services {
    background: var(--color-bg-alt);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

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

.service-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    border: 1px solid var(--border-light);
    transition: all var(--transition-smooth);
    opacity: 0;
    transform: translateY(20px);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.service-card:hover .service-icon {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(74, 111, 165, 0.3);
}

.service-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
    transition: all var(--transition-base);
}

.service-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.service-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--space-md);
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.service-features li {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.service-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ========================================
   Industries Section
   ======================================== */

.industries {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
}

.industries-track {
    overflow: hidden;
    margin: 0 calc(-1 * var(--space-lg));
    padding: 0 var(--space-lg);
}

.industries-row {
    display: flex;
    gap: var(--space-lg);
    animation: scrollIndustries 30s linear infinite;
}

.industries-row:hover {
    animation-play-state: paused;
}

@keyframes scrollIndustries {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - var(--space-lg)/2)); }
}

.industry-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--color-bg-card);
    border: 1px solid var(--border);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    cursor: default;
}

.industry-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.industry-icon {
    width: 40px;
    height: 40px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.industry-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-primary);
}

.industry-item span {
    font-weight: 500;
    white-space: nowrap;
}

/* ========================================
   Portfolio Section
   ======================================== */

.portfolio {
    background: var(--color-bg-alt);
}

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

/* First row: 4 items */
.portfolio-card:nth-child(1) { grid-column: span 3; }
.portfolio-card:nth-child(2) { grid-column: span 3; }
.portfolio-card:nth-child(3) { grid-column: span 3; }
.portfolio-card:nth-child(4) { grid-column: span 3; }

/* Second row: 3 items centered */
.portfolio-card:nth-child(5) { grid-column: 2 / 5; }
.portfolio-card:nth-child(6) { grid-column: 5 / 8; }
.portfolio-card:nth-child(7) { grid-column: 8 / 11; }

@media (max-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-card:nth-child(n) {
        grid-column: auto;
    }
}

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

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

.portfolio-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all var(--transition-smooth);
    opacity: 0;
    transform: translateY(20px);
}

.portfolio-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.portfolio-card[data-link] {
    cursor: pointer;
}

.portfolio-card[data-link]:hover .portfolio-title {
    color: var(--color-primary);
}

.external-link {
    width: 16px;
    height: 16px;
    margin-left: var(--space-xs);
    opacity: 0.5;
    transition: opacity var(--transition-fast);
    vertical-align: middle;
}

.portfolio-card[data-link]:hover .external-link {
    opacity: 1;
}

.portfolio-image {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, #E8EDF3 50%, var(--color-bg-alt) 100%);
    position: relative;
    overflow: hidden;
}

.portfolio-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(74, 111, 165, 0.05) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.portfolio-card:hover .portfolio-image::before {
    opacity: 1;
}

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-logo {
    max-width: 55%;
    max-height: 55%;
    object-fit: contain;
    filter: drop-shadow(0 4px 16px rgba(0,0,0,0.12));
    transition: transform var(--transition-base);
}

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

.portfolio-placeholder-icon {
    width: 80px;
    height: 80px;
    color: var(--color-text-light);
}

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

.portfolio-content {
    padding: var(--space-lg);
}

.portfolio-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
}

.portfolio-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.portfolio-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
    line-height: 1.5;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.portfolio-tags span {
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--color-bg-alt);
    color: var(--color-text-muted);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
}

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

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

.about-content .section-tag {
    margin-bottom: var(--space-md);
}

.about-content .section-title {
    text-align: left;
}

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

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

.highlight-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.highlight-icon {
    width: 40px;
    height: 40px;
    background: rgba(45, 90, 74, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-accent);
}

.highlight-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.highlight-item p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

/* Code Visual */
.about-visual {
    display: flex;
    justify-content: center;
}

.visual-card {
    background: #1E293B;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 400px;
}

.visual-header {
    background: #0F172A;
    padding: var(--space-md);
    display: flex;
    gap: var(--space-sm);
}

.visual-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.visual-dot.red { background: #EF4444; }
.visual-dot.yellow { background: #F59E0B; }
.visual-dot.green { background: #22C55E; }

.visual-code {
    padding: var(--space-lg);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.7;
    overflow-x: auto;
}

.visual-code code {
    color: #E2E8F0;
    display: block;
}

.visual-code code span {
    display: block;
    opacity: 0;
    animation: codeFadeIn 0.3s ease forwards;
}

.visual-code code span:nth-child(1) { animation-delay: 0.5s; }
.visual-code code span:nth-child(2) { animation-delay: 0.7s; }
.visual-code code span:nth-child(3) { animation-delay: 0.9s; }
.visual-code code span:nth-child(4) { animation-delay: 1.1s; }
.visual-code code span:nth-child(5) { animation-delay: 1.3s; }
.visual-code code span:nth-child(6) { animation-delay: 1.5s; }
.visual-code code span:nth-child(7) { animation-delay: 1.7s; }
.visual-code code span:nth-child(8) { animation-delay: 1.9s; }
.visual-code code span:nth-child(9) { animation-delay: 2.1s; }

@keyframes codeFadeIn {
    from { 
        opacity: 0; 
        transform: translateX(-5px);
    }
    to { 
        opacity: 1; 
        transform: translateX(0);
    }
}

.code-comment { color: #64748B; }
.code-keyword { color: #C084FC; }
.code-var { color: #67E8F9; }
.code-prop { color: #FBBF24; }
.code-string { color: #86EFAC; }
.code-func { color: #FCA5A5; }

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

.contact {
    background: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

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

.contact-info .section-tag {
    margin-bottom: var(--space-md);
}

.contact-info .section-title {
    text-align: left;
}

.contact-desc {
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.contact-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.contact-icon {
    width: 44px;
    height: 44px;
    background: var(--color-bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-primary);
}

.contact-item h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.contact-item p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--color-bg);
    color: var(--color-text);
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.15);
    background: var(--color-bg-card);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-light);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235A6B7C' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--space-md) center;
    padding-right: var(--space-2xl);
}

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

.contact-form .btn {
    grid-column: 1 / -1;
    margin-top: var(--space-sm);
}

.form-note {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: var(--space-sm);
}

/* Form Success */
.form-success {
    position: absolute;
    inset: 0;
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-xl);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.form-success.show {
    opacity: 1;
    visibility: visible;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: rgba(45, 138, 90, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.success-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--color-success);
}

.form-success h3 {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

.form-success p {
    color: var(--color-text-muted);
}

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

.footer {
    background: linear-gradient(180deg, #1A2B3C 0%, #0F1820 100%);
    color: white;
    padding: var(--space-3xl) 0 var(--space-xl);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(74, 111, 165, 0.5), transparent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 36px;
    width: auto;
    margin-bottom: var(--space-md);
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    line-height: 1.6;
}

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

.footer-column h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
    color: rgba(255,255,255,0.9);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-column li,
.footer-column a {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    padding-top: var(--space-xl);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.4);
    font-size: 0.85rem;
}

/* ========================================
   Animations
   ======================================== */

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

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

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-visual {
        order: 2;
        margin-top: var(--space-xl);
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .floating-products {
        display: none;
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .about-visual {
        order: -1;
    }
    
    .visual-card {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 64px;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-xl);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }
    
    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .contact-form {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--space-2xl);
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: var(--space-xl);
    }
    
    .footer-column {
        flex: 1;
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .industries-row {
        animation: none;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .industry-item {
        flex: 0 0 calc(50% - var(--space-sm));
    }
}
