/* Import Fonts */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&family=Montserrat:wght@300;400;500;600;700;800&display=swap");

/* Reset styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
  scroll-behavior: smooth;
  font-family: "Montserrat", sans-serif;
}

/* Root variables */
:root {
  --primary-color: #5f24e7; /* Main purple */
  --secondary-color: #26c9ff; /* Accent blue */
  --gradient-bg: linear-gradient(135deg, #5f24e7, #00ddeb);
  --dark-bg: #121212;
  --darker-bg: #0a0a0a;
  --light-text: #ffffff;
  --light-text-secondary: rgba(255, 255, 255, 0.8);
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-hover: rgba(255, 255, 255, 0.1);
  --link: url("../link.cur");
  --place-holder-text: #ffffff77;
}

/* Light mode variables */
html.light-mode {
  --primary-color: #5f24e7;
  --secondary-color: #0099ff;
  --gradient-bg: linear-gradient(135deg, #5f24e7, #00ddeb);
  --dark-bg: #f5f5f5;
  --darker-bg: #e0e0e0;
  --light-text: #121212;
  --light-text-secondary: rgba(0, 0, 0, 0.7);
  --card-bg: rgba(0, 0, 0, 0.05);
  --card-hover: rgba(0, 0, 0, 0.1);
  --place-holder-text: #00000066;
}

/* Base styles */
html {
  font-size: 62.5%;
  overflow-x: hidden;
  cursor: url("../pointer.cur"), auto;
}

body {
  background: var(--dark-bg);
  color: var(--light-text);
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/waves-7146711_1280.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.1;
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

html.light-mode body::before {
  opacity: 0.05;
}

.loading-screen {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: var(--dark-bg);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 120px;
  height: 120px;
  border: 3px solid transparent;
  border-top: 3px solid var(--secondary-color);
  border-right: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.loading-screen h2 {
  font-size: 2.4rem;
  font-weight: 600;
  background: var(--gradient-bg);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.7;
  }
}

::selection {
  background-color: var(--secondary-color);
  color: var(--dark-bg);
}

section {
  min-height: 100vh;
  padding: 10rem 9% 5rem;
  position: relative;
  overflow: hidden;
}

section::before {
  content: "";
  position: absolute;
  right: -10rem;
  bottom: -15rem;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  background: radial-gradient(var(--primary-color), transparent 70%);
  opacity: 0.1;
  z-index: -1;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem 9%;
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(20px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

html.light-mode .header {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.header.sticky {
  padding: 1.5rem 9%;
  background: rgba(10, 10, 10, 0.95);
}

.logo {
  font-size: 2.5rem;
  color: var(--light-text);
  font-weight: 700;
  cursor: var(--link), auto;
  display: flex;
  align-items: center;
  position: relative;
  transition: all 0.3s ease;
}

html.light-mode .logo {
  color: #000;
}

.logo span {
  position: relative;
  color: var(--secondary-color);
  margin-left: 0.5rem;
  transition: all 0.3s ease;
}

.logo::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-bg);
  transition: width 0.3s ease;
}

.logo:hover::after {
  width: 100%;
}

.navbar {
  display: flex;
  align-items: center;
}

.navbar a {
  font-size: 1.7rem;
  color: var(--light-text);
  margin-left: 3.5rem;
  position: relative;
  transition: 0.3s ease;
  cursor: var(--link), auto;
  font-weight: 500;
}

html.light-mode .navbar a {
  color: #000;
}

.navbar a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-bg);
  transition: width 0.3s ease;
}

.navbar a:hover::after,
.navbar a.active::after {
  width: 100%;
}

.navbar a:hover,
.navbar a.active {
  color: var(--secondary-color);
}

html.light-mode .navbar a:hover,
html.light-mode .navbar a.active {
  color: var(--secondary-color);
}

#menu-icon {
  font-size: 3.6rem;
  color: var(--light-text);
  cursor: pointer;
  display: none;
  transition: 0.3s ease;
}

html.light-mode #menu-icon {
  color: var(--dark-bg);
}

#menu-icon:hover {
  color: var(--secondary-color);
}

/* Home section styles */
.home {
  display: flex;
  align-items: center;
  padding-top: 12rem;
  position: relative;
  overflow: hidden;
}

.home::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(95, 36, 231, 0.1),
    rgba(38, 201, 255, 0.05)
  );
  z-index: -1;
}

.home-content {
  flex: 1;
  padding-right: 4rem;
}

.home-img {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.home-img::before {
  content: "";
  position: absolute;
  width: 80%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(var(--primary-color), transparent 70%);
  opacity: 0.1;
  z-index: -1;
  animation: pulse-bg 4s ease-in-out infinite;
}

@keyframes pulse-bg {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.15;
  }
}

.home-img img {
  width: 35vw;
  max-width: 500px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
  animation: floatImage 4s ease-in-out infinite;
  z-index: 1;
  transition: transform 0.3s ease;
}

.home-img img:hover {
  transform: scale(1.05);
}

@keyframes floatImage {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2.4rem);
  }
}

.home-content h3 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  background: linear-gradient(to right, #ffff, var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

html.light-mode .home-content h3 {
  color: #000000b3;
}

.home-content h3:nth-of-type(2) {
  margin: 1rem 0 2rem;
}

.home-content h1 {
  font-size: 5.6rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 2rem;
  position: relative;
}

.home-content h1::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 10rem;
  height: 0.5rem;
  background: var(--gradient-bg);
  border-radius: 5px;
}

.home-content p {
  font-size: 1.8rem;
  line-height: 1.6;
  margin-bottom: 3rem;
  color: var(--light-text-secondary);
}

.multiple-text {
  color: var(--secondary-color);
  font-weight: 700;
}

.social-media {
  display: flex;
  margin: 3rem 0;
}

.social-media a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4.5rem;
  height: 4.5rem;
  background: var(--card-bg);
  border: 2px solid var(--secondary-color);
  border-radius: 50%;
  font-size: 2rem;
  color: var(--secondary-color);
  margin-right: 1.5rem;
  transition: 0.3s ease;
  cursor: var(--link), auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-media a:hover {
  background: var(--gradient-bg);
  color: var(--dark-bg);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn {
  display: inline-block;
  padding: 1.2rem 3rem;
  background: var(--gradient-bg);
  border-radius: 3rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  font-size: 1.6rem;
  color: var(--light-text);
  letter-spacing: 0.1rem;
  font-weight: 600;
  transition: 0.5s ease;
  cursor: var(--link), auto;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--secondary-color);
  transition: 0.5s ease;
  z-index: -1;
  border-radius: 3rem;
}

.btn:hover::before {
  width: 100%;
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* About section */
.about {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  background: var(--darker-bg);
  position: relative;
}

.about::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 20%;
  height: 30%;
  background: linear-gradient(
    to bottom right,
    rgba(38, 201, 255, 0.1),
    transparent
  );
  z-index: 0;
  border-radius: 0 0 0 100%;
}

.about-img {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-img::before {
  content: "";
  position: absolute;
  width: 80%;
  height: 80%;
  border-radius: 20px;
  background: radial-gradient(var(--secondary-color), transparent 70%);
  opacity: 0.1;
  z-index: 0;
}

.about-img img {
  width: 35vw;
  max-width: 450px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 1;
  transition: transform 0.5s ease;
}

.about-img img:hover {
  transform: scale(1.03);
}

.about-content {
  flex: 1;
  z-index: 1;
}

.heading {
  font-size: 4.5rem;
  margin-bottom: 3rem;
  text-align: center;
  position: relative;
  display: inline-block;
}

.heading span {
  color: var(--secondary-color);
}

.about-content h2 {
  text-align: left;
  line-height: 1.2;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.about-content h2::after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 0;
  width: 8rem;
  height: 0.4rem;
  background: var(--gradient-bg);
  border-radius: 5px;
}

.about-content h3 {
  font-size: 2.6rem;
  margin-bottom: 1.5rem;
  color: var(--light-text);
}

.about-content h3 span {
  color: var(--secondary-color);
}

.about-content p {
  font-size: 1.8rem;
  line-height: 1.8;
  color: var(--light-text-secondary);
  margin: 2rem 0 3rem;
}

/* Services section */
.services {
  background: linear-gradient(to right, var(--dark-bg), var(--darker-bg));
  position: relative;
  overflow: hidden;
}

.services h2 {
  margin-bottom: 6rem;
  text-align: center;
  position: relative;
}

.services h2::after {
  content: "";
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 15rem;
  height: 0.4rem;
  background: var(--gradient-bg);
  border-radius: 5px;
}

.services-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 3rem;
}

.services-box {
  flex: 1 1 30rem;
  background: var(--card-bg);
  padding: 4rem 3rem;
  border-radius: 2rem;
  text-align: center;
  transition: 0.5s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.services-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(95, 36, 231, 0.1),
    rgba(38, 201, 255, 0.05)
  );
  z-index: -1;
  transition: all 0.5s ease;
  opacity: 0;
}

.services-box:hover::before {
  opacity: 1;
}

.services-box:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.services-box i {
  font-size: 7rem;
  color: var(--secondary-color);
  margin-bottom: 2rem;
  transition: 0.3s ease;
}

.services-box:hover i {
  transform: scale(1.1);
}

.services-box h3 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
  color: var(--light-text);
  position: relative;
  display: inline-block;
}

.services-box h3 span {
  color: var(--secondary-color);
}

.services-box h3::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 5rem;
  height: 0.3rem;
  background: var(--gradient-bg);
  border-radius: 5px;
  transition: 0.3s ease;
}

.services-box:hover h3::after {
  width: 8rem;
}

.services-box p {
  font-size: 1.6rem;
  line-height: 1.7;
  color: var(--light-text-secondary);
  margin: 2rem 0 2.5rem;
}

/* Portfolio section */
.portfolio {
  background: var(--darker-bg);
  position: relative;
  overflow: hidden;
}

.portfolio::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30%;
  height: 20%;
  background: linear-gradient(
    to top right,
    rgba(95, 36, 231, 0.1),
    transparent
  );
  z-index: 0;
  border-radius: 0 100% 0 0;
}

.portfolio h2 {
  margin-bottom: 5rem;
  text-align: center;
  position: relative;
}

.portfolio h2::after {
  content: "";
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 15rem;
  height: 0.4rem;
  background: var(--gradient-bg);
  border-radius: 5px;
}

.portfolio-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  align-items: stretch;
}

.portfolio-box {
  position: relative;
  border-radius: 1.5rem;
  overflow: hidden;
  display: flex;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: 0.5s ease;
  height: 380px;
}

.portfolio-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.portfolio-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}

.portfolio-box:hover img {
  transform: scale(1.1);
  filter: blur(2px) brightness(0.7);
}

.portfolio-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 0 4rem;
  opacity: 0;
  transition: 0.5s ease;
}

.portfolio-box:hover .portfolio-layer {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-layer h4 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #ffffff;
  transform: translateY(20px);
  transition: 0.5s ease;
}

.portfolio-box:hover .portfolio-layer h4 {
  transform: translateY(0);
}

.portfolio-layer p {
  font-size: 1.5rem;
  line-height: 1.6;
  margin: 0.5rem 0 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  transform: translateY(20px);
  transition: 0.5s ease 0.1s;
}

.portfolio-box:hover .portfolio-layer p {
  transform: translateY(0);
}

.portfolio-layer a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 5rem;
  height: 5rem;
  background: #f5f5f5;
  border-radius: 50%;
  transition: 0.5s ease 0.2s;
  transform: translateY(20px) scale(0.8);
  opacity: 0;
  cursor: var(--link), auto;
}

.portfolio-box:hover .portfolio-layer a {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.portfolio-layer a i {
  font-size: 2rem;
  color: #121212;
  cursor: var(--link), auto;
}

.portfolio-layer a:hover {
  background: var(--gradient-bg);
}

.portfolio-layer a:hover i {
  color: #f5f5f5;
}

/* Contact section */
.contact {
  background: linear-gradient(to left, var(--dark-bg), var(--darker-bg));
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 40%;
  height: 40%;
  background: radial-gradient(
    circle at top right,
    rgba(38, 201, 255, 0.1),
    transparent 70%
  );
  z-index: 0;
}

.contact h2 {
  font-size: 4.5rem;
  margin-bottom: 4rem;
  text-align: center;
  position: relative;
}

.contact h2 span {
  color: var(--secondary-color);
}

.contact h2::after {
  content: "";
  position: absolute;
  bottom: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 15rem;
  height: 0.4rem;
  background: var(--gradient-bg);
  border-radius: 5px;
}

.contact form {
  max-width: 70rem;
  margin: 3rem auto;
  text-align: center;
  background: var(--card-bg);
  padding: 4rem;
  border-radius: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
  transition: 0.3s ease;
}

html.light-mode .contact form {
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.contact form:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  transform: translateY(-5px);
}

form .input-box {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.input-box .input-field {
  width: 49%;
}

.field .item {
  width: 100%;
  padding: 1.5rem 2rem;
  font-size: 1.6rem;
  color: var(--light-text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(27, 27, 27, 0.227);
  border-radius: 1rem;
  margin: 0.7rem 0;
  transition: all 0.3s ease;
  cursor: url("../txt.cur"), auto;
}

.field .item:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 10px rgba(38, 201, 255, 0.3);
}

.field.error .item {
  border-color: #d93025;
}

.field .item::placeholder {
  color: var(--place-holder-text);
}

.field .error-txt {
  font-size: 1.4rem;
  color: #d93025;
  text-align: left;
  margin: 0.5rem 0;
  display: none;
}

.field.error .error-txt {
  display: block;
}

form .textarea-field .item {
  resize: none;
  height: 15rem;
}

form .textarea-field .error-txt {
  margin-top: -5px;
}

form button {
  padding: 1.2rem 3rem;
  background: var(--gradient-bg);
  border-radius: 3rem;
  font-size: 1.6rem;
  color: var(--light-text);
  letter-spacing: 0.1rem;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  cursor: var(--link), auto;
  margin-top: 2rem;
  transition: 0.5s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

form button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--secondary-color);
  transition: 0.5s ease;
  z-index: -1;
  border-radius: 3rem;
}

form button:hover::before {
  width: 100%;
}

form button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 3rem 9%;
  background: var(--darker-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.footer::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(121, 121, 121, 0.478), transparent);
  z-index: -1;
}

.footer-text {
  position: relative;
  z-index: 2;
}

.footer p {
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.1rem;
  color: var(--light-text-secondary);
}

.footer-iconTop {
  position: relative;
  z-index: 2;
}

.footer-iconTop a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  background: var(--gradient-bg);
  border-radius: 1rem;
  transition: 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  cursor: var(--link), auto;
}

.footer-iconTop a:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.footer-iconTop a i {
  font-size: 2.4rem;
  color: var(--light-text);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-bg);
  border-radius: 5px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

/* Media Queries */
@media (max-width: 1200px) {
  html {
    font-size: 55%;
  }

  .home {
    padding-top: 18rem;
  }
}

@media (max-width: 991px) {
  .header {
    padding: 2rem 3%;
  }

  section {
    padding: 10rem 3% 5rem;
  }

  .home {
    flex-direction: column;
    padding-top: 15rem;
    text-align: center;
  }

  .home-content {
    padding-right: 0;
    margin-bottom: 5rem;
  }

  .home-content h1::after,
  .about-content h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .home-content p {
    margin: 0 auto 3rem;
    max-width: 70%;
  }

  .social-media {
    justify-content: center;
  }

  .home-img img {
    width: 60vw;
  }

  .about {
    flex-direction: column;
    gap: 5rem;
  }

  .about-img img {
    width: 70vw;
  }

  .about-content {
    text-align: center;
  }

  .services {
    padding-bottom: 7rem;
  }

  .portfolio {
    padding-bottom: 7rem;
  }

  .contact {
    min-height: auto;
  }

  .footer {
    padding: 2rem 3%;
  }
}

@media (max-width: 768px) {
  #menu-icon {
    display: block;
  }

  html.light-mode .navbar a {
    color: var(--dark-bg);
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1.5rem 3%;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: none;
  }

  .navbar.active {
    display: block;
  }

  .navbar a {
    display: block;
    font-size: 2rem;
    margin: 2.5rem 0;
    text-align: center;
  }

  .navbar a::after {
    display: none;
  }

  section {
    padding: 10rem 5% 5rem;
  }

  .home {
    text-align: center;
  }

  .home-content h3 {
    font-size: 2.6rem;
  }

  .home-content h1 {
    font-size: 4.5rem;
  }

  .home-content p {
    max-width: 90%;
  }

  .home-img img {
    width: 80vw;
  }

  .about img {
    width: 80vw;
  }

  .services h2 {
    margin-bottom: 4rem;
  }

  .portfolio h2 {
    margin-bottom: 4rem;
  }

  .portfolio-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  form .input-box {
    flex-direction: column;
    gap: 0;
  }

  .input-box .input-field {
    width: 100%;
  }
}

@media (max-width: 617px) {
  .portfolio-container {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column-reverse;
    gap: 2rem;
    text-align: center;
  }

  .footer p {
    font-size: 1.4rem;
  }
}

@media (max-width: 450px) {
  html {
    font-size: 50%;
  }

  .home-content p {
    max-width: 100%;
  }
}

@media (max-width: 365px) {
  .home-img img {
    width: 90vw;
  }

  .about-img img {
    width: 90vw;
  }

  .footer p {
    font-size: 1.2rem;
  }

  .contact form {
    padding: 2.5rem;
  }
}

/* Mode Toggle */
.mode-toggle {
  position: fixed;
  bottom: 8rem;
  right: 2.4rem;
  width: 4.5rem;
  height: 4.5rem;
  background: var(--gradient-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  z-index: 99;
  transition: 0.3s ease;
}

.mode-toggle:hover {
  transform: scale(1.1);
  cursor: url("../link.cur"), auto;
}

.mode-toggle i {
  font-size: 2rem;
  color: var(--light-text);
}
