/* =========================================================
   Simpa Portfolio
   Terminal / AI Developer Theme
   ========================================================= */


/* =========================
   Theme Variables
   ========================= */

:root {
    --bg-primary: #05070d;
    --bg-secondary: #0b1220;
    --bg-card: rgba(15, 23, 42, .75);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #38bdf8;
    --accent-secondary: #6366f1;
    --border: rgba(148,163,184,.15);
    --shadow: 0 20px 50px rgba(0,0,0,.35);
    --radius: 18px;
    --terminal-green: #22c55e;
    --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


/* LIGHT THEME */

[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #e2e8f0;
    --bg-card: rgba(255,255,255,.75);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --border: rgba(15,23,42,.12);
    --shadow: 0 20px 40px rgba(15,23,42,.12);
}



/* =========================
   Global
   ========================= */


* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;
    background: radial-gradient( circle at top, rgba(56,189,248,.12), transparent 40% ), var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font);
    transition: background .3s ease, color .3s ease;
}



a {
    text-decoration: none;
}



section {
    padding: 100px 0;
}



.text-primary {
    color: var(--accent) !important;
}



.text-secondary {
    color: var(--text-secondary) !important;
}


/* =========================
   Navbar
   ========================= */


.navbar {
    background: rgba(5,7,13,.65);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
}


[data-theme="light"]
.navbar {
    background: rgba(248,250,252,.75);
}



.navbar-brand {
    letter-spacing: -1px;
}



.nav-link {
    color: var(--text-secondary);
    transition: .25s;
}



    .nav-link:hover {
        color: var(--accent);
    }



#themeToggle {
    border-radius: 50%;
    width: 42px;
    height: 42px;
}



/* =========================
   Hero Terminal
   ========================= */


.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
}



.terminal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}



.terminal-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 8px;
}



.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-secondary);
}



    .dot.red {
        background: #ef4444;
    }


    .dot.yellow {
        background: #eab308;
    }


    .dot.green {
        background: #22c55e;
    }



.terminal-body {
    padding: 35px;
    font-family: monospace;
}



.prompt {
    color: var(--terminal-green);
}



.cursor {
    display: inline-block;
    width: 10px;
    height: 20px;
    background: var(--accent);
    animation: blink 1s infinite;
}



@keyframes blink {

    50% {
        opacity: 0;
    }
}



/* =========================
   Buttons
   ========================= */


.btn-primary {
    background: linear-gradient( 135deg, var(--accent), var(--accent-secondary) );
    border: none;
}



    .btn-primary:hover {
        transform: translateY(-2px);
    }



.command-btn {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-primary);
    padding: 12px 25px;
    border-radius: 999px;
    transition: .25s;
}



    .command-btn:hover {
        background: var(--accent);
        color: #000;
    }



/* =========================
   Cards
   ========================= */


.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    transition: transform .3s ease, border .3s ease;
}



    .card:hover {
        transform: translateY(-8px);
        border-color: var(--accent);
    }




/* =========================
   Section Titles
   ========================= */


.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 50px;
}



    .section-title span {
        color: var(--accent);
    }



/* =========================
   Experience Timeline
   ========================= */


.timeline {
    position: relative;
    padding-left: 30px;
}



    .timeline::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 2px;
        height: 100%;
        background: var(--accent);
    }



.timeline-item {
    position: relative;
    margin-bottom: 45px;
}



    .timeline-item::before {
        content: "";
        position: absolute;
        left: -37px;
        top: 8px;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: var(--accent);
    }



/* =========================
   Skills
   ========================= */


.skill {
    padding: 12px 20px;
    border-radius: 999px;
    background: rgba(56,189,248,.08);
    border: 1px solid var(--border);
    display: inline-block;
    margin: 5px;
    transition: .25s;
}



    .skill:hover {
        background: var(--accent);
        color: #000;
    }



/* =========================
   Projects
   ========================= */


.project-card {
    height: 100%;
}



.project-tech {
    font-size: .85rem;
    color: var(--accent);
}



/* =========================
   Contact
   ========================= */


.contact-box {
    padding: 40px;
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}



/* =========================
   Footer
   ========================= */


.footer {
    border-top: 1px solid var(--border);
    background: var(--bg-secondary);
}



.footer-link {
    color: var(--text-secondary);
    font-size: 1.4rem;
    margin-left: 18px;
    transition: .25s;
}



    .footer-link:hover {
        color: var(--accent);
    }



/* =========================
   Animations
   ========================= */


.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: .8s ease;
}



    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }



/* =========================
   Scrollbar
   ========================= */


::-webkit-scrollbar {
    width: 10px;
}



::-webkit-scrollbar-track {
    background: var(--bg-primary);
}



::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 20px;
}



/* =========================
   Responsive
   ========================= */


@media(max-width:768px) {


    section {
        padding: 70px 0;
    }


    .terminal-body {
        padding: 20px;
    }


    .section-title {
        font-size: 2rem;
    }
}
