/* Style Sheet for Practicals Coming Soon Page */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik+80s+Fade&family=Rubik+Marker+Hatch&family=Shojumaru&family=Vampiro+One&display=swap');


:root {
    --primary-color: #8B0000;
    /* Dark Red */
    --secondary-color: #1F3B64;
    /* Navy Blue */
    --background-color: #F7F7F8;
    /* Very Light Grey */
    --text-color: #333333;
    --accent-color: #E63946;
    /* Red Accent */
    --success-color: #2a9d8f;
    /* Green Accent */

    --card-bg: rgba(255, 255, 255, 0.75);
    --card-border: 1px solid rgba(255, 255, 255, 0.45);
    --card-shadow: 0 8px 30px 0 rgba(31, 38, 135, 0.03);
    --glass-blur: 12px;

    --logo-height: 110px;
    /* Scalable base height for logo */
}

/* Base resets & layouts */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    height: 100%;
    scroll-behavior: smooth;
    font-family: 'Manrope', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    opacity: 0;
    animation: pageFadeIn 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* Atmospheric Background Blur Circles & Animations */
.bg-glow-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -10;
    overflow: hidden;
    pointer-events: none;
}

.bg-glow-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.bg-glow-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.05;
    transition: transform 0.2s ease-out;
}

.bg-glow-1 {
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 80%);
    top: -15%;
    right: -10%;
}

.bg-glow-2 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 80%);
    bottom: -20%;
    left: -15%;
}

.bg-glow-3 {
    width: 30vw;
    height: 30vw;
    background: radial-gradient(circle, var(--accent-color) 0%, transparent 80%);
    top: 40%;
    left: 30%;
    opacity: 0.03;
}

/* Fluid backdrop bubble animations */
@keyframes liquidGlow1 {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(6vw, 8vh) scale(1.1); }
    66% { transform: translate(-4vw, 4vh) scale(0.95); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes liquidGlow2 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-8vw, -6vh) scale(1.15); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes liquidGlow3 {
    0% { transform: translate(0, 0) scale(1); }
    40% { transform: translate(4vw, -8vh) scale(0.9); }
    80% { transform: translate(-4vw, 6vh) scale(1.1); }
    100% { transform: translate(0, 0) scale(1); }
}

.bg-glow-animate-1 {
    animation: liquidGlow1 22s ease-in-out infinite;
}

.bg-glow-animate-2 {
    animation: liquidGlow2 28s ease-in-out infinite;
}

.bg-glow-animate-3 {
    animation: liquidGlow3 19s ease-in-out infinite;
}

/* Animated gradient micro-pattern overlay */
.bg-pattern-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -9;
    pointer-events: none;
    background-image: radial-gradient(rgba(31, 59, 100, 0.08) 1.5px, transparent 1.5px);
    background-size: 24px 24px;
    opacity: 0.85;
    animation: movePattern 45s linear infinite;
}

/* Gradient overlay on top of the dots */
.bg-pattern-layer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.035) 0%, rgba(31, 59, 100, 0.035) 50%, rgba(139, 0, 0, 0.035) 100%);
    background-size: 200% 200%;
    animation: shiftPatternGradient 15s ease infinite;
}

@keyframes movePattern {
    0% { background-position: 0 0; }
    100% { background-position: 24px 24px; }
}

@keyframes shiftPatternGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Layout container styling */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2.5rem 1.5rem;
    width: 100%;
}

.content-wrapper {
    width: 100%;
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Header & Logo styling */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2.5rem;
}

.logo-container {
    position: relative;
    display: inline-block;
    padding: 1rem 2rem;
    margin-bottom: 0.75rem;
}

/* Subtle glowing pulse behind the logo */
.logo-glow-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 260px;
    height: 90px;
    background: radial-gradient(circle, rgba(139, 0, 0, 0.06) 0%, rgba(31, 59, 100, 0.03) 60%, transparent 100%);
    transform: translate(-50%, -50%) scale(1);
    border-radius: 50%;
    z-index: -1;
    filter: blur(15px);
    animation: glowPulse 5s ease-in-out infinite alternate;
}

@keyframes glowPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.92);
        opacity: 0.7;
    }

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

/* Logo letter container row */
.logo-letters-row {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0;
    height: var(--logo-height);
    flex-wrap: nowrap; /* Prevent wrapping onto multiple lines on small viewports */
}

/* Individual wrapped letter span */
.logo-letter-span {
    display: inline-block;
    cursor: pointer;
    position: relative;
    height: 100%;
    transition: filter 0.3s ease;
}

.logo-letter-span:hover {
    filter: drop-shadow(0 4px 8px rgba(31, 59, 100, 0.15));
}

.logo-letter-img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: var(--logo-height);
    width: var(--logo-height);
    /* Forces square aspect ratio of the raw crop */
    max-width: none;
    object-fit: contain;
    display: block;
    pointer-events: none;
    transform-origin: bottom center;
}

.char-1 {
    width: calc(var(--logo-height) * 0.52);
}

/* p */
.char-2 {
    width: calc(var(--logo-height) * 0.4);
}

/* r */
.char-3 {
    width: calc(var(--logo-height) * 0.4);
}

/* a (with cap) */
.char-4 {
    width: calc(var(--logo-height) * 0.6);
}

/* c */
.char-5 {
    width: calc(var(--logo-height) * 0.3);
}

/* t */
.char-6 {
    width: calc(var(--logo-height) * 0.3);
}

/* i (with cube) */
.char-7 {
    width: calc(var(--logo-height) * 0.4);
}

/* c */
.char-8 {
    width: calc(var(--logo-height) * 0.6);
}

/* a */
.char-9 {
    width: calc(var(--logo-height) * 0.2);
}

/* l */
.char-10 {
    width: calc(var(--logo-height) * 0.5);
}

/* s */
.char-11 {
    width: calc(var(--logo-height) * 0.2);
}

/* . */
.char-11 .logo-letter-img {
    transform: translate(-50%, calc(var(--logo-height) * 0.2));
    /* Shift dot down on Y-axis */
}

/* Mascot Spring Jump animation */
@keyframes letterSpringJump {
    0% {
        transform: translateY(0) scale(1) rotate(0deg);
    }

    15% {
        transform: translateY(4px) scale(1.05, 0.9) rotate(0deg);
        /* Squish */
    }

    40% {
        transform: translateY(-24px) scale(0.96, 1.08) rotate(6deg);
        /* Stretch & Rotate */
    }

    60% {
        transform: translateY(2px) scale(1.02, 0.97) rotate(-2deg);
        /* Bounce down */
    }

    75% {
        transform: translateY(-4px) scale(0.99, 1.01) rotate(1deg);
        /* Small bounce up */
    }

    90% {
        transform: translateY(0.5px) scale(1, 0.99) rotate(0deg);
    }

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

.logo-letter-span.animate-jump {
    animation: letterSpringJump 0.75s cubic-bezier(0.25, 0.8, 0.25, 1.1) forwards;
}

/* Mascot hover effect */
.logo-letter-span:hover {
    animation: letterSpringJump 0.65s cubic-bezier(0.25, 0.8, 0.25, 1.1) both;
}

/* Tagline styling */
.tagline-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.25em;
    color: #4a5568;
    text-transform: uppercase;
    margin-top: -31px;
    opacity: 0.9;
}

/* Main typography titles */
.hero-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(8rem, 12vw, 14rem);
    color: rgba(31, 59, 100, 0.08);
    -webkit-text-stroke: 1px rgba(31, 59, 100, 0.18);
    letter-spacing: 0.15em;
    line-height: 0.9;
    margin: 0;
    text-transform: uppercase;
    text-align: center;
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -35%);
    z-index: -1;
    pointer-events: none;
    user-select: none;
}

.hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 1.25rem;
    color: #5a6e85;
    margin-bottom: 3rem;
    animation: slideUpFade 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) 0.3s both;
}

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

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

/* Countdown Grid styling */
.countdown-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.6rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 3rem;
    perspective: 1000px;
    animation: slideUpFade 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) 0.4s both;
    justify-content: center;
    align-items: center;
    padding: 0 0.35rem;
}

.timer-card {
    flex: 1 1 120px;
    min-width: 100px;
    max-width: 160px;
    background: var(--card-bg);
    border: var(--card-border);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: 20px;
    padding: 1.35rem 0.85rem;
    transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.25s ease;
    transform-style: preserve-3d;
}

.timer-card .flip-container {
    margin-bottom: 0.75rem;
}


.timer-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.3) 100%);
    transform: skewX(-25deg);
    transition: 0.75s;
    pointer-events: none;
}

.timer-card:hover::before {
    left: 150%;
}

.timer-card:hover {
    transform: translateY(-8px) translateZ(10px);
    box-shadow: 0 16px 40px rgba(31, 38, 135, 0.08);
}

.timer-number {
    font-size: 3.25rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1.1;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.timer-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--secondary-color);
    opacity: 0.8;
}

@media (min-width: 1200px) {
    .countdown-container {
        gap: 0.35rem;
        max-width: 920px;
        padding: 0 0.25rem;
    }

    .timer-card {
        flex: 1 1 150px;
        min-width: 130px;
        max-width: 180px;
        padding: 1.7rem 0.9rem;
    }

    .timer-number {
        font-size: 4rem;
    }

    .timer-label {
        font-size: 0.78rem;
        letter-spacing: 0.16em;
    }
}

/* Subscription Form styling */
.subscription-container {
    max-width: 480px;
    margin: 0 auto;
    animation: slideUpFade 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) 0.5s both;
}

.subscription-wrapper {
    position: relative;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(31, 38, 135, 0.03);
}

.subscription-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    padding: 0.95rem 4.5rem 0.95rem 1.75rem;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.subscription-input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.subscription-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(139, 0, 0, 0.12), 0 8px 25px rgba(139, 0, 0, 0.06);
}

.subscription-btn {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1.25);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.25);
    overflow: hidden;
}

.subscription-btn i {
    font-size: 1.15rem;
    transition: transform 0.25s ease;
}

.subscription-btn:hover {
    background-color: #a30000;
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 6px 18px rgba(139, 0, 0, 0.35);
}

.subscription-btn:hover i {
    transform: translate(2px, -2px) scale(1.05);
}

.subscription-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* Button ripple container */
.ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: scale(0);
    animation: buttonRipple 0.55s ease-out;
    pointer-events: none;
}

@keyframes buttonRipple {
    to {
        transform: scale(3.5);
        opacity: 0;
    }
}

/* Inline error styles */
.error-msg {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 500;
    text-align: left;
    margin-top: 0.55rem;
    padding-left: 1.75rem;
    display: none;
    align-items: center;
    gap: 0.35rem;
    animation: errorSlideIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
}

@keyframes errorSlideIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

/* Live Announcement Styling */
.live-announcement {
    grid-column: span 4;
    font-family: 'Poppins', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    padding: 2rem;
    background: var(--card-bg);
    border: var(--card-border);
    box-shadow: var(--card-shadow);
    backdrop-filter: blur(var(--glass-blur));
    border-radius: 20px;
    animation: pulseAnnouncement 2s infinite alternate;
}

@keyframes pulseAnnouncement {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

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

/* Success Modal Custom Styling */
.modal-backdrop-blur {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(31, 59, 100, 0.18) !important;
    transition: opacity 0.3s ease;
}

.modal-glass-content {
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 28px;
    box-shadow: 0 25px 70px rgba(31, 59, 100, 0.1);
    padding: 2.5rem 2rem;
    text-align: center;
}

.modal.fade .modal-dialog {
    transform: scale(0.9) translateY(30px);
    transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.25), opacity 0.45s ease;
    opacity: 0;
}

.modal.show .modal-dialog {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-icon-container {
    width: 84px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: rgba(42, 157, 143, 0.1);
    border-radius: 50%;
    color: var(--success-color);
    font-size: 2.75rem;
    animation: iconPop 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.25) 0.15s both;
}

@keyframes iconPop {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-glass-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.85rem;
    margin-bottom: 0.75rem;
}

.modal-glass-text {
    color: #4a5568;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-glass-btn {
    background-color: var(--secondary-color);
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.65rem 2rem;
    border-radius: 50px;
    border: none;
    transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(31, 59, 100, 0.15);
}

.modal-glass-btn:hover {
    background-color: #122846;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(31, 59, 100, 0.25);
}

.modal-glass-btn:active {
    transform: translateY(1px) scale(0.97);
}

/* Footer styling */
footer {
    width: 100%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    padding: 1.25rem 2rem;
    margin-top: auto;
    font-size: 0.85rem;
    color: #64748b;
    z-index: 10;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s ease;
    margin-left: 1.5rem;
}

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

.footer-link::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.footer-link:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Responsiveness adjustments */
@media (max-width: 768px) {
    :root {
        --logo-height: 85px;
        /* Scale logo down for tablets */
    }

    .content-wrapper {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: clamp(5rem, 12vw, 8rem);
        top: 30%;
        left: 50%;
        transform: translate(-50%, -30%);
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2.25rem;
    }

    .countdown-container {
        flex-wrap: nowrap;
        gap: 0.65rem;
        max-width: 100%;
        margin-bottom: 2.5rem;
        padding-bottom: 0.5rem;
    }

    .timer-card {
        padding: 1.5rem 0.85rem;
    }

    .timer-number {
        font-size: 2.75rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --logo-height: 60px;
        /* Scale logo down for mobile */
    }

    .content-wrapper {
        padding: 0 0.65rem;
    }

    .hero-title {
        font-size: clamp(3.5rem, 18vw, 5.5rem);
        top: 28%;
        left: 50%;
        transform: translate(-50%, -28%);
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.75rem;
    }

    .countdown-container {
        justify-content: space-between;
        gap: 0.2rem;
        margin-bottom: 2rem;
        padding: 0 0.25rem;
    }

    .timer-card {
        flex: 1 1 52px;
        min-width: 48px;
        max-width: 88px;
        padding: 0.75rem 0.35rem;
        border-radius: 14px;
    }

    .timer-number {
        font-size: 1.6rem;
    }

    .timer-label {
        font-size: 0.55rem;
        letter-spacing: 0.06em;
    }

    .subscription-input {
        padding: 0.85rem 4rem 0.85rem 1.35rem;
        font-size: 0.925rem;
    }

    .subscription-btn {
        width: 42px;
        height: 42px;
    }

    .subscription-btn i {
        font-size: 1rem;
    }

    .error-msg {
        font-size: 0.8rem;
        padding-left: 1.35rem;
    }
}

/* 3D Floating Shapes Styles */
.shapes-3d-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Positioned above background to ensure inputs are clickable */
    pointer-events: none;
    perspective: 1200px;
    overflow: hidden;
}

.shape-parallax-wrapper {
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
    pointer-events: auto; /* Enable user mouse hover */
    cursor: grab;
}

.shape-parallax-wrapper.dragging {
    cursor: grabbing;
}

.floating-shape {
    position: relative;
    cursor: grab;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out; /* Responsive real-time tracking */
}

.floating-shape.dragging {
    animation: none !important;
}

/* WebGL Canvas Overlay styling */
.three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Under main content cards, but above liquid blur layers */
    pointer-events: none; /* Let all mouse events pass through cleanly to HTML inputs */
}

/* Shape 2: Mini IDE Window */
.shape-ide {
    width: 140px;
    height: 95px;
    background: rgba(30, 30, 30, 0.95);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: 'Consolas', 'Courier New', monospace;
    animation: floatingBob 10s ease-in-out infinite alternate;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.ide-header {
    height: 22px;
    background: rgba(45, 45, 45, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    padding: 0 8px;
    justify-content: space-between;
    cursor: grab;
}

.ide-header:active {
    cursor: grabbing;
}

.ide-dots {
    display: flex;
    gap: 4px;
}

.ide-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}
.dot-r { background: #ff5f56; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #27c93f; }

.ide-title {
    font-size: 0.6rem;
    color: #858585;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.ide-editor {
    flex: 1;
    display: flex;
    padding: 4px;
    font-size: 0.65rem;
    line-height: 1.3;
    text-align: left;
}

.ide-line-numbers {
    color: #5a5a5a;
    display: flex;
    flex-direction: column;
    text-align: right;
    padding-right: 6px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    user-select: none;
}

.ide-code-area {
    flex: 1;
    padding-left: 6px;
    color: #e6db74; /* Monokai Yellow */
    outline: none;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-y: auto;
}

.shape-ide:hover {
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 255, 255, 0.05);
}

.ide-focused {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.2), 0 12px 35px rgba(0, 0, 0, 0.6) !important;
    animation: none !important; /* Stand still while typing */
}

/* Keyframe utility animations */
@keyframes floatingBob {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(3deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

/* Hide 3D graphics on small screen views for a clean mobile look */
@media (max-width: 768px) {
    .three-canvas, .shapes-3d-container {
        display: none !important;
    }
}

/* Launch Date styling below countdown */
.launch-date-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-color);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin: -1.5rem auto 3.5rem;
    animation: slideUpFade 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) 0.45s both;
}

/* Subscription Form lead line */
.subscription-lead {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: #5a6e85;
    margin-bottom: 0.75rem;
}

/* Radial backdrop glow behind logo/countdown */
.radial-glow-backdrop {
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.08) 0%, rgba(31, 59, 100, 0.03) 60%, transparent 100%);
    pointer-events: none;
    z-index: -2;
    filter: blur(50px);
    transition: transform 0.25s cubic-bezier(0.1, 0.8, 0.25, 1);
}

/* Confetti canvas overlay inside success modal */
.confetti-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 100;
    border-radius: 28px;
}

/* Green pop success check */
.modal-icon-container.success-check {
    background: rgba(46, 196, 182, 0.1);
    color: #2ec4b6;
    border: 2.5px solid rgba(46, 196, 182, 0.25);
    animation: scalePopCheck 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scalePopCheck {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    70% {
        transform: scale(1.15) rotate(10deg);
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

/* Enabled/Disabled subscription button animations */
.subscription-btn {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    background-color: #94a3b8 !important; /* Muted grey initially */
    box-shadow: none !important;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.subscription-btn.enabled {
    opacity: 1;
    cursor: pointer;
    pointer-events: auto;
    background-color: var(--primary-color) !important;
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.25) !important;
}
.subscription-btn.enabled:hover {
    background-color: #a30000 !important;
    transform: translateY(-50%) scale(1.08) !important;
    box-shadow: 0 6px 18px rgba(139, 0, 0, 0.35) !important;
}

/* Flip card mechanical horizontal line split & 3D rotation */
:root {
    --flip-w: 90px;
    --flip-h: 100px;
    --flip-half: 50px;
    --flip-fs: 3.25rem;
}
@media (max-width: 768px) {
    :root {
        --flip-w: 75px;
        --flip-h: 84px;
        --flip-half: 42px;
        --flip-fs: 2.75rem;
    }
}
@media (max-width: 480px) {
    :root {
        --flip-w: 58px;
        --flip-h: 68px;
        --flip-half: 34px;
        --flip-fs: 2.15rem;
    }
}

.timer-card {
    position: relative;
    overflow: visible;
    padding: 0 !important; /* Reset padding since flip container takes size */
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.flip-container {
    position: relative;
    width: var(--flip-w);
    height: var(--flip-h);
    margin: 0 auto 0.5rem;
    perspective: 400px;
    transform-style: preserve-3d;
}

.flip-top, .flip-bottom, .flip-card {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    font-size: var(--flip-fs);
    font-weight: 800;
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(31, 38, 135, 0.02);
}

.digit-inner {
    position: absolute;
    left: 0;
    width: 100%;
    height: var(--flip-h);
    line-height: var(--flip-h);
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.flip-top {
    top: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}
.flip-top .digit-inner {
    top: 0;
}

.flip-bottom {
    bottom: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
}
.flip-bottom .digit-inner {
    top: calc(-1 * var(--flip-half));
}

.flip-card {
    top: 0;
    transform-origin: bottom center;
    transform-style: preserve-3d;
    z-index: 10;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

.flip-card-front, .flip-card-back {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
}

.flip-card-front {
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}
.flip-card-front .digit-inner {
    top: 0;
}

.flip-card-back {
    background: rgba(248, 249, 250, 0.88);
    transform: rotateX(180deg);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.1s ease;
}
.flip-card-back .digit-inner {
    top: calc(-1 * var(--flip-half));
}

.flip-container.flip-it .flip-card-back {
    opacity: 1;
    visibility: visible;
}

/* Hinge Shadow crease Line */
.flip-container::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: calc(50% - 1px);
    height: 2px;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12);
    z-index: 20;
    pointer-events: none;
}

/* Flip Trigger Active Animation */
.flip-container.flip-it .flip-card {
    transform: rotateX(-180deg);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Footer layout updates & interactive follow-glow */
footer {
    position: relative;
    overflow: hidden;
}
.footer-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(139, 0, 0, 0.07) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.4s ease, transform 0.15s ease-out;
}
footer:hover .footer-glow {
    opacity: 1;
}
.footer-branding-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    z-index: 5;
}
.footer-text-brand {
    font-weight: 700;
    color: var(--secondary-color);
}
.footer-made-by {
    font-size: 0.78rem;
    color: #94a3b8;
    font-weight: 500;
}
.footer-inner {
    z-index: 5;
}

/* Splash Screen Overlay styles */
.splash-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 1;
    overflow: hidden;
}

.splash-fade-out {
    opacity: 0;
    transform: scale(1.05);
    pointer-events: none;
}

.splash-logo-container {
    transform: translateY(-20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Micro-responsive media query for very small viewports (e.g. mobile 320px) */
@media (max-width: 360px) {
    :root {
        --logo-height: 48px;
        --flip-w: 48px;
        --flip-h: 58px;
        --flip-half: 29px;
        --flip-fs: 1.75rem;
    }
    
    .logo-container {
        padding: 0.5rem 1rem;
    }
    
    .tagline-text {
        font-size: 0.65rem;
        margin-top: -5px !important;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }
    
    .countdown-container {
        gap: 0.15rem;
        padding: 0 0.2rem;
    }
    
    .timer-card {
        flex: 1 1 45px;
        min-width: 42px;
        max-width: 80px;
        padding: 0.65rem 0.3rem;
    }
    
    .timer-number {
        font-size: 1.4rem;
    }
    
    .timer-label {
        font-size: 0.5rem;
        letter-spacing: 0.05em;
    }
    
    .launch-date-text {
        font-size: 0.75rem;
        margin: -1rem auto 2rem;
    }
    
    .subscription-input {
        padding: 0.75rem 3.5rem 0.75rem 1.15rem;
        font-size: 0.85rem;
    }
    
    .subscription-btn {
        width: 36px;
        height: 36px;
        right: 5px;
    }
    
    .footer-inner {
        font-size: 0.75rem;
    }
}
