/* ===== VARIABLES & RESET ===== */
:root {
  --primary: #FD4A16;
  --secondary: #FD5B16;
  --accent: #F1A518;
  --bg-dark: #08080A;
  --bg-card: rgba(17, 17, 19, 0.85);
  --bg-card-solid: #111113;
  --bg-card-hover: #161618;
  --text-primary: #F0EFED;
  --text-secondary: #9A9894;
  --text-muted: #5C5A56;
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(253, 74, 22, 0.3);
  --glow-primary: rgba(253, 74, 22, 0.15);
  --glow-accent: rgba(241, 165, 24, 0.1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;
}

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

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

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ===== GRAIN OVERLAY ===== */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ===== HERO BACKGROUND IMAGE ===== */
.hero-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-img {
  width: 110%;
  height: 110%;
  object-fit: cover;
  object-position: center 30%;
  position: absolute;
  top: -5%;
  left: -5%;
  filter: blur(2px) saturate(0.3);
  opacity: 0.12;
  transform: scale(1.05);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg-dark);
  opacity: 0.75;
}

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(253, 74, 22, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(241, 165, 24, 0.04) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-dark) 0%, transparent 30%, transparent 70%, var(--bg-dark) 100%);
}

/* ===== PARTICLES CANVAS ===== */
#particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ===== FLOATING ORBS ===== */
.orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.orb-1 {
  width: 400px;
  height: 400px;
  top: -10%;
  right: -5%;
  background: radial-gradient(circle, var(--glow-primary) 0%, transparent 70%);
  animation: orbFloat 18s ease-in-out infinite;
}

.orb-2 {
  width: 300px;
  height: 300px;
  bottom: 5%;
  left: -5%;
  background: radial-gradient(circle, var(--glow-accent) 0%, transparent 70%);
  animation: orbFloat 22s ease-in-out infinite reverse;
}

.orb-3 {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 40%;
  background: radial-gradient(circle, rgba(253, 91, 22, 0.05) 0%, transparent 70%);
  animation: orbFloat 15s ease-in-out infinite 4s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.1); }
  66% { transform: translate(-20px, 25px) scale(0.9); }
}

/* ===== PAGE LAYOUT ===== */
.page-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== HEADER ===== */
.header {
  padding: 1.5rem 2.5rem;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  height: 38px;
  width: auto;
  filter: brightness(1.1);
}

.header-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(241, 165, 24, 0.5);
}

.badge-text {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(241, 165, 24, 0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 16px rgba(241, 165, 24, 0.2); }
}

/* ===== MAIN CONTENT ===== */
.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 2.5rem;
}

.content-container {
  max-width: 1200px;
  width: 100%;
}

/* ===== HERO GRID ===== */
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  position: relative;
}

/* ===== ACCENT BAR ===== */
.accent-bar {
  width: 50px;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 100px;
  margin-bottom: 2rem;
  overflow: hidden;
}

.accent-bar-fill {
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 100px;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 1; transform: translateX(0); }
  50% { opacity: 0.6; transform: translateX(10px); }
}

/* ===== TITLE BLOCK ===== */
.title-block {
  margin-bottom: 2.5rem;
}

.title {
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: 1.2rem;
}

.title-line {
  display: block;
}

.title-line-1 {
  font-size: clamp(3.5rem, 7vw, 5.8rem);
  color: var(--text-primary);
}

.title-line-2 {
  font-size: clamp(3.5rem, 7vw, 5.8rem);
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.title-dot {
  -webkit-text-fill-color: var(--accent);
}

.subtitle {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

/* ===== DIVIDER ===== */
.divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border) 0%, var(--border-accent) 50%, var(--border) 100%);
}

.divider-diamond {
  width: 6px;
  height: 6px;
  background: var(--primary);
  transform: rotate(45deg);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(253, 74, 22, 0.4);
}

/* ===== MESSAGE CARD ===== */
.message-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.message-card:hover {
  border-color: var(--border-accent);
  box-shadow:
    0 8px 40px -12px var(--glow-primary),
    0 0 0 1px rgba(253, 74, 22, 0.1);
  transform: translateY(-2px);
}

.card-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  transition: background 0.3s ease;
}

.card-accent {
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
  position: relative;
  z-index: 1;
}

.card-accent::after {
  content: '';
  position: absolute;
  inset: 0;
  background: inherit;
  filter: blur(8px);
  opacity: 0.5;
}

.card-content {
  padding: 2rem 2.25rem;
  position: relative;
  z-index: 1;
}

.message-text {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.message-text:last-child {
  margin-bottom: 0;
}

.message-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.message-thanks {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-style: italic;
}

/* ===== HERO IMAGE CARD ===== */
.hero-image-col {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 20px 60px -15px rgba(0, 0, 0, 0.5),
    0 0 40px -10px var(--glow-primary);
}

.image-card-border {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 3;
  pointer-events: none;
}

.image-card-photo {
  width: 100%;
  height: 380px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  filter: saturate(0.85) contrast(1.05);
  transition: transform 0.6s ease, filter 0.6s ease;
}

.image-card:hover .image-card-photo {
  transform: scale(1.03);
  filter: saturate(1) contrast(1.05);
}

.image-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, transparent 40%, rgba(8, 8, 10, 0.7) 100%),
    linear-gradient(135deg, rgba(253, 74, 22, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.image-card-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: rgba(8, 8, 10, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.image-card-badge span {
  color: var(--text-secondary);
}

/* ===== FLOATING TAGS ===== */
.float-tag {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  background: rgba(17, 17, 19, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
  white-space: nowrap;
  z-index: 5;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.float-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 6px rgba(253, 74, 22, 0.5);
}

.float-tag-dot.dot-accent {
  background: var(--accent);
  box-shadow: 0 0 6px rgba(241, 165, 24, 0.5);
}

.float-tag-1 {
  top: 10%;
  right: -8%;
}

.float-tag-2 {
  bottom: 12%;
  left: -5%;
}

/* ===== FOOTER ===== */
.footer {
  padding: 1.5rem 2.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-text {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-separator {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

.footer-contact {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ===== SELECTION ===== */
::selection {
  background: rgba(253, 74, 22, 0.3);
  color: var(--text-primary);
}

/* ======================================================
   RESPONSIVE
   ====================================================== */

/* Large tablets / small desktop */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .image-card-photo {
    height: 320px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .header {
    padding: 1.25rem 1.5rem;
  }

  .main {
    padding: 1.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-text {
    order: 1;
  }

  .hero-image-col {
    order: 2;
  }

  .image-card {
    max-width: 100%;
  }

  .image-card-photo {
    height: 280px;
  }

  .float-tag-1 {
    top: -12px;
    right: 10%;
  }

  .float-tag-2 {
    bottom: -12px;
    left: 10%;
  }

  .title-line-1,
  .title-line-2 {
    font-size: clamp(2.8rem, 9vw, 4rem);
  }

  .card-content {
    padding: 1.5rem 1.75rem;
  }

  .footer {
    padding: 1.25rem 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .footer-right {
    gap: 0;
  }

  .footer-separator {
    display: none;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .header {
    padding: 1rem;
  }

  .logo-img {
    height: 30px;
  }

  .header-badge {
    padding: 0.3rem 0.75rem;
  }

  .badge-text {
    font-size: 0.62rem;
  }

  .main {
    padding: 1rem;
    align-items: flex-start;
    padding-top: 0.5rem;
  }

  .accent-bar {
    margin-bottom: 1.5rem;
  }

  .title-block {
    margin-bottom: 1.75rem;
  }

  .title-line-1,
  .title-line-2 {
    font-size: 2.6rem;
  }

  .subtitle {
    font-size: 0.88rem;
  }

  .divider {
    margin-bottom: 1.5rem;
  }

  .card-content {
    padding: 1.25rem;
  }

  .message-text {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .image-card-photo {
    height: 240px;
  }

  .float-tag-1 {
    top: -10px;
    right: 5%;
  }

  .float-tag-2 {
    bottom: -10px;
    left: 5%;
  }

  .footer {
    padding: 1rem;
  }

  .orb-1 {
    width: 250px;
    height: 250px;
  }

  .orb-2 {
    width: 180px;
    height: 180px;
  }

  .orb-3 {
    display: none;
  }
}

/* Small mobile */
@media (max-width: 360px) {
  .title-line-1,
  .title-line-2 {
    font-size: 2.2rem;
  }

  .image-card-photo {
    height: 200px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .orb,
  #particles {
    display: none;
  }

  .hero-bg-img {
    filter: none;
    opacity: 0.08;
  }
}
