/* =========================================================
   ROOT VARIABLES
========================================================= */
:root {
    --bg-primary: #0B0F19;         /* Deep navy */
    --bg-secondary: #131926;       /* Surface background */
    --card-bg: #131926;            /* Cards */
    --bg-elevated: #1A2233;        /* Hover / elevated cards */
    --bg-overlay: rgba(11, 15, 25, 0.96);

    --text-primary: #D9E1F2;       /* Soft banner-matched title tone */
    --text-secondary: #94A3B8;     /* Muted steel-blue */
    --text-muted: #64748B;         /* Secondary muted copy */

    --accent-color: #A7B4C8;       /* Refined banner accent */
    --accent-strong: #C7D2E0;      /* Hover accent */
    --accent-soft: rgba(167, 180, 200, 0.10);

    --border: rgba(167, 180, 200, 0.16);
    --border-strong: rgba(167, 180, 200, 0.28);

    --white-soft: #F4F7FB;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);

    --success-soft: rgba(167, 180, 200, 0.10);
    --success-border: rgba(167, 180, 200, 0.28);
    --success-text: #B8C4D6;

    /* Responsive Typography */
    --fs-xs: clamp(0.72rem, 0.7rem + 0.2vw, 0.82rem);
    --fs-sm: clamp(0.88rem, 0.82rem + 0.3vw, 1rem);
    --fs-base: clamp(1rem, 0.92rem + 0.35vw, 1.08rem);
    --fs-md: clamp(1.15rem, 1rem + 0.5vw, 1.4rem);

    /* Reduced desktop section heading sizes */
    --fs-lg: clamp(1.4rem, 1.1rem + 0.8vw, 1.9rem);
    --fs-xl: clamp(1.8rem, 1.4rem + 1.4vw, 3rem);

    /* Hero heading remains large */
    --fs-hero: clamp(2.2rem, 1.6rem + 3vw, 5rem);
}

.site-wave-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
    opacity: 0.42;
}

.site-wave-bg svg {
    width: 100%;
    height: 100%;
    display: block;
}

#wavePath1,
#wavePath2,
#wavePath3 {
    fill: none;
    stroke: var(--accent-color);
    stroke-linecap: round;
    stroke-linejoin: round;
}

#wavePath1 {
    stroke-width: 2;
    opacity: 0.1;
    filter: blur(2.2px);
}

#wavePath2 {
    stroke-width: 2.5;
    opacity: 0.20;
    filter: blur(1.2px);
}

#wavePath3 {
    stroke-width: 3;
    opacity: 0.3;
    filter: drop-shadow(0 0 10px rgba(167, 180, 200, 0.08));
}

nav,
section,
footer {
    position: relative;
    z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
    .site-wave-bg {
        opacity: 0.24;
    }
}
/* =========================================================
   RESET
========================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: Inter, Arial, Helvetica, sans-serif;
    overflow-x: hidden;
    line-height: 1.7;
}

a {
    color: inherit;
}

::-webkit-scrollbar {
    width: 0px;
}

/* =========================================================
   GLOBAL TYPOGRAPHY
========================================================= */
h1 {
    font-size: var(--fs-hero);
    line-height: 1.1;
}

h2 {
    font-size: var(--fs-xl);
    line-height: 1.15;
}

h3 {
    font-size: var(--fs-lg);
    line-height: 1.3;
}

p {
    font-size: var(--fs-base);
}

/* =========================================================
   NAVBAR
========================================================= */
.navbar {
    position: sticky;
    top: 20px;
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(19, 25, 38, 0.82);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    z-index: 9999;
}

/* =========================
   NAVBAR TOGGLER
========================= */
.navbar-toggler {
    order: -1;
    width: 42px;
    height: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    z-index: 10000;
}

.line {
    height: 2px;
    background: var(--text-primary);
    border-radius: 999px;
}

.line:nth-child(1) {
    width: 50%;
}

.line:nth-child(2) {
    width: 100%;
}

.line:nth-child(3) {
    width: 70%;
}

/* =========================
   BRAND
========================= */
.navbar-brand {
    display: flex;
    flex-direction: column;
    margin-left: 14px;
    font-size: var(--fs-md);
    font-weight: 700;
    line-height: 1.1;
}

.navbar-brand span {
    margin-top: 5px;
    font-size: var(--fs-xs);
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* =========================
   MOBILE NAV
========================= */
.collapse {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    padding: 1em;
    background-color: var(--bg-overlay);
    backdrop-filter: blur(18px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.collapse.active {
    display: flex;
}

.navbar-nav {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.navbar-nav a {
    text-decoration: none;
    font-size: var(--fs-md);
    color: var(--text-secondary);
    transition: 0.25s ease;
}

.navbar-nav a:hover {
    color: var(--text-primary);
}

/* =========================================================
   HERO SECTION
========================================================= */
.aboutme {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
}

.profile {
    width: 100%;
    max-width: 1150px;
    min-height: 72vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
}

.part1 {
    width: 100%;
    background: var(--bg-primary);
    padding: 50px 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.img-wrapper {
    width: 220px;
    height: 220px;
    overflow: hidden;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.part1 h1 {
    margin-top: 28px;
    font-size: clamp(1.8rem, 1.4rem + 2vw, 3rem);
    text-align: center;
}

.actions {
    margin-top: 28px;
    display: flex;
    gap: 14px;
}

.btn {
    padding: 14px 24px;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: 0.25s ease;
    color: var(--text-primary);
    background: transparent;
}

.actions .btn:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.special {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.actions .special:hover {
    background: var(--accent-strong);
    color: var(--bg-primary);
}

.social-media {
    margin-top: 32px;
    display: flex;
    gap: 18px;
}

.social-media a {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    transition: 0.25s ease;
}

.social-media a:hover {
    background: var(--text-primary);
}

.social-media a:hover ion-icon {
    color: var(--bg-primary);
}

ion-icon {
    font-size: 1.3rem;
    transition: 0.25s ease;
}

.part2 {
    width: 100%;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.part2 h2 {
    font-size: clamp(1.9rem, 1.5rem + 1.5vw, 3.2rem);
    margin-bottom: 20px;
}

.part2 p {
    color: var(--text-secondary);
    margin-bottom: 18px;
    font-size: var(--fs-base);
}

/* =========================================================
   COMMON SECTIONS
========================================================= */
.common {
    padding: 100px 20px;
}

.container {
    max-width: 1000px;
    margin: auto;
}

.container h2 {
    font-size: clamp(1.9rem, 1.5rem + 1.4vw, 3rem);
    margin-bottom: 50px;
}

/* =========================================================
   PROJECTS SECTION
========================================================= */
.projects {
    background-color: transparent;
    padding-top: 50px;
}

.timeline-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 22px;
    width: 2px;
    background-color: var(--border);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 60px;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 5px;
    width: 40px;
    height: 40px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--card-bg);
    font-weight: 700;
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: scale(1.1);
}

.timeline-content {
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-bottom: none;
    /* border-radius: 8px; */
    padding: 35px;
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content {
    /* transform: translateX(5px); */
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); */
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 15px;
}

.project-header h3 {
    font-size: clamp(1.2rem, 1rem + 0.8vw, 1.8rem);
    font-weight: 700;
    line-height: 1.3;
}

.project-year {
    font-size: var(--fs-sm);
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.project-desc {
    color: var(--text-secondary);
    font-size: var(--fs-base);
    margin-bottom: 20px;
    line-height: 1.7;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.project-tech span {
    font-size: var(--fs-xs);
    padding: 5px 12px;
    background-color: var(--accent-soft);
    border-radius: 4px;
    color: var(--text-secondary);
}
.project-links a {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.project-image{
    width: 100%;
    border: 1px solid var(--border);
    border-top: none;
}
/* =========================================================
   ACTION BUTTONS
========================================================= */
.action-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: var(--fs-sm);
    padding: 8px 16px;
    border-radius: 6px;
    transition: 0.3s;
    background: var(--accent-soft);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-link ion-icon {
    font-size: 1rem;
}

.btn-link:hover {
    background: rgba(167, 180, 200, 0.2);
    color: var(--white-soft);
}

.btn-link.live {
    background: var(--success-soft);
    border-color: var(--success-border);
    color: var(--success-text);
}

.btn-link.live:hover {
    background: rgba(167, 180, 200, 0.18);
    color: var(--text-primary);
}

/* =========================================================
   SKILLS SECTION
========================================================= */
.skills {
    padding-top: 8em;
}

.skills .grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1px;
    background: var(--border);
}

.skills .card {
    position: relative;
    background: var(--bg-secondary);
    padding: 34px;
    overflow: hidden;
    min-height: 220px;
    transition:
        transform 0.35s ease,
        background 0.35s ease;
}

.skills .card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 90px;
    height: 90px;
    background: rgba(167, 180, 200, 0.04);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
}

.skills .card:hover {
    background: var(--bg-elevated);
    transform: scale(0.985);
}

.skills .card h3 {
    margin-bottom: 14px;
    font-size: clamp(1.15rem, 1rem + 0.6vw, 1.6rem);
    transition: 0.25s ease;
}

.skills .card:hover h3 {
    transform: translateX(6px);
}

.skills .card p {
    color: var(--text-secondary);
}

/* =========================================================
   SKILLS GRID LAYOUT
========================================================= */
.skills .card:nth-child(1) {
    grid-column: span 7;
}

.skills .card:nth-child(2) {
    grid-column: span 5;
}

.skills .card:nth-child(3) {
    grid-column: span 4;
}

.skills .card:nth-child(4) {
    grid-column: span 8;
}

.skills .card:nth-child(5) {
    grid-column: span 6;
}

.skills .card:nth-child(6) {
    grid-column: span 6;
}

.skills .card:nth-child(7) {
    grid-column: span 5;
}

.skills .card:nth-child(8) {
    grid-column: span 7;
}

.skills .card:nth-child(9) {
    grid-column: span 8;
}

.skills .card:nth-child(10) {
    grid-column: span 4;
}

.skills .card:nth-child(11) {
    grid-column: span 6;
}

.skills .card:nth-child(12) {
    grid-column: span 6;
}

/* =========================================================
   SECTION TITLES
========================================================= */
.section-title-container {
    margin: 0 auto;
    padding: 10vw;
}

.section-title {
    font-size: clamp(1.9rem, 4vw, 3.5rem);
    line-height: 1.1;
}

.section-subtitle {
    color: var(--text-secondary);
    padding-top: 10px;
}

.skill-graph-section {
    width: 100%;
    padding: 80px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#skillRadar {
    width: 100% !important;
    max-height: 70vh;
}

/* MOBILE */
@media (max-width: 768px) {
    .graph-container {
        padding: 10px;
        border-radius: 18px;
    }

    #skillRadar {
        height: 380px !important;
    }
}

.graph-container {
    width: 100%;
    padding: 30px;
    overflow: hidden;
}

/*========================================================
Hire Me Section
==========================================================*/
.hireme {
    width: 100%;
    padding: 120px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hireme-container {
    width: 100%;
    max-width: 900px;
    text-align: center;
    padding: 50px 30px;
    border-radius: 28px;
    background: rgba(167, 180, 200, 0.04);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.hireme-container h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hireme-container p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 14px;
    max-width: 700px;
    margin-inline: auto;
}

.hireme-buttons {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .hireme-container {
        padding: 40px 20px;
    }

    .hireme-container h2 {
        font-size: 2rem;
    }
}

/* =========================================================
   FOOTER
========================================================= */
footer {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
}

/* =========================================================
   DESKTOP
========================================================= */
@media (min-width: 992px) {
    .navbar-toggler {
        display: none;
    }

    .collapse {
        position: relative;
        width: max-content;
        height: auto;
        display: flex !important;
        background: transparent;
        padding: 0;
    }

    .navbar-nav {
        flex-direction: row;
        gap: 42px;
    }

    .navbar-nav a {
        font-size: var(--fs-sm);
    }

    .profile {
        flex-direction: row;
    }

    .part1 {
        width: 38%;
    }

    .part2 {
        width: 62%;
    }
}

/* =========================================================
   TABLET
========================================================= */
@media (max-width: 991px) {
    .profile {
        min-height: auto;
    }

    .part2 {
        padding: 40px 28px;
    }

    .part2 h2 {
        font-size: clamp(2rem, 4vw, 3rem);
    }

    .skills .grid {
        grid-template-columns: 1fr;
    }

    .skills .card,
    .skills .card:nth-child(n) {
        grid-column: span 1;
    }

    .skills .card {
        min-height: auto;
    }

    .actions {
        flex-direction: column;
        width: 100%;
    }

    .actions .btn {
        text-align: center;
    }

    .img-wrapper {
        width: 180px;
        height: 180px;
    }

    .project-header {
        flex-direction: column;
        gap: 10px;
    }
}

/* =========================================================
   MOBILE
========================================================= */
@media (max-width: 768px) {
    .common {
        padding: 70px 16px;
    }

    .timeline-item {
        padding-left: 52px;
    }

    .timeline-content {
        padding: 24px;
    }

    .container h2,
    .section-title,
    .part2 h2 {
        line-height: 1.15;
    }

    .section-title-container {
        padding: 18vw 8vw;
    }

    .project-header h3 {
        font-size: 1.35rem;
    }
}

/* =========================================================
   SMALL PHONES
========================================================= */
@media (max-width: 480px) {
    .navbar {
        padding: 14px 18px;
    }

    .part1,
    .part2 {
        padding: 30px 22px;
    }

    .timeline-content {
        padding: 20px;
    }

    .project-tech {
        gap: 8px;
    }

    .project-tech span {
        padding: 4px 10px;
    }

    .section-title {
        font-size: clamp(1.8rem, 9vw, 3rem);
    }
}