/* ============================================
   FORTRESS PAY TECHNOLOGY - COMING SOON
   Brand Colors:
     Blue:  #0077CC -> #00BFFF (gradients)
     Green: #00CC66 -> #00E676
     Cyan:  #00E5FF
     Dark:  #0a0a0f
   ============================================ */

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

:root {
    --blue: #0077CC;
    --blue-light: #00BFFF;
    --cyan: #00E5FF;
    --green: #00CC66;
    --green-light: #00E676;
    --dark: #0a0a0f;
    --dark-surface: #0d1117;
    --glow-blue: rgba(0, 191, 255, 0.15);
    --glow-green: rgba(0, 204, 102, 0.1);
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: 'Rajdhani', sans-serif;
    background: var(--dark);
    color: #ffffff;
    cursor: crosshair;
    position: fixed;
    top: 0;
    left: 0;
}

/* === BACKGROUND CANVAS === */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    z-index: 1;
}

/* === HEXAGONAL GRID OVERLAY === */
#hex-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    z-index: 2;
    opacity: 0.03;
    background-image:
        linear-gradient(30deg, var(--blue-light) 12%, transparent 12.5%, transparent 87%, var(--blue-light) 87.5%, var(--blue-light)),
        linear-gradient(150deg, var(--blue-light) 12%, transparent 12.5%, transparent 87%, var(--blue-light) 87.5%, var(--blue-light)),
        linear-gradient(30deg, var(--blue-light) 12%, transparent 12.5%, transparent 87%, var(--blue-light) 87.5%, var(--blue-light)),
        linear-gradient(150deg, var(--blue-light) 12%, transparent 12.5%, transparent 87%, var(--blue-light) 87.5%, var(--blue-light)),
        linear-gradient(60deg, var(--green) 25%, transparent 25.5%, transparent 75%, var(--green) 75%, var(--green)),
        linear-gradient(60deg, var(--green) 25%, transparent 25.5%, transparent 75%, var(--green) 75%, var(--green));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
    pointer-events: none;
}

/* === CURSOR GLOW === */
#cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-blue) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 3;
    transition: opacity 0.3s ease;
    opacity: 0;
}

body:hover #cursor-glow {
    opacity: 1;
}

/* === MAIN CONTENT === */
#main-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    height: 100svh;
    gap: 30px;
    padding: 20px;
}

/* === LOGO SECTION === */
#logo-section {
    position: relative;
    perspective: 1000px;
}

#logo-container {
    position: relative;
    width: 340px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#main-logo {
    width: 280px;
    height: auto;
    filter: drop-shadow(0 0 30px rgba(0, 191, 255, 0.3)) drop-shadow(0 0 60px rgba(0, 204, 102, 0.15));
    opacity: 0;
    transform: scale(0.8);
    animation: logoReveal 2s ease-out 1.5s forwards;
    transition: transform 0.3s ease;
}

/* Shield doors that split open to reveal logo */
.shield-door {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: var(--dark-surface);
    z-index: 5;
    border: 1px solid rgba(0, 191, 255, 0.1);
}

#shield-door-left {
    left: 0;
    border-right: 1px solid var(--cyan);
    box-shadow: inset -20px 0 40px rgba(0, 229, 255, 0.05);
    animation: doorOpenLeft 1.5s ease-in-out 1s forwards;
}

#shield-door-right {
    right: 0;
    border-left: 1px solid var(--cyan);
    box-shadow: inset 20px 0 40px rgba(0, 229, 255, 0.05);
    animation: doorOpenRight 1.5s ease-in-out 1s forwards;
}

/* Scan line that sweeps across before doors open */
#scan-line {
    position: absolute;
    top: 0;
    left: -2px;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--cyan), transparent);
    box-shadow: 0 0 15px var(--cyan), 0 0 30px var(--cyan);
    z-index: 6;
    animation: scanAcross 1s ease-in-out 0.3s forwards;
    opacity: 0;
}

@keyframes scanAcross {
    0% { left: -2px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

@keyframes doorOpenLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-110%); opacity: 0; }
}

@keyframes doorOpenRight {
    0% { transform: translateX(0); }
    100% { transform: translateX(110%); opacity: 0; }
}

@keyframes logoReveal {
    0% { opacity: 0; transform: scale(0.8); filter: drop-shadow(0 0 30px rgba(0, 191, 255, 0.3)) brightness(2) blur(4px); }
    60% { opacity: 1; filter: drop-shadow(0 0 40px rgba(0, 191, 255, 0.5)) brightness(1.5) blur(0px); }
    100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 0 30px rgba(0, 191, 255, 0.3)) drop-shadow(0 0 60px rgba(0, 204, 102, 0.15)); }
}

/* === COMING SOON TEXT === */
#text-section {
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s ease-out 2.5s forwards;
}

#coming-soon {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.2rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: 0.3em;
    position: relative;
    background: linear-gradient(135deg, var(--blue-light), var(--cyan), var(--green-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out 2.5s forwards, shimmer 3s ease-in-out infinite 3.5s;
    background-size: 200% 100%;
}

/* Glitch effect layers */
.glitch-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--blue-light), var(--cyan), var(--green-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
}

#coming-soon:hover .glitch-layer:first-child,
#coming-soon.glitching .glitch-layer:first-child {
    animation: glitch1 0.3s ease-in-out;
    opacity: 0.8;
}

#coming-soon:hover .glitch-layer:last-child,
#coming-soon.glitching .glitch-layer:last-child {
    animation: glitch2 0.3s ease-in-out;
    opacity: 0.8;
}

@keyframes glitch1 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(20% 0 60% 0); transform: translate(-3px, 2px); }
    40% { clip-path: inset(40% 0 30% 0); transform: translate(3px, -1px); }
    60% { clip-path: inset(60% 0 10% 0); transform: translate(-2px, 1px); }
    80% { clip-path: inset(10% 0 70% 0); transform: translate(2px, -2px); }
}

@keyframes glitch2 {
    0%, 100% { clip-path: inset(0 0 0 0); transform: translate(0); }
    20% { clip-path: inset(50% 0 20% 0); transform: translate(3px, -2px); }
    40% { clip-path: inset(10% 0 60% 0); transform: translate(-3px, 1px); }
    60% { clip-path: inset(30% 0 40% 0); transform: translate(2px, -1px); }
    80% { clip-path: inset(70% 0 5% 0); transform: translate(-2px, 2px); }
}

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

/* === TAGLINE === */
#tagline {
    margin-top: 20px;
    font-size: clamp(0.9rem, 2vw, 1.3rem);
    font-weight: 300;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.reveal-word {
    opacity: 0;
    transform: translateY(10px);
    display: inline-block;
}

.reveal-word:nth-child(1) { animation: wordReveal 0.6s ease-out 3s forwards; }
.reveal-word:nth-child(3) { animation: wordReveal 0.6s ease-out 3.2s forwards; }
.reveal-word:nth-child(5) { animation: wordReveal 0.6s ease-out 3.4s forwards; }
.reveal-word:nth-child(7) { animation: wordReveal 0.6s ease-out 3.6s forwards; }

.reveal-dot {
    opacity: 0;
    color: var(--cyan);
    font-size: 0.6em;
}

.reveal-dot:nth-child(2) { animation: wordReveal 0.6s ease-out 3.1s forwards; }
.reveal-dot:nth-child(4) { animation: wordReveal 0.6s ease-out 3.3s forwards; }
.reveal-dot:nth-child(6) { animation: wordReveal 0.6s ease-out 3.5s forwards; }

@keyframes wordReveal {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* === DIVIDER === */
#divider {
    width: clamp(200px, 50vw, 500px);
    height: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 3.8s forwards;
}

#divider svg {
    width: 100%;
    height: 100%;
}

.divider-line {
    stroke: var(--blue);
    stroke-width: 0.5;
    opacity: 0.3;
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    animation: drawLine 2s ease-out 4s forwards;
}

.divider-pulse {
    fill: var(--cyan);
    opacity: 0;
    animation: pulseIn 0.5s ease-out 5s forwards, pulseBeat 2s ease-in-out 5.5s infinite;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

@keyframes pulseIn {
    0% { opacity: 0; r: 0; }
    100% { opacity: 1; r: 4; }
}

@keyframes pulseBeat {
    0%, 100% { r: 3; opacity: 0.6; }
    50% { r: 5; opacity: 1; }
}

/* === CONTACT SECTION === */
#contact-section {
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s ease-out 4.2s forwards;
}

#contact-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 8px;
}

#contact-email {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    font-weight: 500;
    color: var(--cyan);
    text-decoration: none;
    letter-spacing: 0.1em;
    position: relative;
    padding: 8px 20px;
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 2px;
    transition: all 0.4s ease;
    display: inline-block;
}

#contact-email::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.1), rgba(0, 204, 102, 0.05));
    transition: width 0.4s ease;
    z-index: -1;
}

#contact-email:hover {
    border-color: var(--cyan);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2), inset 0 0 20px rgba(0, 229, 255, 0.05);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

#contact-email:hover::before {
    width: 100%;
}

/* === BOTTOM BAR === */
#bottom-bar {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 10;
    opacity: 0;
    animation: fadeInUp 1s ease-out 4.5s forwards;
}

#bottom-logo {
    width: 24px;
    height: auto;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

#bottom-logo:hover {
    opacity: 0.8;
}

#copyright {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.2);
    letter-spacing: 0.15em;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    #logo-container {
        width: 260px;
        height: 160px;
    }

    #main-logo {
        width: 220px;
    }

    #tagline {
        gap: 8px;
        letter-spacing: 0.2em;
    }

    #cursor-glow {
        display: none;
    }
}

@media (max-width: 480px) {
    #logo-container {
        width: 200px;
        height: 130px;
    }

    #main-logo {
        width: 170px;
    }

    #coming-soon {
        letter-spacing: 0.15em;
    }

    #tagline {
        gap: 6px;
        letter-spacing: 0.1em;
    }
}

/* === LOADING SCREEN === */
#main-content {
    opacity: 0;
    animation: contentFadeIn 0.5s ease-out 0.3s forwards;
}

@keyframes contentFadeIn {
    to { opacity: 1; }
}

/* === EASTER EGG: ACCESS GRANTED TERMINAL === */
#terminal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#terminal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

#terminal-box {
    border: 1px solid var(--cyan);
    background: rgba(10, 10, 15, 0.95);
    padding: 40px 50px;
    text-align: center;
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.2), inset 0 0 30px rgba(0, 229, 255, 0.05);
    max-width: 500px;
    width: 90%;
}

#terminal-box .terminal-line {
    font-family: 'Orbitron', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: rgba(0, 229, 255, 0.5);
    margin-bottom: 15px;
}

#terminal-box .terminal-granted {
    font-family: 'Orbitron', monospace;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.3em;
    color: var(--green-light);
    text-shadow: 0 0 20px rgba(0, 230, 118, 0.5), 0 0 40px rgba(0, 230, 118, 0.2);
    animation: terminalPulse 1.5s ease-in-out infinite;
}

#terminal-box .terminal-sub {
    font-family: 'Rajdhani', monospace;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 15px;
}

@keyframes terminalPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* === EASTER EGG: MATRIX RAIN CANVAS === */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#matrix-canvas.active {
    opacity: 1;
}

/* === EASTER EGG: NEON COLOR SHIFT === */
.neon-shift {
    animation: neonShift 2s ease-in-out infinite !important;
}

@keyframes neonShift {
    0% { filter: hue-rotate(0deg); }
    25% { filter: hue-rotate(90deg) brightness(1.3); }
    50% { filter: hue-rotate(180deg) brightness(1.5); }
    75% { filter: hue-rotate(270deg) brightness(1.3); }
    100% { filter: hue-rotate(360deg); }
}

/* === EASTER EGG: FORTRESS WORD - DRAMATIC EFFECTS === */

/* Screen shake */
.egg-shake {
    animation: eggShake 0.6s ease-in-out 3 !important;
}

@keyframes eggShake {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-6px, -3px); }
    20% { transform: translate(5px, 4px); }
    30% { transform: translate(-7px, 2px); }
    40% { transform: translate(4px, -5px); }
    50% { transform: translate(-3px, 6px); }
    60% { transform: translate(6px, -2px); }
    70% { transform: translate(-4px, 3px); }
    80% { transform: translate(3px, -4px); }
    90% { transform: translate(-5px, 1px); }
}

/* White flash overlay */
.egg-flash {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease-out;
}

.egg-flash.active {
    opacity: 0.7;
}

/* Protocol activated message */
.egg-protocol-msg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 10000;
    font-family: 'Orbitron', monospace;
    font-size: clamp(0.8rem, 2.5vw, 1.4rem);
    font-weight: 700;
    letter-spacing: 0.4em;
    color: var(--cyan);
    text-shadow:
        0 0 10px var(--cyan),
        0 0 30px var(--cyan),
        0 0 60px rgba(0, 229, 255, 0.4);
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.egg-protocol-msg.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.egg-protocol-msg.fade-out {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.1);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Full-screen scanline sweep */
.egg-scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, transparent, var(--cyan), var(--green-light), var(--cyan), transparent);
    box-shadow: 0 0 20px var(--cyan), 0 0 60px var(--cyan);
    z-index: 10001;
    opacity: 0.9;
    pointer-events: none;
    animation: eggScanDown 1.5s ease-in-out forwards;
}

@keyframes eggScanDown {
    0% { top: -4px; opacity: 0; }
    5% { opacity: 0.9; }
    95% { opacity: 0.9; }
    100% { top: 100%; opacity: 0; }
}
