* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #0a0f1c;
    color: #f8fafc;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;

    background: rgba(10, 15, 28, 0.9);
    backdrop-filter: blur(12px);

    border-bottom: 1px solid #1e293b;
}

.navbar {
    max-width: 1150px;
    margin: auto;

    height: 75px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 20px;
}

.logo {
    font-size: 30px;
    font-weight: 800;
}

.logo span {
    color: #38bdf8;
}

.nav-links {
    display: flex;
    gap: 28px;

    list-style: none;
}

.nav-links a {
    color: #cbd5e1;
    font-size: 14px;

    transition: 0.3s;
}

.nav-links a:hover {
    color: #38bdf8;
}

.menu-toggle {
    display: none;

    background: transparent;
    border: none;

    color: white;
    font-size: 25px;

    cursor: pointer;
}


/* HERO */

.hero {
    min-height: 100vh;
    max-width: 1150px;

    margin: auto;

    padding: 150px 20px 100px;

    display: grid;
    grid-template-columns: 1.2fr 0.8fr;

    gap: 70px;

    align-items: center;
}

.eyebrow {
    color: #38bdf8;

    font-size: 14px;
    font-weight: bold;

    letter-spacing: 4px;
}

.hero h1 {
    font-size: clamp(55px, 8vw, 90px);

    line-height: 1;

    margin: 15px 0;
}

.hero h2 {
    color: #cbd5e1;

    font-size: clamp(24px, 4vw, 38px);

    max-width: 700px;
}

.hero h2 span {
    color: #38bdf8;
}

.hero-description {
    max-width: 650px;

    margin-top: 25px;

    color: #94a3b8;

    font-size: 17px;
}

.hero-buttons {
    display: flex;

    gap: 15px;

    margin-top: 35px;
}

.btn {
    display: inline-block;

    padding: 12px 22px;

    border-radius: 7px;

    font-weight: bold;

    transition: 0.3s;
}

.btn.primary {
    background: #38bdf8;
    color: #020617;
}

.btn.primary:hover {
    transform: translateY(-3px);

    background: #7dd3fc;
}

.btn.secondary {
    border: 1px solid #334155;

    color: #f8fafc;
}

.btn.secondary:hover {
    border-color: #38bdf8;

    color: #38bdf8;
}

.social-links {
    display: flex;

    gap: 20px;

    margin-top: 25px;

    color: #94a3b8;
}

.social-links a:hover {
    color: #38bdf8;
}


/* TERMINAL */

.hero-card {
    display: flex;

    justify-content: center;
}

.terminal {
    width: 100%;

    background: #020617;

    border: 1px solid #1e293b;

    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.terminal-top {
    height: 40px;

    padding: 0 15px;

    display: flex;
    align-items: center;

    gap: 7px;

    background: #111827;
}

.terminal-top span {
    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: #475569;
}

.terminal-body {
    padding: 25px;

    font-family: monospace;

    font-size: 14px;

    color: #cbd5e1;
}

.terminal-body p {
    margin-bottom: 5px;
}

.purple {
    color: #c084fc;
}

.green {
    color: #4ade80;
}

.indent {
    padding-left: 25px;
}


/* SECTIONS */

.section {
    max-width: 1150px;

    min-height: auto;

    margin: auto;

    padding: 96px 20px 72px;
}

.section-heading {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 32px;
}

.section-number {
    color: #38bdf8;

    font-family: monospace;

    font-size: 15px;
}

.section-heading h2 {
    font-size: 40px;
}


/* ABOUT */

.about-content {
    display: grid;

    grid-template-columns: 1fr 0.7fr;

    gap: 70px;
}

.about-content p {
    color: #94a3b8;

    font-size: 17px;

    margin-bottom: 20px;
}

.about-stats {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;
}

.stat {
    padding: 25px;

    background: #111827;

    border: 1px solid #1e293b;

    border-radius: 10px;
}

.stat strong {
    display: block;

    color: #38bdf8;

    font-size: 35px;
}

.stat span {
    color: #94a3b8;

    font-size: 13px;
}


/* SKILLS */

.skills-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 20px;
}

.skill-category {
    padding: 30px;

    background: #111827;

    border: 1px solid #1e293b;

    border-radius: 10px;

    transition: 0.3s;
}

.skill-category:hover {
    border-color: #38bdf8;

    transform: translateY(-5px);
}

.skill-category h3 {
    margin-bottom: 20px;

    font-size: 20px;
}

.skill-list {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;
}

.skill-list span {
    padding: 7px 12px;

    border-radius: 5px;

    background: #0f172a;

    border: 1px solid #334155;

    color: #cbd5e1;

    font-size: 13px;
}


/* PROJECTS */

.projects-container {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.project-card {
    padding: 30px;

    background: #111827;

    border: 1px solid #1e293b;

    border-radius: 10px;

    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-8px);

    border-color: #38bdf8;
}

.project-number {
    color: #38bdf8;

    font-family: monospace;

    margin-bottom: 20px;
}

.project-card h3 {
    font-size: 22px;

    margin-bottom: 15px;
}

.project-card p {
    color: #94a3b8;

    font-size: 14px;

    margin-bottom: 20px;
}

.project-tech {
    display: flex;

    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 25px;
}

.project-tech span {
    padding: 5px 9px;

    background: #0f172a;

    border: 1px solid #334155;

    border-radius: 5px;

    color: #38bdf8;

    font-size: 11px;
}

.project-links {
    display: flex;

    gap: 20px;
}

.project-links a {
    color: #cbd5e1;

    font-size: 13px;

    font-weight: bold;
}

.project-links a:hover {
    color: #38bdf8;
}


/* EDUCATION */

.education-card {
    display: grid;

    grid-template-columns: 0.5fr 1fr;

    gap: 40px;

    padding: 35px;

    background: #111827;

    border: 1px solid #1e293b;

    border-radius: 10px;
}

.education-year {
    color: #38bdf8;

    font-family: monospace;
}

.education-card h3 {
    font-size: 25px;

    margin: 10px 0;
}

.education-card p {
    color: #94a3b8;
}

.education-description {
    max-width: 600px;
}


/* CONTACT */

.contact-section {
    min-height: auto;

    padding-bottom: 96px;

    text-align: center;
}

.contact-section .section-heading {
    justify-content: center;
}

.contact-description {
    max-width: 600px;

    margin: auto;

    color: #94a3b8;
}

.contact-buttons {
    display: flex;

    justify-content: center;

    gap: 15px;

    margin-top: 30px;
}


/* FOOTER */

footer {
    padding: 30px;

    text-align: center;

    border-top: 1px solid #1e293b;

    color: #64748b;

    font-size: 13px;
}


/* MOBILE */

@media (max-width: 850px) {

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;

        top: 75px;
        left: 0;

        width: 100%;

        display: none;

        flex-direction: column;

        padding: 25px;

        background: #0a0f1c;

        border-bottom: 1px solid #1e293b;
    }

    .nav-links.active {
        display: flex;
    }

    .hero {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .projects-container {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .education-card {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 500px) {

    .hero-buttons {
        flex-direction: column;

        align-items: flex-start;
    }

    .hero h1 {
        font-size: 55px;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

}
.hero-buttons{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}
.hero-buttons .btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    min-height: 45px;
}

/* =========================================
   PORTFOLIO V3 — HERO UPGRADE
========================================= */

:root {
    --bg: #070b14;
    --surface: #0d1422;
    --surface-light: #111b2d;
    --border: rgba(148, 163, 184, 0.15);
    --text: #f8fafc;
    --muted: #94a3b8;
    --accent: #38bdf8;
    --accent-soft: rgba(56, 189, 248, 0.12);
}


/* HERO */

.hero {
    position: relative;
    max-width: 1200px;
    min-height: 100vh;

    padding: 150px 25px 100px;

    display: grid;
    grid-template-columns: 1.1fr 0.9fr;

    align-items: center;
    gap: 80px;
}


/* Subtle background glow */

.hero::before {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    top: 10%;
    right: 5%;

    background: rgba(56, 189, 248, 0.08);

    filter: blur(100px);

    border-radius: 50%;

    pointer-events: none;
}


/* Availability */

.availability {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 7px 12px;

    margin-bottom: 25px;

    border: 1px solid rgba(56, 189, 248, 0.2);

    border-radius: 999px;

    background: rgba(56, 189, 248, 0.06);

    color: #bae6fd;

    font-size: 12px;

    font-weight: 600;

    letter-spacing: 0.3px;
}

.status-dot {
    width: 7px;
    height: 7px;

    background: #22c55e;

    border-radius: 50%;

    box-shadow: 0 0 12px rgba(34, 197, 94, 0.8);

    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}


/* Main heading */

.hero h1 {
    max-width: 750px;

    font-size: clamp(48px, 6vw, 78px);

    line-height: 1.03;

    letter-spacing: -3px;

    margin: 10px 0 25px;
}

.hero h1 span {
    color: var(--accent);
}


/* Description */

.hero-description {
    max-width: 680px;

    color: var(--muted);

    font-size: 17px;

    line-height: 1.8;
}

.hero-description strong {
    color: #cbd5e1;
}


/* Buttons */

.hero-buttons {
    margin-top: 35px;

    display: flex;

    flex-wrap: wrap;

    gap: 14px;
}

.hero-buttons .btn {
    min-width: 155px;

    display: inline-flex;

    justify-content: center;

    align-items: center;

    gap: 10px;

    padding: 13px 20px;

    border-radius: 8px;
}

.btn.primary {
    box-shadow:
        0 10px 30px rgba(56, 189, 248, 0.12);
}

.btn.primary:hover {
    transform: translateY(-3px);

    box-shadow:
        0 15px 35px rgba(56, 189, 248, 0.2);
}


/* Meta links */

.hero-meta {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 25px;

    color: #64748b;

    font-size: 13px;
}

.hero-meta a {
    color: #94a3b8;

    transition: 0.25s;
}

.hero-meta a:hover {
    color: var(--accent);
}


/* =========================================
   TERMINAL
========================================= */

.hero-visual {
    position: relative;

    min-height: 480px;

    display: flex;

    align-items: center;

    justify-content: center;
}

.terminal {
    width: min(100%, 500px);

    position: relative;

    z-index: 2;

    background: #050912;

    border: 1px solid var(--border);

    border-radius: 14px;

    overflow: hidden;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.45);

    transform: perspective(1000px)
               rotateY(-4deg);

    transition: 0.5s ease;
}

.terminal:hover {
    transform:
        perspective(1000px)
        rotateY(0deg)
        translateY(-5px);
}

.terminal-header {
    height: 45px;

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 0 16px;

    background: #0c1320;

    border-bottom: 1px solid var(--border);
}

.terminal-dots {
    display: flex;

    gap: 6px;
}

.terminal-dots span {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #475569;
}

.terminal-title {
    color: #64748b;

    font-size: 11px;

    font-family: monospace;
}

.terminal-body {
    padding: 28px;

    min-height: 330px;

    font-family: "Courier New", monospace;

    font-size: 13px;

    line-height: 1.8;

    color: #cbd5e1;
}

.terminal-output {
    color: #94a3b8;

    margin-bottom: 15px;
}

.terminal-green {
    color: #4ade80;
}

.cursor {
    display: inline-block;

    width: 7px;
    height: 15px;

    margin-left: 3px;

    vertical-align: middle;

    background: var(--accent);

    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    45% {
        opacity: 1;
    }

    46%,
    100% {
        opacity: 0;
    }
}


/* =========================================
   FLOATING CARDS
========================================= */

.floating-card {
    position: absolute;

    z-index: 3;

    padding: 15px 18px;

    min-width: 120px;

    background: rgba(13, 20, 34, 0.9);

    border: 1px solid var(--border);

    border-radius: 10px;

    backdrop-filter: blur(12px);

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.3);

    color: #94a3b8;

    font-size: 11px;
}

.floating-card span {
    display: block;

    color: var(--accent);

    font-family: monospace;

    margin-bottom: 5px;
}

.floating-card strong {
    display: block;

    margin-top: 4px;

    color: #f8fafc;

    font-size: 16px;
}

.card-one {
    left: -15px;

    bottom: 60px;
}

.card-two {
    right: -15px;

    top: 60px;
}


/* =========================================
   GENERAL POLISH
========================================= */

.section {
    position: relative;
}

.section-heading h2 {
    letter-spacing: -1px;
}

.project-card,
.skill-category,
.education-card,
.stat {
    backdrop-filter: blur(10px);

    background:
        linear-gradient(
            145deg,
            rgba(17, 24, 39, 0.9),
            rgba(13, 20, 34, 0.8)
        );
}

.project-card {
    position: relative;

    overflow: hidden;
}

.project-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background: var(--accent);

    transform: scaleX(0);

    transform-origin: left;

    transition: 0.4s;
}

.project-card:hover::before {
    transform: scaleX(1);
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 900px) {

    .hero {
        grid-template-columns: 1fr;

        gap: 60px;

        padding-top: 130px;
    }

    .hero-content {
        max-width: 700px;
    }

    .hero-visual {
        min-height: 400px;
    }

    .terminal {
        transform: none;
    }

    .card-one {
        left: 0;
    }

    .card-two {
        right: 0;
    }
}


@media (max-width: 600px) {

    .section {
        padding: 72px 18px 56px;
    }

    .section-heading {
        margin-bottom: 26px;
    }

    .hero {
        padding: 120px 18px 70px;

        min-height: auto;
    }

    .hero h1 {
        font-size: clamp(42px, 13vw, 58px);

        letter-spacing: -2px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-buttons {
        width: 100%;

        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-visual {
        min-height: 350px;
    }

    .terminal-body {
        padding: 20px;

        font-size: 11px;
    }

    .floating-card {
        padding: 10px 12px;

        min-width: 100px;
    }

    .card-one {
        bottom: 20px;
        left: -5px;
    }

    .card-two {
        top: 20px;
        right: -5px;
    }

}

.navbar {
    max-width: 1200px;
}

.nav-links a {
    position: relative;

    padding: 8px 0;
}

.nav-links a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    background: var(--accent);

    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.scroll-top {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 45px;
    height: 45px;

    border: 1px solid var(--border);

    border-radius: 50%;

    background: #111827;

    color: #f8fafc;

    font-size: 20px;

    cursor: pointer;

    opacity: 0;

    pointer-events: none;

    transform: translateY(15px);

    transition: 0.3s;

    z-index: 900;
}

.scroll-top.show {
    opacity: 1;

    pointer-events: auto;

    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--accent);

    color: #020617;

    transform: translateY(-3px);
}

/* =========================================
   PROFESSIONAL SECTION SYSTEM
========================================= */

.section-label {
    margin-bottom: 5px;

    color: #38bdf8;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 2px;
}

.section-intro {
    max-width: 650px;

    margin-top: -12px;

    margin-bottom: 32px;

    color: #94a3b8;

    font-size: 16px;
}


/* ABOUT */

.about-lead {
    font-size: 21px !important;

    line-height: 1.7;
}

.about-lead strong {
    color: #e2e8f0;
}

.about-highlights {
    display: flex;

    flex-direction: column;

    gap: 14px;
}

.highlight-card {
    display: flex;

    gap: 18px;

    padding: 22px;

    background: rgba(17, 24, 39, 0.7);

    border: 1px solid #1e293b;

    border-radius: 10px;

    transition: 0.3s;
}

.highlight-card:hover {
    transform: translateX(6px);

    border-color: rgba(56, 189, 248, 0.5);
}

.highlight-icon {
    color: #38bdf8;

    font-family: monospace;

    font-size: 12px;
}

.highlight-card h3 {
    margin-bottom: 4px;

    font-size: 17px;
}

.highlight-card p {
    margin: 0;

    font-size: 13px;
}


/* SKILLS */

.skill-header {
    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 15px;
}

.skill-index {
    color: #38bdf8;

    font-family: monospace;

    font-size: 12px;
}

.skill-category > p {
    min-height: 55px;

    margin-bottom: 20px;

    color: #64748b;

    font-size: 13px;
}


/* PROJECTS */

.project-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 25px;
}

.project-status {
    color: #64748b;

    font-size: 9px;

    letter-spacing: 1px;
}

.project-type {
    margin-bottom: 8px;

    color: #38bdf8 !important;

    font-family: monospace;

    font-size: 10px !important;

    font-weight: 700;

    letter-spacing: 1px;
}

.project-footer {
    display: flex;

    flex-direction: column;

    gap: 18px;

    margin-top: auto;
}

.project-demo {
    color: #cbd5e1;

    font-size: 13px;

    font-weight: 700;
}

.project-demo:hover {
    color: #38bdf8;
}

.project-card {
    display: flex;

    flex-direction: column;
}

.project-content {
    flex: 1;
}

.projects-cta {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    margin-top: 40px;

    padding-top: 30px;

    border-top: 1px solid #1e293b;

    color: #64748b;

    font-size: 14px;
}


/* EDUCATION TIMELINE */

.timeline {
    position: relative;

    max-width: 850px;

    margin: auto;

    padding-left: 35px;
}

.timeline::before {
    content: "";

    position: absolute;

    left: 5px;

    top: 5px;

    bottom: 5px;

    width: 1px;

    background: #1e293b;
}

.timeline-item {
    position: relative;

    padding-bottom: 55px;
}

.timeline-marker {
    position: absolute;

    left: -35px;

    top: 5px;

    width: 11px;
    height: 11px;

    border: 2px solid #38bdf8;

    background: #070b14;

    border-radius: 50%;
}

.timeline-date {
    color: #38bdf8;

    font-family: monospace;

    font-size: 11px;

    letter-spacing: 1px;
}

.timeline-content h3 {
    margin: 8px 0 3px;

    font-size: 24px;
}

.timeline-role {
    margin-bottom: 15px;

    color: #cbd5e1 !important;

    font-size: 14px !important;
}

.timeline-content > p:last-child {
    max-width: 700px;

    color: #94a3b8;

    font-size: 14px;
}


/* CONTACT */

.contact-section {
    min-height: 70vh;

    display: flex;

    align-items: center;

    justify-content: center;
}

.contact-box {
    width: 100%;

    max-width: 850px;

    padding: 70px 30px;

    text-align: center;

    border: 1px solid #1e293b;

    border-radius: 16px;

    background:
        radial-gradient(
            circle at top,
            rgba(56, 189, 248, 0.08),
            transparent 55%
        );

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.25);
}

.contact-box h2 {
    margin: 15px 0 20px;

    font-size: clamp(38px, 6vw, 60px);

    line-height: 1.1;

    letter-spacing: -2px;
}

.contact-box h2 span {
    color: #38bdf8;
}

.contact-description {
    max-width: 600px;

    margin: auto;

    color: #94a3b8;

    font-size: 15px;
}

.contact-buttons {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 12px;

    margin-top: 35px;
}

.contact-note {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-top: 30px;

    color: #64748b;

    font-size: 11px;
}


/* MOBILE */

@media (max-width: 700px) {

    .section {
        padding-left: 18px;
        padding-right: 18px;
    }

    .section-heading {
        margin-bottom: 35px;
    }

    .section-intro {
        margin-top: -15px;
    }

    .about-lead {
        font-size: 18px !important;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-category > p {
        min-height: auto;
    }

    .projects-cta {
        flex-direction: column;

        align-items: flex-start;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .contact-buttons .btn {
        width: 100%;
    }

}