/* Build v1.16 */
:root {
    --bg-color: #050505;
    --surface-color: #121212;
    --surface-hover: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-primary: #FF007F;
    /* Hot Pink */
    --accent-secondary: #8000FF;
    /* Purple */
    --border-color: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.no-scroll {
    overflow: hidden !important;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Background Glow */
.background-glow {
    position: fixed;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 0, 127, 0.15) 0%, rgba(5, 5, 5, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

/* Header - Floating Pill */
.header {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 95%;
    /* Increased slightly */
    height: 64px;
    background: rgba(20, 20, 20, 0.6) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 0 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    padding: 0 4px;
}

/* Three-column layout for perfect symmetry */
.logo-container {
    flex: 1;
    flex-basis: 0;
    /* Force equal width with actions */
    display: flex;
    justify-content: flex-start;
    align-items: center;
    order: 1;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.nav {
    flex: 0 1 auto;
    /* Take only what's needed */
    display: flex;
    justify-content: center;
    align-items: center;
    order: 2;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: white !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 24px;
    /* More breathing room for better pill shape */
    border-radius: 99px;
    transition: all 0.2s;
    white-space: nowrap;
    text-transform: uppercase;
}

.nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.header-actions {
    flex: 1;
    flex-basis: 0;
    /* Force equal width with logo */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    order: 3;
}

.cta-button {
    background: #1a1a1a !important;
    /* Dark Grey in all modes */
    color: white !important;
    /* White text in all modes */
    padding: 10px 24px;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-transform: uppercase;
    width: fit-content;
    box-sizing: border-box;
}

.cta-button:hover {
    background: #333 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    position: relative;
    width: 100%;
}

.watermark {
    position: absolute;
    top: -60px;
    left: -20px;
    font-size: 12rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.03);
    z-index: 0;
    line-height: 1;
}

.watermark-right {
    left: auto;
    right: -20px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    min-height: 2.2em;
    /* Reserve space for 2 lines */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.typing-text {
    min-height: 1.1em;
    /* Reserve space for one line of text */
    display: block;
    /* Ensure it takes up space even if empty */
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 24px;
    max-width: 600px;
}

.hero-tagline {
    color: var(--accent-primary);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 32px;
    opacity: 1;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

.primary-button-orange {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
}

.primary-button-orange:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* About Section */
.about-section {
    padding: 140px 0;
    position: relative;
    overflow: hidden;
}

.about-container {
    position: relative;
}

.about-content {
    max-width: 100%;
    /* Match Section 4 width */
    margin: 0 auto;
    text-align: left;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.big-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 64px;
    position: relative;
    overflow: hidden;
    /* Subtle inner glow */
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
}

.about-content.big-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-content p {
    margin-bottom: 0;
}

.card-footer-text {
    color: var(--accent-primary);
    font-weight: 600;
    margin-top: 16px;
}

/* Philosophy Section (Split Cards) */
.philosophy-section {
    padding: 140px 0;
    position: relative;
    overflow: hidden;
}

.philosophy-container {
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    position: relative;
    z-index: 1;
}

.text-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.text-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
}

.text-card .highlight-text {
    color: var(--accent-primary);
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Contact Section */
.contact-section {
    padding: 140px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-container {
    position: relative;
}

.contact-content {
    position: relative;
    z-index: 1;
}

.newsletter-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    padding: 80px 40px;
    max-width: 100%;
    margin-top: 40px;
    box-shadow: 0 20px 80px rgba(255, 77, 0, 0.1);
}

.contact-text {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-tagline {
    color: var(--accent-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 48px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.cta-button-large {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    border-bottom: none;
    padding-bottom: 8px;
}

.cta-button-large:hover {
    color: var(--accent-primary);
}

.phone-link {
    font-size: 1.35rem;
    /* Slightly smaller for visual balance */
    border-bottom: none;
}

/* Footer */
.footer {
    padding: 48px 0;
    border-top: none;
    /* Remove footer line */
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.footer-left {
    display: flex;
    align-items: center;
}

.footer-logo {
    font-weight: 700;
    margin-right: 24px;
}

.footer-copy {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-right a {
    color: var(--text-secondary);
    margin-left: 24px;
    font-size: 0.9rem;
}

.footer-right a:hover {
    color: var(--accent-primary);
}

.footer-right a:active,
.footer-right a.active {
    color: var(--accent-secondary);
}

/* Siliconcrib Link */
.silicon-link {
    text-decoration: none;
    transition: all 0.3s ease;
    color: inherit;
}

.silicon-link:hover {
    background: linear-gradient(135deg, #FF007F, #8000FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 16px;
    }

    .nav {
        display: none;
    }

    /* Reduce padding for mobile */
    .hero-section,
    .about-section,
    .philosophy-section,
    .contact-section {
        padding: 80px 0;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
        min-height: 2.2em;
        /* Adjust for mobile */
    }

    .typing-text {
        min-height: 1.1em;
        /* Adjust for mobile */
    }

    .hero-actions {
        justify-content: center;
    }

    .split-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .watermark {
        font-size: 6rem;
        top: -20px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }

    .big-card {
        padding: 32px;
    }

    .newsletter-card {
        padding: 40px 24px;
    }

    /* Center text on mobile */
    .align-right,
    .align-left {
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
    }

    .section-header {
        margin-bottom: 48px;
    }
}

/* Alignment Utilities - Placed at the end to ensure override */
.align-right {
    text-align: right !important;
    margin-left: auto;
}

.align-left {
    text-align: left !important;
    margin-right: auto;
}

/* Light Mode Variables */
body.light-mode {
    --bg-color: #ffffff;
    --surface-color: #f4f4f5;
    --text-primary: #18181b;
    --text-secondary: #52525b;
    --border-color: rgba(0, 0, 0, 0.1);
}

body.light-mode .header {
    /* Keep dark glass menu in light mode */
    background: rgba(20, 20, 20, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

body.light-mode .big-card,
body.light-mode .newsletter-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
}

body.light-mode .logo-text {
    color: var(--text-primary);
}

body.light-mode .watermark {
    color: rgba(0, 0, 0, 0.03);
}

body.light-mode .cta-button-large {
    color: var(--text-primary);
}

body.light-mode .cta-button-large:hover {
    color: var(--accent-primary);
}

/* Theme Toggle Fixed Position */
/* Theme Toggle Fixed Position */
.theme-toggle-fixed,
.chat-toggle-fixed {
    position: fixed !important;
    left: auto !important;
    right: 32px !important;
    bottom: 32px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9999 !important;
    /* High, but below Crisp (which is usually 10000+) */
    transition: all 0.3s ease;
    color: white;
    opacity: 1 !important;
    visibility: visible !important;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Force Hide Default Crisp Launcher */
.crisp-client .cc-tgl,
[data-crisp="launcher"] {
    display: none !important;
}

.theme-toggle-fixed {
    bottom: 32px;
}

.chat-toggle-fixed {
    bottom: 96px;
    /* 32px + 48px + 16px gap */
}

.theme-toggle-fixed:hover,
.chat-toggle-fixed:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

body.light-mode .theme-toggle-fixed,
body.light-mode .chat-toggle-fixed {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

body.light-mode .theme-toggle-fixed:hover,
body.light-mode .chat-toggle-fixed:hover {
    background: rgba(0, 0, 0, 0.1);
}

body.light-mode .cta-button {
    background: #1a1a1a !important;
    /* Force Dark Grey */
    color: white !important;
}

body.light-mode .cta-button:hover {
    background: #333 !important;
}



/* Mobile Menu Styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
    order: 4;
    /* Ensure it appears after logo (order: 1) */
}

.mobile-menu-container {
    position: fixed;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    /* 100% centers better than vw with scrollbars */
    height: 100vh !important;
    margin: 0 !important;
    padding: 0;
    transform: none !important;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    overflow: hidden;
    /* Clips the massive background */
}

/* Massive background layer to cover all gaps/safe-areas */
.mobile-menu-container::before {
    content: '';
    position: absolute;
    top: -50vh;
    left: -50vw;
    width: 200vw;
    height: 200vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: -1;
    /* Behind content */
}

.mobile-nav {
    width: 100%;
    /* Ensure content fills container */
}

.mobile-menu-container.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
    /* Tighter spacing */
    text-align: center;
    width: 100%;
}

.mobile-nav-list li {
    margin-bottom: 12px;
    /* Tighter spacing */
    display: flex;
    /* Robust centering */
    justify-content: center;
}

.mobile-nav-list li:last-child {
    margin-bottom: 0;
}

.mobile-link {
    display: inline-block;
    /* Center aligned and wraps text for pill shape */
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 10px 32px;
    /* Reduced vertical padding */
    text-align: center;
    /* visual fix for text inside pill */
    width: auto;
    margin: 0 auto;
    white-space: nowrap;
}

.mobile-actions {
    width: 100%;
    display: flex;
    justify-content: center;
}



@media (max-width: 960px) {
    .header-container {
        padding: 0 8px;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .cta-button.mobile-cta {
        display: inline-flex;
        width: auto;
        /* Allow button to size naturally */
        justify-content: center;
    }

    /* Center the footer icon manually if flex doesn't do it */
    /* Mobile Footer Re-arrangement */
    .footer-container {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }

    .footer-left {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        /* Spacing between Logo, Text, Copy */
        order: 1;
        /* First */
        width: 100%;
    }

    .footer-left img {
        margin-right: 0 !important;
        /* Override inline style */
        margin-bottom: 4px;
        /* Optional small gap */
    }

    .footer-left .footer-logo {
        margin-right: 0;
        margin-bottom: 4px;
    }

    .footer-right {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        /* Spacing between Privacy and Terms */
        order: 2;
        /* Second (Privacy/Terms) */
        width: 100%;
    }

    .footer-right a {
        margin: 0 !important;
        /* Remove desktop margin */
    }

    .footer-center {
        order: 3;
        /* Last (LinkedIn) */
        margin: 16px 0 0 0;
        position: static !important;
        /* Reset absolute positioning */
        transform: none !important;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* Reduce padding for mobile */
    /* Reduce padding for mobile but ensure top spacing */
    .hero-section,
    .about-section,
    .philosophy-section,
    .contact-section {
        padding: 120px 0 80px 0;
        /* Increased top padding */
    }

    /* Section 01: Hero - LEFT Align */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: left !important;
    }

    .hero-actions {
        justify-content: flex-start !important;
    }

    .hero-container .watermark {
        left: 0 !important;
        transform: none !important;
        right: auto !important;
    }

    /* Section 02: About - RIGHT Align */
    .about-section .section-header,
    .about-section .big-card,
    .about-section .align-right {
        text-align: right !important;
        align-items: flex-end !important;
    }

    .about-section .watermark {
        right: 0 !important;
        left: auto !important;
        transform: none !important;
    }

    /* Section 03: Philosophy - LEFT Align */
    .philosophy-section .section-header,
    .philosophy-section .big-card,
    .philosophy-section .align-left {
        text-align: left !important;
        align-items: flex-start !important;
    }

    .philosophy-section .watermark {
        left: 0 !important;
        right: auto !important;
        transform: none !important;
    }

    /* Section 04: Contact - RIGHT Align */
    .contact-section .section-header,
    .contact-section .contact-content,
    .contact-section .align-right {
        text-align: right !important;
        align-items: flex-end !important;
    }

    .contact-section .contact-links {
        justify-content: flex-end !important;
    }

    .contact-section .watermark {
        right: 0 !important;
        left: auto !important;
        transform: none !important;
    }

    .hero-title {
        font-size: 2.5rem;
        min-height: 2.2em;
    }

    .typing-text {
        min-height: 1.1em;
    }

    .split-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* General Mobile Watermark Reset */
    .watermark {
        font-size: 6rem;
        top: -20px;
        /* Positioning handled per section above */
    }

    .big-card {
        padding: 32px;
    }

    .newsletter-card {
        padding: 40px 24px;
    }

    .section-header {
        margin-bottom: 48px;
    }
}

/* Particles Canvas */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Behind content but in front of background glow if needed, or check z-indices */
    pointer-events: none;
}

/* Footer Center Icon */
.footer-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-center a {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
}

.footer-center a:hover {
    color: #0077b5;
    /* LinkedIn Blue */
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .footer-center {
        position: static;
        transform: none;
    }
}

/* Active Footer Link */
.footer-link.active {
    color: #8000FF !important;
}

/* Inline Text Link (Siliconcrib) */
.text-link {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    font-weight: 500;
}

.text-link:hover {
    background: linear-gradient(135deg, #FF007F, #8000FF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Mobile Centering for Info Pages - Specific Override */
@media (max-width: 960px) {

    .about-section .privacy-content,
    .about-section .terms-content,
    .about-section .info-page-header {
        text-align: center !important;
        align-items: center !important;
    }
}

/* Hero Title Adjustment */
.hero-title {
    font-weight: 700 !important;
}