*{
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

body{
    background: #080808;
    color: #fff;
    cursor: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="%23FFF" stroke="%23000" stroke-width="2" d="M5.5 3.21V20.8c0 .45.54.67.85.35l4.86-4.86a.5.5 0 0 1 .35-.15h6.87a.5.5 0 0 0 .35-.85L6.35 2.85a.5.5 0 0 0-.85.35Z"></path></svg>'), auto;
} 

#header{
    width: 100%;
    height: 100vh;
    background-image: url(images/background4.png);
    background-size: cover;
    background-position: center;
}

.container{
    padding: 10px 10%;
}

.logo-container{
    padding: 0 0 0 20px;
    top: 5px;
    left: 90px;
    position: absolute;
}

.nav-links{
    position: absolute;
    right: 50px;
    top: 30px;
}

.logo{
    width: 200px;
    height: auto;
    display: block;
}

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: #d8a0ca;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: 0.5s;
}

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

nav{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.header-text{
    margin-top: 15%;
    font-size: 30px;
}

.header-text h1{
    font-size: 60px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.header-text h1 span{
    color: #d8a0ca;
}

/* ----about---- */

#about{
    padding: 80px 0;
    color: #ababab;
}

.row{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.about-col-1{
    flex-basis: 35%;
}

.about-col-1 img{
    width: 100%;
    border-radius: 15px;
    margin-top: 15px;
}

.about-col-2{
    flex-basis: 60%;
}

.sub-title{
    font-size: 60px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 20px;
    margin-top: 0px;
}

.about-col-2 p{
    text-align: justify;
}

.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: #d8a0ca;
    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;
}

.tab-contents ul li span{
    color: #916b87;
    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: #8f6985;
    transform: translateY(-10px);
}

/* ----portfolio---- */
#portfolio{
    padding: 30px 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;
}


.work img{
    width: 100%;
    border-radius: 10px;
    display: block;
    transition: transform 0.5s;
}

.work:hover img{
    transform: scale(1.1);
}

.work:hover .layer{
    height: 100%;
}

.layer{
    width: 100%;
    height: 0;
    background: linear-gradient(rgba(0,0,0,0.6), #a5799a);
    border-radius: 10px;
    position: absolute;
    left: 0;
    bottom: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    font-size: 14px;
    transition: height 0.5s;
}

.layer h3{
    font-weight: 500;
    margin-bottom: 20px;
}

.layer a{
    margin-top: 20px;
    color: #d8a0ca;
    text-decoration: none;
    font-size: 18px;
    line-height: 60px;
    background: #fff;
    width: 60px;
    height: 60px;
    text-align: center;
    border-radius: 50%;
}

.btn{
    display: block;
    margin: 50px auto;
    width: fit-content;
    border: 1px solid #d8a0ca;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.5s;
}

.btn:hover{
    background: #d8a0ca;
    color: #000;
    border: 1px solid #d8a0ca;
    transition: 0.5s;
}

/* ----contact---- */
.contact-left{
    flex-basis: 35%;
}

.contact-right{
    flex-basis: 60%;
}

.contact-left p{
    margin-top: 30px;
}

.contact-left p i{
    color: #d8a0ca;
    margin-right: 15px;
    font-size: 20px;
}

.social-icons{
    margin-top: 30px;
}

.social-icons a{
    text-decoration: none;
    font-size: 20px;
    margin-right: 15px;
    color: #ababab;
    display: inline-block;
    transition: transform 0.5s;
}

.social-icons a:hover{
    color: #d8a0ca;
    transform: translateY(-5px);
}

.btn.btn2{
    display: inline-block;
    background: #b966a4;
    margin-top: 20px;
    padding: 14px 50px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    transition: background 0.5s;
}

.contact-right form{
    width: 100%;
}

form input, form textarea{
    width: 100%;
    border: 1px solid #d8a0ca;
    outline: none;
    background: #262626;
    padding: 15px;
    margin: 15px 0;
    color: #fff;
    font-size: 16px;
}

form .btn2{
    padding: 14px 50px;
    font-size: 18px;
    margin-top: 20px;
    cursor: pointer;
    background: #b966a4;
    border: 1px solid #b966a4;
    color: #fff;
    transition: background 0.5s;
    border-radius: 6px;
}

.copyright{
    width: 100%;
    text-align: center;
    padding: 25px 0;
    background: #262626;
    font-weight: 300;
    color: #fff;
}

.copyright p i{
    color: #d8a0ca;
}

/* ----css for small screens---- */
nav .fa-solid{
    display: none;
}

@media only screen and (max-width: 600px){
    #header{
        background-image: url(images/background.png);
    }

    .header-text{
        margin-top: 50%;
        font-size: 16px;
    }

    .header-text h1{
        font-size: 30px;
    }

    nav .fa-solid{
        display: block;
        font-size: 24px;
    }

    nav ul{
        background: #d8a0ca;
        width: 200px;
        height: 100vh;
        position: fixed;
        top: 0;
        right: -200px;
        padding-top: 50px;
        z-index: 2;
        transition: 0.5s;
    }

    nav ul li{
        display: block;
        margin: 25px;
    }

    nav ul .fa-solid{
        position: absolute;
        top: 25px;
        right: 25px;
        font-size: 24px;
        cursor: pointer;
    }

    .sub-title{
        font-size: 40px;
    }

    .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: 16px;
        margin-right: 20px;
    }

    .contact-left, .contact-right{
        flex-basis: 100%;
    }

    .contact-left{
        margin-bottom: 20px;
    }

    .contact-right form{
        padding: 0;
    }
}

#msg{
color: #61b752;
margin-top: -10px;
display: none;
}   

#msg.show{
    display: block;
}

/* --- About Me Page Enhancements --- */
.about-section {
  background: #181818;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(216, 160, 202, 0.08);
  padding: 32px 24px;
  margin-bottom: 32px;
  transition: box-shadow 0.3s;
}
.about-section:hover {
  box-shadow: 0 8px 32px rgba(216, 160, 202, 0.18);
}
.about-section h2 {
  color: #d8a0ca;
  margin-bottom: 16px;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-align: center;
}
.about-section ul {
  padding-left: 20px;
  margin-bottom: 0;
}
.about-section ul li {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #fff;
}

@media (max-width: 600px) {
  .about-section {
    padding: 18px 8px;
  }
  .about-section h2 {
    font-size: 1.3rem;
  }
}

/* Style the main container for aboutme.html */
.aboutme-image-outside {
    position: absolute;
    top: 130px; /* Adjust as needed */
    right: 0;
    width: 60vw; /* Adjust width as needed */
    height: auto;
    z-index: 100;
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
  }
  
  .aboutme-image-outside img {
    width: 60%;
    box-shadow: 0 4px 24px rgba(216, 160, 202, 0.15);
    object-fit: cover;
    z-index: 101;
    pointer-events: auto;
  }
  
.aboutme-main {
    position: relative;
    z-index: 2;
    background: rgba(24,24,24,0.97);
}

.aboutme-main .sub-title {
  text-align: center;
  color: #ffffff;
  margin-bottom: 32px;
}

.aboutme-main .btn {
  display: block;
  margin: 40px auto 0 auto;
}

.hobbies-split {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 32px;
}

.hobbies-text {
  flex: 2 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  margin-left: 200px;
}

.hobbies-text ul {
  list-style: none;
  text-align: center;
  padding: 0;
  margin: 0;
}

.hobbies-text h2 {
  margin-bottom: 18px;
}

/* Responsive for mobile */
@media (max-width: 900px) {
  .hobbies-image img {
    max-height: 220px;
  }
}

.hobbies-image-carousel {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.hobbies-image-carousel img {
  width: 500px;
  height: 300px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(216, 160, 202, 0.15);
  transition: opacity 0.3s;
}

.carousel-arrow {
  background: #d8a0ca;
  border: none;
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-arrow:hover {
  background: #b966a4;
}



.education-list{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-gap: 40px;
    margin-top: 50px;
}

.education-list li {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 18px;
  color: #fff;
  z-index: 1;
}

.edu-bachelor::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('images/ntu.jpg') center center/cover no-repeat;
  opacity: 0.15; /* Lower opacity for faded effect */
  z-index: 0;
  pointer-events: none;
  border-radius: 12px;
}

.edu-diploma::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('images/sp.jpg') center center/cover no-repeat;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
  border-radius: 12px;
}

.edu-secondary::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('images/blss.jpg') center center/cover no-repeat;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
  border-radius: 12px;
}

.edu-primary::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('images/peihwa.jpg') center center/cover no-repeat;
  opacity: 0.15;
  z-index: 0;
  pointer-events: none;
  border-radius: 12px;
}

/* Make sure the text is above the background */
.education-list li > * {
  position: relative;
  z-index: 1;
}

.education-list div{
    background: #262626;
    padding: 40px;
    font-size: 13px;
    font-weight: 300;
    border-radius: 10px;
    transition: background 0.5s, transform 0.5s;
}

.education-list div i{
    font-size: 50px;
    margin-bottom: 30px;
}

.education-list div h2{
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 15px;
    text-align: left;
}

.education-list div a{
    text-decoration: none;
    color: #fff;
    font-size: 12px;
    margin-top: 20px;
    display: inline-block;
}

.education-list div:hover{
    background: #8f6985;
    transform: translateY(-10px);
}

.edu-label {
  display: block;
  color: #d8a0ca;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.edu-title {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.edu-years {
  display: block;
  font-size: 0.95rem;
  color: #e0d6e6;
  font-weight: 400;
  margin-bottom: 0;
}

.edu-more {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 18px;
  background: #d8a0ca;
  color: #000000;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}
.edu-more:hover {
  background: #fff;
  color: #d8a0ca;
  text-decoration: underline;
}

.edu-showcase-row {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-bottom: 16px;
}
.edu-showcase-img {
  width: 240px;  /* Increased from 160px */
  height: 240px; /* Increased from 160px */
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(216, 160, 202, 0.12);
}
.edu-showcase-desc {
  flex: 1 1 0;
}
.edu-showcase-desc h3 {
  margin: 0 0 8px 0;
  color: #d8a0ca;
  font-size: 1.1rem;
  font-weight: 600;
}
.edu-showcase-desc p {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  line-height: 1.6;
}
@media (max-width: 700px) {
  .edu-showcase-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .edu-showcase-img {
    width: 100%;
    max-width: 320px;
    height: auto;
  }
}

.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;
}

.tab-bar {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  justify-content: center;
}

.tab-link {
  background: #262626;
  color: #d8a0ca;
  border: none;
  padding: 12px 32px;
  border-radius: 8px 8px 0 0;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.tab-link.active,
.tab-link:hover {
  background: #d8a0ca;
  color: #222;
}

.tab-section {
  display: none;
}

.tab-section.active-tab {
  display: block;
}

.edu-image-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.edu-image-grid .edu-showcase-img {
  width: 120px;
  height: 120px;
}

.edu-image-carousel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.edu-image-carousel .edu-showcase-img {
  width: 240px;
  height: 240px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(216, 160, 202, 0.12);
}

.carousel-arrow {
  position: absolute;
  background: rgba(216, 160, 202, 0.3); /* Semi-transparent pink */
  border: none;
  color: #fff;
  font-size: 1.5rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.carousel-arrow:hover {
  background: rgba(216, 160, 202, 0.6); /* More visible on hover */
}

.left-arrow {
  left: 10px;
}

.right-arrow {
  right: 10px;
}