/* VARIABLES */
:root {
  --bg-color: #fff;
  --text-color: #000;
  --secondary-text-color: #555555;
  --nav-link-color: black;
  --hamburger-icon-color: #000;
  --pic-container-bg: #d1cfcf;
  --details-container-bg: white;
  --details-container-border: rgb(163, 163, 163);
  --color-container-bg: rgb(250, 250, 250);
  --project-btn-color: black;
}

body.dark-mode {
  --bg-color: #121212;
  --text-color: #fff;
  --secondary-text-color: #b3b3b3;
  --nav-link-color: #fff;
  --hamburger-icon-color: #fff;
  --pic-container-bg: #333;
  --details-container-bg: #1e1e1e;
  --details-container-border: #555;
  --color-container-bg: #2a2a2a;
  --project-btn-color: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
}
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

p {
  color: var(--secondary-text-color);
}

/* TRANSITION */

a,.btn {
  transition: all 300ms ease;
}

/* DESKTOP NAV */

nav,.nav-links {
  display: flex;
}

nav {
  justify-content: space-around;
  align-items: center;
  height: 17vh;
  position: relative;
  z-index: 1000; /* Keeps navbar above 3D model and other sections */
}

.nav-links {
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

.nav-links a{
  color: var(--nav-link-color);
  text-decoration: none;
  font-weight: 700;
}

.logo {
  background: #fff;
  padding: 5px 10px;
  border-radius: 10px;
  font-weight: 700;

  font-size: 2rem;
}

.logo img {
  max-height: 60px;
  width: auto;
}

.logo:hover {
  cursor: default;
}

/* HAMBURGER MENU */

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: var(--hamburger-icon-color);
  transition: all 0.3s ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--bg-color);
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  z-index: 999; /* Prevents 3D bee model from overlapping menu items */
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: var(--nav-link-color);
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

/* THEME TOGGLE ICON */

#theme-toggle-icon-desktop,
#theme-toggle-icon-mobile {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color);
}

#theme-toggle-icon-mobile {
    /* Removed padding to align seamlessly within flex container */
}

/*bee model*/
#robot-model{
  position: fixed;
  top: 0;
  right: 0;
  width: 50vw;
  height: 100vh;
  pointer-events: none;
  z-index: 100;
  animation: floatRobot 3s ease-in-out infinite;
}

@keyframes floatRobot {
  0%, 100% {
    translate: 0 0;
    rotate: 0deg;
  }
  33% {
    rotate: 3deg;
  }
  50% {
    translate: 0 -30px;
    rotate: 0deg;
  }
  66% {
    rotate: -3deg;
  }
}

/* SECTIONS */
section {
  padding-top: 4vh;
  height: 96vh;
  margin: 0 10rem;
  box-sizing: border-box;
  min-height: fit-content;
}

.section-container {
  display: flex;
}

/* PROFILE SECTION */

#profile {
  display: flex;
  justify-content: center;
  gap: 5rem;
  height: fit-content;
  min-height: 80vh;
}
.ai{
  padding: 5px;
  
}
.t{
  padding-bottom: 10px;
}

.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;  /* 400PX */
  margin: auto 0;
  background-color: var(--pic-container-bg); /* #d1cfcf; */
  border-radius: 5vh;  /*5Vh */

}

.section__pic-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5vh;
}

.section__text {
  align-self: center;
  text-align: center;
}

.section__text p {
  font-weight: 600;
}

.section__text__p1 {
  text-align: center;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.prof {
  font-size: 3rem;
  text-align: center;
}

.title {
  font-size: 3rem;
  text-align: center;
  color: var(--text-color);
  padding-bottom: 50px;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

#socials-container img {
  background: #fff;
  padding: 5px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 300ms ease;
}

#socials-container img:hover {
  transform: translateY(-3px);

}

/* ICONS */

.icon {
  cursor: pointer;
  height: 2rem;
  transition: transform 0.3s ease;
}

.icon:hover {
  transform: translateY(-3px);
}

.size {
  font-size: 30px;
}

span {
  color: #ff4321;
}

/* BUTTONS */

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
}


.btn {
  font-weight: 600;
  transition: all 300ms ease;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
}

.btn3 {
  width: 8rem;
  border-radius: 2rem;
  background-color: #353535;
  color: #fff;
  font-weight: 500;
  font-size: 13px;
  text-decoration: none;
  border: #353535 0.1rem solid;
  cursor: pointer;
  transition: all 300ms ease;
}

.btn3:hover {
  background: rgb(0, 0, 0);
}

button.btn3 {
  padding: 0;
}

a.btn3 {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 1rem;
}

.btn-color-1,
.btn-color-2 {
  border: #353535 0.1rem solid;
}

.btn-color-1:hover,
.btn-color-2:hover {
  cursor: pointer;
}

.btn-color-1 {
  background: rgb(53, 53, 53);
  color: #fff;
}

.btn-color-1:hover {
  background: rgb(0, 0, 0);
  color: #ff4321;
  border: rgb(255, 67, 33) 0.1rem solid;
}

.btn-color-2 {
  background: none;
}

.btn-color-2:hover {
  background: rgb(53, 53, 53);
  color: #fff;
  border: rgb(255, 255, 255) 0.1rem solid;
}

/* ABOUT SECTION */

#about {
  position: relative;
}

.about-containers {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.about-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.about-pic {
  border-radius: 2rem;
}

.arrow {
  position: absolute;
  right: -5rem;
  bottom: 2.5rem;
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: var(--details-container-bg);
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  border-color: var(--details-container-border);
  text-align: center;
}

.section-container {
  gap: 4rem;
  height: 80%;
}

/*services*/

.container {
  padding: 30px;
}

h1.tit {
  padding-top: 40px;
  text-align: center;
  font-size: 40px;
}

.sub-title {
  text-align: center;
  font-size: 60px;
  padding: 70px;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 40px;
  margin-top: 30px;
}

.services-list div {
  background-color: transparent;
  padding: 40px;
  font-size: 13px;
  border-right: 10px;
  border-radius: 20px;
  transition: background 0.5s transform 0.5s;
  box-shadow: 1px 1px  10px #ff4321;
  background: #212121;
  color: #edf2fc;
}

body.dark-mode .services-list div {
  background: #2a2a2a;
  box-shadow: 1px 1px 10px rgba(255, 67, 33, 0.4);
}

.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: #edf2fc;
  font-size: 12px;
  margin-top: 20px;
  display: inline-block;
}

.read {
  display: inline-block;
  padding: 12px 20px;
  background: #ff4321;
  border-radius: 30px;
  font-size: 18px;
  color: #212121;
  letter-spacing: 1px;
  text-decoration: none;
  font-weight: 500;
}


/* EXPERIENCE SECTION */

#experience {
  position: relative;
}

.experience-sub-title {
  color: rgb(85, 85, 85);
  font-weight: 600;
  font-size: 1.75rem;
  margin-bottom: 2rem;
}

.experience-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.article-container {
  display: flex;
  text-align: initial;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 2.5rem;
  justify-content: space-around;
}

article {
  display: flex;
  width: 10rem;
  justify-content: space-around;
  gap: 0.5rem;
}

article .icon {
  cursor: default;
}

/* CERTIFICATE SECTION */

#certificate {
  position: relative;
  height: auto;
  min-height: 96vh;
}

.certificate-list {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}


.certificate-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.certificate-img {
  display: block;
  width: 100%;
  max-width: none;
  height: 20rem;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* PROJECTS SECTION */

#projects{
  position: relative;
  margin-left: 40px;
  margin-right: 20px;
}

.color-container {
  border-color: var(--details-container-border);
  background: var(--color-container-bg);
}

.project-img {
  border-radius: 2rem;
  width: 90%;
  height: 90%;
}

.project-title {
  margin: 1rem;
  color: var(--text-color);
}

.project-btn {
  color: var(--project-btn-color);
  border-color: var(--details-container-border);
}


/*contacts*/

.contact-container {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding-bottom: 20%;
}

input, textarea {
  background-color: #212121;
  color: #fff;
}

body.dark-mode .contact-input {
  background-color: #2a2a2a;
}

.contact-left {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 20px;
  padding-bottom: 120px;
}

.contact-left-title h2 {
  font-weight: 600;
  color: #a363aa;
  font-size: 40px;
  margin-bottom: 5px;
}

.contact-left-title hr {
  border: none;
  width: 120px;
  height: 5px;
  background-color: #a363aa;
  border-radius: 10px;
  margin-bottom: 20px;
}

body.dark-mode .contact-left-title h2 {
  color: #c38ed0;
}
body.dark-mode .contact-left-title hr {
  background-color: #c38ed0;
}

.contact-input {
  width: 400px;
  height: 50px;
  border: none;
  outline: none;
  padding-left: 25px;
  font-weight: 500;
  color: #fff;
  border-radius: 50px;
}

.contact-left textarea {
  height: 140px;
  padding-top: 15px;
  border-radius: 20px;
}

.contact-input:focus {
  border: 3px solid #ff994f;
}

.contact-input::placeholder {
  color: #a9a9a9;
}
.contact-left button {
  display: flex;
  align-items: center;
  padding: 15px 30px;
  font-size: 16px;
  color: #fff;
  gap: 10px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(270deg, #ff994f, #fa6d86);
  cursor: pointer;
}

.contact-left button img {
  height: 15px;
}

.contact-right img {
  width: 500px;
}



/* FOOTER SECTION */

footer{
  background: #212121;
  color: #fff;
  padding-top: 20px;
}
.container1{
  width: 100%;
  max-width: 1450px;
  margin: auto;
  display: flex;
  justify-content: center;
  /*padding-top: 90px;*/
}
.footer-content{
  width: 33.3%;
}

h3{
  font-size: 28px;
  margin-bottom: 15px;
  text-align: center;
}

.footer-content p{
  width:190px;
  margin: auto;
  padding: 7px;
  color: #fff;
}
.footer-content ul{
  text-align: center;
}
.list{
  padding: 0;
}
.list li{
  width: auto;
  text-align: center;
  list-style-type:none;
  padding: 7px;
  position: relative;
}
.list li::before{
  content: '';
  position: absolute;
  transform: translate(-50%,-50%);
  left: 50%;
  top: 100%;
  width: 0;
  height: 2px;
  transition-duration: .5s;
}
.list li:hover::before{
  width: 70px;
}
.social-icons1{
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 0;
  list-style: none;
}
.social-icons1 li{
  padding: 5px;
}
.social-icons1 i{
  color: white;
  font-size: 25px;
}
a{
  color: #fff;
  text-decoration: none;
}
a:hover{
  color: #ff4321;
}
.social-icons1 i:hover{
  color: #ff4321;
}
.bottom-bar{
  background: #ff4321;
  text-align: center;
  padding: 10px 0;
  /*margin-top: 30px;*/
}

.bottom-bar p{
  color: #fff;
  margin: 0;
  font-size: 16px;
  padding: 7px;
}

.title1 {
  text-align: center;
  color: var(--text-color);
  font-size: 40px;
  padding-top: 50px;
  padding-bottom: 9%;
}

/* VIDEO MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  width: 80%;
  max-width: 800px;
  background-color: #000;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.close-modal {
  color: white;
  position: absolute;
  top: -15px;
  right: -15px;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  background-color: #ff4321;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2001;
  transition: background-color 0.3s ease;
}

.close-modal:hover {
  background-color: #d83416;
}

#modal-video {
  width: 100%;
  height: auto;
  border-radius: 5px;
  outline: none;
}
