

[data-theme="dark"] body {
  background-color: var(--bg);
  color: var(--fg);
}

[data-theme="dark"] .navbar {
    height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(10px);         /* subtle glass blur */
  -webkit-backdrop-filter: blur(10px); /* Safari support */
  padding: 18px 40px;
  position: sticky;
  background-color: transparent;
  z-index: 1001;
  transition: background-color 0.3s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 1); /* Light transparent line */
}

[data-theme="dark"] #theme-toggle{
  display: flex;

}

[data-theme="dark"] .navbar a {
  color: var(--fg);
  font-size: 1.5rem;
}

[data-theme="dark"] .navbar a:hover {
  color: rgb(132, 132, 156);
  box-shadow: 0 0 10px var(--accent);
}

[data-theme="dark"] .navbar .logo {
  color: mediumslateblue;
}

[data-theme="dark"] .box {
  background-color: var(--card-bg);
  color: var(--card-fg);
  box-shadow: 0 4px 12px var(--shadow);
  color: rgb(255, 255, 255);
}

[data-theme="dark"] .box:hover {
  background-color: #ffffff;
}

[data-theme="dark"] .box .text {
  color: var(--accent);
}

[data-theme="dark"] .c.active {
  color: #333333;
}

[data-theme="dark"] .pp a {
  color: var(--fg);
}

[data-theme="dark"] .pp a:hover {
  color: var(--accent);
}

[data-theme="dark"] .bt {
  background-color: var(--accent);
  color: var(--bg);
}

[data-theme="dark"] .btn {
  background-color: transparent;
  border: 1px solid var(--fg);
  color: var(--accent);
}

[data-theme="dark"] .btn:hover {
  background-color: var(--accent);
  color: #afa0a0;
  box-shadow: 0 0 40px var(--accent);
}




[data-theme="dark"] .horizontal-scroll-section {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: linear-gradient(170deg, #ddb98f, #f0dbc1);
  overflow: hidden;
    height: 30vh;
  padding: 2rem;

}

[data-theme="dark"] .scroll-container {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE 10+ */
  width: 60vw;
}

/* Hide scrollbar in WebKit browsers */
[data-theme="dark"] .scroll-container::-webkit-scrollbar {
  display: none;
}




  [data-theme="dark"]  .boxx {
    background: transparent;
    color: rgb(0, 0, 0);
    border-radius: 12px;
    padding: 20px;
    width: 300px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center;
}


  [data-theme="dark"]  .boxx-logo {
    font-size: 3rem;
    margin-bottom: 10px;
    color: rgb(0, 0, 0);
    background-color: transparent;
}

  [data-theme="dark"]  .boxx-heading {
    font-size: 1.3rem;
    margin: 10px 0;
}

  [data-theme="dark"]  .boxx-text {
    font-size: 1rem;
    line-height: 1.3;
}



[data-theme="dark"] .scroll-btn {
  background-color: transparent;
  color: #000000;
  border: none;
  padding: 10px 15px;
  font-size: 24px;
  border-radius: 6px;
  cursor: pointer;
  z-index: 1;
}






[data-theme="dark"] #about {
  box-shadow: none;
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  align-items: flex-start;
  background: linear-gradient(130deg, #EACBA8, #eadfd2);
  color: #000000;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: auto;
  padding: 10rem;
}
[data-theme="dark"] .about-main h2{
  color: #543e3e;
}

[data-theme="dark"]  .about-side h3{
  color: #543e3e;
}

[data-theme="dark"]  .about-skills h3{
  color: #543e3e;
}

[data-theme="dark"] .about-main,
[data-theme="dark"] .info-group {
  background-color: #F7E3CD;
  border-left: 2px solid #302c2c;
            box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2);
  border-bottom: white;
  border-right: white;
  border-top: white;
}

[data-theme="dark"] .about-skills li {
  background: #cfc7a2;
}

[data-theme="dark"] .about-side blockquote {
  color: #601010;
}

[data-theme="dark"] .timeline-container {
  background: linear-gradient(15deg, #daeff5, #e7ddc1);

}

[data-theme="dark"] .timeline {
  background: linear-gradient(15deg, #daeff5, #f6e5db);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE 10+ */
}

/* Chrome, Safari, and Opera */
[data-theme="dark"] .timeline::-webkit-scrollbar {
  display: none;
}

[data-theme="dark"]  .timeline-item .content {
  font-size: 1.1rem;
  background: transparent;
  color: transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); /* Safari support */
  padding: 0rem 1rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(255, 255, 255, 0.1);
  transition: 
    color 0.5s ease,
    box-shadow 0.5s ease,
    border-color 0.5s ease,
    padding 0.5s ease;

}



[data-theme="dark"]  .timeline-item .content:hover {
  color: rgb(51, 51, 51);
  box-shadow: 0px 0px 20px rgb(202, 203, 205);
  border: 1px solid rgb(149, 149, 149);
  filter: invert(7%);
  padding: 1rem;

}

[data-theme="dark"]  .timeline-item .content h3 {
  color: #383838;
  line-height: 1.7rem;
}





[data-theme="dark"] .box.active {
  background-color: #ffffff;
  color: #ffffff;
}

[data-theme="dark"] .c.c.active {
  background-color: #131010;
  border: 0.1px solid #ffffff;
  border-radius: 20px;
  color: #ffffff;
}

[data-theme="dark"] .box:hover .pp {
  color: var(--fg);
}

[data-theme="dark"] .pp a {
  color: var(--accent);
}

[data-theme="dark"] .pp a:hover {
  background: var(--accent);
  color: #fff;
}

[data-theme="dark"] .lag {
  background-image: url("pic1.jpg");
font-family: 'Georgia', serif;               /* Traditional yet elegant */
  color: #000000;
  pointer-events: none;
}



[data-theme="dark"] #contact {
  background: linear-gradient(135deg, #a2a2d7, s#ffffff);
  color: #f9f5f5;
}

[data-theme="dark"] .side-info {
  color: #ffffff;
  box-shadow: 0 0 20px var(--shadow);
}

[data-theme="dark"] .form input,
[data-theme="dark"] #msg {
  background: #000000;
  color: #ffffff;
  border: 1px solid #ccc;
}

[data-theme="dark"] .oi a {
  color: var(--accent);
  background: linear-gradient(to top, var(--accent) 50%, white 50%);
  border-color: var(--accent);
}

[data-theme="dark"] .oi a:hover {
  color: white;
  background-position: bottom;
  box-shadow: 0 0 20px var(--accent);
}

[data-theme="dark"] .text-item.active {
  color: #111;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] #portfolio {
  background: linear-gradient(145deg, #daeff5, #f8ece5);
}

[data-theme="dark"] .letter {
  display: flex;
  color: #000;
}

[data-theme="dark"] #nextSection {
  background: linear-gradient(135deg, #f3faf6, #ebeff1);
}


[data-theme="dark"]  .text-item.active {
          opacity: 1;
          display: block;
          font-size: 1.1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
          color: #000000;
          letter-spacing: 0.5px;
          line-height: 1.6;
          text-align: justify;
          /* Slide in from top */
          animation: slideInTop 1.2s ease-in-out;
      }


[data-theme="dark"] #nextSection button {
  background-color: #000000;
  box-shadow: 0 0 20px var(--accent);
}

[data-theme="dark"] #nextSection button:hover {
  background-color: white;
  color: #000000;
  box-shadow: 0 0 40px var(--accent);
}

[data-theme="dark"] .dot-container .dot.active{
  background: #000000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .dot-container .dot {
  background: #a09a9a;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] #services {
  background: linear-gradient(135deg, #f3faf6, #ebeff1);
  color: #000000;
}

[data-theme="dark"] #services .row {
  background-color: transparent; /* translucent */
  border-radius: 20px;
  color: #ffffff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); /* Safari support */
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  padding: 3rem;
  transition: all 0.3s ease;
}

[data-theme="dark"] .box{
          position: relative;
            display: flex;
            flex-direction: column;
            bottom: 0;
            width: 270px;
            height: 400px;
            font-size: 1rem;
            box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2);
            border: 1px solid rgb(255, 255, 255);
            color: rgb(255, 255, 255);
            padding: 15px;
            border-radius: 15px;
            transform-style: preserve-3d;
            transition: transform 1s ease,opacity 1s ease , background-color 0.5s ease; /* Smooth background transition */
}

[data-theme="dark"] .pp {
            width: 100%;
            display: flex;
            justify-content: center;
            text-align: center;
            align-items: center;
            margin-top: 27px;
            gap: 10px;
            color: #000;
            opacity: 0; /* Initially hidden */
            transform: translateY(20px);
            border: 0.1rem solid rgb(0, 0, 0);
            border-radius: 20px;
            background-color: transparent;
            transition: transform 0.5s ease, opacity 0.5s ease;
        }

[data-theme="dark"] .pp a {
            opacity: 1;
            color: #000;
        }


[data-theme="dark"] .pp a:hover {
            opacity: 1;
            color: #000;
        }



[data-theme="dark"] .video-bg{
  height: 85%;
  border-radius: 20px;
}


[data-theme="dark"] #home::before {
  background: linear-gradient(135deg, #f3faf6, #ebeff1);
  color: #000;
}

[data-theme="dark"] #action {
  background-color: #f6eded;
  color: #000000;
}



[data-theme="dark"] #action  .model {
        background-image: url(anime.png);
        width: 100%;
        height: 80vh;
        position: absolute;
        bottom: 0;
        left: 0;
        background-size: auto 130%;
        background-repeat: no-repeat;
        background-position: top center;
        z-index: 1;
}

[data-theme="dark"] .banner{
  height: 92vh;
  background-color: #f6eded;
}


 [data-theme="dark"]      .banner .slider {
        position: absolute;
        width: 160px;
        height: 10px;
        top: 44%;
        left: calc(50% - 80px);
        transform-style: preserve-3d;
        animation: autoRun 55s linear infinite;
        z-index: 200;
    }

  [data-theme="dark"]  .item {
    box-shadow: #000000 0 10px 20px;
        /* For a smooth transition when moving the element */
        transition: transform 0.2s ease, opacity 0.5s ease;
      }

    /* Slider Items */
 [data-theme="dark"]   .banner .slider .item {
        position: absolute;
        inset: 0;
        transform: rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg))
                    translateZ(350px);
        transition: transform 2s ease, opacity 0.8s ease;
    }



[data-theme="dark"] .main{
  color: #000;
  justify-content: center;
}

[data-theme="dark"] .main img {
  display: none;
  width: auto;
  height: auto;
}

[data-theme="dark"] .dark-bg {
  display: block;
  width: auto;
  height: auto;
}

[data-theme="dark"] .light-bg {
  display: none;
}

[data-theme="dark"] .corner {
  background-color: rgb(234, 227, 208);
  color: #000000;
  border: 0.1rem solid rgb(176, 210, 223);

}

[data-theme="dark"] .shooting-star {
  display: none;
}

[data-theme="dark"] .still-star {
  display: none;
}


@media (max-width: 768px) {

  [data-theme="dark"] .navbar {
    display: flex;
    padding: 22px;
    flex-direction: row;
    height: auto;
    position: sticky;
  }

  [data-theme="dark"] .navbar a {
    font-size: 1.2rem;
  }

  [data-theme="dark"] .horizontal-scroll-section {
    flex-direction: column;
    height: auto;
    padding: 1rem;
  }
  [data-theme="dark"] .scroll-container {
    width: 100%;
    padding: 0;
  }

  [data-theme="dark"]  .boxx {
    background: transparent;
    color: rgb(0, 0, 0);
    border-radius: 12px;
    width: 100%;
    padding: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
}


[data-theme="dark"]  .boxx-logo {
    font-size: 3rem;
    margin-bottom: 10px;
    color: rgb(0, 0, 0);
}

  [data-theme="dark"]  .boxx-heading {
    font-size: 1.3rem;
    margin: 10px 0;
    color: rgb(0, 0, 0);
}

  [data-theme="dark"]  .boxx-text {
    font-size: 1rem;
    color: rgb(0, 0, 0);
    line-height: 1.3;
}

  [data-theme="dark"] #about {
    padding: 3rem 1rem;
    flex-direction: column;
  }

  [data-theme="dark"] .about-main,
  [data-theme="dark"] .info-group {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 20px;

  }

  [data-theme="dark"] .timeline {
    padding: 1rem;
    color: #000;
  }

  [data-theme="dark"] .timeline-item .content {
    font-size: 01rem;
    color: #000;

  }

  [data-theme="dark"] #services .row {
    padding: 1.5rem;
  }

[data-theme="dark"] .pp {
            max-width: 70%;
            display: flex;
            justify-content: center;
            text-align: center;
            align-items: center;
            margin-top: 27px;
            gap: 10px;
            color: #000;
            opacity: 0; /* Initially hidden */
            transform: translateY(20px);
            border: 0.1rem solid rgb(0, 0, 0);
            border-radius: 20px;
            background-color: transparent;
            transition: transform 0.5s ease, opacity 0.5s ease;
        }

[data-theme="dark"] .pp a {
            opacity: 1;
            color: #000;
        }


[data-theme="dark"] .pp a:hover {
            opacity: 1;
            color: #000;
        }




  [data-theme="dark"] .box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 85%; /* Updated to cover entire box */
    border-radius: 15px;
    opacity: 1; /* Fully visible by default */
    transition: opacity 0.8s ease, transform 0.8s ease; /* Smooth fade and optional transform */
}

  [data-theme="dark"] .box:hover::before {
    opacity: 0; /* Gradually hide the background image */
    transform: scale(1.05); /* Optional: slight zoom-out effect on hover */
}

  [data-theme="dark"] .box:hover {
    color: rgb(255, 255, 255);
    background-color: transparent; /* Turns the background black */
    transition: 1.3s ease, color 1.3s ease;
    border: 1px solid rgb(218, 218, 218);
    filter: invert(7%);
}


  [data-theme="dark"] .box.active {
    background-position: left bottom;
    color: black;
    border: none;
    box-shadow: 0 0 40px rgb(126, 165, 255);
    border: 1px solid rgb(218, 218, 218);
    transform: rotateY(180deg);
    filter: grayscale(100%);
}




[data-theme="dark"] .text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0); /* Hidden initially */
    opacity: 0; /* Invisible initially */
    transition: transform 0.5s ease, opacity 0.5s ease; /* Smooth transition */
    color: white;
    font-size: 1.5rem;
    text-align: center;
}

[data-theme="dark"] .text-item-wrapper {
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
  border-radius: 10px;
}

[data-theme="dark"] .text-item {
  position: relative;
  padding: 2rem;
  color: white;
  z-index: 1;
  backdrop-filter: blur(4px);
}

[data-theme="dark"] .box:hover .text {
    transform: translate(-50%, -50%) scale(1); /* Fully visible */
    opacity: 1; /* Fade in */
}

/* When the active class is added, hide the text */
[data-theme="dark"] .text.active {
    color: transparent;
    opacity: 0; /* Hide the text */
    transform: translate(-50%, -50%) scale(0); /* Scale down to hide */
}



  

  [data-theme="dark"] #contact {
    padding: 1rem;
  }

  [data-theme="dark"] #action .model {
    background-size: contain;
    height: 50vh;
  }

  [data-theme="dark"] .banner {
    width: 100vw;
    height: 75vh;
    text-align: center;
    overflow: hidden;
    position: relative;
    overflow: hidden;
  }

  [data-theme="dark"] .banner .slider {
    position: absolute;
    width: 150px;
    height: 100px;
    top: 50%;
    padding-left: 90px;
    left: calc(50% - 100px);
    transform-style: preserve-3d;
    transform: perspective(1000px);
    animation: autoRun 20s linear infinite;
    z-index: 1;
  }

  [data-theme="dark"]  .banner .slider .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

  [data-theme="dark"] .banner .content{
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(1400px, 100vw);
    height: max-content;
    padding-bottom: 100px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}


   [data-theme="dark"] .banner .slider .item {
        position: absolute;
        inset: 0;
        transform: rotateY(calc((var(--position) - 1) * (360 / var(--quantity)) * 1deg))
                    translateZ(200px);
        transition: transform 2s ease, opacity 0.8s ease;
    }


  [data-theme="dark"] .dot-container {
    gap: 8px;
  }

  [data-theme="dark"] .text-item.active {
    font-size: 0.95rem;
    padding: 1rem;
  }

  [data-theme="dark"] #nextSection button {
    font-size: 0.9rem;
    padding: 0.7rem 0.8rem;
    border-radius: 20px;
  }


 [data-theme="dark"]       .main {
        padding-top: 70px;
    }
    
 [data-theme="dark"]     .main p {
        font-size: 1.3rem;
        letter-spacing: 10px;
        padding: 10px;
        font-family: monospace;
        border-right: 5px solid;
        white-space: nowrap;
        overflow: hidden;
        display: inline-block;
        width: 0;
        opacity: 1;
        animation: typing 2s steps(20, end) infinite alternate, 
                   cursor 0.5s step-end infinite;
    }


    
 [data-theme="dark"]      #send:hover{
cursor: pointer;
background: rgb(113, 121, 124);
box-shadow: 0 0 40px lightblue;
font-weight: bold;
transition: all 0.5s ease;
}
}