/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Colors */
    --bg-dark: #08090c;
    --bg-card: rgba(20, 24, 33, 0.5);
    --bg-card-hover: rgba(28, 33, 46, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(0, 229, 255, 0.4);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --accent-cyan: #00e5ff;
    --accent-violet: #7c4dff;
    --accent-gradient: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-violet) 100%);
    
    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
    
    /* Animation */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Ambient glow blobs */
.glow-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.blob-1 {
    background: var(--accent-cyan);
    top: -200px;
    right: -100px;
}

.blob-2 {
    background: var(--accent-violet);
    top: 600px;
    left: -200px;
}

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

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

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    border: 2px solid var(--bg-dark);
}

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

/* ==========================================================================
   REUSABLE UTILITIES
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 8rem 0;
}

.alt-bg {
    background-color: rgba(255, 255, 255, 0.02);
    position: relative;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--bg-dark);
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 229, 255, 0.25);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
}

/* Section Headers */
.section-header {
    max-width: 700px;
    margin-bottom: 4rem;
}

.section-tag {
    font-family: var(--font-heading);
    color: var(--accent-cyan);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: inline-block;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

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

/* Accessibility Focus States */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 4px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header.scrolled {
    background: rgba(8, 9, 12, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    height: 70px;
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-accent {
    color: var(--accent-cyan);
}

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

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

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

.btn-connect {
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.btn-connect:hover {
    background: var(--accent-gradient);
    color: var(--bg-dark);
    border-color: transparent;
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: var(--transition-smooth);
}

.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    left: 0;
    transition: var(--transition-smooth);
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.hero-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 500px;
    opacity: 0.85;
    transition: var(--transition-smooth);
}

.hero-image-wrapper:hover .hero-image {
    transform: scale(1.03);
    opacity: 1;
}

/* ==========================================================================
   PHILOSOPHY SECTION
   ========================================================================== */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.philosophy-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

.philosophy-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 229, 255, 0.05);
}

.card-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 10px;
    background: rgba(0, 229, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    margin-bottom: 2rem;
}

.card-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.philosophy-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.philosophy-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   EXPERTISE SECTION
   ========================================================================== */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.expertise-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3.5rem;
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

.expertise-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-hover);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 229, 255, 0.05);
}

.expertise-card h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.expertise-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.expertise-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.expertise-list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.expertise-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-weight: bold;
}

/* ==========================================================================
   ENGAGEMENTS SECTION
   ========================================================================== */
.engagement-timeline {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
}

.engagement-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 0.3fr 0.7fr;
    gap: 3rem;
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

.engagement-item:hover {
    background: var(--bg-card-hover);
    border-color: rgba(124, 77, 255, 0.4);
    box-shadow: 0 15px 30px rgba(124, 77, 255, 0.05);
}

.engagement-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.eng-client {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
}

.eng-tag {
    color: var(--accent-violet);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.engagement-body h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.engagement-body p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ==========================================================================
   CONNECT SECTION
   ========================================================================== */
.connect-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5rem;
    align-items: start;
}

.connect-desc {
    color: var(--text-secondary);
    font-size: 1.15rem;
    margin-bottom: 3.5rem;
}

.direct-contact {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.method-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
}

.method-icon svg {
    width: 1.35rem;
    height: 1.35rem;
}

.contact-method h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.contact-method p a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.15rem;
    transition: var(--transition-smooth);
}

.contact-method p a:hover {
    color: var(--accent-cyan);
}

/* Contact Form */
.connect-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3.5rem;
    backdrop-filter: blur(12px);
}

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

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

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.form-control {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-cyan);
    background: rgba(255, 255, 255, 0.05);
}

.error-msg {
    color: #ff6b6b;
    font-size: 0.8rem;
    min-height: 1.25rem;
}

.btn-submit {
    width: 100%;
    padding: 1rem;
}

.form-status {
    font-size: 0.95rem;
    text-align: center;
    min-height: 1.5rem;
}

.form-status.success {
    color: #00ff88;
}

.form-status.error {
    color: #ff6b6b;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 0;
    background-color: #050608;
}

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

.logo-footer {
    display: inline-block;
    margin-bottom: 0.75rem;
}

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

.footer-copyright {
    text-align: right;
}

.footer-copyright p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-copyright .disclaimer {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    font-style: italic;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

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

/* Scroll reveal items */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        order: -1;
    }

    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .connect-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .section-padding {
        padding: 5rem 0;
    }

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

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

    /* Mobile Nav */
    .nav-toggle {
        display: block;
    }

    .nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(8, 9, 12, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-smooth);
        border-top: 1px solid var(--border-color);
    }

    .nav.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }

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

    .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);
        top: 0;
    }

    /* Grid reductions */
    .philosophy-grid {
        grid-template-columns: 1fr;
    }

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

    .engagement-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem;
    }

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

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