/* ========================================
   Altrix Technologies - Design System
   ======================================== */

:root {
    /* Colors - Deep tech, premium feel */
    --color-bg: #0a0c10;
    --color-bg-elevated: #12151c;
    --color-bg-card: #161a24;
    
    --color-text: #e8eef4;
    --color-text-muted: #8b99a8;
    
    --color-accent: #00d4aa;
    --color-accent-dim: rgba(0, 212, 170, 0.15);
    
    --color-border: rgba(255, 255, 255, 0.08);
    
    /* Typography */
    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;
    
    /* Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    overflow-x: hidden;
}

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

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

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-md) 0;
    background: rgba(10, 12, 16, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

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

.logo {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    line-height: 0;
    margin: 0;
    padding: 0;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-text);
    letter-spacing: -0.02em;
}

.logo-tagline {
    font-size: 0.7rem;
    color: var(--color-accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.logo-img {
    height: 38px;
    width: auto;
    display: block;
    object-fit: contain;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
}

.nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

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

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

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--color-text);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: #00e6b8;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 212, 170, 0.3);
}

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

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

.btn-nav {
    padding: 0.5rem 1rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

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

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--color-accent);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: #3b82f6;
    bottom: 20%;
    left: -80px;
}

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

.hero-logo {
    max-width: 320px;
    width: 100%;
    height: auto;
    margin-bottom: var(--space-lg);
}

.hero-tagline {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: var(--space-sm);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-md);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    max-width: 520px;
    margin-bottom: var(--space-xl);
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

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

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

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

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

/* Vision & Mission */
.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-lg);
}

.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.card:hover {
    border-color: rgba(0, 212, 170, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent-dim);
    color: var(--color-accent);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-md);
}

.card h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

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

/* Expertise */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-md);
}

.expertise-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: all var(--transition-base);
}

.expertise-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
}

.expertise-icon {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
    opacity: 0.9;
}

.expertise-card h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

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

/* About */
.about-content {
    max-width: 720px;
}

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

/* Services */
.services {
    background: var(--color-bg-elevated);
}

.services-intro {
    color: var(--color-text-muted);
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--space-xl);
    font-size: 1.1rem;
    line-height: 1.7;
}

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

.service-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.service-card:hover {
    border-color: rgba(0, 212, 170, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.service-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: var(--space-xs);
}

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

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

.service-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.service-list {
    list-style: none;
    margin-bottom: var(--space-md);
}

.service-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: var(--space-xs);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.service-list li::before {
    content: "◆";
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-size: 0.6rem;
}

.service-highlight {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--color-border);
}

.service-highlight strong {
    color: var(--color-accent);
}

/* Why Altrix */
.why-altrix {
    background: var(--color-bg);
}

.why-altrix-list {
    list-style: none;
    max-width: 560px;
    margin: 0 auto;
}

.why-altrix-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) 0;
    color: var(--color-text);
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--color-border);
}

.why-altrix-list li:last-child {
    border-bottom: none;
}

.why-altrix-list .check {
    color: var(--color-accent);
    font-size: 1.25rem;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-bg-elevated) 100%);
    border-top: 1px solid var(--color-border);
}

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

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.cta-subtitle {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto var(--space-xl);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.cta-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

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

.cta-contact-link {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: color var(--transition-fast);
}

.cta-contact-link:hover {
    color: #00e6b8;
}

.cta-contact-sep {
    color: var(--color-text-muted);
    opacity: 0.6;
}

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

.footer {
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--color-border);
}

.footer-content {
    text-align: center;
}

.footer-brand {
    margin-bottom: var(--space-sm);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.footer-nav a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
}

.footer-nav a:hover {
    color: var(--color-accent);
}

.footer-logo {
    height: 36px;
    width: auto;
    margin-bottom: var(--space-sm);
}

.footer-tagline {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: var(--space-sm);
}

.footer-domain a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 500;
}

.footer-domain a:hover {
    text-decoration: underline;
}

.footer-domain {
    margin-bottom: var(--space-md);
}

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

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

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        background: var(--color-bg-elevated);
        flex-direction: column;
        justify-content: center;
        gap: var(--space-lg);
        padding: var(--space-xl);
        transform: translateX(100%);
        transition: transform var(--transition-base);
        border-left: 1px solid var(--color-border);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .menu-toggle {
        display: flex;
        z-index: 101;
    }

    .hero-cta {
        flex-direction: column;
    }

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

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-nav {
        flex-direction: column;
    }

    .cta-buttons {
        flex-direction: column;
    }

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

    .cta-contact {
        flex-direction: column;
    }

    .cta-contact-sep {
        display: none;
    }
}
