/* --- VARIABLES --- */
:root {
    --bg-dark: #0f0f12;
    --bg-darker: #050507;
    --rose-primary: #ff5e78;
    --rose-soft: #ffb7b2;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --neon-cyan: #00f3ff;
    --neon-rose: #ff0055;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-highlight: rgba(255, 255, 255, 0.1);
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-code: 'Courier Prime', monospace;
}

/* --- RESET & BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- UTILS --- */
.hidden { display: none !important; opacity: 0; }
.fade-in { animation: fadeIn 1s forwards; }

/* --- HERO SECTION --- */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #1a1a2e 0%, #000 100%);
    position: relative;
    z-index: 10;
}

.hero-content {
    text-align: center;
    z-index: 20;
}

.glitch-text {
    font-family: var(--font-head);
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-main);
    text-shadow: 2px 2px var(--rose-primary);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.subtitle {
    font-family: var(--font-code);
    color: var(--rose-soft);
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.main-btn {
    padding: 15px 40px;
    font-size: 1.2rem;
    background: transparent;
    border: 2px solid var(--rose-primary);
    color: var(--rose-primary);
    cursor: pointer;
    font-family: var(--font-head);
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.main-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: var(--rose-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.main-btn:hover {
    color: white;
    box-shadow: 0 0 20px var(--rose-primary);
}

.main-btn:hover::before {
    left: 0;
}

/* --- TERMINAL OVERLAY --- */
.terminal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
}

.terminal-window {
    width: 80%;
    max-width: 600px;
    height: 400px;
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid #333;
    overflow: hidden;
    font-family: var(--font-code);
}

.terminal-header {
    background: #2d2d2d;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot { width: 12px; height: 12px; border-radius: 50%; display: block; }
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.terminal-title {
    margin-left: 10px;
    color: #888;
    font-size: 0.9rem;
}

.terminal-body {
    padding: 20px;
    color: #4af626;
    height: calc(100% - 40px);
    overflow-y: auto;
    font-size: 1rem;
}

.log-line {
    margin-bottom: 5px;
    opacity: 0;
    animation: fadeIn 0.1s forwards;
}

/* --- MAIN CONTENT --- */
main {
    padding-bottom: 50px;
}

.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section-title {
    font-family: var(--font-head);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 4px;
    border-bottom: 2px solid var(--rose-primary);
    padding-bottom: 10px;
}

/* CARDS */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    width: 100%;
}

.info-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-highlight);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 243, 255, 0.15);
    border-color: var(--neon-cyan);
}

.card-icon { font-size: 3rem; margin-bottom: 1rem; }
.info-card h3 { color: var(--rose-soft); margin-bottom: 0.5rem; font-family: var(--font-head); }
.info-card p { color: var(--text-muted); font-size: 0.9rem; }

/* GALLERY */
.gallery-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.polaroid {
    background: white;
    padding: 10px 10px 30px 10px;
    color: black;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.polaroid:nth-child(2) { transform: rotate(3deg); }
.polaroid:hover { transform: scale(1.1) rotate(0deg); z-index: 10; }

.photo-frame img {
    width: 100%;
    max-width: 250px;
    height: auto;
    display: block;
}

.caption {
    font-family: 'Courier Prime', monospace; /* Handwriting style fallback */
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
}

/* GAMER PROFILE */
.gamer-theme {
    background: linear-gradient(45deg, rgba(255,0,85,0.05), rgba(0,0,0,0));
    border-left: 4px solid var(--neon-rose);
}

.profile-container {
    width: 100%;
    max-width: 800px;
    background: rgba(20, 20, 30, 0.8);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--neon-rose);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.stats-grid { width: 100%; }
.stat-bar { margin-bottom: 15px; }
.stat-bar label { display: block; margin-bottom: 5px; font-family: var(--font-head); letter-spacing: 1px; }

.progress-bar {
    width: 100%;
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: var(--rose-primary);
}

.glow-anim {
    background: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.achievements {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--rose-primary);
    color: var(--rose-soft);
}

/* TECH LOVE */
.code-window {
    background: #1e1e1e;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 700px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.window-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    align-items: center;
}

.win-btn { width: 12px; height: 12px; border-radius: 50%; }
.close { background: #ff5f56; }
.min { background: #ffbd2e; }
.max { background: #27c93f; }
.filename { color: #888; font-family: var(--font-code); margin-left: auto; font-size: 0.8rem; }

code {
    font-family: var(--font-code);
    color: #e6e6e6;
    display: block;
    white-space: pre-wrap;
}

.keyword { color: #cc99cd; }
.function { color: #61aeee; }
.string { color: #98c379; }
.number { color: #d19a66; }
.boolean { color: #d19a66; }

/* LETTER */
.letter-paper {
    background: #fff;
    color: #333;
    padding: 40px;
    width: 100%;
    max-width: 600px;
    font-family: var(--font-code);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    position: relative;
}

.typewriter-text {
    font-size: 1.1rem;
    white-space: pre-wrap;
    border-right: 2px solid #333;
    animation: blink 0.7s infinite;
}

/* FINAL */
.special-btn {
    background: var(--neon-rose);
    color: white;
    border: none;
    padding: 20px 50px;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50px;
    font-family: var(--font-head);
    font-weight: bold;
    box-shadow: 0 0 30px rgba(255, 0, 85, 0.5);
    transition: all 0.3s ease;
}

.special-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(255, 0, 85, 0.8);
}

/* MODAL */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.modal-content {
    background: #111;
    padding: 50px;
    text-align: center;
    border: 1px solid var(--rose-primary);
    border-radius: 20px;
    position: relative;
    box-shadow: 0 0 50px rgba(255, 94, 120, 0.3);
}

.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 2rem;
    cursor: pointer;
}

.heart-beat {
    font-size: 4rem;
    margin-top: 20px;
    animation: pulse 1s infinite;
}

/* ANIMATIONS */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 50% { border-color: transparent; } }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }

/* MEDIA QUERIES */
@media (max-width: 768px) {
    .glitch-text { font-size: 2.5rem; }
    .card-grid { grid-template-columns: 1fr; }
    .gallery-container { flex-direction: column; align-items: center; }
}
