@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;700&display=swap');

:root {
  --primary-blue: #1e3a8a;
  --accent-blue: #3b82f6;
  --light-bg: #f0f4f8;
  --dark-text: #1e293b;
  --white: #ffffff;
}

/* Base */
body {
  font-family: 'Open Sans', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--light-bg);
  color: var(--dark-text);
}

#page {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--white);
}

/* Clock */
#clock {
  position: fixed;
  top: 10px;
  right: 20px;
  background: rgba(0, 0, 0, 0.1);
  color: lightblue;
  padding: 10px 15px;
  border-radius: 5px;
  font-size: 14px;
  z-index: 999;
}

/* Header */
header {
  position: relative;
  height: 430px;
  background: var(--primary-blue) url('images/fashion-collection-hanging-in-modern-clothing-store-free-photo.jpg') no-repeat center bottom;
  background-size: cover;
}

.header-anchor-class {
  position: absolute;
  top: 0;
  left: 0;
  width: 230px;
  height: 150px;
  background: url('icons/R.png') no-repeat center;
  background-size: contain;
  background-color: transparent;
  filter: contrast(1.5) drop-shadow(0 0 10px rgba(255, 255, 255, 0.6));
  z-index: 1001;
}

.header-anchor-class span {
  display: none;
}

.header-anchor-class:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.header-div-class {
  position: absolute;
  top: 130px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  text-align: center;
  color: white;
}

.header-div-class h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

.header-div-h1-anchor-class {
  font-size: 1.1em;
  color: white;
  border: 1px solid white;
  padding: 8px 20px;
  text-decoration: none;
  display: inline-block;
  transition: 0.3s;
}

.header-div-h1-anchor-class:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Navigation */
nav {
  background-color: var(--primary-blue);
  padding: 10px 0;
}

nav ul {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

nav ul li {
  position: relative;
}

nav ul li a {
  color: white;
  padding: 10px 20px;
  display: block;
  text-decoration: none;
  transition: 0.2s;
  font-size: 15px;
  white-space: nowrap;
}

nav ul li:hover > a {
  background-color: var(--accent-blue);
}

nav ul ul {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--primary-blue);
  min-width: 100%;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

nav ul li:hover > ul {
  display: block;
}

nav ul ul li a {
  padding: 10px 15px;
  font-size: 14px;
}

nav ul ul ul {
  top: 0;
  left: 100%;
}

nav > ul > li > a {
  font-size: 17px;
  font-weight: 600;
}

/* Main Features */
.main-section-class {
  display: flex;
  gap: 20px;
  padding: 40px 30px;
}

.main-section-class aside {
  flex: 1;
  text-align: center;
}

.main-section-class .content {
  padding: 120px 20px 20px;
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 120px;
}

.trending { background-image: url('images/shoe.jpg'); }
.findit { background-image: url('images/Ladies\ bag.webp'); }
.tools { background-image: url('images/il_1080xN.2097822007_jhew.jpg'); }

/* Design Process */
section.design {
  background: #174ea6;
  color: white;
  padding: 40px 30px;
}

section.design article {
  background: url('images/R\ \(1\).jpg') no-repeat left center;
  background-size: 450px auto;
  padding-left: 500px;
  min-height: 250px;
}

/* How-To Section */
section.how-to {
  background: #e0ecff;
  padding: 40px 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}

section.how-to aside {
  flex: 1 1 48%;
  margin-bottom: 40px;
}

section.how-to .content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

section.how-to .content img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 15px;
}

/* CEO/Media Section */
.ceo-media-container {
  display: flex;
  gap: 30px;
  width: 100%;
}

.ceo-media {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ceo-media video {
  width: 100%;
  max-height: 250px;
  border-radius: 6px;
  object-fit: cover;
}

.ceo-media audio {
  width: 100%;
  border-radius: 6px;
}

.ceo-quote {
  flex: 1;
  background: white;
  padding: 25px;
  font-style: italic;
  border-left: 4px solid var(--accent-blue);
  color: #1e293b;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ceo-quote .quote {
  font-style: italic;
  position: relative;
  padding-top: 10px;
  line-height: 1.6;
  margin: 0;
}

.ceo-quote .credit {
  font-size: 0.95em;
  margin-top: 5px;
  text-align: right;
  color: #555;
}

/* About + Mission */
#about-us {
  padding: 40px 30px 0;
  max-width: 800px;
  margin: 0 auto;
}

#our-mission {
  margin-top: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Map Section */
#media-map {
  padding: 40px 30px;
  background: var(--light-bg);
}

#media-map .map-alone {
  margin-bottom: 30px;
}

#media-map iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 6px;
}

/* Socials */
#socials {
  text-align: center;
  padding: 30px;
}

#socials img {
  width: 32px;
  height: 32;
  margin: 0 8px;
}

#socials img:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

/* Footer */
footer {
  background: var(--primary-blue);
  color: white;
  text-align: center;
  padding: 30px;
}

footer .content a {
  color: #bbdefb;
  margin: 0 15px;
  text-decoration: none;
}

footer .content a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .main-section-class,
  .ceo-quote,
  .ceo-media {
    flex-direction: column;
    flex: 1 1 100%;
  }

  section.design article {
    padding-left: 0;
    background: none;
  }

  nav ul {
    flex-direction: column;
    align-items: center;
  }

  nav ul ul {
    position: static;
    box-shadow: none;
  }

  nav ul ul ul {
    left: 0;
  }
}

/* Fix for mobile anchor scroll */
@media (max-width: 768px) {
  #who-we-are,
  #our-mission {
    scroll-margin-top: 300px; /* adjust this number until the headings are fully visible */
  }
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-in-out;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  background: white;
  padding: 30px 20px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  text-align: center;
}

.lightbox-inner img {
  width: 100%;
  max-height: 60vh;
  object-fit: contain;
  display: block;
  margin: 0 auto 15px;
  border-radius: 6px;
}

.lightbox-inner h3 {
  margin: 10px 0 5px;
  color: #1e3a8a;
}

.lightbox-inner p {
  font-size: 0.95em;
  color: #444;
}

.lightbox-inner .price {
  color: #1e88e5;
  font-weight: bold;
  font-size: 1.2em;
  margin-top: 10px;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #0d47a1;
  background: #ffffff;
  border-radius: 50%;
  padding: 6px 12px;
  line-height: 1;
  z-index: 9999;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: 0.3s, transform 0.3s;
}

.close:hover {
  background: #e3f2fd;
  transform: scale(1.1);
}

.nav-btn {
  background: transparent;
  border: none;
  font-size: 28px;
  color: #1e3a8a;
  cursor: pointer;
  padding: 10px;
  transition: color 0.3s;
}

.nav-btn:hover {
  color: #0d47a1;
}

body.blurred #page {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}

@keyframes fadeIn {
  from { opacity: 0 }
  to { opacity: 1 }
}

@media (max-width: 600px) {
  .lightbox-content {
    padding: 20px 10px;
  }
  .lightbox-inner img {
    max-height: 50vh;
  }
}