* {
    margin: 0;
    padding: 0;
    font-family: 'poppins', sans-serif;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden !important;
  max-width: 100vw;
  margin: 0;
  padding: 0;
}

nav {
    position: fixed;
    background: #080808;
    z-index: 1000;
    width: 86%;
    top: 0;
    left: 2;
}

body {
    background: #080808;
    color: #fff;
}

#header {
    width: 100%;
    min-height: 100vh;
    background-image: url(fimg1.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    
}

.container {
    padding: 10px 10%;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo-text {
    font-size: 30px;
    /* Adjust to match image height */
    font-weight: bold;
    font-family: sans-serif;
    /* Or your desired font */
    color: white;
}

.r-letter {
    color: #ff004f;
}

nav ul li {
    display: inline-block;
    list-style: none;
    margin: 10px 20px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

nav ul li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

nav ul li a:hover::after {
    width: 100%;
}

.header-text {
    margin-top: 20%;
    font-size: 30px;
}

.header-text h1 {
    font-size: 60px;
    margin-top: 20px;
}

.header-text h1 span {
    color: #ff004f;
}

/*-------------about-------------*/
#about {
    padding: 80px 0;
    color: #ababab;
}

.row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1 {
    flex-basis: 35%;
    height: auto;
    display: flex;
}

.about-col-1 img {
  max-width: 100%;
  height: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}


.about-col-2 {
    flex-basis: 60%;
    font-size: 16px;
    line-height: 1.6;
}

.sub-title {
    font-size: 36px;
    font-weight: 600;
    color: #fff;
}

.tab-titles {
    display: flex;
    margin: 20px 0 40px;
}

.tab-links {
    margin-right: 50px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
}

.tab-links::after {
    content: '';
    width: 0;
    height: 3px;
    background: #ff004f;
    position: absolute;
    left: 0;
    bottom: -8px;
    transition: 0.5s;
}

.tab-links.active-link::after {
    width: 50%;
}

.tab-contents ul li {
    list-style: none;
    margin: 10px 0;
    margin-bottom: 20px;
}

.tab-contents ul li span {
    color: #b54769;
    font-size: 14px;
}

.tab-contents {
    display: none;
}

.tab-contents.active-tab {
    display: block;
}


/*---------------services-------------*/
#services {
    padding: 30px 0;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.services-list div {
    background: #262626;
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 10px;
    transition: background 0.5s, transform 0.5s;
}

.services-list div i {
    font-size: 50px;
    margin-bottom: 30px;
}

.services-list div h2 {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
}

.services-list div a {
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;
}

.services-list div:hover {
    background: #ff004f;
    transform: translateY(-10px)
}


/*---------------------Projects-------------------*/
#projects {
    padding: 50px 0;
}

.work-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.work {
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    aspect-ratio: 6 / 5;
}

.work img {
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}

.layer {
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.6), #ff004f);
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 14px;
    text-align: left;
    /* Align text to left */
    padding: 20px;
    color: #fff;
    z-index: 2;
    transition: height 0.4s ease;

}

.project-details {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 15px;
}

.project-details li {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 15px;
    color: #fff;
    /* Optional: ensure readability */
}

.layer h3 {
    font-weight: 500;
    margin-bottom: 20px;
}

.layer a {
    margin-top: 20px;
    color: #ff004f;
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-align: center;
}

.work:hover img {
    transform: scale(1.1);
}

.work:hover .layer {
    height: 100%;
}

.btn {
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #ff004f;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.5s;
}

.btn:hover {
    background: #ff004f;
}



.project-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.project-slider img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-color: #000;
}

.project-slider img.active {
    opacity: 1;
    z-index: 0;
}



/*---------------------Contact-------------------*/
.contact-left {
    flex-basis: 35%;
}

.contact-right {
    flex-basis: 60%;
}


.contact-left p {
    margin-top: 30px;
}

.contact-left p i {
    color: #ff004f;
    margin-right: 15px;
    font-size: 25px;
}

.social-icons {
    margin-top: 30px;
}

.social-icons a {
    text-decoration: none;
    font-size: 30px;
    margin-right: 15px;
    color: #ababab;
    display: inline-block;
    transition: transform 0.5s;
}

.social-icons a:hover {
    color: #ff004f;
    transform: translateY(-5px);
}

.btn.btn2 {
    display: inline-block;
    background: #ff004f;
}

.contact-right form {
    width: 100%;
}

form input,
form textarea {
    width: 100%;
    border: 0;
    outline: none;
    background: #262626;
    padding: 15px;
    margin: 15px 0;
    color: #fff;
    font-size: 18px;
    border-radius: 6px;
}

form .btn2 {
    padding: 14px 60px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
}

.copyright {
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: #262626;
    font-weight: 300;
    margin-top: 20px;
}


/*---------------------CSS for small screen-------------------*/

nav .fa-solid {
    display: none;
}

@media only screen and (max-width:600px) {
    
    html {
     font-size: 80%;
    }

    #header {
        background-image: url(phonefimg1.png);
    }

    .header-text {
        margin-top: 100%;
        font-size: 16px;
    }

    .header-text h1 {
        font-size: 30px;
    }

    nav .fa-solid {
        display: block;
        font-size: 25px;
    }

    nav ul {
        background: #ff004f;
        position: fixed;
        top: 0;
        right: -200px;
        width: 200px;
        height: 100vh;
        padding-top: 50px;
        z-index: 2;
        transition: right 0.5s;
    }

    nav ul li {
        display: block;
        margin: 25px;
    }

    nav ul .fa-solid {
        position: absolute;
        top: 25px;
        left: 25px;
        cursor: pointer;
    }

    .sub-title {
        font-size: 28px;
    }

    .about-col-1,
    .about-col-2 {
        flex-basis: 100%;
    }

    .about-col-1 {
        margin-bottom: 30px;
    }

    .about-col-2 {
        font-size: 14px;
    }

    .tab-links {
        font-size: 14px;
        margin-right: 20px;
    }

    .contact-left,
    .contact-right {
        flex-basis: 100%;
    }

    .copyright {
        font-size: 12px;
    }

    /* Make project area bigger and responsive */
    .work-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-slider {
        width: 100%;
        height: 100%;
    }

    .work {
        position: relative;
        height: 100vh;
        /* Full screen height */
        overflow: hidden;
        border-radius: 10px;
        margin-bottom: 20px;
        width: 100%;
        /* Important to prevent horizontal scroll */
        box-sizing: border-box;
    }

    .work img {
        width: 100%;
        /* ✅ This ensures no side scroll */
        height: 100%;
        object-fit: contain;
        /* Better image fill */
        border-radius: 10px;
    }

    .layer {
        position: absolute;
        top: 0;
        left: 0;
        height: 0;
        width: 100%;
        background: linear-gradient(rgba(0, 0, 0, 0.6), #ff004f);
        color: white;
        padding: 0 10px;
        transition: height 0.4s ease;
        border-radius: 10px;
        z-index: 2;
        overflow-y: auto;
    }

    .layer.show-layer {
        height: 100%;
        padding: 20px 10px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .layer h3,
    .layer p,
    .layer a {
        margin: 10px 0;
    }

    /* Fix spacing for dates on small screens */
    .education-date,
    .certification-date,
    .achievement-date {
        display: inline-block;
        margin-right: 7 px; /* Add space from the right edge */
        padding-right: 7 px;
        box-sizing: border-box;
        font-size: 14px;
    }

    .about-col-2 p,
    .tab-contents li,
    .tab-contents span {
        font-size: 14px;
    }

    .education-content,
    .certification-content,
    .achievement-content {
        padding: 10px;
    }

    .about-col-1 img {
        width: 100%;
        height: auto;
        display: block;
    }
}


#msg {
    color: #61b752;
    margin-top: -40px;
    display: block;
}




#skills ul {
    font-size: 14px;
    /* Match this with your other sections */
    color: #ababab;
    /* Optional: keep the gray color consistent */
    line-height: 1.6;
    /* For readability */
}

#skills ul li span {
    font-weight: bold;
    /* Keep skill category titles bold */
    color: #b54769;
    /* Optional: same rose color for highlights */
}





.education-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.education-list li {
    margin-bottom: 20px;
}

.education-content {
    color: #ababab;
    /* gray for normal text */
    position: relative;
    padding-right: 130px;
    /* space for date on right */
    font-size: 14px;
    line-height: 1.6;
}

.education-institution {
    color: #b54769;
    /* rose color */
    font-weight: bold;
    display: inline-block;
    margin-bottom: 4px;
}

.education-date {
    position: absolute;
    right: 0;
    top: 0;
    color: #b54769;
    /* rose color for date */
    font-weight: bold;
    font-size: 13px;
}


.certifications-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.certifications-list li {
    margin-bottom: 20px;
}

.issuer-name {
    color: #b54769;
    /* rose color */
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 10px;
    display: block;
}

.certification-content {
    color: #ababab;
    /* gray color */
    position: relative;
    padding-right: 130px;
    /* space for date on right */
    font-size: 14px;
    line-height: 1.6;
}

.certification-content p {
    margin-bottom: 12px; /* Adjust for better spacing */
    line-height: 1.5;
}

.certification-date {
    position: absolute;
    right: 0;
    top: 0;
    color: #b54769;
    /* rose color */
    font-weight: bold;
    font-size: 13px;
}



.section-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
    font-weight: bold;
}

.achievements-list {
    list-style: none;
    /* Remove bullets */
    padding: 0;
    margin: 0;
}

.achievements-list li {
    margin-bottom: 20px;
}

.achievement-content {
    font-size: 14px;
    color: #ababab;
    /* Description color */
    position: relative;
    padding-right: 130px;
    /* Space for date on right */
    line-height: 1.6;
}

.award-name {
    color: #b54769;
    /* Rose color for award name */
    font-weight: bold;
    display: inline-block;
    margin-bottom: 4px;
}

.achievement-date {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 13px;
    color: #b54769;
    /* Rose color for date */
    font-weight: bold;
}



/* ----------  ICON VISIBILITY FIX  ---------- */
/* Hide only the hamburger / close icons on desktop */
nav .menu-icon { display: none; }

/* Never hide the theme icon */
.theme-toggle .fa-solid { display: inline-block !important; }

/* ----------  LIGHT-MODE COLOUR OVERRIDES  ---------- */
body.light-mode {
  background: #ffffff;
  color: #000000;
}

body.light-mode #header {
  background-image: url('light.png'); /* Use a brighter version of your image */
}


/* navbar: keep nice contrast */
body.light-mode nav          { background:#ffffff; }
body.light-mode .logo-text   { color:#000000; }
body.light-mode nav ul li a  { color:#000000; }

/* headings inside sections */
body.light-mode .sub-title   { color:#000000; }

/* theme icon colour while in light mode */
body.light-mode .theme-toggle .fa-solid { color:#333333; }

/* keep the R in your name red in both modes */
.r-letter { color:#ff004f; }

body.light-mode .header-text {
    color: #000; /* or any dark color that suits your design */
}

body.light-mode .header-text h1 span {
    color: #ff004f; /* keep the pink accent even in light mode */
}

@media only screen and (max-width:600px) {
  body.light-mode #header{
    background-image:url('phone_light.png'); /* mobile light image */
    background-size:cover;
    background-position:center;
  }
}

/* ---------- LIGHT MODE: SERVICES SECTION ---------- */
body.light-mode .services-list div {
    background: #c0bdbd; /* light background */
    color: #000000; /* black text */
}

body.light-mode .services-list div a {
    color: #000000; /* link text in black */
}

body.light-mode .services-list div:hover {
    background: #ff004f;
    transform: translateY(-10px)
}

/* ---------- LIGHT MODE: ABOUT SECTION ---------- */
body.light-mode #about,
body.light-mode #about p,
body.light-mode #about li,
body.light-mode #about .tab-links,
body.light-mode #about .education-content,
body.light-mode #about .achievement-content {
    color: #000000 !important;
}

body.light-mode .copyright{
    color: white;

}