/* ==========================================================================
   1. RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

:root {
    --bg-primary: #050b18;
    --bg-secondary: #0a192f;
    --accent-blue: #00f2fe;
    --soft-blue: #4facfe;
    --text-main: #f0f4f8;
    --text-muted: #8892b0;
    --glass-bg: rgba(10, 25, 47, 0.7);
    --glass-border: rgba(0, 242, 254, 0.15);
    --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--soft-blue);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* ==========================================================================
   2. BACKGROUND AMBIENT GLOW ANIMATIONS
   ========================================================================== */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.25;
    pointer-events: none;
}
.glow-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-blue);
    top: -100px;
    left: -100px;
    animation: floatingGlow 15s infinite alternate;
}
.glow-2 {
    width: 500px;
    height: 500px;
    background: var(--soft-blue);
    bottom: -150px;
    right: -150px;
    animation: floatingGlow 18s infinite alternate-reverse;
}
.glow-3 {
    width: 300px;
    height: 300px;
    background: #7f00ff;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes floatingGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 40px) scale(1.1); }
}

/* ==========================================================================
   3. NAVIGATION BAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(5, 11, 24, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
}
.nav-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}
.logo {
    font-size: 1.6rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-main);
    letter-spacing: 1px;
}
.logo span {
    color: var(--accent-blue);
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}
.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 400;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 5px 0;
}
.nav-link:hover, .nav-link.active {
    color: var(--accent-blue);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}
.burger {
    display: none;
    cursor: pointer;
}
.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    margin: 5px;
    transition: all 0.3s ease;
}

/* ==========================================================================
   4. LAYOUT & GLASS CARDS
   ========================================================================== */
.main-wrapper {
    max-width: 800px;
    margin: 100px auto 40px auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 50px;
}
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--card-shadow);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 242, 254, 0.1);
    border-color: rgba(0, 242, 254, 0.3);
}

/* ==========================================================================
   5. SECTIONS DETAIL STYLING
   ========================================================================== */
/* Hero Section */
.hero-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}
.badge {
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-blue);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(0, 242, 254, 0.2);
}
.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
}
.highlight {
    color: var(--accent-blue);
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}
.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
}
.cursive {
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
    color: #ff758c;
    margin-left: 5px;
}
.cta-group {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}
.btn {
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}
.btn-primary {
    background: linear-gradient(45deg, var(--soft-blue), var(--accent-blue));
    color: #050b18;
    border: none;
}
.btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}
.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-blue);
}

/* About & Food Section */
.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.icon-header {
    font-size: 1.8rem;
    color: var(--accent-blue);
}
.desc-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 25px;
}
.food-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}
.food-placeholder {
    height: 100px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--glass-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.food-placeholder:hover {
    background: rgba(0, 242, 254, 0.05);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

/* Hobbies Section Grid */
.grid-hobbies {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.hobby-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
}
.hobby-box i {
    font-size: 2rem;
    color: var(--soft-blue);
    margin-bottom: 15px;
}
.hobby-box h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}
.hobby-box p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.hobby-box:hover {
    background: rgba(0, 242, 254, 0.03);
    border-color: rgba(0, 242, 254, 0.2);
    transform: translateY(-3px);
}

/* Music Player Aesthetic Styling */
.player-container {
    background: rgba(5, 11, 24, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 20px;
}
.track-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.track-art {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, #3a7bd5, #3a6073);
    border: 2px solid var(--accent-blue);
}
.continuous-rotation {
    animation: rotateDisc 8s linear infinite;
}
@keyframes rotateDisc {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.track-details {
    display: flex;
    flex-direction: column;
}
.track-title {
    font-weight: 600;
    font-size: 1rem;
}
.track-artist {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.progress-area {
    margin-bottom: 15px;
}
.progress-bar {
    height: 6px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    position: relative;
    cursor: pointer;
}
.progress-bar span {
    position: absolute;
    height: 100%;
    width: 35%;
    background: var(--accent-blue);
    border-radius: 50px;
}
.timer {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 5px;
}
.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}
.ctrl-btn {
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s ease;
}
.ctrl-btn:hover {
    color: var(--accent-blue);
}
.play-pause-btn {
    font-size: 1.8rem;
    color: var(--accent-blue);
}

/* Crush Section Mystery Feature */
.confession {
    font-style: italic;
    text-align: center;
}
.mystery-box {
    background: linear-gradient(135deg, rgba(0,242,254,0.05) 0%, rgba(79,172,254,0.05) 100%);
    border: 2px dashed var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}
.mystery-box:hover {
    border-color: var(--accent-blue);
    background: rgba(0, 242, 254, 0.08);
}
.lock-icon {
    font-size: 2rem;
    color: var(--accent-blue);
    display: block;
    margin-bottom: 10px;
    animation: pulse 1.5s infinite;
}
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); }
}
.crush-meter-container {
    margin-top: 20px;
    text-align: center;
    animation: fadeIn 0.5s ease forwards;
}
.meter-bar {
    height: 25px;
    background: rgba(255,255,255,0.05);
    border-radius: 50px;
    margin-top: 10px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}
.meter-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--soft-blue), var(--accent-blue));
    color: #050b18;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideFill 2s ease-out forwards;
}
@keyframes slideFill {
    from { width: 0%; }
    to { width: 100%; }
}

/* ==========================================================================
   6. INTERACTIVE MODAL & OVERLAY
   ========================================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 11, 24, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.modal-card {
    width: 90%;
    max-width: 500px;
    position: relative;
}
.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.8rem;
    cursor: pointer;
}
.close-modal-btn:hover {
    color: var(--accent-blue);
}
.friend-list {
    list-style: none;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.friend-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}
.friend-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--soft-blue);
    color: #050b18;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}
.friend-info {
    font-size: 0.9rem;
}
.friend-info strong {
    color: var(--accent-blue);
    display: block;
}

/* Scroll Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.hidden { display: none; }

/* ==========================================================================
   7. FOOTER & RESPONSIVE DESIGN
   ========================================================================== */
.footer {
    text-align: center;
    padding: 30px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--glass-border);
    margin-top: 40px;
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        right: -100%;
        top: 80px;
        height: calc(100vh - 80px);
        background: var(--bg-secondary);
        flex-direction: column;
        width: 100%;
        text-align: center;
        padding: 40px 0;
        transition: 0.5s ease;
    }
    .nav-links.nav-active { right: 0; }
    .burger { display: block; }
    .grid-hobbies { grid-template-columns: 1fr; }
    .food-gallery { grid-template-columns: 1fr; }
    .hero-title { font-size: 2rem; }
}