@import url("https://fonts.googleapis.com/css2?family=Beiruti:wght@200..900&family=Catamaran:wght@100..900&family=Changa:wght@200..800&family=Geologica:wght@100..900&family=Great+Vibes&family=Island+Moments&family=Italianno&family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Mulish:ital,wght@0,200..1000;1,200..1000&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Oleo+Script+Swash+Caps:wght@400;700&family=Rubik:ital,wght@0,300..900;1,300..900&family=Saira:ital,wght@0,100..900;1,100..900&family=Sarabun:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&family=Tangerine:wght@400;700&family=Tinos:ital,wght@0,400;0,700;1,400;1,700&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Beiruti:wght@200..900&family=Catamaran:wght@100..900&family=Changa:wght@200..800&family=Geologica:wght@100..900&family=Great+Vibes&family=Island+Moments&family=Italianno&family=Kanit:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Mulish:ital,wght@0,200..1000;1,200..1000&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Rubik:ital,wght@0,300..900;1,300..900&family=Saira:ital,wght@0,100..900;1,100..900&family=Sarabun:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800&family=Tangerine:wght@400;700&family=Tinos:ital,wght@0,400;0,700;1,400;1,700&display=swap");

* {
  margin: 0%;
  padding: 0;
  box-sizing: border-box;
  font-family: "Lato", sans-serif;
}

:root {
  --accent-color: #6366f1; /* A nice blue */
  --hover-color: #0056b3; /* A slightly darker blue for hover effect */
  --bg-color: #ffffff; /* White background */
  --secondary-background: #e2e8f0; /* secondary background */
  --text-color: #1f2937; /* Dark gray text */
  --secondary-color: #0f172a; /* A dark gray */
  --logo-font: "Oleo Script Swash Caps", system-ui;
  --font: "Lato", sans-serif;
}

/* Add transition to everything */
body,
.navbar,
.nav-links,
.nav-links li a,
.dropdown,
.theme-toggle {
  transition: all 0.5s ease;
}

body {
  background: var(--bg-color);
  color: var(--text-color);
  transition: background 0.3s, color 0.3s;
  font-family: var(--font);
}

.dark-mode {
  background: var(--secondary-color);
  color: var(--secondary-background);
}

/* Container */
.container {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
}

/* Navbar */
.navbar {
  background: transparent;
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background 0.3s;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* badge nav */

.badge-new {
  position: absolute;
  top: -6px;
  right: -20px; /* <-- move to right */
  background-color: #ff4757;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.logo {
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--accent-color);
  font-family: var(--logo-font);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  position: relative;
}

.nav-links li {
  position: relative;
}

.nav-links li a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  font-size: 1.1rem;
  padding: 5px;
  transition: color 0.3s;
  position: relative;
}

.nav-links li a::after {
  content: "";
  width: 0%;
  height: 2px;
  background: var(--accent-color);
  position: absolute;
  left: 0;
  bottom: 0;
  transition: width 0.3s;
}

.nav-links li:hover > a {
  color: var(--accent-color);
}

.nav-links li:hover > a::after {
  width: 100%;
}

/* Dropdown */
.projects-dropdown:hover .dropdown {
  display: block;
}

.dropdown {
  display: none;
  position: absolute;
  top: 40px;
  left: 0;
  background: var(--bg-color);
  box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  overflow: hidden;
  z-index: 100;
}

.dark-mode .dropdown {
  background: #1e293b;
}

.dropdown li a {
  display: block;
  padding: 10px 20px;
  color: inherit;
}

.dropdown li a:hover {
  background: #6366f1;
  color: #ffffff;
}

/* Theme Toggle */
.theme-toggle {
  font-size: 1.8rem;
  margin-left: 1rem;
  cursor: pointer;
}

/* Menu Icon */
.menu-icon {
  display: none;
  font-size: 2.5rem;
  cursor: pointer;
  user-select: none;
}

/* Responsive */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: #ffffff;
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
    transition: 0.5s;
  }

  .dark-mode .nav-links {
    background: #0f172a;
  }

  .nav-links.active {
    display: flex;
  }

  .dropdown {
    position: static;
    box-shadow: none;
  }
}

.dark-mode {
  background: #0f172a;
  color: #e2e8f0;
}

/* --- Mobile Menu --- */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
    z-index: 1001;
  }

  .nav-links {
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: right 0.4s ease;
    backdrop-filter: blur(8px);
  }

  .dark-mode .nav-links {
    background: rgba(15, 23, 42, 0.95);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li a {
    font-size: 2rem;
  }
  .logo {
    font-weight: 300;
  }

  body.menu-open {
    overflow: hidden;
  }

  /* Make dropdown appear nicely inside mobile */
  .projects-dropdown:hover .dropdown {
    position: static;
    background: none;
    box-shadow: none;
  }
}

/* Dropdown Container */
.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: #fff;
  border-radius: 0.6rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(10px);
  transition: all 2s ease;
  padding: 0.5rem 0;
  z-index: 500;
}

/* Dark Mode Dropdown */
.dark-mode .dropdown {
  background: #1e293b;
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.05);
}

/* Show Dropdown on Hover */
.projects-dropdown {
  position: relative;
}

.projects-dropdown:hover .dropdown {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Dropdown Items */
.dropdown li a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  color: inherit;
  text-decoration: none;
  transition: all 0.3s, color 0.3s;
}

/* Hover on Dropdown Links */
.dropdown li a:hover {
  background: #f1f5f9;
  color: #6366f1;
}

.dark-mode .dropdown li a:hover {
  background: #334155;
  color: #a5b4fc;
}

/* Theme Toggle */
.theme-toggle {
  cursor: pointer;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Icon Visibility */
#sun {
  display: inline;
  font-size: 2rem;
}

#moon {
  display: none;
  font-size: 2rem;
}

/* When Dark Mode Active */
.dark-mode #sun {
  display: none;
}

.dark-mode #moon {
  display: inline;
}

/* Keyframes for Entrance */
@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Apply animations */
.animate {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideIn 0.8s ease forwards;
}

/* Staggered delays */
.animate.delay-1 {
  animation-delay: 0.2s;
}
.animate.delay-2 {
  animation-delay: 0.4s;
}
.animate.delay-3 {
  animation-delay: 0.6s;
}
.animate.delay-4 {
  animation-delay: 0.8s;
}

/* Navbar Glassmorphism */
.navbar {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Dark Mode Glass */
.dark-mode .navbar {
  background: rgba(15, 23, 42, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.theme-toggle span {
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
}

/* Glow + Bounce Hover Effect */
.theme-toggle span:hover {
  color: #3b82f6;
  transform: scale(1.2) translateY(-2px);
  text-shadow: 0 0 8px #3b82f6;
}

/* Projects Dropdown (still relative) */
.projects-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(255, 255, 255, 0.7); /* Semi-transparent background */
  backdrop-filter: blur(10px); /* ✨ Magical blur */
  border-radius: 0.6rem;
  padding: 0.5rem 0;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  min-width: 180px;
  z-index: 100;
}

/* Dark Mode Blur */
.dark-mode .dropdown {
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
}

/* When Hovered — Dropdown appears */
.projects-dropdown:hover .dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Dropdown Links */
.dropdown li {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Animate Links individually when hovering */
.projects-dropdown:hover .dropdown li {
  opacity: 1;
  transform: translateY(0);
}

/* Delay Each Link */
.dropdown li:nth-child(1) {
  transition-delay: 0.1s;
}
.dropdown li:nth-child(2) {
  transition-delay: 0.2s;
}
.dropdown li:nth-child(3) {
  transition-delay: 0.3s;
}
.dropdown li:nth-child(4) {
  transition-delay: 0.4s;
}
/* (add more if you have more items) */

/* Link Style */
.dropdown li a {
  display: block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  color: inherit;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

/* Hover on Link */
.dropdown li a:hover {
  background: #f1f5f9;
  color: #6366f1;
}

.dark-mode .dropdown li a:hover {
  background: #334155;
  color: #a5b4fc;
}

/* Arrow next to Projects */
.arrow {
  display: inline-block;
  margin-left: 6px;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

/* Rotate the arrow when dropdown is open */
.projects-dropdown:hover .arrow {
  transform: rotate(180deg);
}

/* ================ her0 section ============= */

/* Base styles for hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 50px;
  min-height: 80vh;

  font-family: "Lato", sans-serif;
}

/* Left side (image) */
.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 3rem;
}

.hero-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 50%;
  object-fit: cover;
  background: var(--secondary-background);
}

.hero-image img:hover {
  border: 1px solid var(--accent-color);
}

.dark-mode .hero-image img {
  background: var(--text-color);
}

/* Right side (text) */
.hero-content {
  flex: 1;
  padding: 20px;
  margin-left: 3rem;
  color: var(--text-color);
}
.dark-mode .hero-content {
  color: var(--secondary-background);
}

.hero-content h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

/* hand waving css */

.wave {
  animation-name: wave-animation; /* Refers to the name of your @keyframes element below */
  animation-duration: 2.5s; /* Change to speed up or slow down */
  animation-iteration-count: infinite; /* Never stop waving :) */
  transform-origin: 70% 70%; /* Pivot around the bottom-left palm */
  display: inline-block;
}

@keyframes wave-animation {
  0% {
    transform: rotate(0deg);
  }
  10% {
    transform: rotate(14deg);
  } /* The following five values can be played with to make the waving more or less extreme */
  20% {
    transform: rotate(-8deg);
  }
  30% {
    transform: rotate(14deg);
  }
  40% {
    transform: rotate(-4deg);
  }
  50% {
    transform: rotate(10deg);
  }
  60% {
    transform: rotate(0deg);
  } /* Reset for the last half to pause */
  100% {
    transform: rotate(0deg);
  }
}

.hero-content h1 {
  font-size: 70px;
  margin-bottom: 10px;
  font-weight: 900;
  color: var(--accent-color);
}

/* ======== shining effect ========= */

.download-btn {
  position: relative;
  overflow: hidden;
}

.download-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.6),
    transparent
  );
  transform: skewX(-20deg);
  animation: shine 2s infinite;
}

@keyframes shine {
  0% {
    left: -75%;
  }
  100% {
    left: 125%;
  }
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Download button */
.download-btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #007bff;
  color: #fff;
  font-size: 16px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.download-btn:hover {
  background-color: #0056b3;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
    padding: 30px 20px;
    text-align: center;
  }

  .hero-content {
    padding: 20px 0;
    margin-left: 0%;
  }

  .hero-content h3 {
    font-size: 17px;
    padding-top: 10px;
  }
  .hero-content h1 {
    font-size: 48px;
  }

  .hero-content p {
    font-size: 20px;
  }

  .hero-image {
    margin-right: 0;
  }

  .hero-image img {
    max-width: 250px;
  }
}

/* ----------about me --------- */

.about-me {
  padding: 60px 20px;
  background: var(--secondary-background);
  margin-left: 1rem;
  margin-right: 1rem;
  border-radius: 15px;
}
#about-me {
  margin-left: 5rem;
  margin-right: 5rem;
}
.dark-mode .about-me {
  background: var(--text-color);
}

.section-header {
  text-align: center;
  margin-bottom: 100px;
}

.section-header h1 {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.dark-mode .section-header h2 {
  color: var(--bg-color);
}
.dark-mode .about-me-text p {
  color: var(--bg-color);
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-color);
}

.about-me-body {
  display: flex;
  align-items: flex-start;
  gap: 50px;
  flex-wrap: wrap;
}

.about-me-image img {
  width: 320px;
  height: 380px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-me-text {
  flex: 1;
  min-width: 280px;
}

.about-me-text p {
  font-size: 1.2rem;
  line-height: 1.8;

  margin-bottom: 30px;
}

/* Tabs */
.tabs {
  width: 100%;
}

.tab-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tab-button {
  padding: 12px 25px;
  border: none;
  background-color: var(--secondary-color);
  color: var(--bg-color);
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-button:hover {
  background-color: #ddd;
  color: var(--accent-color);
}

.tab-button.active {
  background-color: var(--accent-color);
  color: #fff;
  transform: scale(1.05);
}

.tab-contents {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.dark-mode .tab-contents {
  background: var(--secondary-color);
}
.tab-content ul {
  list-style: none;
  padding-left: 0;
}

.tab-content ul li {
  background-color: #fafafa;
  margin-bottom: 10px;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 1.05rem;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.tab-content ul li {
  background-color: #fafafa;
  margin-bottom: 10px;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 1.05rem;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease; /* Added transition for smooth hover */
}

.dark-mode .tab-content ul li {
  background: var(--text-color);
}

/* New Hover Effect */
.tab-content ul li:hover {
  background-color: #dfdfe8;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dark-mode .tab-content ul li:hover {
  background: #2b314b;
}
/* Responsive */
@media (max-width: 768px) {
  .about-me {
    padding-top: 20px;
    margin-left: 0.7rem;
    margin-right: 0.7rem;
  }
  .about-me-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .about-me-image img {
    width: 250px;
    height: 310px;
  }

  .tab-buttons {
    justify-content: center;
  }
  .section-header {
    margin-bottom: 3rem;
  }
  .section-header h1 {
    font-size: 32px;
  }
  .section-header h2 {
    font-size: 17px;
  }
  .section-header p {
    font-size: 18px;
  }

  #about-me {
    margin-left: 0;
    margin-right: 0;
  }
}

/* ===================services section start============== */

.services-section {
  max-width: 1200px;
  margin: auto;
  text-align: center;
  padding-top: 60px;
  margin-bottom: 60px;
}

.services-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.service-card {
  background: #ffffff;
  padding: 40px 25px;
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  flex: 1 1 280px;
  max-width: 320px;
  text-align: center;
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.8s forwards;
}
.dark-mode .service-card {
  background: var(--text-color);
}
.dark-mode .service-card p {
  color: var(--bg-color);
}

/* Staggered animation delays */
.service-card:nth-child(1) {
  animation-delay: 0.1s;
}
.service-card:nth-child(2) {
  animation-delay: 0.2s;
}
.service-card:nth-child(3) {
  animation-delay: 0.3s;
}
.service-card:nth-child(4) {
  animation-delay: 0.4s;
}
.service-card:nth-child(5) {
  animation-delay: 0.5s;
}
.service-card:nth-child(6) {
  animation-delay: 0.6s;
}
.service-card:nth-child(7) {
  animation-delay: 0.7s;
}
.service-card:nth-child(8) {
  animation-delay: 0.8s;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-card:hover {
  background: linear-gradient(135deg, #007bff, #00c6ff);
  color: white;
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
  font-size: 3em;
  margin-bottom: 20px;
  display: block;
  transition: transform 0.4s ease, color 0.4s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.2);
  color: #fff;
}

.service-card h3 {
  color: #007bff;
  font-size: 1.6em;
  margin-bottom: 15px;
  transition: color 0.4s ease;
}

.service-card:hover h3 {
  color: #fff;
}

.service-card p {
  color: #555;
  font-size: 1em;
  line-height: 1.6;
  transition: color 0.4s ease;
}

.service-card:hover p {
  color: #f0f0f0;
}

@media (max-width: 768px) {
  .services-grid {
    flex-direction: column;
    align-items: center;
  }
}

/* ==============project section start============= */

.projects-section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: auto;
}

#projectSection {
  background: var(--secondary-background);
  border-radius: 15px;
  margin-left: 1rem;
  margin-right: 1rem;
  margin-top: 20px;
}
.dark-mode #projectSection {
  background: var(--text-color);
}

.project {
  display: flex;
  flex-direction: row;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease;
  position: relative;
  margin-bottom: 80px;
}

.project:hover {
  transform: translateY(-10px);
}
.dark-mode .project {
  background: #171515;
}

.project-content {
  flex: 1;
  padding: 50px;
  z-index: 2;
  background: linear-gradient(to bottom right, #ffffff, #f7f7ff);
}
.dark-mode .project-content {
  background: var(--secondary-color);
}
.project-title {
  font-size: 2rem;
  margin-bottom: 20px;
  color: #222;
}

.dark-mode .project-title {
  color: var(--bg-color);
}

.project-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 30px;
}
.dark-mode .project-desc {
  color: var(--bg-color);
}
.project-links a {
  text-decoration: none;
  padding: 12px 20px;
  margin-right: 15px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  background: #3b82f6;
  color: var(--bg-color);
  transition: background 0.3s ease;
}

.project-links a:hover {
  background: #0056b3;
}

.project-image {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(90%);
  transition: transform 0.4s ease;
}

.project:hover .project-image img {
  transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .project {
    flex-direction: column;
  }

  .project-content,
  .project-image {
    width: 100%;
  }

  .project-content {
    padding: 30px;
  }
}

.project.reverse {
  flex-direction: row-reverse;
}

@media (max-width: 1024px) {
  .project.reverse {
    flex-direction: column;
  }
}

/* Pending Projects Styles */
.pending-projects-title {
  text-align: center;
  font-size: 2.2rem;
  margin: 80px 0 40px;
  font-weight: 600;
  color: #999;
}

.pending-project {
  display: flex;
  flex-direction: row;
  background: #f1f5ff;
  border-radius: 20px;
  overflow: hidden;
  opacity: 0.6;
  margin-bottom: 40px;
  position: relative;
  filter: grayscale(60%);
}

.pending-project .project-content {
  flex: 1;
  padding: 40px;
}

.pending-project .project-title {
  font-size: 1.6rem;
  color: #333;
}
.dark-mode .pending-project .project-title {
  color: #999;
}
.pending-label {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--accent);
  color: #fff;
  padding: 6px 14px;
  font-size: 0.85rem;
  border-radius: 6px;
}

.pending-project .project-image {
  flex: 1;
}

.pending-project .project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsive Pending Projects */
@media (max-width: 1024px) {
  .pending-project {
    flex-direction: column;
  }
}

/* ========accordion=========== */

.faq {
  margin-top: 60px;
}

#accordion {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 100px;
}
.accordion-container {
  max-width: 80%;
  width: 100%;
  background-color: var(--bg-color);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.dark-mode .accordion-container {
  background: var(--text-color);
}
.accordion {
  border-top: 1px solid #e5e7eb;
}

.accordion:first-child {
  border-top: none;
}

.accordion-header {
  padding: 1.2rem 1.5rem;
  cursor: pointer;

  font-size: 1.1rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}

.accordion-header:hover {
  background-color: var(--accent-color);
  color: var(--bg-color);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  background-color: var(--card-bg);
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 1.5rem;
}

.accordion.active .accordion-body {
  padding: 1rem 1.5rem;
  max-height: 500px;
}

.accordion-body p {
  font-size: 1rem;
  line-height: 1.6;
}

.accordion-header span {
  font-size: 1.4rem;
  transition: transform 0.3s;
  color: var(--accent);
}

.accordion.active .accordion-header span {
  transform: rotate(45deg);
}

@media (max-width: 600px) {
  .accordion-header {
    font-size: 1rem;
    padding: 1rem;
  }

  .accordion-body p {
    font-size: 0.95rem;
  }
  .accordion-container {
    max-width: 95%;
  }
}

/* =========contact=========== */

.contact-container {
  max-width: 1100px;
  margin: 50px auto;
  background: #fff;
  display: flex;
  flex-wrap: wrap;
  border-radius: 16px;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.contact-form,
.contact-info {
  flex: 1 1 500px;
  padding: 40px;
}

.contact-form {
  background: #f9f9f9;
}
.dark-mode .contact-form {
  background: var(--text-color);
}

.contact-form h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
}

.dark-mode .contact-form h2 {
  color: var(--bg-color);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  margin: 12px 0;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  transition: 0.3s;
}
#contactForm textarea {
  background: var(--bg-color);
  color: var(--text-color);
}
.dark-mode #contactForm textarea {
  background: var(--text-color);
  color: var(--bg-color);
}

.dark-mode .contact-form input,
.contact-form textarea {
  background: var(--text-color);
  color: var(--bg-color);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #2575fc;
  outline: none;
  box-shadow: 0 0 5px rgba(37, 117, 252, 0.5);
}

.contact-form button {
  background-color: #2575fc;
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #1a5edb;
}

.thank-you-box {
  display: none;
  margin-top: 20px;
  padding: 15px;
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  border-radius: 8px;
  font-size: 16px;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.contact-info {
  background-color: #ffffff;
  color: #444;
}

.dark-mode .contact-info {
  background-color: var(--text-color);
  color: var(--bg-color);
}

.contact-info h2 {
  font-size: 28px;
  margin-bottom: 30px;
  text-align: left;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.info-card {
  display: flex;
  align-items: center;
  background-color: #f4f6fb;
  padding: 20px;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dark-mode .info-card {
  background-color: var(--secondary-color);
}
.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.info-icon {
  background-color: #2575fc;
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-right: 20px;
  flex-shrink: 0;
}

.info-text span {
  display: block;
  font-size: 16px;
  color: #333;
}
.dark-mode .info-text span {
  color: var(--bg-color);
}

@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }

  .contact-form,
  .contact-info {
    padding: 30px 20px;
  }
}

/* ==========footer=========== */

.footer {
  background-color: #101010;
  color: #ccc;
  padding: 20px 15px 10px;
  text-align: center;
}

.footer h2 {
  margin: 0 0 5px;
  font-size: 20px;
  color: #fff;
  font-family: var(--logo-font);
}

.footer p {
  margin: 0 0 10px;
  font-size: 13px;
  color: #aaa;
}

.footer-links {
  margin: 10px 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fff;
}

.social-icons {
  margin-top: 10px;
}

.social-icons a {
  color: #888;
  margin: 0 8px;
  font-size: 16px;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #222;
  margin-top: 15px;
  padding-top: 10px;
  font-size: 12px;
  color: #666;
}

/* ------------cookies----------- */

.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: #fff;
  color: #333;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  padding: 20px;
  max-width: 400px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  z-index: 999;
  pointer-events: none;
}

.cookie-popup.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cookie-popup.hide {
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
}

.cookie-popup h3 {
  margin: 0;
  font-size: 18px;
}

.cookie-popup p {
  margin: 0;
  font-size: 14px;
}

.cookie-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-buttons button {
  padding: 8px 16px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.accept-btn {
  background-color: #4caf50;
  color: white;
}

.accept-btn:hover {
  background-color: #45a049;
}

.reject-btn {
  background-color: #f44336;
  color: white;
}

.reject-btn:hover {
  background-color: #e53935;
}

.privacy-link {
  font-size: 12px;
  text-decoration: underline;
  color: #555;
}

@media (max-width: 480px) {
  .cookie-popup {
    left: 10px;
    right: 10px;
  }

  .cookie-buttons {
    flex-direction: column;
    align-items: stretch;
  }
}

/* --------top scrolling---------- */

#scrollToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 50%;
  padding: 12px 16px;
  font-size: 20px;
  cursor: pointer;
  display: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#scrollToTopBtn:hover {
  background-color: #00c6ff;
  transform: scale(1.1);
}

/* Preloader styles */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0e0e10;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.loader .dot {
  width: 12px;
  height: 12px;
  margin: 0 4px;
  background-color: #00d4ff;
  border-radius: 50%;
  animation: bounce 1.2s infinite ease-in-out both;
}

.loader .dot:nth-child(1) {
  animation-delay: -0.24s;
}
.loader .dot:nth-child(2) {
  animation-delay: -0.12s;
}
.loader .dot:nth-child(3) {
  animation-delay: 0s;
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

.brand {
  font-family: var(--logo-font);
  font-size: 1.5rem;
  color: #ffffff;
  letter-spacing: 2px;
  margin-top: 12px;
}
