/* ============================================
   TECH BOX — Under Construction Page
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
    --bg-primary: #0a0e17;
    --bg-secondary: #0d1321;
    --bg-card: rgba(13, 19, 33, 0.7);
    --accent-cyan: #00e5ff;
    --accent-cyan-dim: rgba(0, 229, 255, 0.15);
    --accent-blue: #2979ff;
    --accent-purple: #7c4dff;
    --accent-pink: #ff4081;
    --text-primary: #e8eaf6;
    --text-secondary: rgba(232, 234, 246, 0.6);
    --text-muted: rgba(232, 234, 246, 0.35);
    --border-glow: rgba(0, 229, 255, 0.2);
    --terminal-green: #00e676;
    --gradient-main: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue), var(--accent-purple));
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --cube-size: 80px;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* ---------- Grid Background ---------- */
.grid-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridShift 20s linear infinite;
}

@keyframes gridShift {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

/* ---------- Circuit SVG ---------- */
.circuit-svg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
    pointer-events: none;
}

/* ---------- Particles ---------- */
.particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 6px var(--accent-cyan), 0 0 12px rgba(0, 229, 255, 0.3);
    animation: particleFloat linear infinite;
    opacity: 0;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0);
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: translateY(-20vh) scale(1);
    }
}

/* ---------- Scanline ---------- */
.scanline {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 229, 255, 0.008) 2px,
        rgba(0, 229, 255, 0.008) 4px
    );
}

.scanline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(
        to bottom,
        rgba(0, 229, 255, 0.04),
        transparent
    );
    animation: scanMove 4s linear infinite;
}

@keyframes scanMove {
    0% { top: -120px; }
    100% { top: 100%; }
}

/* ---------- Corner Decorations ---------- */
.corner {
    position: fixed;
    width: 40px;
    height: 40px;
    z-index: 2;
    pointer-events: none;
}

.corner::before,
.corner::after {
    content: '';
    position: absolute;
    background: var(--accent-cyan);
    opacity: 0.5;
}

.corner-tl { top: 20px; left: 20px; }
.corner-tl::before { width: 20px; height: 2px; top: 0; left: 0; }
.corner-tl::after { width: 2px; height: 20px; top: 0; left: 0; }

.corner-tr { top: 20px; right: 20px; }
.corner-tr::before { width: 20px; height: 2px; top: 0; right: 0; }
.corner-tr::after { width: 2px; height: 20px; top: 0; right: 0; }

.corner-bl { bottom: 20px; left: 20px; }
.corner-bl::before { width: 20px; height: 2px; bottom: 0; left: 0; }
.corner-bl::after { width: 2px; height: 20px; bottom: 0; left: 0; }

.corner-br { bottom: 20px; right: 20px; }
.corner-br::before { width: 20px; height: 2px; bottom: 0; right: 0; }
.corner-br::after { width: 2px; height: 20px; bottom: 0; right: 0; }

/* ---------- Main Container ---------- */
.container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 900px;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* ---------- 3D Cube ---------- */
.box-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.cube-scene {
    width: var(--cube-size);
    height: var(--cube-size);
    perspective: 400px;
    perspective-origin: 50% 50%;
}

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

@keyframes cubeRotate {
    0%, 100% { transform: rotateX(-20deg) rotateY(30deg); }
    25% { transform: rotateX(10deg) rotateY(120deg); }
    50% { transform: rotateX(-15deg) rotateY(210deg); }
    75% { transform: rotateX(5deg) rotateY(300deg); }
}

.cube-face {
    position: absolute;
    width: var(--cube-size);
    height: var(--cube-size);
    border: 1.5px solid rgba(0, 229, 255, 0.35);
    background: rgba(0, 229, 255, 0.04);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cube-face::before {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(0, 229, 255, 0.12);
}

.face-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.face-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.4));
}

.cube-front  { transform: rotateY(0deg) translateZ(calc(var(--cube-size) / 2)); }
.cube-back   { transform: rotateY(180deg) translateZ(calc(var(--cube-size) / 2)); }
.cube-right  { transform: rotateY(90deg) translateZ(calc(var(--cube-size) / 2)); }
.cube-left   { transform: rotateY(-90deg) translateZ(calc(var(--cube-size) / 2)); }
.cube-top    { transform: rotateX(90deg) translateZ(calc(var(--cube-size) / 2)); }
.cube-bottom { transform: rotateX(-90deg) translateZ(calc(var(--cube-size) / 2)); }

/* Glow ring */
.cube-glow-ring {
    width: 120px;
    height: 20px;
    margin-top: 20px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(0, 229, 255, 0.25) 0%, transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.5; transform: scaleX(0.9); }
    50% { opacity: 1; transform: scaleX(1.1); }
}

/* ---------- Title Area ---------- */
.title-area {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.logo {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.12em;
    display: flex;
    gap: 12px;
    animation: logoEnter 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

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

.logo-tech {
    color: var(--text-primary);
    text-shadow:
        0 0 20px rgba(232, 234, 246, 0.15);
    position: relative;
}

.logo-box {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.3));
    position: relative;
}

.logo-box::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient-main);
    border-radius: 2px;
    animation: boxUnderline 2s ease-in-out infinite;
}

@keyframes boxUnderline {
    0%, 100% { opacity: 0.5; transform: scaleX(0.7); }
    50% { opacity: 1; transform: scaleX(1); }
}

.tagline-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    animation: taglineEnter 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

.line-decoration {
    width: 40px;
    height: 1px;
    background: var(--gradient-main);
    opacity: 0.5;
}

.tagline {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.35em;
    color: var(--accent-cyan);
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.3);
}

/* ---------- Status Section ---------- */
.status-section {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: statusEnter 1s ease 0.6s forwards;
    opacity: 0;
    transform: translateY(20px);
}

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

/* Progress bar */
.status-bar-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-bar {
    width: 100%;
    height: 4px;
    background: rgba(0, 229, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.status-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    background: var(--gradient-main);
    position: relative;
    transition: width 0.4s ease;
}

.status-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-cyan);
    box-shadow: 0 0 12px var(--accent-cyan), 0 0 24px rgba(0, 229, 255, 0.3);
}

.status-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.15), transparent);
    animation: statusSweep 2s linear infinite;
}

@keyframes statusSweep {
    to { left: 200%; }
}

.status-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-family: var(--font-display);
}

.status-text {
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

.status-percent {
    color: var(--accent-cyan);
    font-weight: 600;
    letter-spacing: 0.08em;
}

/* ---------- Terminal ---------- */
.terminal {
    background: rgba(10, 14, 23, 0.9);
    border: 1px solid var(--border-glow);
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(0, 229, 255, 0.05);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(0, 229, 255, 0.03);
    border-bottom: 1px solid rgba(0, 229, 255, 0.08);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.terminal-title {
    font-family: var(--font-display);
    font-size: 0.65rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
}

.terminal-body {
    padding: 16px 20px;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.terminal-line {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.6;
}

.prompt {
    color: var(--terminal-green);
    font-weight: 700;
}

.command {
    color: var(--text-primary);
}

.cursor {
    color: var(--terminal-green);
    animation: cursorBlink 0.8s steps(1) infinite;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.output-line {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    padding-left: 18px;
    line-height: 1.6;
}

.output-line.success {
    color: var(--terminal-green);
}

.output-line.info {
    color: var(--accent-cyan);
}

.output-line.warning {
    color: #febc2e;
}

/* ---------- Info Cards ---------- */
.info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid rgba(0, 229, 255, 0.08);
    border-radius: 14px;
    padding: 28px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    animation: cardEnter 0.8s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.info-card:nth-child(1) { animation-delay: 0.8s; }
.info-card:nth-child(2) { animation-delay: 1s; }
.info-card:nth-child(3) { animation-delay: 1.2s; }

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

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-main);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.info-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 229, 255, 0.2);
    box-shadow: 0 8px 40px rgba(0, 229, 255, 0.08);
}

.info-card:hover::before {
    transform: scaleX(1);
}

.card-icon-wrapper {
    position: relative;
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--accent-cyan-dim);
    color: var(--accent-cyan);
    transition: background 0.3s ease, transform 0.3s ease;
}

.card-icon svg {
    width: 24px;
    height: 24px;
}

.info-card:hover .card-icon {
    background: rgba(0, 229, 255, 0.2);
    transform: scale(1.1) rotate(-5deg);
}

.info-card h3 {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-primary);
}

.info-card p {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ---------- Contact Section ---------- */
.contact-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: contactEnter 1s ease 1.4s forwards;
    opacity: 0;
}

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

.contact-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-display);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.email-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-cyan);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 24px;
    border: 1px solid rgba(0, 229, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 229, 255, 0.04);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.email-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-main);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.email-link:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
    color: #fff;
    transform: translateY(-2px);
}

.email-link:hover::before {
    opacity: 0.12;
}

.email-link svg,
.email-link span {
    position: relative;
    z-index: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    :root {
        --cube-size: 60px;
    }

    .logo {
        font-size: 2.5rem;
    }

    .info-cards {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .container {
        padding: 30px 16px;
        gap: 30px;
    }

    .tagline {
        font-size: 0.65rem;
        letter-spacing: 0.2em;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 2rem;
        gap: 8px;
    }

    .terminal-body {
        padding: 12px 14px;
    }

    .terminal-line {
        font-size: 0.75rem;
    }

    .output-line {
        font-size: 0.7rem;
    }

    .corner {
        display: none;
    }
}

/* ---------- Selection ---------- */
::selection {
    background: rgba(0, 229, 255, 0.25);
    color: #fff;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 229, 255, 0.4);
}
