/* Reset + Core */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Refreshed palette */
  --primary: #635bff;
  --secondary: #8b5cf6;
  --accent: #22d3ee;
  --accent-warm: #f59e0b;
  --bg-light: #ffffff;
  --bg-dark: #0b1022;
  --text-light: #0f172a;
  --text-dark: #e6edf6;
  --card-light: #f8fafc;
  --card-dark: #162037;

  --muted: #94a3b8;
  --border: rgba(99, 102, 241, .25);
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  overflow-x: hidden;
  transition: background .5s ease, color .5s ease;
}

body.light-mode {
  background: var(--bg-light);
  color: var(--text-light);
}

body.dark-mode {
  background: var(--bg-dark);
  color: var(--text-dark);
}

/* Animated Background */
.animated-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .1;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  animation: float 20s infinite ease-in-out;
}

.shape1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape2 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  top: 60%;
  right: 15%;
  animation-delay: 5s;
}

.shape3 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  bottom: 10%;
  left: 50%;
  animation-delay: 10s;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  25% {
    transform: translate(50px, -50px) scale(1.1);
  }

  50% {
    transform: translate(-30px, 30px) scale(.9);
  }

  75% {
    transform: translate(30px, 50px) scale(1.05);
  }
}

/* Navigation */
.navbar {
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .75)) !important;
  box-shadow: 0 6px 30px rgba(0, 0, 0, .08);
  transition: all .3s ease;
}

.dark-mode .navbar {
  background: linear-gradient(180deg, rgba(15, 23, 42, .9), rgba(15, 23, 42, .8)) !important;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.6rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-link {
  font-weight: 600;
  margin: 0 10px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  transition: all .3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

/* Footer */
footer {
  position: relative;
  padding: 0 0 30px;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.footer-wave .wave-path {
  fill: linear-gradient(135deg, var(--primary), var(--accent));
  fill: url(#noop);
}

.footer-wave svg {
  display: block;
  background: linear-gradient(180deg, rgba(99, 91, 255, .15), rgba(34, 211, 238, .05));
}

.light-mode footer {
  background: linear-gradient(180deg, rgba(248, 250, 252, .8), rgba(248, 250, 252, .6));
}

.dark-mode footer {
  background: linear-gradient(180deg, rgba(22, 32, 55, .9), rgba(22, 32, 55, .8));
}

.footer-brand .footer-logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  margin-bottom: 10px;
  box-shadow: 0 8px 24px rgba(99, 102, 241, .3);
}

.footer-head {
  font-weight: 800;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li+li {
  margin-top: 8px;
}

.footer-links a {
  text-decoration: none;
  color: inherit;
  opacity: .9;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border-radius: 8px;
}

.footer-links a i {
  opacity: .85;
}

.footer-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-links.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}

.footer-contact p {
  margin: 6px 0;
}

.footer-contact i {
  margin-inline-end: 8px;
}

/* NEW: Make all footer links (including phone/email) inherit color */
footer a {
  color: inherit;
}

footer a:hover {
  color: inherit;
}

.footer-contact a {
  color: inherit;
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

/* Newsletter */
.newsletter {
  margin-top: 12px;
}

.newsletter-row {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(99, 91, 255, .06);
  border: 1px solid var(--border);
}

.dark-mode .newsletter-row {
  background: rgba(34, 211, 238, .06);
}

.newsletter-row .form-control {
  flex: 1;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: inherit;
}

.btn-subscribe {
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  padding: 10px 16px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(99, 102, 241, .35);
}

/* NEW: Bootstrap-styled social buttons (larger) */
.social-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.social-links .btn.btn-social {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary);
  background: transparent;
  color: inherit;
  padding: 0;
  box-shadow: 0 6px 18px rgba(99, 102, 241, .15);
}

.dark-mode .social-links .btn.btn-social {
  border-color: var(--accent);
}

.social-links .btn.btn-social i {
  font-size: 1.25rem;
  line-height: 1;
}

.social-links .btn.btn-social:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(99, 102, 241, .35);
}

.legal-links {
  margin-top: 16px;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.legal-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  opacity: .85;
}

.legal-links a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Language Selector */
.language-selector {
  margin-left: 20px;
}

.language-btn {
  background: none;
  border: 2px solid var(--primary);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 25px;
  margin: 0 5px;
  cursor: pointer;
  transition: all .3s ease;
  font-weight: 700;
}

.language-btn:hover,
.language-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  transform: translateY(-2px);
}

/* Utilities */
.section-title {
  text-align: center;
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 4rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title-sm {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: .75rem;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.model-desc,
.gallery-desc {
  opacity: .9;
}

/* Theme Toggle */
.theme-toggle {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(99, 102, 241, .5);
  transition: all .3s ease;
  z-index: 1000;
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(180deg);
}

@media (max-width:768px) {
  .section-title {
    font-size: 2rem;
  }

  .newsletter-row {
    flex-direction: column;
  }

  .btn-subscribe {
    width: 100%;
  }
}


/* Dark mode navbar text */
.dark-mode .navbar .nav-link,
.dark-mode .navbar .navbar-brand {
  color: var(--text-dark) !important;
  /* your light text token */
}

.dark-mode .navbar .nav-link:hover,
.dark-mode .navbar .nav-link:focus {
  color: #fff !important;
}

/* Optional: toggler visibility in dark */
.dark-mode .navbar .navbar-toggler {
  border-color: rgba(255, 255, 255, .25);
}

.dark-mode .navbar .navbar-toggler-icon {
  filter: invert(1) brightness(1.5);
}

/* Keep original colors; add a white halo using only drop-shadows */
.dark-mode .navbar-brand img,
.dark-mode .footer-logo img {
  filter:
    drop-shadow(0 0 6px rgba(255, 255, 255, .75)) drop-shadow(0 0 14px rgba(255, 255, 255, .45)) drop-shadow(0 0 28px rgba(255, 255, 255, .25));
  transition: filter .25s ease;
}

.dark-mode .navbar-brand img:hover,
.dark-mode .footer-logo img:hover {
  filter:
    drop-shadow(0 0 8px rgba(255, 255, 255, .95)) drop-shadow(0 0 22px rgba(255, 255, 255, .55)) drop-shadow(0 0 36px rgba(255, 255, 255, .35));
}

/* ===== Responsive + UX fixes (append-only) ===== */
html { scroll-padding-top: 96px; }

.skip-link{
  position:absolute; left:-999px; top:10px;
  padding:10px 14px; border-radius:10px;
  background:#000; color:#fff; z-index:2000;
}
.skip-link:focus{ left:10px; }

.navbar-brand{ font-weight:800; font-size:1.1rem; }
.brand-text{
  font-weight:900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip:text; -webkit-text-fill-color:transparent;
  background-clip:text;
}

/* Make logo scale on mobile */
.navbar-brand img{ width:64px; height:64px; }
@media (min-width: 992px){
  .navbar-brand img{ width:90px; height:90px; }
}

/* Language pills wrap nicely on small screens */
@media (max-width: 991px){
  .language-selector{ margin-left: 0; margin-top: 10px; }
  .language-btn{ padding: 6px 12px; }
  .navbar-nav{ padding-top: 10px; }
}

/* Better tap targets */
.nav-link{ padding: .55rem .75rem; }

/* Reduce motion when user prefers */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

