/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
 
body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ===== BACKGROUND PARTICLES CANVAS ===== */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* Image with subtle zoom-on-hover + color shift */
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(40%);
    transition: transform 0.8s ease, filter 0.6s ease;
}

.hero:hover .hero-img {
    transform: scale(1.05);
    filter: brightness(35%) hue-rotate(5deg);
}

/* Glitch overlay for subtle tech vibe */
.glitch-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(255,0,255,0.1), rgba(0,255,255,0.1));
    mix-blend-mode: overlay;
    z-index: 2;
    opacity: 0.4;
    animation: glitch 3s infinite;
}

@keyframes glitch {
    0%   { transform: translate(0); }
    20%  { transform: translate(-2px, 2px); }
    40%  { transform: translate(-2px, -2px); }
    60%  { transform: translate(2px, 2px); }
    80%  { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* Text Overlay */
.overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 800px;
    z-index: 3;
}

/* Title with glitch effect */
.title-glitch {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-family: 'Pacifico', cursive;
    margin-bottom: 0.5rem;
    text-shadow: 
        0 0 10px #ff00ff,
        0 0 20px #00ffff;
    animation: glitch-text 2s infinite;
}

@keyframes glitch-text {
    0%, 100% { text-shadow: 0 0 10px #ff00ff, 0 0 20px #00ffff; }
    50%      { text-shadow: 0 0 15px #00ff00, 0 0 30px #ff0000; }
}

.subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #00eaff;
    margin: 0.5rem 0 1.5rem;
    text-shadow: 0 0 8px rgba(0, 234, 255, 0.7);
}

/* Typing effect */
#typing {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    margin: 1.5rem 0;
    border-right: 3px solid #00eaff;
    white-space: nowrap;
    overflow: hidden;
    animation: blink 1s step-end infinite; /* Always blink */
}

@keyframes blink {
    from, to { border-color: transparent; }
    50%      { border-color: #00eaff; }
}

/* ===== BUTTON (Kinetic Shine) ===== */
#surpriseBtn {
    position: relative;
    padding: 1rem 2.5rem;
    font-size: clamp(1rem, 2vw, 1.3rem);
    border: none;
    border-radius: 50px;
    background: linear-gradient(45deg, #ff0055, #ff3366);
    color: white;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 2;
}

#surpriseBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px #ff3366, 0 0 50px rgba(255, 51, 102, 0.5);
}

/* Shine effect on hover */
.btn-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    transform: rotate(30deg);
    transition: transform 0.6s;
    z-index: -1;
    opacity: 0;
}

#surpriseBtn:hover .btn-shine {
    opacity: 1;
    transform: translateX(100%) rotate(30deg);
}

/* ===== MESSAGE BOX (Slide-up + Stagger) ===== */
.message {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.message.active {
    opacity: 1;
    pointer-events: all;
}

.message-inner {
    background: linear-gradient(145deg, #111, #222);
    padding: 3rem 2rem;
    border-radius: 20px;
    max-width: 700px;
    width: 90%;
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.5),
        inset 0 0 15px rgba(0, 234, 255, 0.3);
    transform: translateY(50px);
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.message.active .message-inner {
    transform: translateY(0);
}

.message h3 {
    font-family: 'Pacifico', cursive;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 1.5rem;
    color: #00eaff;
    text-shadow: 0 0 10px rgba(0, 234, 255, 0.6);
}

.message-lines p {
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    margin: 0.8rem 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Staggered line reveal */
.message-lines p:nth-child(1) { transition-delay: 0.2s; }
.message-lines p:nth-child(2) { transition-delay: 0.4s; }
.message-lines p:nth-child(3) { transition-delay: 0.6s; }
.message-lines p:nth-child(4) { transition-delay: 0.8s; }
.message-lines p:nth-child(5) { transition-delay: 1.0s; }
.message-lines p:nth-child(6) { transition-delay: 1.2s; }

.message.active .message-lines p {
    opacity: 1;
    transform: translateY(0);
}

/* ===== CANVAS (Confetti) ===== */
#confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .overlay { width: 95%; }
    #surpriseBtn { width: 100%; max-width: 300px; }
}