/* --- Base Variables & Reset --- */
:root {
    --bg-color: #0c120e; 
    --surface-color: #151f18; 
    --text-main: #e0e0e0;
    --text-muted: #8a9ba8;
    --accent: #d4af37; 
    --accent-hover: #b5952f;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: var(--bg-color); color: var(--text-main); line-height: 1.6; overflow-x: hidden; scroll-behavior: smooth; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; width: 100%; }
h2 { font-size: 2.5rem; margin-bottom: 0.5rem; color: var(--accent); text-transform: uppercase; letter-spacing: 2px; }
.section-desc { color: var(--text-muted); margin-bottom: 3rem; font-size: 1.1rem; }

/* --- Modern Floating Navigation Capsule --- */
nav {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 25px;
    background: rgba(12, 18, 14, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    z-index: 1000;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.logo-link { display: flex; align-items: center; text-decoration: none; gap: 10px; }
.logo-img { max-height: 35px; width: auto; border-radius: 5px; }
/* I changed "C7." back to "CodeCrafted7" here just in case you preferred the full name! */
.logo-text { font-size: 1.3rem; font-weight: 800; color: var(--text-main); letter-spacing: 1px;}

.nav-links { list-style: none; display: flex; align-items: center; gap: 15px; }

/* The hover pill effect for links */
.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 30px;
}

.nav-links a:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent);
}

/* Make the Contact link a solid button */
.nav-links .nav-btn {
    background: var(--accent);
    color: #000;
    font-weight: bold;
    margin-left: 10px;
}

.nav-links .nav-btn:hover {
    background: var(--accent-hover);
    color: #000;
    transform: translateY(-2px);
}

.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; color: var(--text-main); }

/* --- Buttons --- */
.btn { display: inline-block; padding: 12px 30px; background: var(--accent); color: #000; text-decoration: none; border-radius: 5px; font-weight: bold; border: none; cursor: pointer; transition: all 0.3s; margin-top: 15px; }
.btn:hover { background: var(--accent-hover); transform: translateY(-2px); }
.btn-outline { display: inline-block; padding: 8px 20px; margin-top: 15px; background: transparent; color: var(--accent); border: 1px solid var(--accent); text-decoration: none; border-radius: 5px; transition: all 0.3s; cursor: pointer; }
.btn-outline:hover { background: var(--accent); color: #000; }

/* --- Sections --- */
.section { min-height: 100vh; padding: 100px 0 60px; display: flex; flex-direction: column; justify-content: center; }

/* Hero */
.hero-style { background: radial-gradient(circle at center, var(--surface-color), var(--bg-color)); text-align: center; align-items: center; }
.hero-style h1 { font-size: 4rem; margin-bottom: 15px; line-height: 1.1; }
.highlight { color: var(--accent); }
.hero-style p { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 30px; }

/* About & Tech Stack */
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 40px; align-items: center; }
.about-text p { margin-bottom: 15px; color: var(--text-muted); font-size: 1.05rem; }
.tech-stack-container { background: var(--surface-color); padding: 30px; border-radius: 10px; border-top: 3px solid var(--accent); text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
.tech-stack-container h3 { font-size: 1.2rem; color: var(--text-main); margin-bottom: 25px; text-transform: uppercase; letter-spacing: 1px; }
.tech-icons { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.tech-icons i { font-size: 2.2rem; color: var(--text-muted); transition: all 0.3s ease; cursor: pointer; }
.tech-icons i:hover { color: var(--accent); transform: translateY(-5px) scale(1.1); text-shadow: 0 5px 15px rgba(212, 175, 55, 0.4); }

/* Journey Timeline */
.journey-style { background-color: var(--bg-color); }
.timeline { position: relative; max-width: 800px; margin: 0 auto; padding: 40px 0; }
.timeline::after { content: ''; position: absolute; width: 4px; background-color: var(--surface-color); top: 0; bottom: 0; left: 50%; margin-left: -2px; border-radius: 5px; }
.timeline-item { padding: 10px 40px; position: relative; background-color: inherit; width: 50%; }
.timeline-item::after { content: ''; position: absolute; width: 20px; height: 20px; right: -10px; background-color: var(--bg-color); border: 4px solid var(--accent); top: 15px; border-radius: 50%; z-index: 1; }
.left { left: 0; }
.right { left: 50%; }
.right::after { left: -10px; }
.timeline-content { padding: 20px 30px; background-color: var(--surface-color); position: relative; border-radius: 10px; border-left: 3px solid var(--accent); box-shadow: 0 5px 15px rgba(0,0,0,0.2); transition: transform 0.3s; }
.timeline-content:hover { transform: translateY(-5px); }
.timeline-content h3 { margin-bottom: 10px; color: var(--text-main); }
.timeline-content p { color: var(--text-muted); font-size: 0.95rem; }

/* Achievements Stats */
.stats-style { background-color: var(--surface-color); min-height: auto; padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; text-align: center; }
.stat-item { padding: 20px; }
.stat-item i { color: var(--accent); margin-bottom: 15px; }
.stat-item h3 { font-size: 3.5rem; color: var(--text-main); margin-bottom: 5px; line-height: 1; font-weight: 800; }
.stat-item p { font-size: 1.2rem; font-weight: bold; color: var(--text-muted); margin-bottom: 5px; }
.stat-item small { color: rgba(138, 155, 168, 0.7); font-size: 0.85rem; }

/* Reel Logic (IG Feed) */
.reel-style { background-color: var(--bg-color); }
.ig-feed-container { width: 100%; max-width: 900px; margin: 0 auto; min-height: 400px; }

/* Launchpad (Accordion Project Cards) */
.launchpad-style { background-color: var(--surface-color); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; align-items: start; }
.project-card { background: var(--bg-color); border-radius: 10px; border-top: 4px solid var(--accent); overflow: hidden; display: flex; flex-direction: column; }
.project-header { padding: 25px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; transition: background-color 0.3s; }
.project-header:hover { background: rgba(255, 255, 255, 0.03); }
.project-header h3 { margin: 0; font-size: 1.2rem; }
.toggle-icon { color: var(--text-muted); transition: transform 0.4s ease, color 0.3s; }

.project-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.4s ease; }
.project-content-inner { overflow: hidden; padding: 0 25px; }
.project-card.active .project-content { grid-template-rows: 1fr; }
.project-card.active .project-content-inner { padding-bottom: 25px; }
.project-card.active .toggle-icon { transform: rotate(180deg); color: var(--accent); }

.project-image { width: 100%; height: 200px; object-fit: cover; border-radius: 5px; margin: 15px 0; background: #000; }
.tags { margin: 10px 0 15px; }
.tech-tag { display: inline-block; font-size: 0.8rem; background: rgba(212, 175, 55, 0.1); color: var(--accent); padding: 4px 10px; border-radius: 20px; margin-right: 5px; margin-bottom: 5px; }
.project-content-inner p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 15px; flex-grow: 1; }

/* Out of Office */
.ooo-style { background-color: var(--bg-color); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.gallery-item { height: 300px; border-radius: 10px; transition: transform 0.3s; }
.gallery-item:hover { transform: scale(1.03); }

/* Contact */
.contact-style { background-color: var(--surface-color); }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.social-links { margin-top: 25px; display: flex; flex-direction: column; gap: 15px; }
.social-btn { display: inline-flex; align-items: center; gap: 10px; color: var(--text-main); text-decoration: none; font-size: 1.1rem; transition: color 0.3s; }
.social-btn:hover { color: var(--accent); }
.contact-form { display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; background: var(--bg-color); border: 1px solid rgba(255,255,255,0.1); border-radius: 5px; color: var(--text-main); }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); outline: none; }

/* --- Animations & Utilities --- */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.fade-in { animation: fadeIn 1s forwards; opacity: 0; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
@keyframes fadeIn { to { opacity: 1; } }

/* --- Mobile Responsiveness --- */
@media (max-width: 850px) {
    .menu-toggle { display: block; }

    /* Mobile Menu for Floating Nav is now safely inside the @media rule */
    nav { top: 15px; width: 90%; padding: 12px 20px; }

    .nav-links {
        position: absolute;
        top: 75px;
        left: 50%;
        transform: translateX(-50%) scale(0.9);
        flex-direction: column;
        background: rgba(12, 18, 14, 0.98);
        width: 100%;
        text-align: center;
        padding: 30px 0;
        border-radius: 20px;
        border: 1px solid rgba(255,255,255,0.05);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 15px;
        opacity: 0;
        pointer-events: none;
        box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    }

    .nav-links.active {
        transform: translateX(-50%) scale(1);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links .nav-btn { margin-left: 0; margin-top: 10px; }

    .hero-style h1 { font-size: 2.8rem; }
    .about-grid, .contact-wrapper { grid-template-columns: 1fr; gap: 30px; }
    .section { padding: 80px 0 40px; }

    /* Mobile Timeline Fix */
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item::after { left: 21px; }
    .right { left: 0%; }
}