@import url("https://fonts.googleapis.com/css2?family=Playfair:ital,opsz,wght@1,5..1200,500&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Architects+Daughter&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Poppins: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&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Anton&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #111827;
  background: #f4f5f1;
}

/* ========== Hero Section ========== */
.hero {
  background:
    linear-gradient(to bottom, rgba(244, 245, 241, 0.7), #f4f5f1),
    url("/images/home.png") no-repeat center center/cover;
  overflow: hidden;
  padding-top: 140px;
  padding-bottom: 80px;
  text-align: center;
  padding-left: 20px;
  padding-right: 20px;
}

body.dark-mode .hero {
  background:
    linear-gradient(to bottom, rgba(20, 20, 20, 0), #141414),
    url("/images/home-dark.png") no-repeat center center/cover;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--light-purple);
  color: var(--dark-purple);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 30px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary-purple);
  border-radius: 50%;
}

.hero-content {
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 60px 20px;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 25px;
  letter-spacing: -1px;
}

.hero h1 span {
  color: #a78bfa; /* Soft purple for contrast text */
}

.hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--primary-purple);
  color: white;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  color: var(--text-main);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--dark-purple);
}
.btn-secondary:hover {
  background-color: #e5e7eb;
}

/* ========== Logos Strip ========== */
.logos-section {
  padding: 50px 0;
  background-color: var(--bg-off-white);
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  text-align: center;
  overflow: hidden;
}

.logos-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 40px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.logos-marquee {
  width: 100%;
  max-width: 100%; /* Allow full width */
  margin: 0 auto;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  ); /* Fade edges */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent,
    black 10%,
    black 90%,
    transparent
  );
}

.logos-track {
  display: inline-flex;
  gap: 80px; /* Space between items */
  animation: scroll 30s linear infinite;
  padding-left: 80px; /* Initial offset so it doesn't start effectively off-screen or weird */
}

.logos-track:hover {
  animation-play-state: paused;
}

.logo-item {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.5rem;
  font-weight: 600;
  color: #6b7280;
  transition: all 0.3s ease;
  cursor: pointer;
}

.logo-item svg {
  font-size: 2.2rem;
  color: #8b5cf6; /* Default purple */
  transition: all 0.3s ease;
}

.logo-item span {
  font-size: 1.3rem;
  font-family: inherit;
}

.logo-item:hover {
  color: var(--primary-purple);
  transform: translateY(-3px);
}

.logo-item:hover svg {
  filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.5));
  color: var(--primary-purple);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

body.dark-mode .logos-section {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

body.dark-mode .logos-title {
  color: var(--text-secondary);
}

body.dark-mode .logo-item {
  color: var(--text-secondary);
}

body.dark-mode .logo-item:hover {
  color: var(--accent-color);
}

body.dark-mode .logo-item svg {
  color: var(--accent-color);
}

body.dark-mode .logo-item:hover svg {
  color: var(--accent-color);
  filter: drop-shadow(0 0 8px rgba(187, 134, 252, 0.5));
}

/* ========== Stats Section ========== */
.stats-section {
  max-width: var(--max-width);
  margin: 80px auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
  padding: 0 20px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-purple);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ========== Offers Section ========== */
#offers {
  padding: 80px 0;
}

.offers-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.offers {
  display: flex;
  align-items: center;
  gap: 50px;
  padding: 40px;
  border-radius: 20px;
}

.offers:last-child {
  margin-bottom: 0;
}

.reverse {
  flex-direction: row-reverse;
}

.offers-text,
.reverse-text {
  flex: 1;
  padding: 20px;
}

.offers-text p,
.reverse-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  text-align: justify;
}

.offers-img {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.offers-img img {
  width: 60%;
  max-width: 450px;
  height: auto;
  border-radius: 15px;
}

/* ========== About Section ========== */
#about {
  padding: 80px 20px;
}
.about {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 30px;
  padding-right: 30px;
}
.about-text {
  padding-right: 50px;
  font-size: larger;
  text-align: left;
}
/* Global Section Title */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
  width: 100%;
  color: var(--dark-purple);
}

.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  margin: 10px auto 0;
  background-color: var(--dark-purple);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.skill-category {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(74, 46, 127, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(74, 46, 127, 0.2);
}

.skill-category h3 {
  font-size: 1.5rem;
  color: var(--primary-purple);
  margin-bottom: 20px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-category svg {
  font-size: 1.8rem;
}

.skill-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  padding: 10px;
  background: #fbf8ff;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.skill-item:hover {
  background: var(--light-purple);
}

.skill-item svg {
  color: var(--primary-purple);
  font-size: 1.3rem;
  margin-right: 12px;
  min-width: 25px;
}

.skill-item span {
  font-size: 1rem;
  color: var(--text-muted);
}

/* ========== Portfolio Section ========== */
#portfolio {
  padding: 80px 20px;
}

.portfolio-container {
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-item {
  padding: 40px 20px;
}

.portfolio-card {
  background: var(--bg-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(109, 40, 217, 0.15); /* using primary purple rgb roughly */
  max-width: 900px;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.portfolio-card:hover {
  transform: scale(1.02);
}

.portfolio-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.portfolio-content {
  padding: 30px;
}

.portfolio-content h3 {
  font-size: 2rem;
  color: var(--dark-purple);
  margin-bottom: 15px;
  font-weight: 600;
}

.portfolio-content p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.8;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.tech-tag {
  background: var(--light-purple);
  color: var(--primary-purple);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

body.dark-mode .tech-tag {
  background-color: var(--border-color);
  color: var(--accent-color);
}

.portfolio-links {
  display: flex;
  gap: 15px;
}

.portfolio-btn {
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary-custom {
  background: var(--dark-purple);
  color: white;
  border: 2px solid var(--dark-purple);
}

.btn-primary-custom:hover {
  background: var(--dark-purple);
  border-color: var(--dark-purple);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(109, 40, 217, 0.3);
}

.btn-secondary-custom {
  background: transparent;
  color: var(--dark-purple);
  border: 2px solid var(--dark-purple);
}

.btn-secondary-custom:hover {
  background: var(--dark-purple);
  color: white;
  transform: translateY(-2px);
}

body.dark-mode .btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #121212;
}

body.dark-mode .btn-primary:hover {
  opacity: 0.9;
}

body.dark-mode .btn-secondary {
  border-color: var(--accent-color);
  color: var(--accent-color);
}

body.dark-mode .btn-secondary:hover {
  background-color: var(--accent-color);
  color: #121212;
}

/* Carousel Controls */
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: var(--primary-purple);
  border-radius: 50%;
  padding: 20px;
}

.carousel-indicators button {
  background-color: var(--primary-purple);
}

/* ========== Contact Section ========== */
.contact-section {
  padding: 80px 20px;
  text-align: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
  align-items: center;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--bg-white);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  padding: 15px 20px;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  transition: 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(109, 40, 217, 0.15);
  border-color: var(--light-purple);
}

.info-item svg {
  font-size: 1.8rem;
  color: var(--primary-purple);
}

.info-item h3 {
  margin: 0;
  font-size: 1.1rem;
}

.info-item div {
  text-align: left;
}
.info-item p {
  margin: 3px 0 0;
  font-size: 15px;
}

.info-item a {
  color: inherit;
  text-decoration: none;
}

/* ========== Portfolio Section ========== */
.portfolio-section {
  padding: 0 20px 80px;
}

.portfolio-wrapper {
  max-width: 1400px;
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.project-card {
  background: var(--bg-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(109, 40, 217, 0.15);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(109, 40, 217, 0.25);
}

.project-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.project-details {
  padding: 30px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.75rem;
  color: var(--primary-purple);
  margin-bottom: 15px;
  font-weight: 600;
}

.project-description {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.7;
  flex-grow: 1;
}

.technology-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.technology-tag {
  background: var(--light-purple);
  color: var(--primary-purple);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.project-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.action-button {
  padding: 12px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.action-button-primary {
  background: var(--primary-purple);
  color: white;
  border: 2px solid var(--primary-purple);
}

.action-button-primary:hover {
  background: var(--dark-purple);
  border-color: var(--dark-purple);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(109, 40, 217, 0.3);
}

.action-button-secondary {
  background: transparent;
  color: var(--primary-purple);
  border: 2px solid var(--primary-purple);
}

.action-button-secondary:hover {
  background: var(--primary-purple);
  color: white;
  transform: translateY(-2px);
}

@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

@media (max-width: 768px) {
  .portfolio-section {
    padding: 20px 15px 60px;
  }

  .section-heading {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 0 10px;
  }

  .project-details {
    padding: 25px;
  }

  .project-title {
    font-size: 1.5rem;
  }

  .project-description {
    font-size: 0.95rem;
  }

  .project-image {
    height: 220px;
  }
}

@media (max-width: 480px) {
  .portfolio-section {
    padding: 20px 10px 40px;
  }

  .section-heading {
    font-size: 1.75rem;
    margin-bottom: 30px;
  }

  .project-details {
    padding: 20px;
  }

  .project-title {
    font-size: 1.35rem;
  }

  .action-button {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .project-image {
    height: 200px;
  }

  .technology-tag {
    font-size: 0.8rem;
    padding: 5px 12px;
  }
}

/* ========== Footer ========== */
.footer {
  background: #111827;
  color: white;
  padding: 50px 20px 20px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 50px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
  font-family: "Playfair", serif;
}

.footer-brand span {
  color: var(--light-purple);
  font-size: 1.5rem;
}

.footer-brand p {
  color: var(--light-purple);
  font-size: 1rem;
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 50px;
  justify-content: flex-end;
}

.footer-column h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--light-purple);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column ul li a {
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-column ul li a:hover {
  color: var(--light-purple);
  transform: translateX(5px);
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-socials a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-socials a:hover {
  background: white;
  color: var(--primary-purple);
  transform: translateY(-5px);
}

.footer-bottom {
  padding-top: 30px;
  text-align: center;
}

.footer-bottom p {
  margin: 8px 0;
  color: var(--light-purple);
  font-size: 0.95rem;
}
/* .............TOGGLE............ */
.theme-toogle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #2e1065;
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.theme-toogle:hover {
  background-color: #6d28d9;
  transform: scale(1.1);
}

body.dark-mode .theme-toogle {
  background-color: #333;
}

body.dark-mode .theme-toogle:hover {
  background-color: #555;
}

/* --- CONTACT FORM --- */
.contact-form-container {
  max-width: 600px;
  margin: 50px auto;
  padding: 20px;
  background: var(--bg-white);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-purple);
  margin-bottom: 25px;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 8px;
}

.form-group label {
  font-weight: 500;
  color: var(--text-main);
  font-size: 0.95rem;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background-color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-textarea {
  resize: vertical;
  min-height: 150px;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.1);
}

.submit-btn {
  border: none;
  cursor: pointer;
  justify-content: center;
  margin-top: 10px;
  font-size: 1rem;
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.status-success {
  color: #10b981;
  font-weight: 500;
  text-align: center;
  margin-top: 10px;
}

.status-error {
  color: #ef4444;
  font-weight: 500;
  text-align: center;
  margin-top: 10px;
}

/* Contact Form Dark Mode Filters */
body.dark-mode .contact-form-container {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .form-title {
  color: var(--accent-color);
}

body.dark-mode .form-group label {
  color: var(--text-secondary);
}

body.dark-mode .form-input,
body.dark-mode .form-textarea {
  background-color: var(--bg-primary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

body.dark-mode .form-input:focus,
body.dark-mode .form-textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(187, 134, 252, 0.2);
}

/* --- CONTACT FORM RESPONSIVE --- */
@media (max-width: 768px) {
  .contact-form-container {
    max-width: 90%;
    margin: 40px auto;
    padding: 25px;
  }
}

@media (max-width: 480px) {
  .contact-form-container {
    max-width: 100%;
    margin: 30px auto;
    padding: 20px 15px;
    border-radius: 15px;
  }

  .form-title {
    font-size: 1.3rem;
  }

  .form-input,
  .form-textarea {
    font-size: 0.95rem;
    padding: 10px 12px;
  }

  .submit-btn {
    width: 100%;
  }
}
/* ========== Head Section ========== */
.head {
  background:
    linear-gradient(to bottom, rgba(244, 245, 241, 0) 0%, #f4f5f1 100%),
    url("/images/head.png") no-repeat center center/cover;

  min-height: 400px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dark-mode .head {
  background:
    linear-gradient(to bottom, rgba(18, 18, 18, 0) 0%, #121212 100%),
    url("/images/head-dark.png") no-repeat center center/cover;
}

.head-content {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding: 40px 20px;
}

.head .section-title {
  margin-top: 100px;
  margin-bottom: 0;
  color: #111827;
}

body.dark-mode .head .section-title {
  color: #fff;
}

.head h1 {
  font-size: 3.5rem;
  margin-bottom: 0;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
