/* ==================== THEME VARIABLES ==================== */

:root {
  --clr-bg-gradient: linear-gradient(
    135deg,
    #ffffff 0%,
    #f5e9ff 50%,
    #e2f3f2 100%
  );
  --clr-text-main: #2d2d2d;
  --clr-text-light: #4b5563;
  --clr-heading: #1f2937;
  --clr-primary: #a855f7;
  --clr-primary-hover: #6d28d9;
  --clr-secondary-bg: #f4eaff;
  --clr-btn-text: #ffffff;
  --clr-surface: #ffffff;
  --clr-surface-inverse: #000000;
  --clr-service-card: #e8c2ff;
  --clr-service-card-text: #000;
  --clr-contact-bg: #f5f5f5;
}

.dark-theme {
  --clr-bg-gradient: linear-gradient(
    135deg,
    #1c1c1c 0%,
    #2a1a3c 50%,
    #112627 100%
  );
  --clr-text-main: #e0e0e0;
  --clr-text-light: #bbbbbb;
  --clr-heading: #f5f5f5;
  --clr-primary: #c084fc;
  --clr-primary-hover: #a855f7;
  --clr-secondary-bg: #2f2f2f;
  --clr-btn-text: #ffffff;
  --clr-surface: #1e1e1e;
  --clr-surface-inverse: #ffffff;
  --clr-service-card: #a855f7;
  --clr-service-card-text: #000;
  --clr-contact-bg: #414141;
}

/* ==================== BASICS ==================== */

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
  background: var(--clr-bg-gradient);
  color: var(--clr-text-main);
}

body::-webkit-scrollbar {
  display: none;
  body {
    transition: background 0.5s ease-in-out, color 0.5s ease-in-out;
  }
}

.gap {
  height: 104px;
}

section {
  min-height: calc((100vh - 104px));
  display: flex;
  justify-content: center;
  align-items: center;
}

a {
  text-decoration: none;
}

.my-btn {
  background-color: var(--clr-primary);
  font-weight: 600;
  color: var(--clr-btn-text);
  border-radius: 8px;
  padding: 0.7rem 1.5rem;
  transition: all 0.2s ease-in-out;
}

.my-btn:hover {
  background-color: var(--clr-primary-hover);
}

.my-container {
  max-width: 1200px;
  width: 80%;
  margin: auto;
  padding: 3rem 2.5rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  background-color: var(--clr-surface);
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
}

html,
body,
header,
.container,
section,
h1,
h2,
h3,
p,
.my-btn,
.btn-outline,
.nav-links a {
  transition: background-color 0.4s ease-in-out, color 0.4s ease-in-out,
    border-color 0.4s ease-in-out;
}



/* ==================== HEADER ==================== */

header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 100vw;
  padding: 2rem 0;
  background-color: var(--clr-surface);
}

/* Navigation link container */
.my-nav .nav-links {
  display: flex;
  gap: 1.5rem;
  position: relative;
}

.nav-links .active {
  color: var(--clr-primary-hover);
  /* border-bottom: 2px solid var(--clr-primary-hover); */
}

/* Base link styling */
.my-nav .nav-links a {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* Underline effect using ::after */
.my-nav .nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background-color: #ca4eff; /* or your theme color */
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

/* On hover */
.my-nav .nav-links a:hover::after,
.my-nav .nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.navbar {
  max-width: 1200px;
  margin: auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  font-size: 1.8rem;
  color: var(--clr-surface-inverse);
}

.logo a {
  color: var(--clr-surface-inverse);
}

.logo span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  height: 1.8rem;
  width: 1.8rem;
  font-weight: 800;
  border-radius: 50%;
  color: var(--clr-surface);
  background-color: var(--clr-primary-hover);
  margin-right: 0.5rem;
}

.theme-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--clr-primary);
  cursor: pointer;
  margin-left: 1rem;
  transition: color 0.3s ease;
}

.theme-toggle:hover {
  color: var(--clr-primary-hover);
}

.navbar .my-nav {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
}

.my-nav.active {
  display: flex;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--clr-text-main);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.2s ease-in-out;
}

.nav-links a:hover {
  color: var(--clr-primary-hover);
}

.contact-btn {
  background-color: var(--clr-primary);
  color: var(--clr-btn-text);
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
}

.navbar .menu-btn {
  display: none;
}

/* ==================== FOOTER ==================== */

footer span.text-body-secondary,
footer ul i {
  color: var(--clr-text-light) !important;
}

/* ==================== HOME PAGE ==================== */

.hero {
  padding: 4rem 0;
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Animate the entire heading */
.hero-content h1 {
  opacity: 0;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.3s;
}

.hero-content h1 span {
  display: inline-block;
  color: var(--clr-heading); /* matches h1 in both light & dark */
  animation: popIn 1s ease forwards;
  animation-delay: 1s;
  transform: scale(0.9);
  opacity: 0;
}

/* Fade in + slide up */
@keyframes fadeInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Pop in animation */
@keyframes popIn {
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.left {
  flex: 1;
  padding-right: 2rem;
}

.left h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 800;
}

.left h1 span {
  color: var(--clr-heading);
}

.left p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: var(--clr-text-light);
  line-height: 1.6;
}

.say-hello {
  display: inline-block;
  background-color: var(--clr-primary);
  color: var(--clr-btn-text);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 2rem;
}

.stats {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  background-color: var(--clr-secondary-bg);
  padding: 1.5rem 1rem;
  border-radius: 12px;
  max-width: 600px;
}

.stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.stat h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-heading);
}

.stat p {
  color: var(--clr-text-light);
  font-size: 0.7rem;
  text-align: center;
  margin: 5px 0px;
}

.right {
  flex: 1;
  text-align: center;
}

.right img {
  max-width: 100%;
  width: 80%;
  border-radius: 20px;
}

/* ==================== ABOUT PAGE ==================== */

.profile-left {
  flex: 1;
  text-align: center;
  position: relative;
}

.profile-left img {
  width: 80%;
  border-radius: 20px;
}

.social-icons {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.8rem;
  background: var(--clr-btn-text);
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}

.social-icons a {
  color: var(--clr-primary);
  font-size: 1.5rem;
  transition: all 0.2s ease-in-out;
}

.social-icons a:hover {
  transform: scale(1.3);
}

.profile-right {
  flex: 1;
}

.profile-right h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--clr-heading);
}

.profile-right h1 span {
  color: var(--clr-heading);
}

.profile-right p {
  color: var(--clr-text-light);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.button-group {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.btn-outline {
  border: 2px solid var(--clr-primary);
  color: var(--clr-primary);
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
}

.btn-outline:hover {
  background-color: var(--clr-btn-text);
}

/* ==================== PROJECTS PAGE ==================== */

.projects-container {
  flex-direction: column;
}

.projects-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.hidden{
  display: none;
}

.category {
  font-weight: 600;
  margin-bottom: 5px;
}

.projects-subtitle {
  color: #777;
  font-size: 1rem;
}

.video-section {
  padding: 20px 0;
  display: flex;
  gap: 20px;
  padding: 1rem 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-color: #9f5afd transparent; /* thumb and track */
  scrollbar-width: thin;
  align-items: center;
}

/* For Webkit browsers (Chrome, Edge, Safari) */
.video-section::-webkit-scrollbar {
  height: 8px; /* horizontal scrollbar */
  border-radius: 10px;
}

.video-section::-webkit-scrollbar-track {
  background: transparent;
}

.video-section::-webkit-scrollbar-thumb {
  background: #9f5afd; /* Primary accent color */
  border-radius: 10px;
}

.video-section::-webkit-scrollbar-thumb:hover {
  background: #843ddb; /* Darker on hover */
}

.video-container {
  text-align: center;
  box-shadow: 0 0 13px 5px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  position: relative;
  padding-bottom: 56.25%;
  height: auto;
  overflow: hidden;
  width: auto;
  background: #fff;
  
}

.slider-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 2rem 1rem;
  transition: all 2s ease;
}

.video-box {
  flex: 0 0 auto;
  max-width: auto;
  
}

.youtube-frame {
  width: auto;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 10px;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  object-fit: contain;
  
}

.yt-link {
  margin-top: 18px;
  margin-bottom: 10px;
  text-align: center;
}

.yt-link a {
  display: inline-block;
  color: #ff0000;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
}

.yt-link a:hover {
  text-decoration: underline;
}

.yt-link a i {
  vertical-align: middle;
  margin-left: 6px;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--clr-primary);
  color: white;
  font-size: 1.8rem;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease-in-out;
}

.slide-btn:hover {
  background: var(--clr-primary-hover);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.slide-btn.left {
  left: 5px;
}

.slide-btn.right {
  right: 5px;
}

.more-projects {
  margin-top: 20px;
}

.more-btn {
  border: 0px;
  transition: background-color 0.3s ease;
}

.more-btn:hover {
  background-color: #843ddb;
}

.video-dots {
  margin-top: 15px;
  text-align: center;
}

.video-dots .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.video-dots .dot.active {
  background-color: #9f5afd;
}


#bottomSliderWrapper, #imageSliderWrapper {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.5s ease;
  width: 100%;
}

#bottomSliderWrapper.show,
#imageSliderWrapper.show {
  max-height: 2000px; 
  opacity: 1;
  visibility: visible;
}

/* ==================== SERVICES PAGE ==================== */

.services-section {
  background: none; /* Remove grey background */
  border-radius: 0;
  box-shadow: none;
}

.services-left {
  flex: 1;
  min-width: 280px;
}

.services-left h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.services-left p {
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(to right, #a855f7, #7c3aed);
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(to right, #9333ea, #6d28d9);
}

.services-right {
  flex: 1;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-card {
  background: var(--clr-service-card);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.service-card h3 {
  font-weight: 900;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.service-card p {
  color: var(--clr-text-main);
  font-size: 0.95rem;
  line-height: 1.6;
  font-weight: 500;
}

/* ==================== CONTACT SECTION ==================== */

.contact-section {
  padding: 0px 20px;
  background: none;
}

.contact-content {
  gap: 40px;
}

.main-contact {
  width: 100%;
  gap: 40px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.contact-left,
.contact-right {
  flex: 1;
  min-width: 280px;
}

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

.info-box {
  display: flex;
  align-items: flex-start;
  background: var(--clr-contact-bg);
  color: var(--clr-surface-inverse);
  padding: 12px 16px;
  border-radius: 12px;
  gap: 15px;
}

.info-box i {
  font-size: 1.6rem;
  color: #a855f7;
  margin-top: 3px;
}

.info-box p {
  margin: 0;
  font-size: 14px;
  color: var(--clr-text-light);
}

.loader {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 123, 255, 0.6);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.6s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

.contact-right input,
.contact-right textarea {
  border: none;
  border-radius: 5px;
  border-bottom: 2px solid #e5e7eb;
  padding: 10px 8px;
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}

.contact-right input:focus,
.contact-right textarea:focus {
  border-color: #a855f7;
}

textarea {
  resize: vertical;
}

.form-row {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.form-row input {
  flex: 1;
  min-width: 100px;
}

.btn-submit {
  background: linear-gradient(to right, #a855f7, #7c3aed);
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
}

.btn-submit:hover {
  background: linear-gradient(to right, #9333ea, #6d28d9);
}

/* Responsive Layout Adjustments */
@media (max-width: 780px) {
  .main-contact {
    flex-direction: column;
    gap: 40px;
  }
}

@media (max-width: 480px) {
  .contact-left,
  .contact-right {
    min-width: 100%;
  }

  .form-row {
    flex-direction: column;
  }

  .btn-submit {
    justify-content: center;
  }
}

@media (max-width: 350px) {
  .info-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .info-box i {
    margin-bottom: 4px;
  }
}

.social-icons-bottom a {
  color: var(--clr-primary);
  font-size: 1.5rem;
  margin: 0px 10px;
  transition: all 0.2s ease-in-out;
}

.social-icons-bottom a i {
  transition: all 0.2s ease-in-out;
}

.social-icons-bottom a i:hover {
  transform: scale(1.3);
}

/* ==================== FOOTER ==================== */

.site-footer {
  background-color: #1e293b; /* dark blue background */
  color: #d1d5db; /* light text */
  padding: 20px 0;
  font-size: 0.95rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-circle {
  width: 32px;
  height: 32px;
  background: #a855f7;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1rem;
}

.logo-text {
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
}

.footer-nav {
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav .nav-link {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 0;
}

.footer-nav .nav-link:hover {
  color: #fff;
}

.footer-copy {
  color: #cbd5e1;
}
