:root {
    /* Colors */
    --color-primary: #A77CFF;
    --color-primary-dark: #7246CC;
    --color-primary-light: #D9C3FF;
    --color-bg: #000000;
    --color-bg-alt: #0A0A0A;
    --color-text: #FFFFFF;
    --color-text-muted: #B0B0B0;
    --color-border: #333333;

    /* Typography */
    --font-heading: 'Sometype Mono', monospace;
    --font-body: 'Sora', sans-serif;

    /* Spacing */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s ease;
}

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

html {
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: clip;
    position: relative;
    width: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Animations */
/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.fade-in-up {
    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);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Delays */
.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* Text Reveal Animation */
.reveal-text {
    line-height: 1.1;
    overflow: hidden;
}

.reveal-wrap {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    margin-right: 0.25em;
    /* Space between words */
}

.reveal-inner {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-text.visible .reveal-inner {
    transform: translateY(0);
}

.reveal-wrap:nth-child(1) .reveal-inner {
    transition-delay: 0.1s;
}

.reveal-wrap:nth-child(2) .reveal-inner {
    transition-delay: 0.2s;
}

.reveal-wrap:nth-child(3) .reveal-inner {
    transition-delay: 0.3s;
}

.reveal-wrap:nth-child(4) .reveal-inner {
    transition-delay: 0.4s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 500;
    border-radius: 4px;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.magnetic-btn {
    /* Will be handled by JS for movement, just ensuring layout */
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-bg);
    border: 1px solid var(--color-primary);
    box-shadow: 0 0 15px rgba(167, 124, 255, 0.4);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff;
    box-shadow: 0 0 25px rgba(167, 124, 255, 0.6);
}

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

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Header */
.site-header {
    padding: var(--spacing-md) 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100vw;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-family: 'Sometype Mono', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text);
}

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

.logo-icon {
    height: 24px;
    width: auto;
    display: block;
}

.main-nav ul {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.main-nav a:not(.btn) {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.main-nav a:not(.btn):hover {
    color: var(--color-primary);
    text-shadow: 0 0 10px rgba(167, 124, 255, 0.5);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--color-text);
    margin: 5px 0;
}

/* Ambient Lighting */
/* Ambient Lighting Removed by Request */

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Hero Section */
.hero {
    padding: 180px 0 var(--spacing-xl);
    position: relative;
    /* overflow: hidden; Removed to allow video to overlap padding if needed */
}

/* Remove old hero pseudo-element as we use body ambient light now */
.hero::before {
    display: none;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.tag {
    display: inline-block;
    font-family: var(--font-heading);
    color: var(--color-primary);
    font-size: 0.85rem;
    margin-bottom: var(--spacing-sm);
    border: 1px solid var(--color-primary-dark);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    background: rgba(114, 70, 204, 0.1);
    box-shadow: 0 0 10px rgba(167, 124, 255, 0.2);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-md);
}

.text-accent {
    color: var(--color-primary);
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
    /* Fill full height of hero grid cell */
}

.hero-image {
    width: 100%;
    height: 100%;
    /* Full height */
    max-width: none;
    /* No width constraint */
    border-radius: 0;
    /* No border radius for full bleed */
}

.hero-image:hover {
    transform: none !important;
}

/* Capabilities Section */
.capabilities {
    padding: var(--spacing-xl) 0;
    background-color: transparent;
    position: relative;
}

/* Additional ambient lights throughout page */
.capabilities::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -15%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(167, 124, 255, 0.2) 0%, transparent 70%);
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
    animation: pulse 12s ease-in-out infinite alternate;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--color-text);
}

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

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

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

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

.card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    padding: var(--spacing-md);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
}

/* Spotlight Effect */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(167, 124, 255, 0.15), transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: var(--spacing-sm);
}

.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

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

/* Philosophy Section */
.philosophy {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.philosophy::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, transparent 70%);
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
    animation: pulse 14s ease-in-out infinite alternate;
    animation-delay: 3s;
}

.philosophy .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    max-width: 1200px;
}

.philosophy h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
}

.philosophy-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.philosophy-list li {
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
    transition: background-color 0.3s ease;
}

.philosophy-list li:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

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

/* Philosophy Section - Mobile Responsive */
@media (max-width: 768px) {
    .philosophy .container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        direction: ltr !important;
        /* Fix RTL hack on security section */
    }

    .philosophy .hero-visual {
        order: -1;
        /* Put image on top on mobile */
    }

    .philosophy .hero-image {
        height: 200px !important;
    }

    .philosophy h2 {
        font-size: 1.75rem;
    }

    .philosophy-content {
        direction: ltr !important;
    }
}

.check-icon {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A77CFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
    margin-top: 5px;
    filter: drop-shadow(0 0 5px rgba(167, 124, 255, 0.5));
}

/* SCROLLYTELLING TIMELINE - REDESIGNED */
.process-timeline {
    position: relative;
    background-color: var(--color-bg);
}

.sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 0 40px;
    box-sizing: border-box;
}

.timeline-spacer {
    height: 150vh;
    pointer-events: none;
}

.process-timeline .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 800px;
    height: 100%;
    max-height: calc(100vh - 120px);
}

/* Progress Dots */
.timeline-progress-dots {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.timeline-progress-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.timeline-progress-dots .dot.active {
    background: var(--color-primary);
    box-shadow: 0 0 15px var(--color-primary);
    transform: scale(1.3);
}

/* Visual Stage - Centered */
.timeline-visual {
    position: relative;
    width: 300px;
    height: 300px;
    margin-bottom: 3rem;
    flex-shrink: 0;
}

.visual-stage {
    position: relative;
    width: 100%;
    height: 100%;
}

.step-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-visual.active {
    opacity: 1;
    transform: scale(1);
}

.visual-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    box-shadow: 0 20px 60px rgba(167, 124, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Text Content - Stacked and Centered */
.timeline-content {
    position: relative;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-shrink: 1;
    overflow: hidden;
}

.step-text {
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
    text-align: center;
}

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

.step-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.step-text h3 {
    font-size: 2.5rem;
    color: var(--color-text);
    margin-bottom: 1rem;
}

.step-text p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Small height screens - Horizontal grid layout */
@media (max-height: 900px) {
    .sticky-wrapper {
        padding: 90px 40px 30px;
    }
    
    .process-timeline .container {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto 1fr;
        gap: 1rem 3rem;
        max-width: 1000px;
        width: 100%;
        text-align: left;
        align-items: center;
        max-height: none;
        height: auto;
    }
    
    .process-timeline .section-header {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: 0;
    }
    
    .process-timeline .section-header h2 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .timeline-visual {
        grid-column: 1;
        grid-row: 2;
        width: 200px;
        height: 200px;
        margin: 0;
        flex-shrink: 0;
    }
    
    .visual-placeholder svg {
        width: 60px !important;
        height: 60px !important;
    }
    
    .timeline-content {
        grid-column: 2;
        grid-row: 2;
        position: relative;
        min-height: 200px;
        display: flex;
        align-items: center;
    }
    
    .step-text {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: left;
        opacity: 0;
        pointer-events: none;
    }
    
    .step-text.active {
        opacity: 1;
        pointer-events: auto;
    }
    
    .step-text p {
        margin: 0;
        max-width: none;
    }
    
    .step-number {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .step-text h3 {
        font-size: 1.8rem;
        margin-bottom: 0.6rem;
    }
    
    .step-text p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

/* Very small height screens */
@media (max-height: 750px) {
    .sticky-wrapper {
        padding: 80px 30px 20px;
    }
    
    .process-timeline .section-header {
        display: none;
    }
    
    .process-timeline .container {
        grid-template-rows: 1fr;
    }
    
    .timeline-visual {
        grid-row: 1;
        width: 160px;
        height: 160px;
    }
    
    .timeline-content {
        grid-row: 1;
        min-height: 180px;
    }
    
    .visual-placeholder svg {
        width: 50px !important;
        height: 50px !important;
    }
    
    .step-number {
        font-size: 0.75rem;
    }
    
    .step-text h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .step-text p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Hide old progress bar */
.progress-bar-container {
    display: none;
}

/* Mobile Fallback - Show all steps as vertical list */
@media (max-width: 768px) {
    .process-timeline {
        padding: var(--spacing-lg) 0;
    }

    .sticky-wrapper {
        position: relative;
        height: auto;
        padding: 0;
    }

    .timeline-spacer {
        display: none;
    }

    .process-timeline .container {
        max-width: 100%;
        padding: 0 var(--spacing-md);
    }

    .timeline-visual {
        display: none;
        /* Hide visual icons on mobile */
    }

    .timeline-content {
        min-height: auto;
        display: flex;
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .step-text {
        position: relative;
        opacity: 1;
        transform: none;
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--color-border);
        border-radius: 12px;
        padding: var(--spacing-md);
        text-align: left;
    }

    .step-text h3 {
        font-size: 1.5rem;
    }

    .step-text p {
        font-size: 1rem;
    }

    .step-number {
        font-size: 0.8rem;
    }
}

.philosophy-list h3 {
    font-size: 1.5rem;
    color: var(--color-text);
}

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

.dashboard-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-border);
    /* Advanced Radial Blending */
    mask-image: radial-gradient(circle at center, black 50%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 50%, transparent 100%);
}

/* FAQ Section */
.faq {
    padding: var(--spacing-xl) 0;
    background-color: transparent;
    position: relative;
}

.faq::before {
    content: '';
    position: absolute;
    bottom: 10%;
    right: -10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.22) 0%, transparent 70%);
    filter: blur(90px);
    z-index: 0;
    pointer-events: none;
    animation: pulse 11s ease-in-out infinite alternate;
    animation-delay: 6s;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(167, 124, 255, 0.3);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: none;
    border: none;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--color-text-muted);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* Adjust based on content */
}

/* Footer */
.site-footer {
    padding: var(--spacing-lg) 0 var(--spacing-md);
    border-top: 1px solid var(--color-border);
    background-color: var(--color-bg);
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    height: 24px;
    margin-bottom: var(--spacing-sm);
}

.footer-brand p {
    color: var(--color-text-muted);
    max-width: 300px;
}

.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
}

.email-link {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.email-link:hover {
    text-shadow: 0 0 10px rgba(167, 124, 255, 0.5);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

/* Responsive */
@media (max-width: 768px) {
    .site-header .container {
        padding: 0 1.5rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .site-header {
        z-index: 10000;
    }

    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        z-index: 10003;
        position: fixed;
        top: 28px;
        right: 24px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 10px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        padding: 0;
        transition: var(--transition-medium);
        opacity: 0;
        visibility: hidden;
        z-index: 10002;
        display: flex;
        align-items: center;
        justify-content: center;
    }

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

    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        text-align: center;
    }

    .main-nav a:not(.btn) {
        font-size: 1.5rem;
    }

    .main-nav .btn {
        margin-top: 1rem;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-md);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-desc {
        margin: 0 auto var(--spacing-md);
    }

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

    .hero-visual {
        order: -1;
        margin-bottom: var(--spacing-md);
    }

    .hero-symbol {
        width: 200px;
    }

    .site-footer .container {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    /* Nexus research steps - mobile */
    .philosophy-container {
        flex-direction: column !important;
        gap: 2rem !important;
    }

    .philosophy-container .hero-visual {
        order: 0 !important;
    }

    .philosophy-container .hero-image {
        width: 200px !important;
        height: auto !important;
        max-height: 200px !important;
    }

    .philosophy-container .hero-image img {
        max-width: 180px !important;
        height: auto !important;
    }
}

/* ===== MINI-APP MODAL SYSTEM ===== */

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-container {
    display: none;
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-container.active {
    display: block;
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

.mini-app {
    width: 85vw;
    height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* ===== CUSTOM APPLICATIONS THEME ===== */
[data-theme="clean"] {
    cursor: default;
}

[data-theme="clean"] a,
[data-theme="clean"] button,
[data-theme="clean"] .sidebar-item {
    cursor: pointer;
}

.custom-app-demo {
    display: grid;
    grid-template-areas:
        "header header"
        "sidebar content";
    grid-template-columns: 200px 1fr;
    grid-template-rows: 60px 1fr;
    background: #f5f7fa;
    color: #2c3e50;
    font-family: 'Inter', 'Sora', sans-serif;
}

.app-header {
    grid-area: header;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
}

.app-logo-placeholder {
    font-weight: 700;
    font-size: 1.2rem;
    color: #666;
    border: 2px dashed #ccc;
    padding: 8px 16px;
    border-radius: 4px;
}

.app-nav {
    display: flex;
    gap: 25px;
}

.app-nav a {
    color: #555;
    font-weight: 500;
    transition: color 0.2s;
}

.app-nav a:hover {
    color: #000;
}

.app-user {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
}

.app-sidebar {
    grid-area: sidebar;
    background: white;
    border-right: 1px solid #e0e0e0;
    padding: 20px 0;
}

.sidebar-item {
    padding: 12px 20px;
    color: #555;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-item:hover {
    background: #f0f0f0;
}

.sidebar-item.active {
    background: #667eea;
    color: white;
}

.app-content {
    grid-area: content;
    padding: 30px;
}

.app-content h1 {
    color: #2c3e50;
    margin-bottom: 30px;
}

.widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.widget {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.widget h3 {
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: 500;
    margin-bottom: 10px;
}

.widget .metric {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.trend {
    font-size: 0.85rem;
    font-weight: 600;
}

.trend.up {
    color: #27ae60;
}

.trend.down {
    color: #e74c3c;
}

.custom-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.custom-section h2 {
    color: #2c3e50;
    margin-bottom: 10px;
}

/* Tab system */
.tab-link {
    position: relative;
}

.tab-link.active {
    font-weight: 600;
}

.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 0;
    right: 0;
    height: 3px;
    background: #667eea;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Analytics Tab */
.analytics-chart {
    background: white;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.analytics-chart h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.chart-placeholder {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 200px;
    gap: 10px;
    margin-bottom: 10px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px 4px 0 0;
    transition: transform 0.2s;
}

.chart-bar:hover {
    transform: scaleY(1.05);
}

.chart-labels {
    display: flex;
    justify-content: space-around;
    color: #7f8c8d;
    font-size: 0.85rem;
}

.analytics-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.metric-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.metric-card h4 {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.big-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
}

/* Settings Tab */
.settings-section {
    background: white;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.settings-section h3 {
    color: #2c3e50;
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-item label {
    color: #555;
    font-weight: 500;
}

.setting-item input {
    border: 1px solid #e0e0e0;
    padding: 6px 12px;
    border-radius: 4px;
    background: #f8f9fa;
    color: #666;
}

.toggle-switch {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.toggle-switch.enabled {
    background: #27ae60;
    color: white;
}

/* Collaborative Cursors */
.collab-cursor {
    position: absolute;
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s;
}

.collab-cursor.active {
    opacity: 1;
}

.cursor-pointer {
    width: 20px;
    height: 20px;
    position: relative;
}

.cursor-pointer svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.cursor-label {
    position: absolute;
    top: 24px;
    left: 12px;
    background: var(--cursor-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Cursor animations with natural curves */
.collab-cursor {
    transition: none;
}

.collab-cursor.moving {
    transition: all var(--duration) cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Widget drag animation */
.widget.dragging {
    animation: widgetDrag 2s ease-in-out forwards;
    z-index: 100;
}

@keyframes widgetDrag {
    0% {
        opacity: 0;
        transform: translate(var(--drag-start-x), var(--drag-start-y)) scale(0.9) rotate(-2deg);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    15% {
        opacity: 1;
        transform: translate(calc(var(--drag-start-x) * 0.7), calc(var(--drag-start-y) * 0.7)) scale(0.95) rotate(-1deg);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    }

    50% {
        transform: translate(calc(var(--drag-start-x) * 0.3), calc(var(--drag-start-y) * 0.3)) scale(0.98) rotate(0deg);
        box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
    }

    85% {
        transform: translate(0, 0) scale(1.02) rotate(0deg);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
}

/* Task creation animation - simplified for drag effect */
.widget.appearing {
    animation: widgetAppear 0.5s ease-out forwards;
}

@keyframes widgetAppear {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}



/* ===== INTELLIGENT PLANNING THEME ===== */
[data-theme="schedule"] {
    cursor: default;
}

[data-theme="schedule"] button {
    cursor: pointer;
}

.planning-demo {
    background: #fafbfc;
    padding: 30px;
    color: #1a1a1a;
    font-family: 'Inter', 'Sora', sans-serif;
}

.planning-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.planning-header h1 {
    color: #1a1a1a;
    font-size: 1.8rem;
}

.week-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-btn {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.nav-btn:hover {
    background: #f0f0f0;
    border-color: #A77CFF;
}

.current-week {
    font-weight: 600;
    color: #A77CFF;
}

.schedule-grid {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

.schedule-header,
.schedule-row {
    display: grid;
    grid-template-columns: 150px repeat(5, 1fr);
    border-bottom: 1px solid#eee;
}

.schedule-header {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.schedule-header>div,
.schedule-row>div {
    padding: 15px;
    text-align: center;
}

.employee-col,
.employee-name {
    text-align: left;
    font-weight: 600;
}

.shift {
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

.shift.morning {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.shift.afternoon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.shift.off {
    background: #f0f0f0;
    color: #999;
}

.planning-stats {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.stat-item {
    background: white;
    padding: 20px 30px;
    border-radius: 8px;
    text-align: center;
}

.stat-label {
    display: block;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.stat-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
}

.stat-success {
    color: #27ae60;
}

/* ===== AI EMAIL SORTING THEME ===== */
[data-theme="email"] {
    cursor: default;
}

[data-theme="email"] .folder,
[data-theme="email"] .email-item {
    cursor: pointer;
}

.email-demo {
    display: grid;
    grid-template-columns: 250px 1fr;
    background: #ffffff;
    color: #2c3e50;
    font-family: 'Inter', 'Sora', sans-serif;
}

.email-sidebar {
    background: #f8f9fa;
    border-right: 1px solid #e0e0e0;
    padding: 30px 20px;
}

.email-sidebar h2 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #666;
    font-weight: 600;
}

.folder {
    padding: 12px 16px;
    margin-bottom: 5px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.folder:hover {
    background: #e8e9eb;
}

.folder.active {
    background: #e3f2fd;
    color: #1976d2;
    font-weight: 600;
}

.folder-icon {
    margin-right: 8px;
}

.count {
    background: #666;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
}

.folder.active .count {
    background: #1976d2;
}

.email-list {
    padding: 20px;
}

.email-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.email-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #A77CFF;
}

.email-item.priority-high {
    border-left: 4px solid #e74c3c;
}

.email-item.priority-medium {
    border-left: 4px solid #f39c12;
}

.email-from {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.email-subject {
    font-weight: 500;
    color: #34495e;
    margin-bottom: 4px;
}

.email-preview {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.ai-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ai-tag {
    background: #e8e9eb;
    color: #555;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.ai-tag.urgent {
    background: #fee;
    color: #e74c3c;
}

/* ===== PROJECT SUMMARIZATION THEME ===== */
[data-theme="dashboard"] {
    cursor: default;
}

.summary-demo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    color: white;
    font-family: 'Inter', 'Sora', sans-serif;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-header h1 {
    color: white;
    font-size: 2rem;
}

.time-period {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.project-cards {
    display: grid;
    gap: 20px;
    margin-bottom: 30px;
}

.project-card {
    background: white;
    color: #2c3e50;
    border-radius: 12px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.project-status {
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
}

.project-status.active {
    background: #27ae60;
}

.project-status.warning {
    background: #f39c12;
}

.project-status.completed {
    background: #3498db;
}

.project-card h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    padding-left: 10px;
}

.project-progress {
    width: 100%;
    height: 8px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    transition: width 0.3s ease;
}

.progress-bar.warning {
    background: linear-gradient(90deg, #f39c12, #f1c40f);
}

.progress-bar.completed {
    background: linear-gradient(90deg, #3498db, #5dade2);
}

.project-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 12px;
}

.ai-insight {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #555;
}

.summary-metrics {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.metric-box {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    min-width: 150px;
}

.metric-title {
    font-size: 0.9rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.metric-number {
    font-size: 2.5rem;
    font-weight: 700;
}

/* ===== TASK GENERATION THEME ===== */
[data-theme="kanban"] {
    cursor: default;
}

[data-theme="kanban"] .task-card {
    cursor: pointer;
}

.tasks-demo {
    background: #0f172a;
    padding: 30px;
    color: white;
    font-family: 'Inter', 'Sora', sans-serif;
}

.kanban-title {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.kanban-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.kanban-column {
    background: #1e293b;
    border-radius: 12px;
    padding: 20px;
}

.column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.column-header h3 {
    color: white;
    font-size: 1.1rem;
}

.task-count {
    background: #334155;
    color: #94a3b8;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
}

.task-card {
    background: #2d3748;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    border-left: 3px solid transparent;
    transition: all 0.2s;
}

.task-card:hover {
    background: #374151;
    transform: translateY(-2px);
}

.task-card.priority-high {
    border-left-color: #ef4444;
}

.task-card.priority-medium {
    border-left-color: #f59e0b;
}

.task-card.completed {
    opacity: 0.6;
}

.task-title {
    color: white;
    font-weight: 500;
    margin-bottom: 10px;
}

.task-meta {
    display: flex;
    gap: 10px;
    font-size: 0.85rem;
}

.priority-badge {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.priority-badge.high {
    background: #ef4444;
    color: white;
}

.priority-badge.medium {
    background: #f59e0b;
    color: white;
}

.priority-badge.low {
    background: #6b7280;
    color: white;
}

.due,
.assignee,
.completed-date {
    color: #94a3b8;
}

.checkmark {
    color: #10b981;
    font-weight: 700;
}

.ai-suggestions {
    background: #1e293b;
    border-radius: 12px;
    padding: 20px;
}

.suggestion-header {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fbbf24;
}

.suggestion-item {
    background: #2d3748;
    padding: 12px;
    border-radius: 6px;
    color: #e5e7eb;
}

/* ===== ON-PREMISE PRIVACY THEME ===== */
[data-theme="security"] {
    cursor: default;
}

.privacy-demo {
    background: #0a0e27;
    color: white;
    padding: 30px;
    font-family: 'Inter', 'Sora', sans-serif;
}

.security-header {
    text-align: center;
    margin-bottom: 30px;
}

.security-header h1 {
    color: white;
    font-size: 2rem;
    margin-bottom: 15px;
}

.deployment-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(39, 174, 96, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #27ae60;
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-indicator.online {
    background: #27ae60;
    box-shadow: 0 0 10px #27ae60;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.security-card {
    background: #151b3d;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    border: 1px solid #2d3561;
}

.security-card .card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.security-card h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.security-card .status {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.status.enabled {
    background: #27ae60;
    color: white;
}

.security-card p {
    color: #94a3b8;
    font-size: 0.9rem;
}

.data-flow {
    background: #151b3d;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

.data-flow h2 {
    color: white;
    text-align: center;
    margin-bottom: 20px;
}

.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.flow-node {
    background: #2d3561;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px solid #27ae60;
}

.flow-arrow {
    color: #27ae60;
    font-size: 1.5rem;
    font-weight: 700;
}

.flow-note {
    text-align: center;
    color: #27ae60;
    font-size: 0.9rem;
    font-weight: 600;
}

.privacy-metrics {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.metric-item {
    background: #151b3d;
    padding: 20px 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #2d3561;
}

.metric-label {
    display: block;
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.metric-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.metric-value.success {
    color: #27ae60;
}

/* Modal Overlay - Hidden by default */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
}

/* Footer */
.site-footer {
    padding: var(--spacing-lg) 0 var(--spacing-md);
    border-top: 1px solid var(--color-border);
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-md);
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: var(--spacing-sm);
}

.footer-contact h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.email-link {
    color: var(--color-primary);
}

.email-link:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    color: var(--color-text-muted);
    font-size: 0.85rem;
}


/* ===== CONTACT POPUP ===== */
.contact-popup-overlay {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.contact-popup-overlay.active {
    display: flex !important;
    opacity: 1;
}

.contact-popup {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.contact-popup::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.contact-popup-overlay.active .contact-popup {
    transform: scale(1) translateY(0);
}

.contact-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--color-text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-popup-close:hover {
    background: rgba(167, 124, 255, 0.2);
    color: var(--color-primary);
}

.contact-popup-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-popup-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
}

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

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

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

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

.form-group label .optional {
    color: var(--color-text-muted);
    font-weight: 400;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    color: var(--color-text);
    font-family: var(--font-body);
    transition: all 0.2s ease;
}

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

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(167, 124, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(167, 124, 255, 0.1);
}

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

.contact-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    margin-top: 0.5rem;
}

.contact-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-note {
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-top: 0.5rem;
}

.contact-success {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin: 0 auto 1.5rem;
}

.contact-success h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.contact-success p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
    .contact-popup {
        padding: 1.5rem;
    }
    
    .contact-popup-header h2 {
        font-size: 1.5rem;
    }
}
