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

body {
    font-family: Inter, sans-serif;
    scroll-snap-type: y proximity;
    overflow-y: scroll;
}

.panel {
    height: 100vh;
    width: 100%;
    position: sticky;
    top: 0;
    scroll-snap-align: start;
    display: flex;
    justify-content: center;
    align-items: center;
}

.light {
    background: #0d1117;
    color: whitesmoke;
}

.dark {
    background: rgb(34, 40, 49);
    color: white;
}

.content {
    width: 70%;
    max-width: 900px;
}

button:not(.skill-badge):not(.filter-btn):not(.btn):not(#theme-toggle) {
    background-color: rgb(34, 40, 49);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin: 5px;
    transition: background-color 0.3s;
}

button:not(.skill-badge):not(.filter-btn):not(.btn):not(#theme-toggle):hover {
    background-color: rgb(50, 56, 67);
}

/* ── Navigation ──────────────────── */
#main-nav {
    background: rgba(13, 17, 23, 0.85) !important;
    backdrop-filter: blur(10px);
    border-bottom: 0.5px solid rgba(255,255,255,0.08);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

#main-nav .nav-link {
    color: rgba(255,255,255,0.6) !important;
    font-size: 13px;
    font-weight: 400;
    padding: 4px 14px !important;
    transition: color 0.2s;
}

#main-nav .nav-link:hover {
    color: white !important;
}

#main-nav .navbar-toggler {
    border-color: rgba(255,255,255,0.4) !important;
}

#main-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.8%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.hidden {
    display: none;
}
/* ── Header Section ─────────────────── */
.name {
    position: relative;
    color: white;
    background: #0d1117;
    overflow: hidden;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    min-height: 100vh;
    height: auto;
    padding: 100px 20px 60px;
}

.name::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 24px 24px;
}

.name::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(80,100,180,0.18) 0%, transparent 70%);
}


.name-content {
    position: relative;
    text-align: center;
    z-index: 2;
}

.name h1 {
    font-size: 70px;
    letter-spacing: 4px;
    font-weight: 600;
}

.name p {
    font-size: 20px;
    margin-top: 10px;
}

#about {
    height: auto;
    min-height: 60vh;
    scroll-snap-align: none;
    border-top: 0.5px solid rgba(255,255,255,0.08);
}

#education {
    height: auto;
    min-height: 100vh;
    scroll-snap-align: none;
}

/* ── Education Timeline ───────────── */
.timeline {
    position: relative;
    padding-left: 32px;
    margin-top: 8px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 1.5px;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255,255,255,0.25) 0px,
        rgba(255,255,255,0.25) 6px,
        transparent 6px,
        transparent 12px
    );
}

.timeline-item {
    position: relative;
    margin-bottom: 24px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -32px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgb(34, 40, 49);
    border: 2px solid rgba(255,255,255,0.3);
}

.timeline-dot.active {
    border-color: white;
    background: white;
}


.timeline-card {
    background: #2d3441;
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 16px 18px;
}

.school-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.school-logo {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    object-fit: contain;
    background: white;
    padding: 4px;
    flex-shrink: 0;
}

.school-name {
    font-size: 14px;
    font-weight: 500;
    color: white;
    margin-bottom: 2px;
}

.school-deg {
    font-size: 12px;
    color: rgba(255,255,255,0.45);
}

.school-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.meta-item {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
}

.meta-item span {
    color: rgba(255,255,255,0.75);
    font-weight: 500;
    margin-left: 4px;
}


/* ── Projects Grid & Filter ──────── */
#projects {
    height: auto;
    min-height: 100vh;
    position: relative;
    padding: 80px 40px;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    scroll-snap-align: none;
}

#projects .content {
    width: 90%;
    max-width: 1100px;
}

.section-eyebrow {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 6px;
}

.section-heading {
    font-size: 2rem;
    font-weight: 600;
    color: white;
    margin-bottom: 24px;
}

.filter-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.filter-btn {
    font-size: 12px;
    font-weight: 400;
    padding: 5px 16px;
    border-radius: 999px;
    border: 0.5px solid rgba(255,255,255,0.2);
    background: transparent;
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    margin: 0;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    border-color: rgba(255,255,255,0.5);
    color: rgba(255,255,255,0.85);
    background: transparent;
}

.filter-btn.active {
    background: white;
    color: #0d1117;
    border-color: white;
    font-weight: 500;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    width: 100%;
}

.project-card {
    background: #161b27 !important;
    border: 0.5px solid rgba(255,255,255,0.07) !important;
    border-radius: 12px !important;
    overflow: hidden;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
    border-color: rgba(255,255,255,0.18) !important;
    transform: translateY(-2px);
}

.card-img-top {
    height: 130px;
    width: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: 0;
    margin: 0;
    display: block;
}

.card-img-placeholder {
    height: 130px;
    background: #0d1117;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    opacity: 0.25;
    margin: 0;
    border-radius: 0;
}

.card-content {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-name {
    font-size: 13px;
    font-weight: 500;
    color: white !important;
    margin-bottom: 5px;
}

.card-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 12px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}


/* ── Skills Section ──────────────── */
#skills {
    height: auto;
    min-height: 100vh;
    position: relative;
    padding: 80px 40px;
    align-items: flex-start;
    justify-content: flex-start;
    flex-direction: column;
    scroll-snap-align: none;
}

#skills .content {
    width: 90%;
    max-width: 1100px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    width: 100%;
    margin-top: 8px;
}

.skill-card {
    background: #2d3441;
    border: 0.5px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 20px;
}

.skill-card-dark {
    background-color: #313131;
}

.skill-card-title {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 14px;
}

.skill-badge {
    font-size: 10px;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 999px;
    border: none;
    margin: 0;
    display: inline-block;
}

.cat-java     { background: #dde0ff; color: #2d31a6; }
.cat-database { background: #ffeedd; color: #a65d00; }
.cat-hardware { background: #ffdde0; color: #a62d31; }
.cat-ai       { background: #ddffe8; color: #0d7a3c; }
.cat-web      { background: #ddf0ff; color: #0a5fa6; }

.badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.project-card.hidden {
    display: none;
}

/* ── Contact Section ─────────────── */
#contact-panel {
    height: auto;
    min-height: 100vh;
    position: relative;
    scroll-snap-align: none;
    padding: 80px 40px;
    justify-content: center;
    align-items: center;
}

#contact {
    width: 100%;
    max-width: 900px;
    display: flex;
    justify-content: center;
}

.contact-wrapper {
    display: flex;
    flex-direction: row;
    gap: 60px;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
}

.simple-form {
    width: 380px;         
    flex-shrink: 0;         
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: white;
    background: #161b27;
    border: 0.5px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 24px;
}

.simple-form textarea {
    width: 250px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 10px;
}

.simple-form input {
    width: 250px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start; 
    gap: 6px; 
}

.form-message.hidden {
    display: none;
}

.form-message{
    width: 250px;
    margin-top: 10px;
    font-size: 14px;
    border: 0.5px solid;
    border-radius: 10px;
    padding: 6px 8px;
}

.form-message.fail {
    background-color: #ffe0e0;
    color: #a62d31;
    border:#a62d31;
}

.form-message.success {
    background-color: #ddffe8;
    color:#0d7a3c;
    border: #0d7a3c;
}


.contact-left {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 220px;
    flex: 1;                
}

.contact-sub {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    max-width: 240px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.social-icon {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain;
    flex-shrink: 0;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    padding: 10px 16px;
    border: 0.5px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    background: #161b27;
    transition: all 0.2s ease;
}

.social-btn:hover {
    color: white;
    border-color: rgba(255,255,255,0.3);
    background: #1e2535;
}

#scroll-nav {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 10px 0;
    z-index: 2;
}

#scroll-nav p {
    color: rgb(153, 153, 153);
}


.tools{
    background-color: rgb(189, 245, 231);
    color: rgb(38, 148, 119);
    border-color: rgb(189, 245, 231);
}

.language {
    background-color: rgb(189, 190, 245);
    color: rgb(38, 40, 148);
    border-color: rgb(189, 190, 245);
}

.web-dev{
    background-color: rgb(245, 189, 189);
    color: rgb(148, 38, 38);
    border-color: rgb(245, 189, 189);
}

.badge-current {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #ddffe8;
    color: #0d7a3c;
    font-weight: 500;
    margin-left: auto;
    align-self: flex-start;
    white-space: nowrap;
}

.badge-exchange {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #ddf0ff;
    color: #0a5fa6;
    font-weight: 500;
    margin-left: auto;
    align-self: flex-start;
    white-space: nowrap;
}

/* ── Graduation Countdown ─────────── */
    .countdown-eyebrow{
        font-size: 12px;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: rgba(255,255,255,0.35);
        margin-bottom: 10px;
    }

    .countdown-unit {
        display: flex;
        flex-direction: column;
        align-items: center;
        background: rgba(255, 255, 255, 0.05);
        border: 0.5px solid rgba(255, 255, 255, 0.1);
        border-radius: 10px;
        padding: 10px 18px;
        min-width: 64px;
    }

    .countdown-num {
        font-size: 28px;
        font-weight: 600;
        color: white;
        line-height: 1;
    }

    .countdown-label {
        font-size: 10px;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.35);
        margin-top: 4px;
    }

    /* ── Weather Footer ───────────────── */
#weather-footer {
    background: #0d1117;
    border-top: 0.5px solid rgba(255, 255, 255, 0.08);
    padding: 20px 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#weather-widget {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.04);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px 24px;
    color: white;
    font-family: Inter, sans-serif;
}

#weather-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

#weather-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

#weather-emoji {
    font-size: 36px;
    line-height: 1;
}

#weather-city {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin: 0;
}

#weather-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    margin: 2px 0 0 0;
    text-transform: capitalize;
}

#weather-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

#weather-temp {
    font-size: 32px;
    font-weight: 600;
    color: white;
    line-height: 1;
}

#weather-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

#weather-loading {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
}

#weather-error {
    font-size: 12px;
    color: #a62d31;
    text-align: center;
}


/* ── Responsive / Mobile ─────────── */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}
/* ── Dark Mode Toggle ─────────────── */
#theme-toggle {
    background: transparent !important;
    border: 0.5px solid rgba(255,255,255,0.2) !important;
    color: rgba(255,255,255,0.7) !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    cursor: pointer;
    margin-left: 12px !important;
    transition: all 0.2s ease;
}

#theme-toggle:hover {
    border-color: rgba(255,255,255,0.5) !important;
    color: white !important;
}

/* ── Light Mode ─────────── */
body.light-mode {
    background: #dde3ed;
    color: #1a2233;
}

body.light-mode .panel.light,
body.light-mode .name {
    background: #e8edf5;
    color: #1a2233;
}

body.light-mode .panel.dark {
    background: #d4dae6;
    color: #1a2233;
}

body.light-mode #main-nav {
    background: rgba(216, 223, 235, 0.92) !important;
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
}

body.light-mode #main-nav .nav-link {
    color: rgba(26,34,51,0.6) !important;
}

body.light-mode #main-nav .nav-link:hover {
    color: #1a2233 !important;
}

body.light-mode #main-nav .navbar-toggler {
    border-color: rgba(26,34,51,0.4) !important;
}

body.light-mode #main-nav .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2826,34,51,0.8%29' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

body.light-mode .timeline-card,
body.light-mode .skill-card {
    background: #dde3ed;
    border-color: rgba(0,0,0,0.07);
}

body.light-mode .school-name,
body.light-mode .section-heading {
    color: #1a2233;
}

body.light-mode .project-card {
    background: #dde3ed !important;
    border-color: rgba(0,0,0,0.07) !important;
}

body.light-mode .card-name {
    color: #1a2233 !important;
}

body.light-mode .card-desc {
    color: rgba(26,34,51,0.55);
}

body.light-mode .simple-form {
    background: #dde3ed;
    border-color: rgba(0,0,0,0.07);
    color: #1a2233;
}

body.light-mode .simple-form label {
    color: #1a2233;
}

body.light-mode .social-btn {
    background: #dde3ed;
    border-color: rgba(26,34,51,0.15);
    color: rgba(26,34,51,0.75);
}

body.light-mode .social-btn:hover {
    background: #cdd5e2;
    color: #1a2233;
}

body.light-mode #weather-footer {
    background: #d4dae6;
    border-top-color: rgba(0,0,0,0.07);
}

body.light-mode #weather-widget {
    background: #dde3ed;
    border-color: rgba(0,0,0,0.07);
    color: #1a2233;
}

body.light-mode #weather-city,
body.light-mode #weather-temp {
    color: #1a2233;
}

body.light-mode #weather-desc,
body.light-mode #weather-meta {
    color: rgba(26,34,51,0.5);
}

body.light-mode .filter-btn {
    border-color: rgba(26,34,51,0.2);
    color: rgba(26,34,51,0.55);
}

body.light-mode .filter-btn:hover {
    border-color: rgba(26,34,51,0.5);
    color: rgba(26,34,51,0.85);
}

body.light-mode .filter-btn.active {
    background: #1a2233;
    color: white;
    border-color: #1a2233;
}

body.light-mode .name::before {
    background-image: radial-gradient(rgba(26,34,51,0.07) 1px, transparent 1px);
}

body.light-mode .name::after {
    background: radial-gradient(ellipse at center, rgba(80,110,180,0.12) 0%, transparent 70%);
}

body.light-mode #scroll-nav p {
    color: rgba(26,34,51,0.4);
}

body.light-mode .countdown-unit {
    background: rgba(26,34,51,0.06);
    border-color: rgba(26,34,51,0.1);
}

body.light-mode .countdown-num {
    color: #1a2233;
}

body.light-mode .countdown-eyebrow,
body.light-mode .countdown-label {
    color: rgba(26,34,51,0.4);
}

body.light-mode .section-eyebrow {
    color: rgba(26,34,51,0.4);
}

body.light-mode .contact-sub {
    color: rgba(26,34,51,0.55);
}

body.light-mode .meta-item {
    color: rgba(26,34,51,0.45);
}

body.light-mode .meta-item span {
    color: rgba(26,34,51,0.8);
}

body.light-mode .school-deg {
    color: rgba(26,34,51,0.5);
}

body.light-mode #theme-toggle {
    border-color: rgba(26,34,51,0.2) !important;
    color: rgba(26,34,51,0.7) !important;
}

body.light-mode #theme-toggle:hover {
    border-color: rgba(26,34,51,0.5) !important;
    color: #1a2233 !important;
}

body.light-mode .skill-card {
    background: #dde3ed;
    border-color: rgba(26,34,51,0.08);
}

body.light-mode .skill-card-title {
    color: rgba(26,34,51,0.4);
}

body.light-mode #about {
    border-top: 0.5px solid rgba(26,34,51,0.1);
}

@media (max-width: 768px) {

    .name h1 {
        font-size: 36px;
        letter-spacing: 2px;
    }

    .name p {
        font-size: 15px;
    }

    #projects, #skills, #contact-panel {
        padding: 40px 20px;
    }

    .content {
        width: 90%;
    }

    .contact-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .simple-form {
        width: 100%;
    }

    .simple-form input,
    .simple-form textarea,
    .form-message {
        width: 100%;
    }

    .contact-left {
        width: 100%;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        
    }
    .countdown-num {
            font-size: 22px;
        }

    .countdown-unit {
            min-width: 54px;
            padding: 8px 12px;
    }
    #weather-footer {
        padding: 16px 20px;
    }

    #weather-right {
        align-items: flex-start;
    }
}


