* {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  box-sizing: border-box;
}
:root {
  --transition: all 0.3s ease-in-out;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #080808;
  color: #fff;
}

p {
  font-size: 20px;
  font-family: "Inter", sans-serif;
}

#typewriter {
  color: white;
  font-size: 1.2rem;
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid white;
  width: fit-content;
  margin-bottom: 3%;
}

@keyframes blink {
  0%,
  100% {
    border-color: transparent;
  }
  50% {
    border-color: white;
  }
}

#typewriter {
  animation: blink 0.75s step-end infinite;
}

.typewriter-wrapper {
  height: 0.5em;
}

#header {
  padding: 0.5%;
  padding-top: 1%;
  padding-bottom: 20%;
  width: calc(100% - 40px);
  height: 85vh;
  backdrop-filter: blur(8px);
  background-size: cover;
  background-position: center;
  border-radius: 30px;
  margin: 40px auto;
  overflow: hidden;
  border: 1px solid #000;
  box-shadow: 0 5px 20px #00abf0, -5px 0 5px black, 5px 0 5px black;
  position: relative;
}

.container {
  padding: 0px 10%;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  width: 150px;
}

nav ul li {
  display: inline-block;
  list-style: none;
  margin: 10px 20px;
}

nav ul li a {
  color: #fff;
  font-size: 18px;
  text-decoration: none;
  position: relative;
}

nav ul li a::after {
  content: "";
  width: 0;
  height: 3px;
  background: linear-gradient(to right, black, #00abf0);
  position: absolute;
  left: 0;
  bottom: -6px;
  transition: 0.5s;
}

nav ul li a:hover:after {
  width: 100%;
}

.header-text {
  color: #fff;
  margin-top: 10%;
  font-size: 30px;
  font-family: monospace;
  text-decoration: none;
}

.header-text p {
  font-family: "Inter", sans-serif;
}

.header-text h1 {
  color: #fff;
  margin-top: 15px;
  font-size: 50px;
  text-decoration: none;
  font-family: poppins, sans-serif;
}

.header-text h1 span {
  color: #00abf0;
  text-decoration: none;
  font-family: poppins, sans-serif;
}

#about {
  padding: 80px 0;
}
#about .container {
  background: #000;
  backdrop-filter: blur(8px);
  border-radius: 30px;
  padding: 20px; /* Reduce padding on mobile */
  box-shadow: 0 5px 10px #00abf0;
  border: 1px solid #000;
  max-width: 1200px;
  margin: 0 auto;
}

#about .row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

#about .about-col-1 {
  flex: 1;
  min-width: 300px;
}

#about .about-col-1 img {
  width: 100%;
  border-radius: 15px;
  object-fit: cover;
  height: 150%;
  max-height: 600px;
}

#about .about-col-2 {
  flex: 2;
  min-width: 300px;
}

#about .sub-title {
  font-size: 2.5rem;
  color: #fff;
  margin-bottom: 20px;
}

#about p {
  color: #ddd;
  line-height: 1.6;
  margin-bottom: 30px;
}

#about .tab-titles {
  display: flex;
  margin: 20px 0 40px;
  gap: 30px;
}

#about .tab-links {
  color: #ababab;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
}

#about .tab-links:hover {
  color: #fff;
}

#about .tab-links::after {
  content: "";
  width: 0;
  height: 3px;
  background: #00abf0;
  position: absolute;
  left: 0;
  bottom: -8px;
  transition: width 0.5s;
}

/* Active tab styling */
#about .tab-links.active-link {
  color: #00abf0;
}

#about .tab-links.active-link::after {
  width: 50%;
}

#about .tab-links:hover::after {
  width: 100%;
  background: linear-gradient(to right, black, #00abf0);
}

#about .tab-contents ul li {
  list-style: none;
  margin: 15px 0;
  color: #ddd;
}

#about .tab-contents ul li span {
  color: #00abf0;
  font-size: 1rem;
}

.row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.about-col-1 {
  flex-basis: 35%;
}

.about-col-1 {
  height: 355px;
}

.user {
  max-height: 360px;
  width: auto;
  border-radius: 15px;
}

.about-col-2 {
  flex-basis: 60%;
}

.sub-title {
  margin-top: 30px;
  font-size: 60px;
  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;
  color: #ababab;
}

.tab-links::after {
  content: "";
  width: 0;
  height: 3px;
  background: #00abf0;
  position: absolute;
  left: 0;
  bottom: -8px;
  transition: 0.5s;
}

.tab-links.active-link::after {
  width: 50%;
}

.tab-contents {
  display: none;
  margin-top: 5px;
  animation: fadeIn 0.5s ease;
}

.tab-contents.active-tab {
  display: block;
}

.tab-contents ul {
  padding-left: 20px;
}

.tab-contents ul li {
  list-style: none;
  margin: 12px 0;
  position: relative;
  padding-left: 15px;
}

.tab-contents ul li::before {
  content: "•";
  color: #00abf0;
  position: absolute;
  left: 0;
}

.tab-contents ul li span {
  color: #00abf0;
  font-size: 16px;
  font-weight: 500;
  display: inline-block;
  margin-bottom: 3px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Services Section */
#services {
  padding: 20px 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;
  color: #fff;
  background: #000;
  backdrop-filter: blur(8px);
  border-radius: 30px;
  padding: 40px;
  box-shadow: 0 5px 10px #00abf0;
  border: 1px solid #000;
  max-width: 1200px;
  margin: 0 auto;
}

.services-list div i {
  font-size: 50px;
  margin-bottom: 30px;
  color: #fff;
}

.services-list div h2 {
  font-size: 30px;
  font-weight: 300;
  margin-bottom: 30px;
  color: #fff;
}

.services-list div a {
  color: #fff;
  text-decoration: none;
  margin-top: 20px;
  font-size: 12px;
  display: inline-block;
}

.services-list div:hover {
  background: #00abf0;
  transform: translateY(-10px);
}

/* Portfolio Section */
#portfolio {
  padding: 50px 0;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 40px;
  margin-top: 50px;
}

.work {
  position: relative;
  overflow: hidden;
  /* background: #000; */
  backdrop-filter: blur(8px);
  border-radius: 30px;
  box-shadow: 0 5px 20px #00abf0;
  /* border: 1px solid #000; */
  max-width: 1200px;
  margin: 0 auto;
}

.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), #00abf0);
  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;
  font-size: 14px;
  color: #fff;
}

.layer a {
  margin-top: 20px;
  color: #00abf0;
  text-decoration: none;
  font-size: 18px;
  line-height: 60px;
  background: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
}

.layer p {
  color: #fff;
}

.work:hover img {
  transform: scale(1.1);
}

.work:hover .layer {
  height: 100%;
}

.btnn {
  display: block;
  margin: 50px auto;
  width: fit-content;
  border: 0.5px solid #00abf0;
  padding: 10px 20px;
  border-radius: 15px;
  text-decoration: none;
  color: #fff;
  transition: background 0.5s;
  background: linear-gradient(to right, #6c5ce7, #00abf0);
  transition: var(--transition);
}

.btnn:hover {
  background: linear-gradient(to right, black, #00abf0);
  transform: translateY(-5px);
  box-shadow: 0 5px 5px rgba(255, 255, 255, 0.507);
  color: white;
}

/* Contact Section */
.contact-left {
  flex-basis: 35%;
}

.contact-right {
  flex-basis: 60%;
}

.contact-left p {
  margin-top: 30px;
}

.contact-left p a {
  display: inline-block;
  padding: 8px;
  border-radius: 50%;
  color: #00abf0;
  font-size: 25px;
  transition: var(--transition);
}

.contact-left p a:hover {
  background: linear-gradient(to right, black, #00abf0);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 5px 5px rgba(255, 255, 255, 0.507);
}

/* Buttons: Download CV , APK and Submit */
.btnn.btn2 {
  display: inline-block;
  background: linear-gradient(to right, #6c5ce7, #00abf0);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  text-decoration: none;
  text-align: center;
  transition: var(--transition);
}

.btnn.btn2:hover {
  background: linear-gradient(to right, black, #00abf0);
  transform: translateY(-5px);
  box-shadow: 0 5px 5px rgba(255, 255, 255, 0.507);
}

.contact-right form {
  width: 100%;
}

form input,
form textarea {
  width: 100%;
  border: 0;
  outline: none;
  padding: 15px;
  background: #262626;
  margin: 10px 0;
  color: #fff;
  font-size: 18px;
  border-radius: 6px;
}

form .btn2 {
  padding: 14px 60px;
  font-size: 18px;
  margin-top: 10px;
  cursor: pointer;
}

.submit-container {
  display: flex;
  justify-content: center;
  margin-top: -10px;
}

/* Light Theme */
body.light-theme {
  background: #f4f4f4;
  color: #111;
}

.light-theme .header-text {
  color: #fff;
}

.light-theme .header-text h1 {
  color: #fff;
}

.light-theme .header-text h1 span {
  color: #00abf0;
}

/* Navigation */
.light-theme nav ul li a {
  color: #fff;
}

/* About Section */
.light-theme #about {
  color: #444;
}

.light-theme .sub-title {
  color: #111;
}

.light-theme .tab-links {
  color: #444;
}

.light-theme .tab-links.active-link {
  color: #00abf0;
}

.light-theme .tab-contents ul li {
  color: #444;
}

.light-theme .tab-contents ul li span {
  color: #00abf0;
}

/* Services Section */
.light-theme .services-list div {
  background: #111;
  color: #eaeaea;
}

.light-theme .services-list div h2,
.light-theme .services-list div p,
.light-theme .services-list div a {
  color: #eaeaea;
}

.light-theme .services-list div:hover {
  background: #00abf0;
  color: #fff;
}

.light-theme .services-list div:hover h2,
.light-theme .services-list div:hover p,
.light-theme .services-list div:hover a {
  color: #fff;
}

/* Portfolio Section */
.light-theme .layer h3,
.light-theme .layer p {
  color: #fff;
}

/* Contact Section */
.light-theme .contact-left p {
  color: #444;
}

.light-theme .social-icons a {
  color: #444;
}

.light-theme .social-icons a:hover {
  color: #00abf0;
}

.light-theme form input,
.light-theme form textarea {
  background: #e0e0e0;
  color: #111;
}

/* Theme Toggle */
.theme-toggle {
  margin-left: 20px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #00abf0;
}

input:checked + .slider:before {
  transform: translateX(18px);
}

/* ---------------------------------------Responsive Design--------------------------------------------------- */
nav .fa-solid {
  display: none;
  color: #fff;
}

@media only screen and (max-width: 700px) {
  .container {
    padding: 10px 15px;
  }
  #header {
    background-image: url(assets/images/bgg.jpg);
    height: 100%;
    width: 90%;
    margin: 20px auto;
    margin: 20px auto;
  }
  .header-text {
    margin-top: 20%;
    font-size: 14px;
    color: #fff;
  }
  .header-text p {
    font-size: 15px;
  }

  .header-text h1 {
    font-size: 27px;
  }
  .typewriter-wrapper #typewriter {
    font-size: 14px;
  }

  #about .container {
    width: 90%;
    padding: 20px;
  }

  #about .row {
    flex-direction: column;
  }

  #about .about-col-1 img {
    max-height: 270px;
  }

  #about .sub-title {
    font-size: 2rem;
  }
  nav ul {
    background: #00abf0;
    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-xmark {
    position: absolute;
    top: 25px;
    left: 25px;
    z-index: 3;
    font-size: 24px;
    color: white;
    display: block !important;
  }

  nav .fa-bars {
    display: block;
    font-size: 24px;
    cursor: pointer;
    margin-left: 20px;
  }
  nav ul .fa-xmark {
    position: absolute;
    top: 25px;
    left: 25px;
    z-index: 3;
    font-size: 24px;
    color: white;
  }

  .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: 18px;
    margin-right: 20px;
  }

  .contact-left,
  .contact-right {
    flex-basis: 100%;
  }
  .contact-left .sub-title {
    font-size: 20px;
  }

  #msg {
    color: linear-gradient(to right, black, #00abf0);
    margin-top: -40px;
    display: block;
  }

  .submit-container .btn.btn2 {
    font-size: 18px;
  }
  .contact-left .btn.btn2 {
    font-size: 18px;
  }
}

@media only screen and (max-width: 375px) {
  /* Header adjustments */
  #header {
    height: 80vh;
    width: 92%;
    margin: 15px auto;
  }

  .header-text {
    margin-top: 25%;
  }

  .header-text h1 {
    font-size: 24px;
  }

  .header-text p {
    font-size: 13px;
  }

  .typewriter-wrapper #typewriter {
    font-size: 12px;
  }

  /* About section */
  #about .container {
    width: 90%;
    padding: 15px;
    border-radius: 20px;
  }

  #about .sub-title {
    font-size: 1.8rem;
    margin-top: 15px;
  }

  #about p {
    font-size: 14px;
    line-height: 1.5;
  }

  #about .about-col-1 img {
    max-height: 250px;
  }

  /* Tab system */
  .tab-titles {
    margin: 15px 0 30px;
    gap: 15px;
  }

  .tab-links {
    font-size: 16px;
    margin-right: 15px;
  }

  .tab-contents ul li {
    font-size: 13px;
    margin: 8px 0;
  }

  .tab-contents ul li span {
    font-size: 14px;
  }

  /* Navigation */
  nav ul {
    width: 180px;
  }

  nav ul li {
    margin: 20px;
    font-size: 14px;
  }

  nav .fa-bars,
  nav ul .fa-xmark {
    font-size: 20px;
  }

  /* Contact section */
  .contact-left .sub-title {
    font-size: 18px;
  }

  .contact-left p {
    font-size: 13px;
  }

  .contact-left p i {
    font-size: 14px;
  }

  .social-icons a {
    font-size: 18px;
    width: 30px;
    height: 30px;
    line-height: 30px;
  }

  .btn.btn2 {
    font-size: 14px;
    padding: 8px 15px;
  }

  /* Form elements */
  input,
  textarea {
    font-size: 13px;
    padding: 8px 12px;
  }

  /* Utility classes */
  .sub-title {
    font-size: 32px;
  }

  .btn {
    font-size: 14px;
    padding: 8px 16px;
  }
}
/* */
@media only screen and (min-width: 701px) and (max-width: 1024px) {
  .container {
    padding: 20px 30px;
    max-width: 1000px;
  }

  /* Header section */
  #header {
    height: 70vh;
    width: 95%;
    margin: 40px auto;
    padding-left: 4%;
  }

  .header-text {
    margin-top: 10%;
  }

  .header-text h1 {
    font-size: 36px;
  }

  .header-text p {
    font-size: 20px;
  }

  .typewriter-wrapper #typewriter {
    font-size: 16px;
  }

  /* About section */
  #about .container {
    width: 95%;
    padding: 30px;
  }

  #about .row {
    flex-direction: row;
    gap: 40px;
  }

  #about .about-col-1 {
    flex: 1;
  }

  #about .about-col-2 {
    flex: 1.5;
  }

  #about .about-col-1 img {
    max-height: 450px;
  }

  #about .sub-title {
    font-size: 2.5rem;
  }

  #about p {
    font-size: 16px;
    line-height: 1.7;
  }

  /* Navigation */
  nav ul {
    width: 250px;
    padding-top: 70px;
  }

  nav ul li {
    margin: 30px;
    font-size: 18px;
  }

  nav .fa-bars,
  nav ul .fa-xmark {
    font-size: 28px;
  }

  /* Tab system */
  .tab-titles {
    margin: 25px 0 45px;
    gap: 35px;
  }

  .tab-links {
    font-size: 20px;
    margin-right: 30px;
  }

  .tab-contents ul li {
    font-size: 16px;
    margin: 15px 0;
  }

  .tab-contents ul li span {
    font-size: 17px;
  }

  /* Contact section */
  .contact-left,
  .contact-right {
    flex-basis: 48%;
  }

  .contact-left .sub-title {
    font-size: 28px;
  }

  .social-icons a {
    font-size: 24px;
    width: 45px;
    height: 45px;
    line-height: 45px;
  }

  .btn.btn2 {
    font-size: 18px;
    padding: 10px 20px;
  }

  /* Form elements */
  input,
  textarea {
    font-size: 16px;
    padding: 12px 15px;
  }

  /* Utility classes */
  .sub-title {
    font-size: 48px;
  }
}
