/* ---------- Global Reset & Variables ---------- */
:root {
  /* Default Light Theme Palette */
  --color-bg-dark: #ffffff;
  --color-bg-surface: #f3f4f6;
  --color-bg-surface-2: #e5e7eb;

  /* Brand Colors - Refined */
  --color-primary: #3b82f6; /* Modern Blue */
  --color-accent: #ef4444; /* Vibrant Red */
  --color-highlight: #eab308; /* Gold/Yellow */

  /* Text Colors */
  --color-text-main: #000000;
  --color-text-muted: #404040;

  /* Layout & Spacing */
  --navbar-height: 80px;
  --border-radius: 12px;
  --container-width: 1200px;

  /* Effects */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --glow-primary: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Dark Theme */
[data-theme='dark'] {
  /* Premium Dark Palette */
  --color-bg-dark: #050505;
  --color-bg-surface: #121212;
  --color-bg-surface-2: #1e1e1e;

  /* Text Colors */
  --color-text-main: #f3f4f6;
  --color-text-muted: #9ca3af;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: var(--color-bg-dark);
  color: var(--color-text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #1f2937;
}

[data-theme='dark'] h1,
[data-theme='dark'] h2,
[data-theme='dark'] h3,
[data-theme='dark'] h4,
[data-theme='dark'] h5,
[data-theme='dark'] h6 {
  color: #fff;
}

/* ---------- Utility Classes ---------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.text-gradient {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-accent)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-padding {
  padding: 6rem 0;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 1000;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(243, 244, 246, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  height: 70px;
}

[data-theme='dark'] .navbar.scrolled {
  background: rgba(5, 5, 5, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .brand a {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1f2937;
}

[data-theme='dark'] .navbar .brand a {
  color: #fff;
}

.navbar .menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.navbar .menu a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #404040;
  position: relative;
}

[data-theme='dark'] .navbar .menu a {
  color: #d1d5db;
}

.navbar .menu a:hover,
.navbar .menu a.active {
  color: #1f2937;
}

[data-theme='dark'] .navbar .menu a:hover,
[data-theme='dark'] .navbar .menu a.active {
  color: #fff;
}

.navbar .menu a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-fast);
}

.navbar .menu a:hover::after {
  width: 100%;
}

/* Theme Toggle Button */
.theme-toggle {
  background: transparent;
  border: 2px solid rgba(59, 130, 246, 0.3);
  color: var(--color-primary);
  padding: 0.75rem 1rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition-fast);
  margin: 0 0.5rem;
}

.theme-toggle:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--color-primary);
  transform: scale(1.1);
}

.btn-primary {
  background: #2563eb;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #1d4ed8;
  box-shadow: 0 0 25px rgba(37, 99, 235, 0.6);
}

.hamburger {
  display: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1f2937;
  margin: 6px 0;
  transition: all var(--transition-normal);
}

[data-theme='dark'] .hamburger span {
  background: #fff;
}

/* ---------- Hero Section ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--navbar-height);
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #f9fafb 0%, #ffffff 100%);
}

[data-theme='dark'] .hero {
  background: radial-gradient(circle at 50% 50%, #1a1a1a 0%, #050505 100%);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.4;
  background-image: radial-gradient(
      at 0% 0%,
      rgba(59, 130, 246, 0.3) 0px,
      transparent 50%
    ),
    radial-gradient(at 100% 0%, rgba(239, 68, 68, 0.3) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(234, 179, 8, 0.3) 0px, transparent 50%);
  filter: blur(60px);
  animation: pulseBg 10s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: #333333;
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards 0.4s;
}

[data-theme='dark'] .hero p {
  color: #d1d5db;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 3rem;
  opacity: 0;
  animation: fadeIn 1s ease forwards 0.8s;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.stat-item p {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0;
  animation: none;
  opacity: 1;
  transform: none;
}

/* ---------- Expertise (Bento Grid) ---------- */
.expertise {
  background: var(--color-bg-dark);
}

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

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: #404040;
  max-width: 600px;
  margin: 0 auto;
}

[data-theme='dark'] .section-header p {
  color: #d1d5db;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.bento-card {
  background: var(--color-bg-surface);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 2rem;
  border-radius: var(--border-radius);
  transition: transform var(--transition-normal),
    border-color var(--transition-normal);
  position: relative;
  overflow: hidden;
}

[data-theme='dark'] .bento-card {
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
}

.bento-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    800px circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 255, 255, 0.06),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.5s;
  pointer-events: none;
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #000000;
}

[data-theme='dark'] .bento-card h3 {
  color: #fff;
}

.bento-card p {
  color: #333333;
  font-size: 1rem;
}

[data-theme='dark'] .bento-card p {
  color: #d1d5db;
}

.bento-icon {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

/* ---------- About / Legacy ---------- */
.about-section {
  background: var(--color-bg-surface);
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* Keyframe animations for symmetrical border effects */
@keyframes borderGlow {
  0% {
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3), inset 0 0 10px rgba(59, 130, 246, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6), inset 0 0 20px rgba(59, 130, 246, 0.2);
  }
  100% {
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3), inset 0 0 10px rgba(59, 130, 246, 0.1);
  }
}

@keyframes floatImage {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes rotateBorder {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.about-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Decorative rotating border frame */
.about-image::before {
  content: "";
  position: absolute;
  top: -30px;
  left: -30px;
  right: -30px;
  bottom: -30px;
  border: 2px solid transparent;
  border-top-color: var(--color-primary);
  border-right-color: var(--color-accent);
  border-bottom-color: var(--color-highlight);
  border-left-color: var(--color-primary);
  border-radius: var(--border-radius);
  animation: rotateBorder 8s linear infinite;
  opacity: 0.5;
}

.about-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
  animation: floatImage 3s ease-in-out infinite, borderGlow 3s ease-in-out infinite;
  border: 2px solid rgba(59, 130, 246, 0.3);
  transition: transform 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.02);
}

/* Symmetrical glowing border effect */
.about-image::after {
  content: "";
  position: absolute;
  top: -25px;
  left: -25px;
  right: -25px;
  bottom: -25px;
  border: 3px solid var(--color-primary);
  border-radius: var(--border-radius);
  z-index: 1;
  opacity: 0.4;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
  animation: borderGlow 3s ease-in-out infinite;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-content p {
  color: #333333;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

[data-theme='dark'] .about-content p {
  color: #d1d5db;
}

.about-content a {
  display: inline-block;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
  max-width: 100%;
}

/* ---------- Gallery / Brands ---------- */
.brands-section {
  background: var(--color-bg-dark);
  overflow: hidden;
}

.brands-slider {
  display: flex;
  gap: 4rem;
  padding: 2rem 0;
  animation: slideLeft 30s linear infinite;
  width: max-content;
}

.brands-slider:hover {
  animation-play-state: paused;
}

.brand-item {
  flex-shrink: 0;
  width: 180px;
  opacity: 0.6;
  transition: opacity var(--transition-normal),
    transform var(--transition-normal);
  filter: grayscale(100%);
}

.brand-item:hover {
  opacity: 1;
  transform: scale(1.1);
  filter: grayscale(0%);
}

/* ---------- FAQ ---------- */
.faq-section {
  background: var(--color-bg-surface);
}

.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-theme='dark'] .accordion-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-header {
  padding: 1.5rem 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  color: #000000;
  transition: color var(--transition-fast);
}

[data-theme='dark'] .accordion-header {
  color: #fff;
}

.accordion-header:hover {
  color: var(--color-primary);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  color: #333333;
}

[data-theme='dark'] .accordion-body {
  color: #d1d5db;
}

.accordion-body p {
  padding-bottom: 1.5rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

.accordion-item.active .accordion-body {
  max-height: 500px;
}

.accordion-item.active .accordion-header .arrow {
  transform: rotate(180deg);
}

/* ---------- Contact ---------- */
.contact-section {
  background: var(--color-bg-dark);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.contact-card {
  background: var(--color-bg-surface);
  padding: 2rem;
  border-radius: var(--border-radius);
  border: 1px solid rgba(0, 0, 0, 0.05);
  text-align: center;
}

[data-theme='dark'] .contact-card {
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-card i {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.contact-card h3 {
  margin-bottom: 1rem;
}

.contact-card p,
.contact-card a {
  color: #333333;
  display: block;
  margin-bottom: 0.5rem;
}

[data-theme='dark'] .contact-card p,
[data-theme='dark'] .contact-card a {
  color: #d1d5db;
}

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

/* ---------- Footer ---------- */
.footer {
  background: #f9fafb;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme='dark'] .footer {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: #404040;
}

[data-theme='dark'] .footer-links a {
  color: #d1d5db;
}

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

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition-fast);
}

[data-theme='dark'] .social-links a {
  background: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
  background: var(--color-primary);
  transform: translateY(-3px);
}

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

[data-theme='dark'] .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #d1d5db;
}

/* ---------- Animations ---------- */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes pulseBg {
  0% {
    transform: scale(1);
    opacity: 0.4;
  }
  100% {
    transform: scale(1.1);
    opacity: 0.6;
  }
}

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

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

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

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .navbar .menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--color-bg-surface);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    transition: right var(--transition-normal);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
  }

  .navbar .menu.active {
    right: 0;
  }

  .navbar .menu a {
    margin: 1rem 0;
  }

  .btn-primary {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }

  .theme-toggle {
    padding: 0.6rem 0.8rem;
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .accordion-item.active .accordion-body {
    max-height: 600px;
  }

  .accordion-body p {
    font-size: 0.95rem;
    padding-bottom: 1rem;
  }

  .about-content a {
    display: block;
    text-align: center;
    padding: 0.8rem 1rem;
    margin-top: 1rem;
    word-break: break-word;
  }

  .hamburger {
    display: block;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .hero h1 {
    font-size: 2.5rem;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
}
