/* Custom Styling for Tiago's 18th Birthday Webpage */

:root {
    --bg-dark: #07050d;
    --bg-panel: rgba(18, 14, 30, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    
    /* Neon glow colors */
    --neon-green: #00ff66;
    --neon-cyan: #00f0ff;
    --neon-pink: #ff007f;
    --neon-purple: #9d00ff;
    
    --text-primary: #f3f1f6;
    --text-secondary: #a29db5;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
    min-height: 100vh;
}

/* Grid & Ambient Glows */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

.bg-glow {
    position: fixed;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(157, 0, 255, 0.08) 0%, rgba(255, 0, 127, 0.03) 40%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

/* Custom Cursor */
#custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 80px;
    height: 40px;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cursor-eye {
    width: 32px;
    height: 32px;
    background: #0d091a;
    border: 2px solid var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.3);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cursor-eye .iris {
    width: 12px;
    height: 12px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-green);
    position: absolute;
    transition: transform 0.05s ease-out;
}

/* Custom Text and Neon Shadows */
.neon-text-green {
    color: var(--neon-green);
    text-shadow: 0 0 5px rgba(0, 255, 102, 0.6), 0 0 15px rgba(0, 255, 102, 0.3);
}

.neon-text-pink {
    color: var(--neon-pink);
    text-shadow: 0 0 5px rgba(255, 0, 127, 0.6), 0 0 15px rgba(255, 0, 127, 0.3);
}

.neon-text-cyan {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.6), 0 0 15px rgba(0, 240, 255, 0.3);
}

.gradient-text {
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header styling */
.header {
    width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background: rgba(7, 5, 13, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    z-index: 100;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo .version {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-secondary);
}

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

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

.status-dot.green {
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
    animation: pulse 2s infinite;
}

.status-text {
    font-size: 0.75rem;
    font-family: monospace;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

/* Main Container Layout */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 60px;
    display: flex;
    flex-direction: column;
    gap: 100px;
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    border-radius: 24px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    padding: 60px 40px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.12) 50%
    );
    background-size: 100% 4px;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.badge {
    display: inline-block;
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-cyan);
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* Timer Container */
.timer-container {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 40px;
}

.timer-label {
    font-size: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.timer-display {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.timer-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px;
    min-width: 90px;
    border-radius: 12px;
}

.timer-block .number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(0, 255, 102, 0.4);
}

.timer-block .label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Buttons */
.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--neon-green);
    color: #000;
    border: none;
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.4);
}

.btn-primary:hover {
    background: #00e65c;
    box-shadow: 0 0 30px rgba(0, 255, 102, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Sections Common Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Soundboard Section */
.soundboard-deck {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.pad {
    height: 120px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-primary);
}

.pad-icon {
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.pad-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Pad Interactive States */
.pad:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.pad-cyan:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}
.pad-cyan:hover .pad-icon { transform: scale(1.2); }

.pad-magenta:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 0 20px rgba(255, 0, 127, 0.3);
}
.pad-magenta:hover .pad-icon { transform: scale(1.2); }

.pad-green:hover {
    border-color: var(--neon-green);
    box-shadow: 0 0 20px rgba(0, 255, 102, 0.3);
}
.pad-green:hover .pad-icon { transform: scale(1.2); }

.pad-purple:hover {
    border-color: var(--neon-purple);
    box-shadow: 0 0 20px rgba(157, 0, 255, 0.3);
}
.pad-purple:hover .pad-icon { transform: scale(1.2); }

.pad:active {
    transform: scale(0.95);
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(8px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.card-image-container {
    position: relative;
    width: 100%;
    padding-top: 110%; /* Tall ratio for portrait selfies */
    overflow: hidden;
    background: #000;
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: monospace;
}

.card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
}

.card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Card Hover States & Neon Accents */
.card:hover {
    transform: translateY(-8px);
}

.card:hover .card-image {
    transform: scale(1.05);
}

.card-green:hover {
    border-color: var(--neon-green);
    box-shadow: 0 10px 30px rgba(0, 255, 102, 0.15);
}
.card-green .tag { color: var(--neon-green); background: rgba(0, 255, 102, 0.05); }

.card-cyan:hover {
    border-color: var(--neon-cyan);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
}
.card-cyan .tag { color: var(--neon-cyan); background: rgba(0, 240, 255, 0.05); }

.card-magenta:hover {
    border-color: var(--neon-pink);
    box-shadow: 0 10px 30px rgba(255, 0, 127, 0.15);
}
.card-magenta .tag { color: var(--neon-pink); background: rgba(255, 0, 127, 0.05); }

.card-purple:hover {
    border-color: var(--neon-purple);
    box-shadow: 0 10px 30px rgba(157, 0, 255, 0.15);
}
.card-purple .tag { color: var(--neon-purple); background: rgba(157, 0, 255, 0.05); }

/* Video Gallery Section */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

@media (max-width: 600px) {
    .video-grid {
        grid-template-columns: 1fr;
    }
}

.video-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 120%; /* Portrait video aspect ratio */
    background: #000;
    overflow: hidden;
    cursor: pointer;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 5, 13, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    transition: all 0.3s ease;
}

.play-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.video-wrapper:hover .video-overlay {
    background: rgba(7, 5, 13, 0.2);
}

.video-wrapper:hover .play-btn {
    transform: scale(1.1);
    background: var(--neon-cyan);
    color: #000;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.video-wrapper.playing .video-overlay {
    opacity: 0;
    pointer-events: none;
}

.video-info {
    padding: 20px;
}

.video-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.video-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Console Section */
.console-container {
    background: #090710;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.console-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.console-buttons {
    display: flex;
    gap: 8px;
}

.console-buttons .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.console-buttons .dot.red { background: #ff5f56; }
.console-buttons .dot.yellow { background: #ffbd2e; }
.console-buttons .dot.green { background: #27c93f; }

.console-title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.console-body {
    padding: 24px;
    font-family: monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #00ff66;
}

.console-line {
    margin-bottom: 8px;
}

.console-line .prompt {
    color: var(--neon-pink);
    margin-right: 8px;
}

.console-line.output {
    color: var(--text-secondary);
}

/* Checklist inside console */
.checklist-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 24px 0;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 14px;
    border-radius: 8px;
}

.checkbox {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    flex-shrink: 0;
}

.check-item.checked {
    border-color: rgba(0, 255, 102, 0.15);
}
.check-item.checked .checkbox {
    background: rgba(0, 255, 102, 0.1);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    box-shadow: 0 0 10px rgba(0, 255, 102, 0.2);
}
.check-item.checked .check-label strong {
    color: var(--text-primary);
}

.check-item.pending {
    border-color: rgba(255, 0, 127, 0.15);
}
.check-item.pending .checkbox {
    background: rgba(255, 0, 127, 0.1);
    border: 1px solid var(--neon-pink);
    color: var(--neon-pink);
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.2);
}
.check-item.pending .check-label strong {
    color: var(--neon-pink);
}

.check-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.check-label strong {
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.check-label .desc {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Terminal blink cursor */
.cursor-blink {
    animation: blink 1s step-end infinite;
}

/* Footer Section */
.footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer .copyright {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.2);
}

/* Confetti Canvas */
#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9998;
}

/* Animations */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0.6; }
}

@keyframes blink {
    from, to { opacity: 0; }
    50% { opacity: 1; }
}

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

.badge {
    animation: float 4s ease-in-out infinite;
}

/* Vault Locked Gallery Overlay Styles */
.vault-container {
    position: relative;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.vault-container.locked {
    max-height: 480px;
    overflow: hidden;
}

.vault-container.locked .gallery-section,
.vault-container.locked .video-section {
    filter: blur(25px);
    pointer-events: none;
    user-select: none;
    opacity: 0.25;
}

.vault-container.locked .lock-overlay {
    display: flex;
}

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 80;
    background: rgba(7, 5, 13, 0.3);
}

.lock-box {
    background: rgba(18, 14, 30, 0.92);
    border: 2px solid var(--neon-pink);
    box-shadow: 0 0 40px rgba(255, 0, 127, 0.3);
    backdrop-filter: blur(20px);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    max-width: 500px;
    margin: 40px 20px;
    z-index: 81;
}

.lock-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-block;
    animation: lockPulse 2.5s infinite ease-in-out;
}

.lock-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--neon-pink);
    text-shadow: 0 0 12px rgba(255, 0, 127, 0.4);
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.lock-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
}

.lock-timer {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 240, 255, 0.15);
    padding: 14px 28px;
    border-radius: 14px;
    display: inline-block;
    letter-spacing: 1px;
}

@keyframes lockPulse {
    0% { transform: scale(1); filter: drop-shadow(0 0 0px rgba(255, 0, 127, 0)); }
    50% { transform: scale(1.1); filter: drop-shadow(0 0 15px var(--neon-pink)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 0px rgba(255, 0, 127, 0)); }
}

/* Birthday frerot badge */
.frerot-badge {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--neon-pink);
    text-shadow: 0 0 8px rgba(255, 0, 127, 0.5), 0 0 20px rgba(255, 0, 127, 0.2);
    margin-bottom: 24px;
    letter-spacing: 1px;
    display: inline-block;
    background: rgba(255, 0, 127, 0.05);
    border: 1px solid rgba(255, 0, 127, 0.2);
    padding: 8px 20px;
    border-radius: 10px;
    animation: frerotPulse 2s infinite ease-in-out;
}

@keyframes frerotPulse {
    0% { transform: scale(1); text-shadow: 0 0 8px rgba(255, 0, 127, 0.5); }
    50% { transform: scale(1.04); text-shadow: 0 0 15px rgba(255, 0, 127, 0.8); border-color: rgba(255, 0, 127, 0.4); }
    100% { transform: scale(1); text-shadow: 0 0 8px rgba(255, 0, 127, 0.5); }
}


