:root {
    /* Theme Variables - Dark Mode (Default) */
    --bg-color: #0d0d0d;
    --surface-color: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent-color: #3b82f6;
    --accent-hover: #60a5fa;
    --danger-color: #ef4444;
    --success-color: #10b981;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition-speed: 0.3s;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg-color: #f8fafc;
        --surface-color: #ffffff;
        --text-primary: #0f172a;
        --text-secondary: #64748b;
        --accent-color: #2563eb;
        --accent-hover: #1d4ed8;
        --glass-bg: rgba(0, 0, 0, 0.03);
        --glass-border: rgba(0, 0, 0, 0.08);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Layout & Nav */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: var(--bg-color);
    border-bottom: 1px solid var(--glass-border);
}

.logo a {
    color: var(--text-primary);
    text-decoration: none;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
}

.nav-menu a.nav-cta {
    background: var(--accent-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 999px;
    transition: background 0.2s;
}

.nav-menu a.nav-cta:hover {
    background: var(--accent-hover);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.lang-toggle {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 4px;
    border-radius: 999px;
    display: flex;
    gap: 4px;
}

.lang-btn {
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 999px;
    transition: all 0.2s;
    color: var(--text-secondary);
}

.lang-btn.active {
    background: var(--accent-color);
    color: white;
}

/* Page Sections */
.page-section {
    min-height: calc(100vh - 80px);
    padding: 8rem 2rem 4rem;
    display: flex;
    align-items: center;
}

.page-section h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

.page-section h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

/* Landing Page Styles */
.landing-page {
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
}

.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 12rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin-bottom: 4rem;
    width: 100%;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    justify-content: center;
}

.big-btn {
    padding: 1.5rem 4rem;
    font-size: 1.5rem;
    text-decoration: none;
    display: inline-block;
}

.hero-visual {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16/9;
    background: var(--surface-color);
    border-radius: 2rem;
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.5);
}

.mock-timer {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.landing-footer {
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Animations */
.animate-up {
    animation: slide-up 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes slide-up {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-fade {
    animation: fade 1.5s ease-out forwards;
    opacity: 0;
}

@keyframes fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Animated Timer Visualization */
.animated-timer {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.timer-bg {
    fill: none;
    stroke: var(--glass-border);
    stroke-width: 8;
}

.timer-progress {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 565.48;
    stroke-dashoffset: 565.48;
    transition: stroke-dashoffset 0.05s linear;
    filter: drop-shadow(0 0 10px var(--accent-color));
}

.timer-pulse {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--accent-color);
    opacity: 0.2;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(0.8);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.1;
    }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: var(--surface-color);
}

.features-section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    color: var(--accent-color);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 6rem 0;
}

.about-section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: var(--surface-color);
}

.contact-section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-intro {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-color);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-color);
}

.contact-form .btn {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.125rem;
}

/* Footer Enhancements */
.developer-credit {
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.developer-credit a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.developer-credit a:hover {
    color: var(--accent-hover);
}

body {
    /* Animated smoke at bottom of page */
    .smoke-bg-container {
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100vw;
        height: 180px;
        pointer-events: none;
        z-index: 2;
    }
    .smoke-bg {
        position: absolute;
        bottom: 0;
        border-radius: 50%;
        filter: blur(32px);
        opacity: 0.45;
        background: radial-gradient(circle, rgba(59,130,246,0.22) 0%, rgba(13,13,13,0.01) 80%);
        animation: smoke-bg-rise 7s infinite ease-in-out;
    }
    .smoke-bg-1 {
        left: 8vw;
        width: 200px;
        height: 120px;
        animation-delay: 0s;
    }
    .smoke-bg-2 {
        left: 38vw;
        width: 260px;
        height: 160px;
        animation-delay: 2s;
    }
    .smoke-bg-3 {
        left: 68vw;
        width: 180px;
        height: 110px;
        animation-delay: 4s;
    }
    @keyframes smoke-bg-rise {
        0% { transform: translateY(0) scale(1); opacity: 0.45; }
        40% { opacity: 0.6; }
        60% { transform: translateY(-40px) scale(1.2); opacity: 0.25; }
        100% { transform: translateY(0) scale(1); opacity: 0.45; }
    }
    /* Animated smoke at bottom of page */
    .smoke-bg-container {
        position: fixed;
        left: 0;
        bottom: 0;
        width: 100vw;
        height: 180px;
        pointer-events: none;
        z-index: 1;
    }
    .smoke-bg {
        position: absolute;
        bottom: 0;
        border-radius: 50%;
        filter: blur(32px);
        opacity: 0.35;
        background: radial-gradient(circle, rgba(59,130,246,0.18) 0%, rgba(13,13,13,0.01) 80%);
        animation: smoke-bg-rise 7s infinite ease-in-out;
    }
    .smoke-bg-1 {
        left: 10vw;
        width: 180px;
        height: 120px;
        animation-delay: 0s;
    }
    .smoke-bg-2 {
        left: 40vw;
        width: 220px;
        height: 140px;
        animation-delay: 2s;
    }
    .smoke-bg-3 {
        left: 70vw;
        width: 160px;
        height: 100px;
        animation-delay: 4s;
    }
    @keyframes smoke-bg-rise {
        0% { transform: translateY(0) scale(1); opacity: 0.35; }
        40% { opacity: 0.5; }
        60% { transform: translateY(-40px) scale(1.2); opacity: 0.25; }
        100% { transform: translateY(0) scale(1); opacity: 0.35; }
    }
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    transition: background-color var(--transition-speed), color var(--transition-speed);
}

.app-container {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Screen Management */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
    padding: 2rem;
    text-align: center;
}

.screen.active {
    opacity: 1;
    pointer-events: all;
    z-index: 10;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

header p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

/* Inputs */
.input-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

input[type="number"] {
    background: var(--surface-color);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    font-size: 3rem;
    font-weight: 700;
    width: 120px;
    padding: 1rem;
    border-radius: 1rem;
    text-align: center;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="number"]:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.separator {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-top: 1.5rem;
}

/* Buttons */
.btn {
    font-family: inherit;
    font-weight: 600;
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s, opacity 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:active {
    transform: scale(0.96);
}

.btn.primary {
    background-color: var(--accent-color);
    color: white;
}

.btn.primary:hover {
    background-color: var(--accent-hover);
}

.btn.secondary {
    background-color: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn.secondary:hover {
    background-color: var(--glass-border);
}

.icon-btn {
    width: 64px;
    height: 64px;
    padding: 0;
    border-radius: 50%;
}

.icon-btn svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* Timer Display */
.timer-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.display {
    font-size: 15vw;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 2rem;
    /* Removed animation for stationary count */
}

@keyframes tick-subtle {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.95;
    }
}

.motivation {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 600px;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Animation for motivational quote */
    transition: opacity 0.5s, transform 0.5s;
    opacity: 1;
    transform: translateY(0);
}

.motivation.animate {
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Controls Layer */
.timer-container {
    position: relative;
    display: inline-block;
}

/* Smoke Effect Decoration */
.smoke-container {
    position: absolute;
    bottom: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 100px;
    pointer-events: none;
    overflow: hidden;
}

.smoke {
    position: absolute;
    bottom: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    animation: smoke-rise 4s ease-in-out infinite;
}

.smoke-1 {
    left: 20%;
    animation-delay: 0s;
}

.smoke-2 {
    left: 50%;
    animation-delay: 1.5s;
    width: 100px;
    height: 100px;
}

.smoke-3 {
    left: 70%;
    animation-delay: 3s;
}

@keyframes smoke-rise {
    0% {
        transform: translateY(0) scale(0.8);
        opacity: 0;
    }

    20% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100px) scale(1.5);
        opacity: 0;
    }
}

#countdown {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.hidden {
    display: none;
}

/* Success Screen */
.success-icon {
    width: 120px;
    height: 120px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.success-icon svg {
    width: 64px;
    height: 64px;
    fill: currentColor;
}

#completion-screen h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

#final-stats {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

/* Custom Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: 1.5rem;
    border: 1px solid var(--glass-border);
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-actions .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    min-width: 120px;
}

#modal-confirm {
    background-color: var(--danger-color);
}

#modal-confirm:hover {
    background-color: #dc2626;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .display {
        font-size: 20vw;
    }

    input[type="number"] {
        width: 100px;
        font-size: 2rem;
    }

    .icon-btn {
        width: 56px;
        height: 56px;
    }

    .icon-btn svg {
        width: 24px;
        height: 24px;
    }

    .top-nav {
        padding: 1rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    .lang-toggle {
        padding: 3px;
    }

    .lang-btn {
        padding: 5px 10px;
        font-size: 0.7rem;
    }

    .hero {
        padding: 8rem 1.5rem 3rem;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.125rem;
    }

    .big-btn {
        padding: 1.25rem 3rem;
        font-size: 1.25rem;
    }

    .animated-timer {
        width: 200px;
        height: 200px;
    }

    .modal-content {
        padding: 2rem;
    }

    .features-section h2,
    .about-section h2,
    .contact-section h2 {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card h3 {
        font-size: 1.25rem;
    }

    .about-content p {
        font-size: 1.125rem;
    }

    .contact-intro {
        font-size: 1.125rem;
    }

    /* Mobile Navigation */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-color);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        border-top: 1px solid var(--glass-border);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-menu a {
        font-size: 1.25rem;
    }

    .page-section h1 {
        font-size: 2.5rem;
    }

    .page-section h2 {
        font-size: 1.75rem;
    }
}