@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --bg-dark: #020617;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    background-image: linear-gradient(rgba(2, 6, 23, 0.8), rgba(2, 6, 23, 0.8)), url('background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

/* Sound Unlock Overlay */
#sound-unlock {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 6, 23, 0.98);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(20px);
    transition: opacity 0.8s ease;
}

#activate-sound {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1.5rem 3.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 100px;
    cursor: pointer;
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    letter-spacing: 0.05em;
}

#activate-sound:hover {
    transform: scale(1.05);
    background: var(--primary-hover);
    box-shadow: 0 0 60px rgba(59, 130, 246, 0.6);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 100%);
    pointer-events: none;
    z-index: 0;
}

.glowing-wires {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
}

.wire {
    fill: none;
    stroke: var(--primary);
    stroke-width: 1.5;
    stroke-dasharray: 300 1200;
    filter: drop-shadow(0 0 10px var(--primary));
    animation: wireFlow 7s linear infinite;
    opacity: 0;
}

@keyframes wireFlow {
    0% {
        stroke-dashoffset: 1500;
        opacity: 0;
    }

    20% {
        opacity: 0.6;
    }

    80% {
        opacity: 0.6;
    }

    100% {
        stroke-dashoffset: 0;
        opacity: 0;
    }
}

.container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 90%;
    text-align: center;
}

/* Badges */
.badge-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    animation: fadeInScale 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.badge {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

/* Typography */
h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h1 span {
    background: linear-gradient(to right, #60a5fa, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 3.5rem;
}

/* Countdown */
#countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 4rem;
}

.countdown-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    padding: 2rem 1rem;
    border-radius: 20px;
}

.countdown-number {
    font-size: 3rem;
    font-weight: 700;
    color: white;
}

/* Signup Form */
.signup-container {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    padding: 0.5rem;
    border-radius: 100px;
    display: flex;
}

.signup-container input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    color: white;
    outline: none;
}

.signup-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
}

/* LIVE CSS ROBOT */
#ai-bot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bot-hidden {
    transform: translateX(200%);
    opacity: 0;
}

.bot-visible {
    transform: translateX(0);
    opacity: 1;
}

.robot-face {
    width: 180px;
    height: 180px;
    perspective: 1000px;
}

.robot-head {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc, #cbd5e1);
    border-radius: 40px 40px 60px 60px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), inset 5px 5px 15px #fff;
    animation: robotFloat 4s ease-in-out infinite;
}

.robot-ears {
    position: absolute;
    width: 120%;
    height: 40%;
    background: #1e293b;
    top: 30%;
    left: -10%;
    border-radius: 20px;
    z-index: -1;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.robot-visor {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 80%;
    height: 60%;
    background: #0f172a;
    border-radius: 30px;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.robot-eyes {
    display: flex;
    gap: 30px;
    margin-bottom: 10px;
}

.eye {
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 15px #3b82f6;
    animation: blinking 4s infinite;
}

.robot-mouth {
    width: 30px;
    height: 4px;
    background: #3b82f6;
    border-radius: 10px;
    box-shadow: 0 0 10px #3b82f6;
    transition: all 0.2s;
}

.robot-mouth.speaking {
    animation: mouthTalk 0.15s infinite alternate;
}

@keyframes robotFloat {

    0%,
    100% {
        transform: translateY(0) rotate(2deg);
    }

    50% {
        transform: translateY(-15px) rotate(-2deg);
    }
}

@keyframes blinking {

    0%,
    95%,
    100% {
        transform: scaleY(1);
    }

    97.5% {
        transform: scaleY(0);
    }
}

@keyframes mouthTalk {
    from {
        height: 4px;
        border-radius: 10px;
    }

    to {
        height: 20px;
        border-radius: 50%;
    }
}

/* Visualizer at Bottom of Bot */
.visualizer {
    display: none;
    gap: 4px;
    height: 20px;
    align-items: flex-end;
    margin-top: 15px;
}

.visualizer.active {
    display: flex;
}

.bar {
    width: 4px;
    background: var(--primary);
    animation: equalize 0.8s infinite;
}

@keyframes equalize {

    0%,
    100% {
        height: 5px;
    }

    50% {
        height: 20px;
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

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

/* Footer & Social Links */
footer {
    margin-top: auto;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-links a {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    color: var(--text-muted);
    font-size: 1.6rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.social-links a:hover {
    transform: translateY(-8px) scale(1.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

.social-links a.linkedin:hover {
    background: linear-gradient(135deg, #0077b5, #00a0dc);
    box-shadow: 0 10px 25px rgba(0, 119, 181, 0.5);
    border-color: #0077b5;
}

.social-links a.facebook:hover {
    background: linear-gradient(135deg, #1877f2, #3b5998);
    box-shadow: 0 10px 25px rgba(24, 119, 242, 0.5);
    border-color: #1877f2;
}

.copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 0.1em;
    font-weight: 300;
    text-transform: uppercase;
}

/* ============================================
   RESPONSIVE DESIGN - MEDIA QUERIES
   ============================================ */

/* Tablet Devices (768px and below) */
@media screen and (max-width: 768px) {
    .container {
        width: 95%;
        padding: 0 1rem;
    }

    h1 {
        font-size: clamp(2rem, 7vw, 3.5rem);
        margin-bottom: 1.2rem;
    }

    .subtitle {
        font-size: 1rem;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }

    /* Countdown - 2 columns on tablet */
    #countdown {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        margin-bottom: 3rem;
    }

    .countdown-item {
        padding: 1.5rem 0.8rem;
    }

    .countdown-number {
        font-size: 2.5rem;
    }

    .countdown-label {
        font-size: 0.85rem;
    }

    /* AI Robot - Smaller and repositioned */
    #ai-bot-container {
        bottom: 20px;
        right: 20px;
    }

    .robot-face {
        width: 140px;
        height: 140px;
    }

    /* Sound Activation Button */
    #activate-sound {
        padding: 1.2rem 2.5rem;
        font-size: 1rem;
        gap: 0.8rem;
    }

    /* Footer */
    footer {
        padding: 2rem 1.5rem;
    }

    .social-links a {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }

    .copyright {
        font-size: 0.8rem;
    }
}

/* Mobile Devices (480px and below) */
@media screen and (max-width: 480px) {
    body {
        padding: 1rem 0;
    }

    .container {
        width: 100%;
        padding: 0 1rem;
    }

    h1 {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 2rem;
        line-height: 1.5;
    }

    /* Badge Container - Stack vertically or wrap */
    .badge-container {
        flex-wrap: wrap;
        gap: 0.6rem;
        margin-bottom: 2rem;
    }

    .badge {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    /* Countdown - Single column on mobile */
    #countdown {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
        margin-bottom: 2.5rem;
    }

    .countdown-item {
        padding: 1.2rem 0.6rem;
        border-radius: 15px;
    }

    .countdown-number {
        font-size: 2rem;
        display: block;
    }

    .countdown-label {
        font-size: 0.75rem;
        display: block;
        margin-top: 0.3rem;
    }

    /* AI Robot - Even smaller on mobile */
    #ai-bot-container {
        bottom: 15px;
        right: 15px;
    }

    .robot-face {
        width: 100px;
        height: 100px;
    }

    .robot-head {
        border-radius: 30px 30px 40px 40px;
    }

    .robot-visor {
        border-radius: 20px;
    }

    .robot-eyes {
        gap: 20px;
    }

    .eye {
        width: 15px;
        height: 15px;
    }

    .robot-mouth {
        width: 20px;
        height: 3px;
    }

    .visualizer {
        height: 15px;
        margin-top: 10px;
    }

    .bar {
        width: 3px;
    }

    /* Sound Activation Button - Full width on small screens */
    #activate-sound {
        padding: 1rem 2rem;
        font-size: 0.9rem;
        gap: 0.6rem;
        white-space: normal;
        text-align: center;
        max-width: 90%;
    }

    #activate-sound i {
        font-size: 1.2rem;
    }

    /* Footer */
    footer {
        padding: 2rem 1rem;
    }

    .social-links {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        border-radius: 12px;
    }

    .copyright {
        font-size: 0.75rem;
        letter-spacing: 0.05em;
    }

    /* Glowing wires - Reduce complexity on mobile */
    .glowing-wires {
        opacity: 0.5;
    }

    .wire {
        stroke-width: 1;
    }
}

/* Extra Small Devices (360px and below) */
@media screen and (max-width: 360px) {
    h1 {
        font-size: 1.6rem;
    }

    .subtitle {
        font-size: 0.85rem;
    }

    .countdown-number {
        font-size: 1.8rem;
    }

    .countdown-label {
        font-size: 0.7rem;
    }

    #activate-sound {
        padding: 0.9rem 1.5rem;
        font-size: 0.85rem;
    }

    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* Landscape Mode on Mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    body {
        min-height: auto;
    }

    .container {
        margin: 2rem auto;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }

    .subtitle {
        margin-bottom: 1.5rem;
    }

    #countdown {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .countdown-item {
        padding: 1rem 0.5rem;
    }

    .countdown-number {
        font-size: 1.5rem;
    }

    .countdown-label {
        font-size: 0.7rem;
    }

    #ai-bot-container {
        bottom: 10px;
        right: 10px;
    }

    .robot-face {
        width: 80px;
        height: 80px;
    }

    footer {
        padding: 1.5rem 1rem;
    }
}