*{
    margin: 0;
    padding: 0;
}
body{
        background-color: var(--main-color);
        font-family: 'Poppins', sans-serif;
}
html {
    scroll-behavior: smooth;
}
#main, #aboutme, #myskills, #education, #certifications, #projects {
    scroll-margin-top: 20px;
}
:root {
    --main-color: #ffffff;
    --second-color: #f2f3f7;
    --h-b: rgba(0, 0, 0, 0.7);
    --txt: rgba(0, 0, 0, 0.7);
    --para: gray;
    --txt-stro: black;
    --box-p: black;
    --gray-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --accordion-bg: #f8f9fa;
}
.darkmode {
    --main-color: #121212;
    --second-color: #1a1a1a;
    --h-b: rgba(255, 255, 255, 0.9);
    --txt: rgba(255, 255, 255, 0.8);
    --para: #b0b0b0;
    --txt-stro: white;
    --box-p: white; 
    --accordion-bg: #1e1e1e;
}
.hamburger {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 999;
    background: var(--second-color);
    border: none;
    padding: 10px 13px;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--txt);
}

.close-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--txt);
    padding: 15px;
    text-align: right;
    width: 100%;
}

.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 997;
}

.overlay.show {
    display: block;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .close-btn {
        display: block;
    }

    .sidebar {
        position: fixed !important;
        left: -100% !important;
        top: 0 !important;
        width: 100% !important;
        min-width: unset !important;
        height: 100vh !important;
        z-index: 998 !important;
        transition: left 0.3s ease !important;
        overflow-y: auto !important;
    }

    .sidebar.open {
        left: 0 !important;
    }

    .main {
        width: 100% !important;
    }
}
.container{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}
.sidebar{
    position: sticky;
    top: 0;
    overflow-y: auto;
    width: 20%;
    height: 100vh;
    background-color: var(--second-color);
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.sidebar ul li {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.5s ease forwards;
}

.sidebar ul li:nth-child(1) { animation-delay: 0.1s; }
.sidebar ul li:nth-child(2) { animation-delay: 0.2s; }
.sidebar ul li:nth-child(3) { animation-delay: 0.3s; }
.sidebar ul li:nth-child(4) { animation-delay: 0.4s; }
.sidebar ul li:nth-child(5) { animation-delay: 0.5s; }
.sidebar ul li:nth-child(6) { animation-delay: 0.6s; }
.sidebar ul li:nth-child(7) { animation-delay: 0.7s; }

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.main{
    display: flex;
    flex-direction: column;
    width: 80%;
    background-color: var(--main-color);
}
.sidebar .sideimg{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}
.sidebar .sideimg img{
    width: 70%;
    height: 70%;
    border-radius: 50%;
}
.sidebar .namediv{
    text-align: center;
    padding: 10px;
}
.sidebar .namediv h1{
    font-size: 2rem;
    color: var(--h-b);
}
.sidebar .namediv p{
    color: var(--txt);
    font-size: 1rem;
    color: var(--para);
}
.sidebar .namediv p a{
    color: var(--txt);
    text-decoration: none;
    color: #2c98f0;
}
.sidebar ul{
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    margin-top: 5%;
    list-style: none;
}
.sidebar ul li {
    list-style: none;
    margin: 10px 0;
    position: relative;
    padding-bottom: 4px;
}
.sidebar ul li a {
    color: var(--para);
    font-family: "Quicksand", Arial, sans-serif;
    font-size: 1rem;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar ul li::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #2c98f0;
    transition: width 0.4s ease;
}

.sidebar ul li:hover::after {
    width: 100%;
}

.sidebar ul li a:hover {
    color: #2c98f0;
}


.sidebar .sideimg img {
    animation: dropIn 0.8s ease forwards;
}

@keyframes dropIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.sidebar .namediv {
    animation: fadeIn 1s ease 0.4s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to { opacity: 1; }
}





.mode-toggle {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.mode-toggle button {
    margin-top: 2%;
    background: none;
    border: 1px solid var(--txt);
    border-radius: 40px;
    padding: 10px;
    font-size: 1rem;
    cursor: pointer;
    color: var(--txt);
    transition: background-color 0.4s ease;
    
}
.mode-toggle button:hover {
    background: var(--txt);
    color: var(--main-color);
}
.sidebar .icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    margin-top: 1%;
    transition: transfrorm 0.3s ease, color 0.3s ease;
}
.sidebar .icons a {
    transition: transform 0.3s ease, color 0.3s ease;
}
.sidebar .icons a:hover {
    transform: scale(1.2);
    color: #2c98f0;
}
.sidebar .icons a {
    color: var(--txt);
    font-size: 1.5rem;
    text-decoration: none;
}
.ending {
    text-align: center;
    color: var(--para);
}

/*.bg {
    height: 100vh;
    background-image: url(../media/heroimg.webp);
    background-size: cover;
    background-position: center 40%;
    background-repeat: no-repeat;
    background-attachment: fixed;


    display: flex;
    align-items: center;
    padding-left: 60px;
}
.bg .maintxt {
    margin-left: 10%;
    display: block;
}
.bg .maintxt h1 {
    font-size: 3rem;
    font-family: "poppins", sans-serif;
}
.bg .maintxt p {
    margin-top: 2rem;
    font-family: "poppins", sans-serif;
}
.bg .maintxt .btn {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    width: 200px;
    border: 1px solid black;
    font-family: "poppins";
    margin-top: 30px;
    transition: background-color 0.3s ease;
}
.bg .maintxt .btn:hover {
    background-color: black;
    color: white;
}
.bg .maintxt a {
    text-decoration: none;
    color: inherit;
}
.bg .maintxt .btn i {
    margin-left: 5px;
}
*/
.bg {
    height: 100vh;
    background-image: url(../media/heroimg.webp);
    background-size: cover;
    background-position: center 35%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    padding-left: 60px;
    position: relative;
    overflow: hidden;
}

/* dark overlay that sits between image and text */

.bg .maintxt {
    margin-left: 10%;
    display: block;
    position: relative;
    z-index: 1;  /* sits above overlay */
}

.bg .maintxt h1 {
    font-size: 3rem;
    font-family: "poppins", sans-serif;
    color: black;
}

.bg .maintxt p {
    margin-top: 2rem;
    font-family: "poppins", sans-serif;
    color: black;
}

.bg .maintxt .btn {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    width: 200px;
    border: 1px solid black;
    color: black;
    font-family: "poppins";
    margin-top: 30px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.bg .maintxt .btn:hover {
    background-color: var(--txt);
    color: var(--main-color);
}

.bg .maintxt a {
    text-decoration: none;
    color: inherit;
}

.bg .maintxt .btn i {
    margin-left: 5px;
}


.bg .maintxt h1 {
    animation: heroH1 1s ease forwards;
    opacity: 0;
}

.bg .maintxt p {
    animation: heroP 1s ease 0.4s forwards;
    opacity: 0;
}

.bg .maintxt .btn {
    animation: heroBtn 1s ease 0.8s forwards;
    opacity: 0;
}

@keyframes heroH1 {
    from {
        opacity: 0;
        transform: translateX(-60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes heroP {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes heroBtn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.about p {
    font-family: "poppins", sans-serif;
    margin: 35px;
    font-size: small;
    color: var(--para);
    transition: background-color 0.5s ease, color 0.5s ease;

}
.about h3 {
    margin-left: 35px;
    color: var(--h-b);
    font-size: x-large;
    transition: background-color 0.5s ease, color 0.5s ease;
}
.about span p {
    font-size: 1rem;
    margin-top: 80px;
}
.aboutboxes {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-evenly;
    margin-top: 100px;
    flex-wrap: wrap;
}
.aboutboxes .box {
    font-size: 40px;
    width: 250px;
    background-color: var(--second-color);
    box-shadow: 0px -4px 15px var(--second-color);
    transition: background-color 0.5s ease, color 0.5s ease;

}
.aboutboxes .box i {
    margin: 15px;
    display: inline-block;
}
.aboutboxes .box h3 {
    margin-top: 0;
    display: inline-block;
    margin-left: 5px;
    font-family: "poppins", sans-serif;
}
.aboutboxes .box p {
    margin-top: 5px;
    color: var(--box-p);
    font-size: medium;
    font-weight: 400;
    text-align: left;
    transition: background-color 0.5s ease, color 0.5s ease;

}
#box1 {
    border-bottom: rgb(45, 121, 202) 3px solid;
}
#box2 {
    border-bottom: rgb(231, 59, 59) 3px solid;
}
#box3 {
    border-bottom: rgb(215, 215, 80) 3px solid;
}
#box4 {
    border-bottom: rgb(194, 35, 194) 3px solid;
}



/* ── Skills Section ── */
.skills {
    padding: 50px 35px;
}

.skills > p, .education > p {
    color: #2c98f0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.skills h3, .education h3 {
    font-size: x-large;
    color: var(--h-b);
    margin-top: 5px;
    margin-bottom: 15px;
}

.skills > span p {
    font-size: 0.9rem;
    color: var(--para);
    margin-bottom: 40px;
    line-height: 1.7;
}

/* ── Skill Bars ── */
.skillbar {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-top: 30px;
}

.leftc, .rightc {
    width: 45%;
}

.skillbar span {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.skillbar span p {
    font-size: 0.9rem;
    color: var(--para);
    margin: 0;
}

/* ── Base Bars ── */
.html, .js, .python, .css, .git, .django {
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 5px;
    margin-bottom: 25px;
}

/* ── Progress Fills ── */
.htmlprogress {
    width: 90%;
    height: 100%;
    background-color: #e44d26;
    border-radius: 5px;
}

.jsprogress {
    width: 60%;
    height: 100%;
    background-color: #f7df1e;
    border-radius: 5px;
}

.pythonprogress {
    width: 50%;
    height: 100%;
    background-color: #3572A5;
    border-radius: 5px;
}

.cssprogress {
    width: 85%;
    height: 100%;
    background-color: #264de4;
    border-radius: 5px;
}

.gitprogress {
    width: 80%;
    height: 100%;
    background-color: #f34f29;
    border-radius: 5px;
}

.djangoprogress {
    width: 30%;
    height: 100%;
    background-color: #092e20;
    border-radius: 5px;
}

/* ── Skill Box ── */
.skill-box {
    width: 90%;
    background-color: #f9bf3f;
    margin: 50px auto 0;
    padding: 30px 35px;
}

.skill-box p {
    font-family: "Playfair Display", Georgia, serif;
    color: black;
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1;
}

.skill-box a {
    text-decoration: none;
    color: inherit;
    border: 2px solid black;
    background-color: transparent;
    margin-left: 2%;
    margin-top: 1%;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
}

.skill-box a:hover {
    background-color: black;
    color: white;
}

.education {
    padding: 50px 35px;
}
.education > p {
    margin: 35px;
}
.education > h3 {
    margin: 35px;
}

.accordion {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 50px;
    justify-content: center;
    align-items: center;
}

.acc-item {
  margin-top: 15px;
  border: 1px solid #e1dcdc;
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
  width: 90%;
  font-family: "poppins", sans-serif;
}

.acc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  cursor: pointer;
  background: var(--accordion-bg);
  color: var(--txt)
}

.acc-header.open {
  background: var(--second-color);
  color: #185FA5;
}

.acc-title {
  font-size: 15px;
  font-weight: 500;
}

.acc-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.8s ease;
}

.acc-body.open {
  max-height: 2000px;
}

.acc-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 20px;
  border-top: 1px solid #ddd;
}





.acc-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.acc-content p {
  margin: 0;
  margin-top: 1%;
}
.acc-year {
  font-size: 13px;
  color: var(--para);
  font-weight: 500;
}

.acc-school {
  font-size: 14px;
  color: var(--txt);
  margin: 0;
}

.acc-desc {
  font-size: 14px;
  color: var(--para);
  margin: 0;
  line-height: 1.6;
}
.acc-content {
  border-left: 3px solid blue; /* change color to your theme color */
  padding-left: 16px;
}




.cert-btn {
    margin-top: 10px;
    padding: 6px 14px;
    border: 2px solid #2c98f0;
    background: transparent;
    color: #2c98f0;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.cert-btn:hover {
    background: #2c98f0;
    color: white;
}


.projects {
    padding: 50px 35px;
}

.projects > p, .skills > p {
    color: #2c98f0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 35px;
}

.projects > h3, .skills > h3 {
    font-size: x-large;
    color: var(--h-b);
    margin: 35px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 5%;
}

.project-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    object-position: top;
}

.project-body {
    padding: 20px;
}

.project-body h4 {
    font-size: 1.1rem;
    color: var(--h-b);
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
}

.project-body p {
    font-size: 0.85rem;
    color: var(--para);
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 20px;
    background: #e6f1fb;
    color: #185fa5;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
}

.project-btns {
    display: flex;
    gap: 10px;
}

.btn-live, .btn-git {
    flex: 1;
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-live {
    background: #2c98f0;
    color: white;
    border: none;
}

.btn-live:hover {
    background: #1a7fd4;
}

.btn-git {
    background: transparent;
    color: var(--h-b);
    border: 1px solid var(--border-color);
}

.btn-git:hover {
    background: var(--second-color);
}

/* Responsive */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}


.contact {
    padding: 50px 35px;
}

.contact > p {
    color: #2c98f0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 35px;
}

.contact h3 {
    font-size: x-large;
    color: var(--h-b);
    margin-top: 5px;
    margin-bottom: 40px;
    margin-left: 35px;
}

.contact-inner {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 30%;
}

.info-box {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: var(--second-color);
    border-radius: 12px;
    transition: background-color 0.3s ease;
}

.info-box i {
    font-size: 1.5rem;
    color: #2c98f0;
    min-width: 30px;
}

.info-box h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: var(--h-b);
    margin-bottom: 5px;
}

.info-box p {
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    color: var(--para);
    margin: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 70%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-bottom: 2px solid var(--second-color);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    background: var(--main-color);
    color: var(--txt);
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #2c98f0;
}

.form-group textarea {
    resize: vertical;
}

.contact-btn {
    padding: 14px 30px;
    background: #2c98f0;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease;
    align-self: flex-start;
}

.contact-btn:hover {
    background: #1a7fd4;
}

.contact-btn i {
    margin-left: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-inner {
        flex-direction: column;
    }
    .contact-info {
        width: 100%;
    }
    .contact-form {
        width: 100%;
    }
}
















