/* ============================================
   Clearmind FZ-LLC — Premium Corporate Website
   Light Theme + Dubai Aesthetic
   ============================================ */

/* --- Custom Properties --- */
:root {
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F6F8;
  --color-bg-card: #FFFFFF;
  --color-bg-card-hover: #FAFBFC;
  --color-surface: #F0F1F3;
  --color-border: rgba(0, 51, 102, 0.08);
  --color-border-light: rgba(0, 51, 102, 0.15);

  --color-text: #0A1628;
  --color-text-secondary: #4A5568;
  --color-text-muted: #8896A6;

  --color-blue: #00AAFF;
  --color-blue-dark: #003366;
  --color-blue-glow: rgba(0, 170, 255, 0.15);
  --color-gold: #C9A84C;
  --color-gold-light: #E8D5A0;
  --color-gold-muted: rgba(201, 168, 76, 0.25);
  --color-sand: #F9F3E8;
  --color-sand-dark: #EDE3D0;

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --nav-height: 72px;
  --container-width: 1200px;
  --container-padding: 24px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
address { font-style: normal; }

::selection {
  background: var(--color-blue);
  color: #fff;
}

/* --- Container --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* --- Islamic Geometric Pattern (SVG background) --- */
.pattern-divider {
  width: 100%;
  height: 48px;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='48' viewBox='0 0 80 48' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23C9A84C' stroke-width='0.5' opacity='0.3'%3E%3Cpath d='M40 0L50 12L40 24L30 12Z'/%3E%3Cpath d='M0 0L10 12L0 24L-10 12Z'/%3E%3Cpath d='M80 0L90 12L80 24L70 12Z'/%3E%3Cpath d='M20 24L30 36L20 48L10 36Z'/%3E%3Cpath d='M60 24L70 36L60 48L50 36Z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
}

/* --- 8-Point Star Decorative Element --- */
.star-decoration {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='12,0 14.5,9.5 24,12 14.5,14.5 12,24 9.5,14.5 0,12 9.5,9.5' fill='%23C9A84C' opacity='0.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

/* --- Gold Accent Line --- */
.gold-line {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: 0 auto;
}

/* --- Arabesque Border Pattern --- */
.arabesque-border {
  position: relative;
}

.arabesque-border::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-gold-light), var(--color-gold), var(--color-gold-light), transparent);
  border-radius: 2px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.nav--scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--color-border), 0 4px 20px rgba(0, 0, 0, 0.04);
}

.nav__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo img {
  height: auto;
  width: 180px;
  opacity: 0.9;
  transition: opacity 0.3s ease, filter 0.4s ease;
  filter: brightness(1.6);
}

.nav--scrolled .nav__logo img {
  filter: brightness(1);
}

.nav__logo:hover img { opacity: 1; }

.nav__links {
  display: flex;
  gap: 40px;
}

.nav__links a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
  position: relative;
}

.nav--scrolled .nav__links a {
  color: var(--color-text-secondary);
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-gold);
  transition: width 0.3s var(--ease-out);
}

.nav__links a:hover { color: #fff; }
.nav--scrolled .nav__links a:hover { color: var(--color-text); }
.nav__links a:hover::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text-secondary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

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

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #070B14 url('../assets/dubai-hero.jpg') center center / cover no-repeat;
}

.hero__canvas {
  display: none;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: rgba(7, 11, 20, 0.55);
}

/* Geometric Islamic pattern overlay on hero */
.hero__pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23C9A84C' stroke-width='0.5'%3E%3Cpath d='M100 20L120 60L160 60L130 85L140 125L100 105L60 125L70 85L40 60L80 60Z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 var(--container-padding);
}

.hero__logo {
  margin-bottom: 32px;
}

.hero__logo-img {
  width: min(600px, 75vw);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  filter: brightness(1.8) drop-shadow(0 4px 30px rgba(0, 170, 255, 0.3));
}

.hero__title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.hero__subtitle {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 24px;
}

.hero__gold-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: 0 auto 32px;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  padding: 14px 32px;
  border: 1px solid rgba(0, 170, 255, 0.3);
  border-radius: 100px;
  transition: all 0.4s var(--ease-out);
  background: rgba(0, 170, 255, 0.08);
}

.hero__cta:hover {
  background: rgba(0, 170, 255, 0.2);
  color: #fff;
  border-color: rgba(0, 170, 255, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 170, 255, 0.2);
}

.hero__cta svg { transition: transform 0.3s var(--ease-out); }
.hero__cta:hover svg { transform: translateY(3px); }

.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(180deg, rgba(0, 170, 255, 0.8), transparent);
  animation: scrollLine 2s var(--ease-in-out) infinite;
}

@keyframes scrollLine {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* --- Dubai Skyline Silhouette (footer background) --- */
.skyline-silhouette {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,120 L0,80 L40,80 L40,60 L55,60 L55,40 L60,20 L65,40 L70,40 L70,55 L90,55 L90,70 L120,70 L120,50 L130,50 L130,30 L135,10 L140,30 L150,30 L150,50 L170,50 L170,65 L200,65 L200,45 L210,45 L210,25 L220,25 L220,45 L240,45 L240,60 L280,60 L280,75 L320,75 L320,55 L335,55 L335,35 L340,15 L345,35 L355,35 L355,55 L380,55 L380,70 L420,70 L420,50 L430,50 L430,65 L460,65 L460,75 L500,75 L500,60 L520,60 L520,40 L530,40 L530,20 L535,5 L540,20 L550,20 L550,40 L570,40 L570,55 L600,55 L600,70 L650,70 L650,80 L700,80 L700,65 L720,65 L720,45 L730,45 L730,60 L760,60 L760,75 L800,75 L800,55 L810,55 L810,35 L815,15 L820,35 L830,35 L830,55 L860,55 L860,70 L900,70 L900,80 L950,80 L950,65 L970,65 L970,50 L980,50 L980,65 L1010,65 L1010,75 L1060,75 L1060,60 L1080,60 L1080,45 L1090,45 L1090,25 L1095,8 L1100,25 L1110,25 L1110,45 L1130,45 L1130,60 L1160,60 L1160,75 L1200,75 L1200,120 Z' fill='%23003366'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom;
  pointer-events: none;
}

/* --- Section Common --- */
.section {
  padding: 120px 0;
  position: relative;
}

.section__header {
  text-align: center;
  margin-bottom: 72px;
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 16px;
}

.section__label::before,
.section__label::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--color-gold-muted);
}

.section__title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-blue-dark);
}

.section__gold-accent {
  width: 40px;
  height: 2px;
  background: var(--color-gold);
  margin: 20px auto 0;
}

/* --- About Section --- */
.about {
  background: var(--color-bg);
}

.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about__text p {
  color: var(--color-text-secondary);
  margin-bottom: 20px;
  font-size: 15px;
  line-height: 1.75;
}

.about__lead {
  font-size: 17px !important;
  color: var(--color-text) !important;
  font-weight: 400;
  line-height: 1.7 !important;
}

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

.about__stat {
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.about__stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--color-gold), var(--color-gold-light));
}

.about__stat:hover {
  border-color: var(--color-border-light);
  box-shadow: 0 4px 24px rgba(0, 51, 102, 0.06);
}

.about__stat-icon {
  color: var(--color-blue);
  margin-bottom: 14px;
}

.about__stat h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}

.about__stat p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* --- Services Section --- */
.services {
  background: var(--color-bg-alt);
  position: relative;
}

/* Subtle geometric pattern overlay for services */
.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23003366' stroke-width='0.5'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z'/%3E%3Ccircle cx='30' cy='30' r='15'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.service-card {
  position: relative;
  padding: 40px 32px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: transform 0.5s var(--ease-out), border-color 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-gold-muted);
  box-shadow: 0 20px 60px rgba(0, 51, 102, 0.08), 0 0 0 1px var(--color-gold-muted);
}

.service-card__number {
  font-size: 64px;
  font-weight: 700;
  color: var(--color-surface);
  position: absolute;
  top: 20px;
  right: 24px;
  line-height: 1;
  user-select: none;
}

.service-card__icon {
  color: var(--color-blue);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.service-card__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--color-text);
  position: relative;
  z-index: 1;
}

.service-card__description {
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.service-card__list { position: relative; z-index: 1; }

.service-card__list li {
  font-size: 13px;
  color: var(--color-text-muted);
  padding: 6px 0;
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}

.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: var(--color-gold);
  opacity: 0.7;
}

.service-card__line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.service-card:hover .service-card__line { transform: scaleX(1); }

/* --- Corporate Section --- */
.corporate {
  background: var(--color-bg);
}

.corporate__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.corporate__card {
  padding: 36px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.corporate__card:hover {
  border-color: var(--color-border-light);
  box-shadow: 0 4px 24px rgba(0, 51, 102, 0.06);
}

.corporate__card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.corporate__card-header svg {
  color: var(--color-gold);
  flex-shrink: 0;
}

.corporate__card-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
}

.corporate__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.corporate__detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.corporate__detail dt {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.corporate__detail dd {
  font-size: 14px;
  color: var(--color-text-secondary);
}

.corporate__activities {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.corporate__activities li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--color-text-secondary);
}

.corporate__activity-marker {
  width: 6px;
  height: 6px;
  background: var(--color-gold);
  flex-shrink: 0;
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

/* --- Contact Section --- */
.contact {
  background: linear-gradient(180deg, var(--color-sand) 0%, var(--color-bg) 100%);
  position: relative;
}

.contact__content {
  display: flex;
  justify-content: center;
}

.contact__card {
  text-align: center;
  padding: 48px 60px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  max-width: 480px;
  width: 100%;
  box-shadow: 0 4px 24px rgba(0, 51, 102, 0.04);
  position: relative;
}

.contact__card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--color-gold);
  border-radius: 1px;
}

.contact__icon {
  color: var(--color-gold);
  margin-bottom: 20px;
}

.contact__card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--color-text);
}

.contact__address {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* --- Footer --- */
.footer {
  padding: 40px 0;
  background: var(--color-blue-dark);
  color: rgba(255, 255, 255, 0.7);
  position: relative;
  overflow: hidden;
}

.footer .skyline-silhouette {
  opacity: 0.08;
}

.footer__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.footer__logo img {
  width: 160px;
  height: auto;
  opacity: 0.9;
  filter: brightness(1.6);
}

.footer__copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.02em;
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal--delay-1 { transition-delay: 0.15s; }
.reveal--delay-2 { transition-delay: 0.3s; }
.reveal--delay-3 { transition-delay: 0.45s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- Mobile Responsive --- */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
  }
  .about__content {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
    --container-padding: 20px;
  }

  .section { padding: 80px 0; }
  .section__header { margin-bottom: 48px; }

  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0; bottom: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }

  .nav__links.active { opacity: 1; visibility: visible; }
  .nav__links a { font-size: 16px; }
  .hero__logo-img { width: min(400px, 85vw); }
  .hero__subtitle br { display: none; }
  .corporate__grid { grid-template-columns: 1fr; }
  .contact__card { padding: 36px 28px; }

  .footer__content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .service-card { padding: 32px 24px; }
  .service-card__number { font-size: 48px; }
  .corporate__card { padding: 28px; }
}
