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

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

body {
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    height: 100%;
    background: linear-gradient(-45deg, #e06000, #c30046, #d89b00, #c52e00);
    background-size: 400% 400%;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    animation: gradientBG 15s ease infinite;
}

.content {
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 3rem;
    z-index: 10;
    animation: fadeIn 1.2s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Loader cube */
.loader {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    transform-style: preserve-3d;
    perspective: 800px;
}

.loader-cube {
    position: absolute;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: cubeRotate 4s ease-in-out infinite;
}

.loader-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 120, 0, 0.5) inset;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: visible;
    transition: all 0.5s ease;
}

.loader-face:nth-child(1) {
    transform: translateZ(40px);
    background: linear-gradient(45deg, #ff7e00, #ff3d00);
    opacity: 0.8;
}

.loader-face:nth-child(2) {
    transform: rotateY(180deg) translateZ(40px);
    background: linear-gradient(45deg, #ff0061, #ff7e00);
    opacity: 0.8;
}

.loader-face:nth-child(3) {
    transform: rotateY(90deg) translateZ(40px);
    background: linear-gradient(45deg, #ffb300, #ff7e00);
    opacity: 0.8;
}

.loader-face:nth-child(4) {
    transform: rotateY(-90deg) translateZ(40px);
    background: linear-gradient(45deg, #ff3d00, #ff0061);
    opacity: 0.8;
}

.loader-face:nth-child(5) {
    transform: rotateX(90deg) translateZ(40px);
    background: linear-gradient(45deg, #ff7e00, #ffb300);
    opacity: 0.8;
}

.loader-face:nth-child(6) {
    transform: rotateX(-90deg) translateZ(40px);
    background: linear-gradient(45deg, #ff0061, #ff3d00);
    opacity: 0.8;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    animation: float 4s ease-in-out infinite, glow 2s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 10px rgba(255, 120, 0, 0.5));
    letter-spacing: 4px;
    color: #f8e8d4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
    text-align: center;
    text-transform: uppercase;
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 400;
    margin-bottom: 2rem;
    color: #ffe0cc;
    opacity: 0.8;
    letter-spacing: 1px;
}

/* Container for typing text to handle overflow better */
.typing-text-container {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    margin: 0 auto 2rem;
    overflow: hidden;
    padding: 0 10px;
    min-height: 60px;
}

.typing-text {
    position: relative;
    font-size: clamp(1rem, 3vw, 1.4rem);
    font-weight: 300;
    letter-spacing: 0.15em;
    animation: float 5s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 120, 0, 0.5));
    color: #ffe0cc;
    line-height: 1.5;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
    text-align: center;
}

/* Cursor styling */
#typed-text {
    display: inline;
}

#cursor {
    display: inline-block;
    font-weight: 400;
    color: #ffe0cc;
    margin-left: -2px;
    position: relative;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: float-particle 15s infinite;
    opacity: 0.6;
    filter: blur(1px);
    box-shadow: 0 0 15px rgba(255, 165, 0, 0.6);
}

/* Countdown styles */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    padding: 1rem;
    min-width: 80px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.countdown-item span:first-child {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffe0cc;
}

.countdown-label {
    font-size: 0.8rem;
    color: #ffe0cc;
    opacity: 0.8;
    margin-top: 0.3rem;
}

/* Social icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-icon {
    color: #ffe0cc;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.social-icon:hover {
    opacity: 1;
    transform: translateY(-5px);
    filter: drop-shadow(0 0 10px rgba(255, 120, 0, 0.8));
}

/* Notify me form */
.notify-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.notify-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: none;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffe0cc;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.notify-input::placeholder {
    color: rgba(255, 224, 204, 0.6);
}

.notify-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 120, 0, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.message-input {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffe0cc;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    min-height: 100px;
    resize: vertical;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.message-input::placeholder {
    color: rgba(255, 224, 204, 0.6);
}

.message-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 120, 0, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.notify-button {
    background: linear-gradient(45deg, #ff7e00, #ff3d00);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
}

.notify-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #ff3d00, #ff7e00);
}

@keyframes cubeRotate {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }
    25% {
        transform: rotateX(90deg) rotateY(90deg);
    }
    50% {
        transform: rotateX(180deg) rotateY(180deg);
    }
    75% {
        transform: rotateX(270deg) rotateY(270deg);
    }
    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

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

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

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0px);
    }
}

@keyframes glow {
    0% {
        filter: drop-shadow(0 0 5px rgba(255, 224, 204, 0.7));
    }
    100% {
        filter: drop-shadow(0 0 20px rgba(255, 165, 0, 0.9));
    }
}

@keyframes float-particle {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0.2;
    }
    25% {
        opacity: 0.8;
    }
    50% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
        opacity: 0.4;
    }
    75% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(0) translateX(0) rotate(720deg);
        opacity: 0.2;
    }
}

/* Button click effect */
.notify-button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Focus styles for accessibility */
:focus {
    outline: 2px solid rgba(255, 120, 0, 0.7);
    outline-offset: 2px;
}

/* Responsive design improvements */
@media (max-width: 768px) {
    .content {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    .loader {
        width: 60px;
        height: 60px;
        margin-bottom: 1.5rem;
    }
    
    .countdown-container {
        gap: 1rem;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 0.8rem;
    }
    
    .social-icons {
        gap: 1.2rem;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 1.5rem 1rem;
    }
    
    .loader {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    .typing-text {
        letter-spacing: 0.1em;
    }
    
    .countdown-container {
        gap: 0.8rem;
    }
    
    .countdown-item {
        min-width: 65px;
        padding: 0.7rem;
    }
    
    .countdown-item span:first-child {
        font-size: 1.5rem;
    }
    
    .notify-container {
        max-width: 100%;
    }
}

/* Support for really small screens */
@media (max-width: 320px) {
    h1 {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .typing-text {
        font-size: 0.9rem;
    }
    
    .countdown-item {
        min-width: 60px;
        padding: 0.6rem;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .content {
        background: rgba(0, 0, 0, 0.3);
    }
}
