/* =========================================
   NANO SPRINGS - Under Construction Page
   Color Palette: Dark + Crimson Red
   ========================================= */

/* CSS Custom Properties */
:root {
    --primary-red: #c8102e;
    --primary-red-light: #e63950;
    --primary-red-dark: #8b0a1e;
    --primary-red-glow: rgba(200, 16, 46, 0.4);
    --accent-gold: #d4a853;
    --bg-dark: #0a0a0f;
    --bg-dark-secondary: #111118;
    --bg-card: rgba(20, 20, 30, 0.65);
    --bg-card-border: rgba(200, 16, 46, 0.15);
    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b80;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.12);
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-secondary);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Particle Canvas */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Background Overlay */
.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0.18;
    z-index: 0;
    filter: blur(2px) saturate(0.7);
}

.bg-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(200, 16, 46, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(200, 16, 46, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(10, 10, 15, 0.9) 0%, transparent 70%);
}

/* Language Switcher */
.lang-switcher {
    position: fixed;
    top: 28px;
    right: 32px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 6px 16px;
    animation: fadeInDown 0.8s ease-out 0.5s both;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    color: var(--text-primary);
    background: var(--primary-red);
    box-shadow: 0 0 20px var(--primary-red-glow);
}

.lang-divider {
    color: var(--text-muted);
    font-size: 0.75rem;
    opacity: 0.4;
}

/* Main Container */
.main-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 60px 24px 40px;
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
}

/* Logo Section */
.logo-section {
    position: relative;
    margin-bottom: 16px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary-red-glow) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: pulseGlow 3s ease-in-out infinite;
}

.logo-img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    background: var(--bg-dark);
    border: 2px solid var(--bg-card-border);
    box-shadow:
        0 0 30px rgba(200, 16, 46, 0.3),
        0 0 60px rgba(200, 16, 46, 0.1);
    filter: drop-shadow(0 0 30px rgba(200, 16, 46, 0.3));
    transition: var(--transition-smooth);
}

.logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 40px rgba(200, 16, 46, 0.5));
}

/* Brand Name */
.brand-name {
    text-align: center;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.brand-name h1 {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 12px;
    line-height: 1.2;
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-nano {
    color: var(--text-primary);
    text-shadow: 0 0 40px rgba(240, 240, 245, 0.1);
}

.brand-springs {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-light) 50%, var(--primary-red) 100%);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
}

/* Glassmorphism Card */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--bg-card-border);
    border-radius: 24px;
    padding: 48px 40px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.6s both;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(200, 16, 46, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    animation: shimmer 4s ease-in-out infinite;
}

.glass-card-sm {
    background: var(--bg-card);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--bg-card-border);
    border-radius: 20px;
    padding: 28px 32px;
    width: 100%;
    text-align: center;
    margin-top: 20px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Factory Gallery */
.factory-gallery {
    width: 100%;
    margin-top: 20px;
    animation: fadeInUp 0.8s ease-out 0.9s both;
}

.gallery-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.gallery-title svg {
    color: var(--primary-red);
}

.gallery-slider {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(200, 16, 46, 0.05);
}

.gallery-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.gallery-slide.active {
    opacity: 1;
    transform: scale(1);
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 24px 16px;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.85) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.slide-caption {
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-primary);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.gallery-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 14px;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(10px);
}

.gallery-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.gallery-btn:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
    box-shadow: 0 4px 15px var(--primary-red-glow);
}

.gallery-dots {
    display: flex;
    gap: 8px;
}

.gallery-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--glass-highlight);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0;
}

.gallery-dot.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    box-shadow: 0 0 10px var(--primary-red-glow);
    transform: scale(1.2);
}

/* Construction Icon */
.construction-icon {
    margin-bottom: 24px;
}

.rotating-circle {
    animation: rotate 15s linear infinite;
    transform-origin: 30px 30px;
}

.pulse-star {
    animation: pulseStar 2s ease-in-out infinite;
    transform-origin: 30px 30px;
}

/* Main Heading */
.main-heading {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 1px;
}

/* Sub Text */
.sub-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto 36px;
    font-weight: 400;
}

/* Countdown Timer */
.countdown-section {
    margin-bottom: 32px;
}

.countdown-label {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-red-light);
    margin-bottom: 20px;
}

.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.time-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.time-value {
    font-family: var(--font-primary);
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    min-width: 72px;
    padding: 16px 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.time-value::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-red), transparent);
    opacity: 0.5;
}

.time-unit {
    font-family: var(--font-primary);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.time-separator {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 300;
    color: var(--primary-red);
    padding-bottom: 28px;
    animation: blink 1s ease-in-out infinite;
}

/* Progress Bar */
.progress-section {
    width: 100%;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.progress-percent {
    color: var(--primary-red-light);
    font-weight: 700;
    font-family: var(--font-primary);
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--glass-bg);
    border-radius: 100px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-red-dark), var(--primary-red), var(--primary-red-light));
    border-radius: 100px;
    position: relative;
    transition: width 2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 20px var(--primary-red-glow);
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShimmer 2s ease-in-out infinite;
}

/* Notification Section */
.notify-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
    font-weight: 400;
}

.notify-form {
    width: 100%;
}

.input-wrapper {
    display: flex;
    gap: 10px;
    width: 100%;
}

.email-input {
    flex: 1;
    padding: 14px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    color: var(--text-primary);
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition-smooth);
}

.email-input::placeholder {
    color: var(--text-muted);
}

.email-input:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 20px rgba(200, 16, 46, 0.15);
    background: rgba(255, 255, 255, 0.06);
}

.notify-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-light) 100%);
    border: none;
    border-radius: 14px;
    color: white;
    font-family: var(--font-primary);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.notify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--primary-red-glow);
}

.notify-btn:active {
    transform: translateY(0);
}

.success-message {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    color: #4ade80;
    font-size: 0.9rem;
    font-weight: 500;
    animation: fadeInUp 0.5s ease-out;
}

.success-message.show {
    display: flex;
}

/* Contact Section */
.contact-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
    animation: fadeInUp 0.8s ease-out 1s both;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.contact-item:hover {
    color: var(--primary-red-light);
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.contact-item a:hover {
    color: var(--primary-red-light);
}

.contact-item svg {
    color: var(--primary-red);
    flex-shrink: 0;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 16px;
    margin-top: 28px;
    animation: fadeInUp 0.8s ease-out 1.2s both;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: var(--primary-red);
    border-color: var(--primary-red);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px var(--primary-red-glow);
}

.social-link.whatsapp:hover {
    background: #25D366;
    border-color: #25D366;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

/* Footer */
.footer {
    margin-top: 40px;
    text-align: center;
    animation: fadeInUp 0.8s ease-out 1.4s both;
}

.footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* Floating Springs */
.floating-springs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.spring {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(200, 16, 46, 0.08);
    border-radius: 50%;
    animation: floatSpring 20s linear infinite;
}

.spring::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 1px solid rgba(200, 16, 46, 0.12);
    border-radius: 50%;
}

.spring-1 {
    left: 5%;
    top: 20%;
    animation-duration: 25s;
    animation-delay: 0s;
    width: 50px;
    height: 50px;
}

.spring-2 {
    left: 85%;
    top: 40%;
    animation-duration: 18s;
    animation-delay: -5s;
    width: 30px;
    height: 30px;
}

.spring-3 {
    left: 15%;
    top: 70%;
    animation-duration: 22s;
    animation-delay: -3s;
    width: 45px;
    height: 45px;
}

.spring-4 {
    left: 70%;
    top: 10%;
    animation-duration: 28s;
    animation-delay: -8s;
    width: 35px;
    height: 35px;
}

.spring-5 {
    left: 90%;
    top: 75%;
    animation-duration: 20s;
    animation-delay: -12s;
    width: 55px;
    height: 55px;
}

/* =========================================
   ANIMATIONS
   ========================================= */

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

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.15);
    }
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

@keyframes shimmer {

    0%,
    100% {
        transform: translateX(-50%);
    }

    50% {
        transform: translateX(50%);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes pulseStar {

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

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.2;
    }
}

@keyframes progressShimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes floatSpring {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.6;
    }

    90% {
        opacity: 0.6;
    }

    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

@media (max-width: 768px) {
    .main-container {
        padding: 50px 16px 30px;
    }

    .brand-name h1 {
        font-size: 2rem;
        letter-spacing: 6px;
        gap: 10px;
    }

    .glass-card {
        padding: 36px 24px;
        border-radius: 20px;
    }

    .main-heading {
        font-size: 1.4rem;
    }

    .sub-text {
        font-size: 0.9rem;
    }

    .time-value {
        font-size: 2rem;
        min-width: 56px;
        padding: 12px 8px;
    }

    .time-separator {
        font-size: 1.5rem;
        padding-bottom: 24px;
    }

    .input-wrapper {
        flex-direction: column;
    }

    .notify-btn {
        justify-content: center;
    }

    .contact-section {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .logo-img {
        width: 100px;
        height: 100px;
    }

    .lang-switcher {
        top: 16px;
        right: 16px;
    }
}

@media (max-width: 400px) {
    .brand-name h1 {
        font-size: 1.6rem;
        letter-spacing: 4px;
        flex-direction: column;
        gap: 4px;
    }

    .time-value {
        font-size: 1.6rem;
        min-width: 48px;
        padding: 10px 6px;
        border-radius: 12px;
    }

    .countdown-timer {
        gap: 6px;
    }

    .time-unit {
        font-size: 0.5rem;
    }

    .glass-card {
        padding: 28px 18px;
    }

    .glass-card-sm {
        padding: 22px 18px;
    }
}