:root {
    /* Dark mode variables (default) */
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent: #00ffb3;
    --accent-alt: #3d3dd1;
    --transition-speed: 0.4s;
}

.light-mode {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --text-primary: #121212;
    --text-secondary: #505050;
    --accent: #00bf88;
    --accent-alt: #5c5ce0;
}

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    height: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition-speed), color var(--transition-speed);
    overflow-x: hidden;
    margin: 0;
    height: 100%;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1, h2, h3, p, a, button, .btn, span {
    transition: color var(--transition-speed), background-color var(--transition-speed), border-color var(--transition-speed);
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

p {
    margin-bottom: 1.5rem;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
}

.reveal-text {
    position: relative;
    color: var(--text-primary);
    display: inline-block;
}

.reveal-text::after {
    content: '';
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s ease;
}

.reveal-text:hover::after {
    transform: scaleX(1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.btn-primary:hover {
    background-color: transparent;
    outline: 2px solid var(--accent);
    color: var(--accent);
}

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

.btn-secondary:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    transition: background-color var(--transition-speed);
}

.light-mode header {
    background-color: rgba(255, 255, 255, 0.8);
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.logo {
    position: absolute;
    left: 0;
    margin-right: 0;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

/* Positioning the utility buttons on the right */
.nav-utilities {
    display: flex;
    align-items: center;
    gap: 15px;
    position: absolute;
    right: 0;
}

.theme-toggle, .lang-toggle {
    position: relative;
}

.toggle-label {
    display: none;
}

/* Theme toggle button */
#theme-toggle-btn {
    background: none;
    border: 2px solid var(--accent);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#theme-toggle-btn:hover {
    background-color: rgba(0, 255, 179, 0.1);
    box-shadow: 0 0 8px rgba(0, 255, 179, 0.3);
}

/* Language toggle button */
#lang-toggle-btn {
    background: none;
    border: 2px solid var(--accent);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 0.85rem;
}

#lang-toggle-btn:hover {
    background-color: rgba(0, 255, 179, 0.1);
    box-shadow: 0 0 8px rgba(0, 255, 179, 0.3);
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

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

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    width: 30px;
}

.mobile-menu-toggle span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 0;
    min-height: calc(100vh - 60px);
    margin-top: 60px; /* For fixed header */
    position: relative;
    display: flex;
    align-items: center;
    scroll-snap-align: start;
    scroll-margin-top: 60px; /* Account for fixed header */
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    height: 100%;
    padding: 2rem 1rem;
}

.hero-content {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content h1,
.hero-content p {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-content .btn {
    margin: 0 auto;
}

.hero-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    max-height: 600px;
}

/* Standard animation container sizes */
.waveform, .audio-bars, .collaboration-svg, .waveform-dynamic {
    width: 100%;
    height: auto;
    min-height: 288px;
}

/* Add cross-browser support for path animations */
@keyframes wave {
    0%, 100% {
        d: path("M0,144 Q20,134 40,144 T80,144 T120,144 T160,144 T200,144 T240,144 T280,144 T320,144 T360,144 T400,144");
    }
    50% {
        d: path("M0,144 Q20,110 40,144 T80,115 T120,144 T160,112 T200,144 T240,117 T280,144 T320,113 T360,144 T400,144");
    }
}

/* Add Safari/Firefox specific animations */
@-webkit-keyframes wave {
    0%, 100% {
        d: path("M0,144 Q20,134 40,144 T80,144 T120,144 T160,144 T200,144 T240,144 T280,144 T320,144 T360,144 T400,144");
    }
    50% {
        d: path("M0,144 Q20,110 40,144 T80,115 T120,144 T160,112 T200,144 T240,117 T280,144 T320,113 T360,144 T400,144");
    }
}

@-moz-keyframes wave {
    0%, 100% {
        d: path("M0,144 Q20,134 40,144 T80,144 T120,144 T160,144 T200,144 T240,144 T280,144 T320,144 T360,144 T400,144");
    }
    50% {
        d: path("M0,144 Q20,110 40,144 T80,115 T120,144 T160,112 T200,144 T240,117 T280,144 T320,113 T360,144 T400,144");
    }
}

.wave {
    animation: wave 5s ease-in-out infinite;
    -webkit-animation: wave 5s ease-in-out infinite;
    -moz-animation: wave 5s ease-in-out infinite;
    animation-delay: calc(var(--i, 0) * 0.5s);
    -webkit-animation-delay: calc(var(--i, 0) * 0.5s);
    -moz-animation-delay: calc(var(--i, 0) * 0.5s);
}

.wave:nth-child(1) {
    --i: 0;
}

.wave:nth-child(2) {
    --i: 1;
}

.wave:nth-child(3) {
    --i: 2;
}

.wave:nth-child(4) {
    --i: 3;
}

/* Feature Sections */
.feature {
    padding: 8rem 0;
    position: relative;
    overflow: hidden;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    scroll-margin-top: 60px; /* Account for fixed header */
}

.feature:nth-child(even) {
    background-color: var(--bg-secondary);
}

.feature .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    height: 100%;
    padding: 2rem 1rem;
}

.feature-content {
    flex: 1;
}

.feature-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.feature-alt .container {
    flex-direction: row-reverse;
}

/* Audio Bars Animation */
.bar {
    fill: var(--accent);
    transform-origin: bottom;
    animation: barAnim 5s ease-in-out infinite;
    -webkit-animation: barAnim 5s ease-in-out infinite;
    -moz-animation: barAnim 5s ease-in-out infinite;
}

.bar:nth-child(1) { --bar-i: 0; }
.bar:nth-child(2) { --bar-i: 1; }
.bar:nth-child(3) { --bar-i: 2; }
.bar:nth-child(4) { --bar-i: 3; }
.bar:nth-child(5) { --bar-i: 4; }
.bar:nth-child(6) { --bar-i: 5; }
.bar:nth-child(7) { --bar-i: 6; }
.bar:nth-child(8) { --bar-i: 7; }
.bar:nth-child(9) { --bar-i: 8; }

/* Ensure bar animation works in Safari/Firefox */
@-webkit-keyframes barAnim {
    0%, 100% {
        transform: scaleY(1);
        -webkit-transform: scaleY(1);
    }
    50% {
        transform: scaleY(1.5);
        -webkit-transform: scaleY(1.5);
    }
}

@-moz-keyframes barAnim {
    0%, 100% {
        transform: scaleY(1);
        -moz-transform: scaleY(1);
    }
    50% {
        transform: scaleY(1.5);
        -moz-transform: scaleY(1.5);
    }
}

/* Collaboration SVG */
.node {
    fill: var(--accent);
    animation: pulse 5s ease-in-out infinite;
}

.connection {
    stroke: var(--accent);
    stroke-width: 1.5;
    stroke-dasharray: 20;
    stroke-dashoffset: 0;
    animation: dash 5s linear infinite;
}

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

@keyframes dash {
    0% {
        stroke-dashoffset: 0;
    }
    100% {
        stroke-dashoffset: -40;
    }
}

/* Dynamic Waveform */
.wave-dynamic {
    animation: dynamicWave 5s ease-in-out infinite;
    -webkit-animation: dynamicWave 5s ease-in-out infinite;
    -moz-animation: dynamicWave 5s ease-in-out infinite;
}

/* Add cross-browser support for dynamicWave animations */
@keyframes dynamicWave {
    0%, 100% {
        d: path("M0,144 Q100,144 200,144 T400,144");
    }
    50% {
        d: path("M0,144 Q100,0 200,144 T400,288");
    }
}

@-webkit-keyframes dynamicWave {
    0%, 100% {
        d: path("M0,144 Q100,144 200,144 T400,144");
    }
    50% {
        d: path("M0,144 Q100,0 200,144 T400,288");
    }
}

@-moz-keyframes dynamicWave {
    0%, 100% {
        d: path("M0,144 Q100,144 200,144 T400,144");
    }
    50% {
        d: path("M0,144 Q100,0 200,144 T400,288");
    }
}

/* CTA Section */
.cta {
    padding: 8rem 0;
    text-align: center;
    background-color: var(--bg-secondary);
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: start;
    scroll-margin-top: 60px; /* Account for fixed header */
    position: relative;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.trust-elements {
    margin-top: 4rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.testimonial {
    max-width: 300px;
    padding: 1.5rem;
    border-radius: 10px;
    background-color: var(--bg-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.light-mode .testimonial {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.testimonial:hover {
    transform: translateY(-5px);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 0.5rem;
}

.testimonial span {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Footer */
footer {
    padding: 4rem 0;
    background-color: var(--bg-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    scroll-snap-align: start;
    min-height: 20vh;
    display: flex;
    align-items: center;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.copyright {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Media Queries */
@media (max-width: 768px) {
    nav {
        position: relative;
        padding: 0 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo {
        position: static;
        margin-right: 0;
        font-size: 1.3rem;
        flex: 1;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-utilities {
        position: static;
        right: auto;
        display: flex;
        align-items: center;
        gap: 12px;
        margin-right: 0;
        flex: 1;
        justify-content: flex-end;
    }
    
    .mobile-menu-toggle {
        display: flex;
        position: static;
        flex-direction: column;
        align-items: center;
        flex: 1;
        justify-content: center;
        margin: 0 auto;
    }
    
    #theme-toggle-btn, #lang-toggle-btn {
        width: 28px;
        height: 28px;
        padding: 0;
        font-size: 11px;
    }
    
    .theme-toggle, .lang-toggle {
        display: flex;
        align-items: center;
    }
    
    .lang-dropdown {
        right: 0;
        left: auto;
        top: 40px;
    }

    .hero {
        padding: 0;
        height: auto;
        min-height: 100vh;
        display: flex;
        align-items: center;
    }
    
    .hero .container {
        flex-direction: column;
        gap: 2rem;
        justify-content: center;
        align-items: center;
        padding: 1rem;
        height: auto;
    }
    
    .hero-content,
    .hero-graphic {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }
    
    .hero-content {
        margin-top: 60px;
        padding-top: 1rem;
    }
    
    .hero-graphic {
        margin-bottom: 1rem;
        height: auto;
        max-height: none;
    }
    
    .waveform {
        width: 100%;
        height: auto;
        min-height: auto;
        max-height: none;
    }
    
    /* Ensure first section fits entirely on one screen */
    .hero, .hero .container {
        max-height: 100vh;
        overflow: visible;
    }
    
    .hero-content h1 {
        font-size: clamp(2rem, 5vw, 3rem);
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: clamp(0.9rem, 2vw, 1.1rem);
        margin-bottom: 1.5rem;
    }

    .feature .container,
    .feature-alt .container {
        flex-direction: column;
        gap: 1.5rem;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    
    .feature-alt .container {
        flex-direction: column;
    }
    
    /* Force content before graphics on mobile/tablet */
    .feature-alt .feature-content {
        order: 1;
    }
    
    .feature-alt .feature-graphic {
        order: 2;
    }

    .feature-content,
    .feature-graphic {
        flex: 1 1 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    
    .feature-content h2 {
        text-align: center;
    }
    
    .feature-content p {
        text-align: center;
        max-width: 90%;
    }
    
    .waveform, .audio-bars, .collaboration-svg, .waveform-dynamic {
        width: 90%;
        max-width: 320px;
        margin: 0 auto;
    }

    .cta {
        height: auto;
        min-height: 100vh;
        padding: 3rem 0;
    }

    .cta-content {
        width: 90%;
        max-width: 500px;
        padding: 0 0.5rem;
    }
    
    .cta-content h2 {
        margin-bottom: 1rem;
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }
    
    .cta-content p {
        margin-bottom: 1.5rem;
        font-size: clamp(0.9rem, 2vw, 1.1rem);
    }
    
    .cta .btn {
        padding: 0.8rem 1.8rem;
        font-size: 0.9rem;
    }
    
    .trust-elements {
        margin-top: 2.5rem;
        gap: 1.5rem;
    }
    
    .testimonial {
        max-width: 280px;
        padding: 1.2rem;
    }

    /* Hide footer links on mobile */
    .footer-links {
        display: none;
    }
    
    footer .container {
        gap: 1rem;
    }

    /* Mobile-specific Feature 3 adjustments */
    #feature-3 .container {
        padding: 1rem;
        gap: 1.5rem;
    }
    
    #feature-3 .feature-graphic {
        max-height: none;
        margin-bottom: 1rem;
        width: 100%;
    }
    
    #feature-3 .waveform-dynamic {
        max-height: none;
        margin: 0 auto;
    }
    
    #feature-3 .feature-content {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
    
    /* Ensure feature-alt sections have proper spacing on mobile */
    .feature-alt .container {
        flex-direction: column-reverse;
    }

    /* Feature 2 section specific adjustments */
    #feature-2 .container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    #feature-2 .feature-content {
        order: 1;
    }
    
    #feature-2 .feature-graphic {
        order: 2;
    }

    /* Feature 1 section specific adjustments */
    #feature-1 .container {
        flex-direction: column !important;
        gap: 1.5rem;
    }
    
    #feature-1 .feature-content {
        order: 1;
    }
    
    #feature-1 .feature-graphic {
        order: 2;
    }
}

/* Mobile Menu */
.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--bg-primary);
    padding: 2rem;
    text-align: center;
}

.menu-open .mobile-menu-toggle span:first-child {
    transform: rotate(45deg) translate(9px, 7px);
}

.menu-open .mobile-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.menu-open .mobile-menu-toggle span:last-child {
    transform: rotate(-45deg) translate(8px, -7px);
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-right: 20px;
    gap: 5px;
}

.lang-select {
    position: relative;
}

.current-lang {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent);
}

.lang-arrow {
    transition: transform 0.3s ease;
    width: 12px;
    height: 12px;
    stroke: var(--accent);
}

.lang-select.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 120px;
    background-color: var(--bg-secondary);
    border: 2px solid var(--accent);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    display: block;
}

.lang-option {
    width: 100%;
    padding: 10px 15px;
    background: none;
    border: none;
    text-align: left;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.lang-option:hover {
    background-color: rgba(0, 255, 179, 0.2);
    color: var(--accent);
}

/* Mobile view adjustments for language toggle */
@media (max-width: 768px) {
    .lang-toggle {
        margin-right: 0;
        z-index: 50;
    }
    
    .lang-dropdown {
        right: 0;
        left: auto;
        top: 40px;
    }
}

/* Add navigation dots for sections */
.section-nav {
    display: none;
}

.section-nav a {
    display: none;
}

.section-nav a:hover,
.section-nav a.active {
    display: none;
}

/* Fade in animations when scrolling */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Make hero content visible from the beginning */
.hero-content.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Dynamic wave animation (feature 3) */
.waveform-dynamic {
    height: 100%;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.dynamic-animation {
    display: flex;
    justify-content: center;
    align-items: center;
} 