:root {
  --bg: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --accent: #3b82f6;
  --radius: 10px;
  --maxw: 1100px;
  --ff: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--ff);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
header.site-header {
  background: #f8fafc;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.logo {
  font-weight: 700;
  font-size: 22px;
  color: var(--accent);
  letter-spacing: -0.5px;
  font-family: 'Dancing Script', cursive;
}
.logo span {
  color: var(--text);
  font-weight: 600;
}
.nav a {
  margin-left: 20px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}
.nav a:hover {
  color: var(--accent);
}
/* Button styles with sliding black overlay on hover */
.btn-primary, .btn-outline {
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease, background 0.3s ease, transform 0.3s ease;
  background: white;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-primary:hover, .btn-outline:hover {
  background: var(--accent);
  color: white;
  transform: rotate(-5deg);
}

.btn-primary::after,
.btn-outline::after {
  display: none;
}


.btn-primary span, .btn-outline span {
  position: relative;
  z-index: 1;
}

.btn-primary:hover span,
.btn-outline:hover span {
  color: white !important;
}
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  background: #f1f5f9;
}
.hero .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: center;
  gap: 40px;
}
.hero-text h1 {
  font-size: 42px;
  margin-bottom: 16px;
}
.hero-text p {
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 500px;
}
.hero-image img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.section {
  padding: 80px 0;
}
.features .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
  justify-content: center; /* centers the grid horizontally */
  text-align: center; /* centers the text inside each card */
}

.features .card {
  background: linear-gradient(135deg, #ffffff, #f1f5f9);
  border-radius: var(--radius);
  padding: 25px 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.features .card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.features .card:hover::before {
  opacity: 1;
}

.features .card:hover {
  transform: translateY(-10px) rotate(-3deg) scale(1.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55), box-shadow 0.5s ease;
}

.features .card h3 {
  margin-bottom: 12px;
  font-size: 20px;
  color: var(--accent);
}

.features .card p {
  color: var(--muted);
  line-height: 1.5;
}

.gallery .grid-gallery {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  margin-top: 20px;
}

.gallery .scroll-track {
  display: flex;
  animation: scrollLeft 40s linear infinite;
  gap: 30px;
  animation-play-state: running;
}

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

/* .thumb:hover ~ .scroll-track {
  animation-play-state: paused;
} */

.thumb {
  flex: 0 0 auto;
  width: 250px;
  height: 200px;
  overflow: hidden;
  border-radius: var(--radius);
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.thumb:hover img {
  transform: scale(1.05);
  transition: transform 0.4s ease;
}

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


.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0 auto;
  max-width: 600px;
  padding: 0; /* remove padding */
  background: transparent; /* remove background */
  border-radius: 0; /* remove rounded corners */
  box-shadow: none; /* remove shadow */
}

.contact-form:hover {
  /* transform: translateY(-8px); */
  /* box-shadow: 0 25px 70px rgba(0,0,0,0.12); */
}

.contact-form input,
.contact-form textarea {
  padding: 18px;
  border: 1px solid #d1d5db;
  border-radius: 15px;
  font-family: var(--ff);
  font-size: 16px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.contact-form button {
  padding: 18px;
  border: none;
  border-radius: 15px;
  background: var(--accent);
  color: white;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.contact-form button:hover {
  background: #2563eb;
  transform: scale(1.05);
}

/* =========================
   CONTACT SECTION (Modern UI)
========================= */

.contact {
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  padding: 100px 20px;
  transition: background 0.4s ease, color 0.4s ease;
}

.contact .container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 50px;
}

.contact-left,
.contact-right {
  flex: 1;
  min-width: 320px;
  border-radius: 16px;
  padding: 40px;
  background: #ffffffcc;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-left:hover,
.contact-right:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.contact-left h2,
.contact-right h2 {
  font-size: 2.2rem;
  color: var(--text);
  margin-bottom: 15px;
}

.contact-left p {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.7;
}

.contact-left a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-left a:hover {
  color: #1d4ed8;
}

.contact-info {
  margin-top: 20px;
}

.contact-info p {
  margin: 6px 0;
  font-size: 1rem;
}

.contact-social {
  margin-top: 20px;
}

.contact-social a {
  display: inline-block;
  margin-right: 15px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.contact-social a:hover {
  transform: scale(1.2);
  opacity: 0.8;
}

.contact-social img {
  width: 30px;
  height: 30px;
}

/* Contact Form Styling */
.contact-right form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-right input,
.contact-right textarea {
  width: 100%;
  padding: 16px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #ffffffdd;
  font-size: 1rem;
  color: var(--text);
  transition: all 0.3s ease;
}

.contact-right input:focus,
.contact-right textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
  background: #fff;
  outline: none;
}

.contact-right button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 15px 25px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.3);
}

.contact-right button:hover {
  background: #2563eb;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

/* Decorative background effects */
.contact::before,
.contact::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at center, rgba(59, 130, 246, 0.2), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.contact::before {
  top: 10%;
  left: 5%;
}

.contact::after {
  bottom: 10%;
  right: 5%;
}

.contact * {
  position: relative;
  z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact .container {
    flex-direction: column;
  }
}

/* DARK MODE */
body.dark .contact {
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

body.dark .contact-left,
body.dark .contact-right {
  background: rgba(30, 41, 59, 0.8);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

body.dark .contact-left h2,
body.dark .contact-right h2 {
  color: #fff;
}

body.dark .contact-left p,
body.dark .contact-right p {
  color: #cbd5e1;
}

body.dark .contact-right input,
body.dark .contact-right textarea {
  background: #0f172a;
  color: #f8fafc;
  border: 1px solid #334155;
}

body.dark .contact-right input:focus,
body.dark .contact-right textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3);
}

body.dark .contact-right button {
  background: #3b82f6;
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

body.dark .contact-right button:hover {
  background: #2563eb;
  box-shadow: 0 10px 30px rgba(59, 130, 246, 0.45);
}


/* =========================
   FOOTER STYLES (Creative)
========================= */
.footer {
  background: linear-gradient(135deg, #e2e8f0, #f8fafc);
  padding: 60px 20px;
  text-align: center;
  border-top: 1px solid #cbd5e1;
  transition: background 0.4s ease, color 0.4s ease;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top h3 {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.footer-top p {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 25px;
}

.footer-links {
  margin: 20px 0;
}

.footer-links a {
  margin: 0 15px;
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-social {
  margin-top: 20px;
}

.footer-social a {
  display: inline-block;
  margin: 0 10px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.footer-social a:hover {
  transform: scale(1.2);
  opacity: 0.85;
}

.footer-social img {
  width: 28px;
  height: 28px;
}

.footer-bottom {
  margin-top: 30px;
  font-size: 0.95rem;
  color: #64748b;
}

/* Hover Glow Animation */
.footer-social a:hover img {
  filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.6));
}

/* Dark Mode */
body.dark .footer {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border-top: 1px solid #334155;
}

body.dark .footer-top h3 {
  color: #60a5fa;
}

body.dark .footer-top p,
body.dark .footer-links a,
body.dark .footer-bottom {
  color: #cbd5e1;
}

body.dark .footer-links a:hover {
  color: #60a5fa;
}

body.dark .footer-social a:hover img {
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.9));
}


#theme-toggle {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  margin-left: 15px;
  transition: transform 0.2s ease;
}

#theme-toggle:hover {
  transform: rotate(20deg);
}

body.dark {
  --bg: #0f172a;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #3b82f6;
}

body.dark header.site-header {
  background: #1e293b;
}

body.dark .card {
  background: #1e293b;
  color: #f8fafc;
}

body.dark .footer {
  background: #1e293b;
  color: #f8fafc;
}

body.dark .hero {
  background: #0f172a;
}

body.dark .hero-text h1,
body.dark .hero-text p {
  color: #f8fafc;
}


#interactive-text {
  font-weight: 400;
  font-family: 'Allura', cursive;
  font-size: 48px;
  background: linear-gradient(270deg, #1e40af, #b91c1c, #166534, #b45309, #7c3aed);
  background-size: 1000% 1000%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 15s ease infinite;
  cursor: pointer;
  display: inline-block;
}

#interactive-text:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.features h2 {
  font-size: 30px;
  text-align: center;
  margin-bottom: 40px; /* optional spacing below the heading */
}
.gallery h2 {
  font-size: 30px;
  text-align: center;
  margin-bottom: 40px; /* optional spacing below the heading */
}
.contact-right h2 {
  font-size: 32px; /* increased from 24px */
  margin-bottom: 20px;
}
.contact-left h2 {
  font-size: 32px;
  margin-bottom: 15px;
}
.contact-right p {
  font-size: 16px;
  color: var(--muted);
  line-height: 3.1;
  margin-bottom: 10px; /* spacing between paragraphs */
}

.gallery h2 {
  font-size: 30px;
  text-align: center;
  margin-bottom: 40px; /* optional spacing below the heading */
}
.contact-right h2 {
  font-size: 32px; /* increased from 24px */
  margin-bottom: 20px;
}
.contact-left h2 {
  font-size: 32px;
  margin-bottom: 15px;
}
.contact-right p {
  font-size: 16px;
  color: var(--muted);
  line-height: 3.1;
  margin-bottom: 10px; /* spacing between paragraphs */
}

/* Blur background when hovering over navbar */
body * {
  transition: filter 0.3s ease;
}

header.site-header:hover ~ main,
header.site-header:hover ~ section,
header.site-header:hover ~ footer {
  filter: blur(5px);
  pointer-events: none;
}

/* =========================
   ABOUT SECTION (Modernized & Responsive)
========================= */
.about {
  position: relative;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  padding: 100px 20px;
  transition: background 0.4s ease, color 0.4s ease;
  overflow: hidden;
}

.about::before,
.about::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.about::before {
  top: -50px;
  left: -50px;
}

.about::after {
  bottom: -50px;
  right: -50px;
}

.about .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-wrap: wrap;
  gap: 50px;
  position: relative;
  z-index: 1;
}

.about-content {
  flex: 1;
  min-width: 320px;
  text-align: center;
}

.about h2 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
  position: relative;
  text-align: center;
}

.about h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 4px;
}

.about p {
  max-width: 600px;
  margin: 20px auto;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--muted);
  text-align: center;
}

.about strong {
  color: var(--text);
}

.about .btn-primary {
  display: block;
  margin-top: 25px;
  margin-left: auto;
  margin-right: auto;
  padding: 12px 28px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.about .btn-primary:hover {
  background: #2563eb;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* Image section styling */
.about-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.about-image img {
  width: 100%;
  max-width: 500px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Animations */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.about h2,
.about p,
.about .btn-primary {
  animation: fadeInUp 1s ease both;
}

/* Tablet view adjustments */
@media (max-width: 992px) {
  .about .container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .about h2 {
    text-align: center;
  }

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

  .about p {
    max-width: 90%;
    margin: 15px auto;
  }

  .about .btn-primary {
    margin: 20px auto;
  }

  .about-image img {
    max-width: 400px;
  }
}

/* Mobile view adjustments */
@media (max-width: 600px) {
  .about {
    padding: 70px 15px;
  }

  .about h2 {
    font-size: 2rem;
  }

  .about p {
    font-size: 1rem;
  }

  .about-image img {
    max-width: 100%;
    border-radius: 12px;
  }
}

/* Dark Mode */
body.dark .about {
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

body.dark .about h2 {
  color: #60a5fa;
}

body.dark .about p {
  color: #cbd5e1;
}

body.dark .about .btn-primary {
  background: #3b82f6;
}

body.dark .about .btn-primary:hover {
  background: #2563eb;
}
/* =========================
   GLOBAL RESPONSIVE DESIGN
========================= */

/* Large tablets and smaller laptops */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .features .grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .about .container {
    flex-direction: column-reverse;
    text-align: center;
  }

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

/* Tablets */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    gap: 15px;
  }

  .nav a {
    margin: 10px;
    display: inline-block;
  }

  .hero {
    padding: 50px 20px;
  }

  .hero-text h1 {
    font-size: 1.9rem;
  }

  .features .card {
    padding: 20px;
  }

  .gallery .scroll-track {
    animation-duration: 50s;
  }

  .about {
    padding: 70px 20px;
  }

  .contact {
    padding: 70px 20px;
  }

  .footer {
    padding: 40px 15px;
  }
}

/* Mobile Devices */
@media (max-width: 480px) {
  .logo {
    font-size: 18px;
  }

  .nav a {
    font-size: 0.95rem;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .hero-text p {
    font-size: 0.95rem;
  }

  .features h2,
  .gallery h2,
  .contact-right h2,
  .contact-left h2 {
    font-size: 1.5rem;
  }

  .contact-right button {
    font-size: 1rem;
    padding: 12px 18px;
  }

  .footer-top h3 {
    font-size: 1.4rem;
  }

  .footer-links a {
    display: block;
    margin: 8px 0;
  }
}

/* Ensure elements stay aligned and responsive */
img, iframe, video {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}