/* =====================
   GLOBAL RESET & THEME
===================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0B1F3B;
    /* main hero bg */
    --bg-card: #102744;
    /* cards */
    --bg-deep: #0A1A33;
    /* navbar / footer */

    --accent-main: #7CFF9B;
    /* cyber green */
    --accent-soft: #6EE7A2;
    /* headings */
    --accent-hover: #22C55E;
    /* hover */

    --text-light: #C7D2E1;
    /* normal text */
    --text-muted: #9FB3C8;
    /* muted */

    --border-soft: rgba(124, 255, 155, 0.25);
}

body {
    font-family: 'JetBrains Mono', monospace;
    background: radial-gradient(circle at top, #102C4E, #0B1F3B);
    color: var(--text-light);
    line-height: 1.6;
}

/* =====================
   CONTAINER
===================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* =====================
   HEADER
===================== */
header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #0A1A33, #102744);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-soft);
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo h1 {
    color: var(--accent-main);
}

.logo p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

nav ul {
    display: flex;
    gap: 24px;
    list-style: none;
}

nav a {
    position: relative;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 2px;
    transition: color 0.3s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;

    background: linear-gradient(to right,
            transparent,
            #7CFF9B,
            transparent);

    box-shadow: 0 0 10px rgba(124, 255, 155, 0.8);
    transition: width 0.35s ease;
}

nav a:hover {
    color: #7CFF9B;
}

nav a:hover::after {
    width: 100%;
}

/* =====================
   HERO
===================== */
.hero {
    padding: 120px 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.6rem;
    color: var(--accent-main);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero p {
    max-width: 800px;
    margin: auto;
    color: var(--text-muted);
    font-family: 'Roboto', sans-serif;
}

.btn {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 34px;
    background: var(--accent-main);
    color: #0B1F3B;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(124, 255, 155, 0.35);
}

.btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-small {
    padding: 8px 18px;
    font-size: 0.85rem;
}

body {
    background-color: #0B1F3B;
    color: #C7D2E1;
}

body {
    background:
        radial-gradient(circle at 15% 20%,
            rgba(124, 255, 155, 0.18),
            transparent 45%),
        radial-gradient(circle at 70% 30%,
            rgba(124, 255, 155, 0.10),
            transparent 50%),
        radial-gradient(circle at 50% 80%,
            rgba(16, 44, 78, 0.9),
            transparent 60%),
        #0B1F3B;
}

body {
    background:
        radial-gradient(circle at 15% 20%,
            rgba(124, 255, 155, 0.18),
            transparent 45%),
        radial-gradient(circle at 70% 30%,
            rgba(124, 255, 155, 0.10),
            transparent 50%),
        radial-gradient(circle at 50% 80%,
            rgba(16, 44, 78, 0.9),
            transparent 60%),
        #0B1F3B;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at center,
            rgba(124, 255, 155, 0.05) 1px,
            transparent 1px);
    background-size: 80px 80px;
    opacity: 0.4;
    pointer-events: none;
}

/* =====================
   SECTIONS
===================== */
section {
    padding: 80px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-header h2 {
    text-align: center;
    color: var(--accent-soft);
    font-size: 2rem;
    margin-bottom: 50px;
}

/* =====================
   ABOUT
===================== */
.about-content {
    max-width: 900px;
    margin: auto;
}

.code-block {
    background: var(--bg-card);
    padding: 20px;
    border-left: 4px solid var(--neon-blue);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.code-keyword {
    color: #c792ea;
}

.code-string {
    color: #7adf9e;
}

.code-comment {
    color: #6a737d;
}

/* =====================
   SKILLS
===================== */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-category {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-glow);
    box-shadow: 0 0 25px rgba(95, 140, 255, 0.08);
}

.skill-category h3 {
    color: var(--neon-blue);
    margin-bottom: 15px;
}

.skill-category ul {
    list-style: none;
    margin-bottom: 20px;
}

.skill-category li::before {
    content: "▹ ";
    color: var(--neon-blue);
}

.skill-category,
.project-card,
.achievement-card,
.certificate-card,
.learning-item {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
}

.skill-category h3,
.project-card h3,
.achievement-card h3,
.certificate-card h3 {
    color: var(--accent-main);
}

/* =====================
   PROJECTS
===================== */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-glow);
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 30px rgba(95, 140, 255, 0.15);
}

.project-card h3 {
    color: var(--accent-main);
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 700;
}

/* Highlight project titles */
.project-card h3 {
    color: var(--accent-main) !important;
    font-weight: 700;
}


/* =====================
   EXPERIENCE
===================== */

.experience-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 1000px;
    margin: auto;
}

.experience-card {
    background: rgba(16, 44, 78, 0.75);
    border: 1px solid rgba(124, 255, 155, 0.25);
    border-radius: 12px;
    padding: 28px 32px;
    backdrop-filter: blur(6px);
    box-shadow: 0 0 25px rgba(95, 140, 255, 0.08);
    transition: all 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
    border-color: rgba(124, 255, 155, 0.45);
    box-shadow: 0 0 30px rgba(124, 255, 155, 0.12);
}

/* Experience heading row */

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(124, 255, 155, 0.15);
}

.experience-header h3 {
    color: var(--accent-main);
    font-size: 1.15rem;
    margin-bottom: 4px;
    font-weight: 700;
}

.experience-header h4 {
    color: var(--text-light);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Date */

.experience-header span {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-style: italic;
    white-space: nowrap;
    padding-top: 3px;
}

/* Experience bullets */

.experience-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.experience-card li {
    position: relative;
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.65;
    margin-bottom: 10px;
    padding-left: 18px;
}

.experience-card li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--accent-main);
    font-weight: 700;
}

/* Mobile */

@media (max-width: 600px) {

    .experience-card {
        padding: 22px;
    }

    .experience-header {
        flex-direction: column;
        gap: 5px;
    }

    .experience-header span {
        padding-top: 0;
    }

    .experience-card li {
        font-size: 0.82rem;
    }
}

/* =====================
   ACHIEVEMENTS & CERTS
===================== */
.achievements-container,
.certificates-container,
.learning-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.achievement-card,
.certificate-card,
.learning-item {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid var(--border-glow);
}

.achievement-card h3,
.certificate-card h3 {
    color: var(--neon-blue);
    margin-bottom: 15px;
}

/* =====================
   CONTACT
===================== */
.contact-container {
    max-width: 720px;
    margin: 40px auto;
    padding: 32px 28px;

    background: linear-gradient(135deg,
            rgba(16, 44, 78, 0.85),
            rgba(11, 31, 59, 0.85));

    border: 1px solid rgba(124, 255, 155, 0.35);
    border-radius: 16px;

    box-shadow:
        0 0 25px rgba(124, 255, 155, 0.25),
        inset 0 0 20px rgba(255, 255, 255, 0.03);

    backdrop-filter: blur(8px);
    text-align: center;
}

.contact-container h3 {
    color: #7CFF9B;
    margin-bottom: 16px;
    font-size: 1.4rem;
}

.contact-container p {
    color: #C7D2E1;
    margin: 8px 0;
    font-size: 0.95rem;
}

.contact-container a {
    color: #7CFF9B;
    text-decoration: none;
    font-weight: 500;
}

.contact-container a:hover {
    color: #22C55E;
}

.terminal-section {
    background: linear-gradient(135deg,
            rgba(16, 44, 78, 0.6),
            rgba(11, 31, 59, 0.6));
    border: 1px solid rgba(124, 255, 155, 0.25);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(6px);
}

.terminal-line {
    color: #C7D2E1;
    margin-bottom: 10px;
}

.social-links a {
    color: var(--text-light);
    margin: 0 10px;
    font-size: 1.4rem;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--neon-blue);
}

.contact-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 15%;
    width: 70%;
    height: 2px;

    background: linear-gradient(to right,
            transparent,
            rgba(124, 255, 155, 0.9),
            transparent);

    box-shadow: 0 0 12px rgba(124, 255, 155, 0.8);
}

/* =====================
   FOOTER
===================== */
footer {
    text-align: center;
    padding: 20px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

section {
    position: relative;
}

section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right,
            transparent,
            rgba(124, 255, 155, 0.6),
            transparent);
    box-shadow: 0 0 10px rgba(124, 255, 155, 0.4);
}

section {
    scroll-margin-top: 120px;
    /* adjust to your header height */
}

.learning-container {
    color: var(--neon-blue);
}

section {
    background: rgba(11, 31, 59, 0.55);
    /* base navy */
    position: relative;
    z-index: 1;
}

section::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left,
            rgba(124, 255, 155, 0.08),
            transparent 60%);
    pointer-events: none;
    z-index: -1;
}

.project-card,
.skill-category,
.achievement-card,
.certificate-card,
.learning-item {
    background: rgba(16, 44, 78, 0.75);
    border: 1px solid rgba(124, 255, 155, 0.25);
    backdrop-filter: blur(6px);
}

.section-header h2 {
    color: #7CFF9B;
    text-shadow: 0 0 12px rgba(124, 255, 155, 0.35);
}

/* =====================
   RESPONSIVE NAVBAR
===================== */
@media (max-width: 768px) {

    .header-content {
        flex-direction: column;
        gap: 12px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }

    nav a {
        font-size: 0.85rem;
    }
}


/* =====================
   HERO RESPONSIVE
===================== */
@media (max-width: 768px) {

    .hero {
        padding: 80px 0;
    }

    .hero h2 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 0.95rem;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {

    .hero h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 10px 26px;
        font-size: 0.85rem;
    }
}


/* =====================
   GRID RESPONSIVE FIX
===================== */
@media (max-width: 768px) {

    .skills-container,
    .projects-container,
    .experience-container,
    .achievements-container,
    .certificates-container,
    .learning-container {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px) {

    .code-block {
        font-size: 0.75rem;
        overflow-x: auto;
        white-space: nowrap;
    }

    .about-content p {
        font-size: 0.9rem;
    }
}

/* =====================
   CONTACT RESPONSIVE
===================== */
@media (max-width: 600px) {

    .contact-container {
        padding: 24px 18px;
    }

    .terminal-output {
        font-size: 0.85rem;
        word-break: break-word;
    }

    .social-links a {
        font-size: 1.2rem;
    }
}

html {
    font-size: 16px;
}

@media (max-width: 480px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    html {
        font-size: 14px;
    }
}
