/* ============================================================
   1. VARIABLES & THEME (DEEP FOREST LOGIC)
   ============================================================ */
:root {
    --bg: #0D1111;
    --card-bg: #161D1D;
    --primary: #00FF95; /* Neon Mint Green */
    --accent: #00FF95;
    --text-main: #F0F5F2;
    --text-secondary: #819595;
    --nav-bg: rgba(13, 17, 17, 0.95);
    --glass-border: rgba(0, 255, 149, 0.1);
    --shellstone: #00CC77;
}

/* ============================================================
   2. GLOBAL RESET & LAYOUT
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg) !important;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Moving Glow sa Background */
.glow-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 50% -20%, rgba(0, 255, 149, 0.15), transparent 50%);
    z-index: -1;
    pointer-events: none;
}

h1, h2, h3, h4 { font-family: 'Montserrat', sans-serif; text-transform: uppercase; margin: 0; }
p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 15px; }

.main-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================================
   3. NAVIGATION BAR (Glassmorphism)
   ============================================================ */
.navbar {
    position: sticky; top: 0; width: 100%; z-index: 1000;
    background-color: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1100px; margin: 0 auto; padding: 15px 20px;
    display: flex; justify-content: space-between; align-items: center;
}

.logo { font-weight: 900; font-size: 1.3rem; letter-spacing: -1px; }
.logo span { color: var(--accent); }

.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--text-main); font-size: 0.8rem; opacity: 0.8; transition: 0.3s; }
.nav-links a:hover { color: var(--accent); opacity: 1; }

/* ============================================================
   4. HERO SECTION (Typography Focus)
   ============================================================ */
   
/* =========================================
   TYPEWRITER CURSOR (WITH AUTO-HIDE)
   ========================================= */
#typewriter {
    min-height: 2.2em;
    display: inline-block;
}

/* Lalabas lang ang cursor kapag may class na "typing" */
#typewriter.typing::after {
    content: '|';
    color: var(--primary);
    margin-left: 5px;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
   
.hero-section { padding: 100px 20px; text-align: center; }

.status-tag {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(0, 255, 149, 0.05); border: 1px solid rgba(0, 255, 149, 0.2);
    color: var(--primary); padding: 8px 16px; border-radius: 50px; font-size: 0.8rem;
    margin-bottom: 25px; animation: floating 3s ease-in-out infinite;
}

.status-dot { width: 8px; height: 8px; background: #2ecc71; border-radius: 50%; position: relative; }
.status-dot::after { 
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: #2ecc71; border-radius: 50%; animation: pulse-dot 1.5s infinite; 
}

.hero-headline { font-size: clamp(2.2rem, 8vw, 4rem); font-weight: 900; line-height: 1.1; margin-bottom: 25px; }
.highlight { color: var(--primary); }

.hero-subtext {
    font-size: 1.1rem; color: var(--text-secondary);
    max-width: 700px; margin: 0 auto 50px auto !important;
}

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

/* ============================================================
   5. ABOUT ME SECTION & TIMELINE
   ============================================================ */
section {
    background: var(--card-bg); margin: 40px auto; padding: 50px 30px;
    border-radius: 24px; border-left: 6px solid var(--shellstone);
    max-width: 900px; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.about-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }

/* Portrait Image Fix */
.about-main-image { 
    width: 100%; height: 450px; border-radius: 20px; 
    overflow: hidden; position: relative; border: 2px solid var(--primary);
    box-shadow: 0 0 20px rgba(0, 255, 149, 0.1);
}

.about-main-image img { 
    width: 100%; height: 100%; object-fit: cover; 
    object-position: center 20%; /* Eto yung adjustment para hindi masyadong top */
    transition: 0.5s ease;
}

.image-overlay { position: absolute; bottom: 0; left: 0; width: 100%; height: 40%; background: linear-gradient(to top, var(--bg), transparent); z-index: 1; }

.mini-intro { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.mini-pic { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--primary); }

.about-bottom-layout { display: grid; grid-template-columns: 1fr; gap: 40px; }

.hobby-card { 
    display: flex; gap: 15px; background: rgba(255,255,255,0.02); 
    padding: 15px; border-radius: 15px; border: 1px solid rgba(0, 255, 149, 0.05); 
    transition: 0.3s; 
}
.hobby-card:hover { border-color: var(--primary); transform: translateX(10px); }

.timeline-item { position: relative; padding-left: 30px; padding-bottom: 25px; border-left: 2px solid rgba(0, 255, 149, 0.1); margin-left: 10px; }
.timeline-dot { position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; background: #333; border-radius: 50%; border: 2px solid var(--primary); }
.timeline-item.current .timeline-dot { background: var(--primary); box-shadow: 0 0 10px var(--primary); }

.about-info-grid { grid-column: 1 / -1; display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-top: 40px; width: 100%; }
.info-box { background-color: var(--bg) !important; border: 1px solid rgba(0, 255, 149, 0.2); padding: 20px; border-radius: 20px; text-align: center; min-width: 200px; transition: 0.3s; }
.info-box:hover { border-color: var(--primary); transform: translateY(-5px); }

/* ============================================================
   6. TECHNICAL STACK (COLORED ICONS)
   ============================================================ */
.fa-html5 { color: #e34f26; } .fa-css3-alt { color: #1572b6; } .fa-js { color: #f7df1e; }
.fa-python { color: #3776ab; } .fa-database { color: #ffa000; } .fa-terminal { color: #ffffff; } .fa-git-alt { color: #f05033; }

.skills-wrapper { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 30px; }
.skill-category { background: rgba(22, 29, 29, 0.7); border: 1px solid rgba(0, 255, 149, 0.1); padding: 25px; border-radius: 20px; transition: 0.3s; }
.skill-category:hover { border-color: var(--primary); transform: translateY(-5px); }

.category-title { color: var(--primary); font-weight: bold; font-size: 0.9rem; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; text-transform: uppercase; }
.skills-icons { display: flex; justify-content: space-around; gap: 15px; flex-wrap: wrap; }
.skill-item { display: flex; flex-direction: column; align-items: center; gap: 10px; transition: 0.3s; }
.skill-item i { font-size: 2.5rem !important; }
.skill-item:hover i { transform: scale(1.2); filter: drop-shadow(0 0 15px currentColor); }

/* ============================================================
   7. PROJECT GRID (Uniform Symmetric Grid)
   ============================================================ */
.filter-container { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-bottom: 60px; }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 380px; 
    gap: 25px;
}

.bento-item {
    grid-column: span 1 !important; grid-row: span 1 !important;
    position: relative; overflow: hidden; border-radius: 28px; background: var(--card-bg);
    padding: 40px 30px 30px 30px; display: flex; flex-direction: column; justify-content: flex-end;
    border: 1px solid var(--glass-border); transition: 0.4s; z-index: 1;
}

.bento-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.15; z-index: -1; transition: 0.5s ease; }
.bento-item:hover { transform: translateY(-10px) scale(1.02); border-color: var(--primary); z-index: 10; }
.bento-item:hover .bento-bg { opacity: 0.4; transform: scale(1.1); }

.bento-content { position: relative; z-index: 5; pointer-events: none; }
.bento-tag { position: absolute; top: 25px; left: 25px; background: rgba(0, 255, 149, 0.1); color: var(--primary); padding: 6px 14px; border-radius: 50px; font-size: 10px; font-weight: bold; }

/* ============================================================
   8. BUTTONS
   ============================================================ */
.btn, .btn-small, button {
    background: var(--primary) !important; color: #000 !important;
    font-weight: 800; padding: 12px 24px; border-radius: 12px;
    border: none; cursor: pointer; text-decoration: none; display: inline-block;
    text-transform: uppercase; letter-spacing: 1px; transition: 0.3s;
    pointer-events: auto; /* Sinisiguradong laging naki-click */
}

.btn-secondary {
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent !important; color: var(--primary) !important;
    border: 2px solid var(--primary) !important; text-decoration: none !important;
    min-width: 180px;
}

.btn:hover, .btn-secondary:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0, 255, 149, 0.3); }

/* ============================================================
   9. MODAL & ANIMATIONS
   ============================================================ */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); backdrop-filter: blur(8px); overflow-y: auto; }
.modal-content { background: var(--card-bg); margin: 5% auto; padding: 30px; border-radius: 24px; width: 90%; max-width: 600px; position: relative; border: 1px solid var(--primary); color: var(--text-main); }
.close-button { position: absolute; right: 25px; top: 20px; font-size: 2rem; cursor: pointer; color: var(--primary); }

@keyframes floating { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes pulse-dot { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(3); opacity: 0; } }

/* ============================================================
   10. MEDIA QUERIES
   ============================================================ */
@media (min-width: 900px) {
    .about-grid { grid-template-columns: 1.2fr 1fr; }
    .about-bottom-layout { grid-template-columns: 1fr 1fr; grid-column: 1 / -1; }
    .skills-wrapper { grid-template-columns: repeat(3, 1fr); }
    .hero-subtext { margin-bottom: 60px !important; font-size: 1.2rem; }
}

@media (max-width: 768px) {
    .bento-grid { grid-template-columns: 1fr !important; grid-auto-rows: 320px; }
    .nav-links { display: none; }
    .hero-headline { font-size: 2.2rem; }
    section { padding: 30px 20px; }
}