:root {
  --primary: #ff8b03;
  --secondary: #2a7bde;
  --accent: #fcd24f;
  --bg-light: #f3f8ff;
  --text-dark: #1f2937;
  --text-light: #4b5563;
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.5);
  --modal-bg: #ffffff;
  --footer-bg: #1f2937;
  --card-icon-bg: rgba(255, 255, 255, 0.9);
  --contact-info-bg: rgba(255, 255, 255, 0.5);
  --audio-player-bg: #f3f8ff;
  --nav-scrolled-bg: rgba(255, 255, 255, 0.9);
  --blob-opacity: 0.6;
  --hero-gradient: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}

[data-theme="dark"] {
  --bg-light: #0f172a;
  --text-dark: #f8fafc;
  --text-light: #94a3b8;
  --glass-bg: rgba(30, 41, 59, 0.7);
  --glass-border: rgba(255, 255, 255, 0.1);
  --modal-bg: #1e293b;
  --footer-bg: #020617;
  --card-icon-bg: rgba(30, 41, 59, 0.9);
  --contact-info-bg: rgba(30, 41, 59, 0.5);
  --audio-player-bg: #0f172a;
  --nav-scrolled-bg: rgba(15, 23, 42, 0.9);
  --blob-opacity: 0.2;
  --hero-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

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

body {
  font-family: "Nunito", sans-serif;
  background-color: var(--bg-light);
  color: var(--text-dark);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
.font-heading {
  font-family: "Outfit", sans-serif;
}

/* Glassmorphism utility */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

/* Navigation */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all 0.3s ease;
}

#navbar.scrolled {
  padding: 1rem 0;
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

.logo {
  font-family: "Outfit", sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

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

/* Theme Toggle Button */
.theme-toggle {
  background: transparent;
  border: none;
  color: var(--text-dark);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color 0.3s ease;
  padding: 0 0.5rem;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: "Outfit", sans-serif;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 20px rgba(255, 139, 3, 0.3);
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 25px rgba(255, 139, 3, 0.4);
}

.btn-secondary {
  background: var(--modal-bg);
  color: var(--secondary);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem;
  background: var(--hero-gradient);
  overflow: hidden;
}

.hero-content {
  text-align: center;
  z-index: 10;
  max-width: 800px;
}

.hero h1 {
  font-size: 4.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--secondary);
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: 1.4rem;
  color: var(--text-light);
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.btn-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* Background Blobs */
.blob {
  position: absolute;
  filter: blur(80px);
  z-index: 0;
  opacity: var(--blob-opacity);
  border-radius: 50%;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: var(--accent);
  animation: float 10s infinite ease-in-out alternate;
}

.blob-2 {
  bottom: -10%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: var(--primary);
  animation: float 12s infinite ease-in-out alternate-reverse;
}

/* Sections */
section {
  padding: 7rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 3rem;
  color: var(--secondary);
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.2rem;
  color: var(--text-light);
}

/* Grid & Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.card {
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: rgba(255, 255, 255, 0.8);
}

.card-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 2rem;
  background: var(--card-icon-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.card:hover .card-icon {
  transform: scale(1.1);
}

.card h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.card p {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* About Section */
.about-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  align-items: center;
  padding: 4rem;
}

.about-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.avatar-placeholder {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8rem;
  box-shadow: 0 20px 40px rgba(255, 139, 3, 0.2);
  border: 8px solid white;
}

.about-content {
  flex: 2;
  min-width: 300px;
}

.about-content h2 {
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.contact-info {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.2rem;
  background: var(--contact-info-bg);
  padding: 2rem;
  border-radius: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.contact-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--primary);
}

.contact-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* App Features Section styling */
.app-features-wrapper {
  margin-top: 1.5rem;
  text-align: left;
}

.app-intro-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.features-list-container {
  margin-top: 1.5rem;
}

.features-list-title {
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-family: "Outfit", sans-serif;
}

.features-grid-inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.feature-item-mini {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--contact-info-bg);
  padding: 1.25rem;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.feature-item-mini:hover {
  transform: translateY(-5px);
  background: var(--glass-bg);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-color: rgba(255, 255, 255, 0.8);
}

.feature-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.feature-item-icon.orange {
  color: var(--primary);
  background: rgba(255, 139, 3, 0.15);
}

.feature-item-icon.blue {
  color: var(--secondary);
  background: rgba(42, 123, 222, 0.15);
}

.feature-item-icon.green {
  color: #10b981;
  background: rgba(16, 185, 129, 0.15);
}

.feature-item-icon.yellow {
  color: #d97706;
  background: rgba(252, 210, 79, 0.25);
}

.feature-item-content {
  text-align: left;
}

.feature-item-content h4 {
  font-family: "Outfit", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.feature-item-content p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin: 0 !important;
  line-height: 1.4;
}

.app-quote {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-light);
  margin-top: 2rem;
  font-style: italic;
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
  text-align: left;
}

/* Footer styling */
footer {
  background: url("../images/Footer.png") no-repeat center bottom;
  background-size: cover;
  color: #1f2937; /* Dark text in light mode */
  padding: 5rem 2rem 2rem;
  margin-top: 6rem;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-brand-section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.footer-logo-img {
  max-width: 220px;
  width: 100%;
  height: auto;
  object-fit: contain;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

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

.footer-brand-desc {
  color: #4b5563; /* Darker gray for light mode */
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: left;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  color: #1f2937;
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-socials a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(255, 139, 3, 0.3);
  border-color: transparent;
}

.footer-links-section,
.footer-contact-section {
  text-align: left;
}

.footer-links-section h3,
.footer-contact-section h3 {
  font-family: "Outfit", sans-serif;
  color: #1e3a8a; /* Dark blue title in light mode */
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-links-section h3::after,
.footer-contact-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.footer-link-list,
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-link-list a {
  color: #4b5563; /* Darker link for light mode */
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.footer-link-list a i {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.footer-link-list a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-link-list a:hover i {
  transform: translateX(3px);
}

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: #4b5563; /* Darker contact text for light mode */
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: left;
}

.footer-contact-list li i {
  color: var(--primary);
  font-size: 1.1rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.footer-bottom {
  padding-top: 2rem;
  text-align: center;
  color: #000000;
  font-size: 0.9rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-bottom p {
  margin-bottom: 0.5rem;
}

.footer-credit {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Dark Mode Specific Styles for Footer */
[data-theme="dark"] footer {
  background:
    linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)),
    url("../images/Footer.png") no-repeat center bottom;
  background-size: cover;
  color: #e2e8f0;
}
[data-theme="dark"] .footer-container {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .footer-brand-desc {
  color: #94a3b8;
}
[data-theme="dark"] .footer-socials a {
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
[data-theme="dark"] .footer-socials a:hover {
  background: var(--primary);
  color: white;
}
[data-theme="dark"] .footer-links-section h3,
[data-theme="dark"] .footer-contact-section h3 {
  color: #ffffff;
}
[data-theme="dark"] .footer-link-list a {
  color: #94a3b8;
}
[data-theme="dark"] .footer-link-list a:hover {
  color: var(--primary);
}
[data-theme="dark"] .footer-contact-list li {
  color: #94a3b8;
}
[data-theme="dark"] .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #64748b;
}

/* Mobile Bottom Navigation */
.mobile-bottom-nav {
  display: none;
}

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

@keyframes float {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  100% {
    transform: translate(50px, 50px) rotate(20deg) scale(1.1);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Modal & Audio Player */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  background: var(--modal-bg);
  width: 90%;
  max-width: 450px;
  padding: 2.5rem 2rem;
  border-radius: 30px;
  position: relative;
  transform: translateY(50px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}
.modal-overlay.active .modal-content {
  transform: translateY(0);
}
.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.close-modal:hover {
  background: var(--primary);
  color: white;
}
.audio-icon-large {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--secondary);
}
.audio-player-ui {
  margin-top: 1.5rem;
  background: var(--audio-player-bg);
  padding: 1.5rem;
  border-radius: 20px;
}
.controls-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
}
.play-btn {
  background: var(--primary);
  color: white;
  border: none;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: 0.3s;
  box-shadow: 0 5px 15px rgba(255, 139, 3, 0.3);
}
.play-btn:hover {
  transform: scale(1.1);
}
.progress-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.time-display {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--text-light);
}
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: var(--secondary);
  margin-top: -6px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}
input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  background: #d1d5db;
  border-radius: 50px;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding-bottom: 80px;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .nav-links {
    display: none;
  }
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--nav-scrolled-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    justify-content: space-around;
    align-items: center;
    padding: 0.8rem 0.5rem 1.2rem;
    z-index: 2000;
    border-top: 1px solid var(--glass-border);
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.1);
  }
  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 600;
    gap: 0.3rem;
    transition: all 0.3s ease;
  }
  .nav-item i {
    font-size: 1.3rem;
  }
  .nav-item:hover,
  .nav-item:active {
    color: var(--primary);
    transform: translateY(-2px);
  }
  footer {
    padding-bottom: 6rem;
  }
  .btn-group {
    flex-direction: column;
  }
  .about-container {
    padding: 2rem;
    text-align: center;
    flex-direction: column;
    gap: 2rem;
  }
  .about-image {
    min-width: 0;
    width: 100%;
  }
  .avatar-placeholder {
    width: 150px;
    height: 150px;
    font-size: 4rem;
    margin: 0 auto;
  }
  .about-content {
    min-width: 0;
    width: 100%;
  }
  .contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    width: 100%;
    box-sizing: border-box;
  }
  .contact-item {
    width: 100%;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    word-break: break-all;
  }
  .app-about-container {
    flex-direction: column;
    text-align: center;
  }

  /* Mobile Responsive Footer */
  .footer-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .footer-brand-section {
    align-items: center;
    text-align: center;
  }
  .footer-links-section,
  .footer-contact-section {
    text-align: center;
  }
  .footer-links-section h3::after,
  .footer-contact-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .footer-link-list a {
    justify-content: center;
  }
  .footer-contact-list li {
    justify-content: center;
    text-align: center;
  }
}
