/* =========================================================
   style.css  |  Corporate Design System  |  v1.0
   ========================================================= */

/* --------------------  CSS VARIABLES  ------------------- */
:root {
  /* Analog color palette (blue–cyan–green) */
  --color-primary: #1e88e5;
  --color-primary-dark: #1565c0;
  --color-secondary: #26c6da;
  --color-secondary-dark: #0097a7;
  --color-accent: #00e676;
  --color-accent-dark: #00c853;
  --color-light: #ffffff;
  --color-dark: #212121;
  --color-muted: #757575;
  --gradient-primary: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-secondary) 100%
  );
  --gradient-overlay: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55));
  --shadow-3d: 0 10px 20px rgba(0, 0, 0, 0.25), 0 6px 6px rgba(0, 0, 0, 0.22);
  --radius-lg: 1rem;
  --transition-fast: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.carousel-inner {
  width: 100%;
  max-width: 600px;
  height: 400px;
  margin: 0 auto;
}

.carousel-item {
  width: 100%;
}

.carousel-item img {
  object-fit: cover;
  width: 100%;
}

/* --------------------  GLOBAL RESET  -------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Nunito", sans-serif;
  color: var(--color-dark);
  background-color: #f9fbfc;
  line-height: 1.6;
}

/* --------------------  TYPOGRAPHY  ---------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Oswald", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-dark);
}
h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 4rem);
}
h2 {
  font-size: clamp(2rem, 4vw + 0.5rem, 3rem);
}
h3 {
  font-size: clamp(1.5rem, 3vw + 0.5rem, 2.25rem);
}
p {
  font-size: 1rem;
}
@media (prefers-reduced-motion: no-preference) {
  h1,
  h2,
  h3 {
    animation: fadeDown var(--transition-slow) both;
  }
}

/* --------------------  BUTTONS  ------------------------- */
.btn {
  font-family: "Oswald", sans-serif;
  letter-spacing: 0.8px;
  border: none;
  border-radius: 50px;
  padding: 0.75rem 2rem;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  color: var(--color-light);
  background: var(--gradient-primary);
  box-shadow: var(--shadow-3d);
}
.btn:hover,
.btn:focus {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(
    135deg,
    var(--color-secondary) 0%,
    var(--color-primary) 100%
  );
}
.btn:active {
  transform: translateY(0) scale(0.98);
}

/* --------------------  NAVBAR  -------------------------- */
.navbar {
  backdrop-filter: blur(8px);
  background-color: rgba(16, 16, 16, 0.8) !important;
}
.navbar-nav .nav-link {
  color: var(--color-light) !important;
  text-transform: uppercase;
  font-weight: 600;
  padding: 0.75rem 1rem;
  transition: color var(--transition-fast);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--color-accent) !important;
}

/* --------------------  HERO SECTION  -------------------- */
#hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
#hero h1,
#hero p {
  color: var(--color-light);
}
#hero .btn {
  font-size: 1rem;
}
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-overlay);
}
#hero > * {
  position: relative;
  z-index: 2;
}
.parallax {
  background-attachment: fixed;
  background-size: cover;
  background-repeat: no-repeat;
}

/* --------------------  GENERIC SECTIONS  ---------------- */
section {
  padding: 4rem 0;
}
section.bg-light {
  background-color: #f4f6f8;
}
section.text-white h2,
section.text-white p {
  color: var(--color-light);
}

/* --------------------  CARD COMPONENTS  ----------------- */
.card {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform var(--transition-fast),
    box-shadow var(--transition-fast);
  box-shadow: var(--shadow-3d);
  background-color: #fff;
}
.card:hover {
  transform: translateY(-6px) rotateX(3deg) rotateY(-3deg);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3), 0 10px 10px rgba(0, 0, 0, 0.22);
}
.card-image {
  width: 100%;
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0 auto;
}
.card-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card-content h5 {
  color: var(--color-primary-dark);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.card-content p {
  color: #000 !important;
}

/* --------------------  COMMUNITY SWITCHER  -------------- */
#newsletterToggle {
  accent-color: var(--color-accent);
  transform: scale(1.3);
  cursor: pointer;
}

/* --------------------  LINK: READ MORE  ----------------- */
.read-more {
  font-weight: 700;
  color: var(--color-primary);
  position: relative;
  display: inline-block;
  padding-right: 1.25rem;
  transition: color var(--transition-fast);
}
.read-more::after {
  content: "→";
  position: absolute;
  right: 0;
  top: 0;
  transition: transform var(--transition-fast);
}
.read-more:hover,
.read-more:focus {
  color: var(--color-primary-dark);
}
.read-more:hover::after {
  transform: translateX(4px);
}

/* --------------------  SOCIAL LINKS  -------------------- */
footer a.link-light {
  font-weight: 600;
  transition: all var(--transition-fast);
}
footer a.link-light:hover {
  color: var(--color-accent) !important;
  text-decoration: underline;
}

/* --------------------  GLASSMORPHISM UTILITY  ----------- */
.glass {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
}

/* --------------------  SUCCESS PAGE  -------------------- */
.page-success {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--gradient-primary);
  color: var(--color-light);
}
.page-success h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

/* --------------------  PADDING TOP FOR STATIC PAGES ----- */
.page-static {
  padding-top: 100px;
}

/* --------------------  UTILITY CLASSES  ----------------- */
.text-shadow {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.shadow-3d {
  box-shadow: var(--shadow-3d);
}
.radius-lg {
  border-radius: var(--radius-lg);
}
.bg-gradient-primary {
  background: var(--gradient-primary);
  color: var(--color-light);
}

/* --------------------  ANIMATIONS  ---------------------- */
@keyframes fadeDown {
  0% {
    opacity: 0;
    transform: translateY(-20px) perspective(600px) rotateX(25deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) perspective(600px) rotateX(0);
  }
}

/* --------------------  RESPONSIVE TWEAKS  --------------- */
@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(0, 0, 0, 0.9);
  }
  section {
    padding: 3rem 0;
  }
  .card-image {
    height: 180px;
  }
}
@media (max-width: 575px) {
  h1 {
    font-size: 2rem;
  }
  .btn {
    padding: 0.65rem 1.5rem;
    font-size: 0.9rem;
  }
}
