/* Design System & Reset */
:root {
  --bg-primary: #0a0b0e;
  --bg-secondary: #111215;
  --bg-card: rgba(255, 255, 255, 0.02);
  --bg-card-hover: rgba(255, 255, 255, 0.04);
  
  --primary: #c5a880; /* Elegant Champagne Gold */
  --primary-hover: #b29369;
  --primary-light: rgba(197, 168, 128, 0.1);
  --primary-glow: rgba(197, 168, 128, 0.3);
  
  --text-primary: #f5f5f7; /* Off-white for high contrast and modern look */
  --text-secondary: #a0a0ab; /* Muted gray for readability */
  --text-muted: #6e6e73;
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --border-focus: #c5a880;
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  
  --navbar-height: 80px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #222;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Typography Helpers */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Reusable Components */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.grid {
  display: grid;
  gap: 4rem;
  align-items: center;
}

.grid-2 {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 968px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .grid-2.reversed {
    direction: rtl;
  }
  .grid-2.reversed > * {
    direction: ltr;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.2rem;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background-color: var(--primary);
  color: #000;
  border: 1px solid var(--primary);
  box-shadow: 0 4px 20px rgba(197, 168, 128, 0.15);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--primary-glow);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  z-index: 1000;
  transition: var(--transition-smooth);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background-color: rgba(10, 11, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  height: 70px;
}

.nav-container {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.logo-accent {
  color: var(--primary);
  font-weight: 600;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--primary);
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle .bar {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px 0;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: var(--navbar-height);
    left: 100%;
    width: 100%;
    height: calc(100vh - var(--navbar-height));
    background-color: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--border-color);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links a {
    font-size: 1.1rem;
  }

  .navbar.scrolled .nav-links {
    top: 70px;
    height: calc(100vh - 70px);
  }
  
  /* Menu icon active state */
  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: var(--navbar-height);
  background-image: 
    linear-gradient(to left, rgba(10, 11, 14, 0.95) 30%, rgba(10, 11, 14, 0.65) 65%, rgba(10, 11, 14, 0.2) 100%),
    url('linna_reakes_hero.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to bottom, transparent 60%, var(--bg-primary) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  margin-left: auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background-color: var(--primary-light);
  border: 1px solid rgba(197, 168, 128, 0.25);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: 50px;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.15;
  margin-bottom: 1.8rem;
  color: var(--text-primary);
}

@media (max-width: 768px) {
  .hero {
    background-image: 
      linear-gradient(to bottom, rgba(10, 11, 14, 0.75) 0%, rgba(10, 11, 14, 0.9) 70%, var(--bg-primary) 100%),
      url('linna_reakes_hero.webp');
    background-position: center;
  }
  .hero-content {
    text-align: center;
    align-items: center;
    max-width: 100%;
    margin: 0 auto;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    margin-bottom: 2rem;
    font-size: 1.1rem;
  }
  .scroll-indicator {
    display: none;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 650px;
  margin-bottom: 3rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  opacity: 0.7;
}

.scroll-indicator span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.scroll-indicator .arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  position: relative;
  overflow: hidden;
}

.scroll-indicator .arrow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--text-primary);
  animation: scrollDown 2s infinite ease-in-out;
}

/* Sections General */
.section {
  padding: 10rem 0;
  border-bottom: 1px solid var(--border-color);
  position: relative;
}

.section-tagline {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  .section {
    padding: 6rem 0;
  }
}

.text-block p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

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

.highlight-text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text-primary);
  line-height: 1.5;
  border-left: 2px solid var(--primary);
  padding-left: 1.5rem;
  margin-top: 2rem;
  font-style: italic;
}

/* Image Showcase */
.image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
  aspect-ratio: 3/2;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-wrapper:hover img {
  transform: scale(1.04);
}

/* Stats Section */
.stats-section {
  padding: 6rem 0;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.stat-card {
  padding: 1rem;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

/* Connect Section / Card */
.connect-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 4.5rem;
  max-width: 850px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.connect-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background-image: radial-gradient(circle, rgba(197, 168, 128, 0.03) 0%, transparent 70%);
  z-index: 1;
}

.connect-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
  position: relative;
  z-index: 2;
}

.connect-subtitle {
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .connect-card {
    padding: 2.5rem 1.5rem;
  }
  .connect-header {
    margin-bottom: 2rem;
  }
}

/* Forms */
.contact-form {
  position: relative;
  z-index: 2;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.form-group label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 1rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: var(--transition-fast);
  outline: none;
  width: 100%;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23a0a0ab' d='M6 7.4L.6 2 2 .6 6 4.6 10 .6 11.4 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 0.75rem;
  padding-right: 2.5rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: var(--border-hover);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(197, 168, 128, 0.1);
}

/* Submit Loader & Form Feedback */
#submit-btn {
  position: relative;
  height: 52px;
}

.loader {
  width: 20px;
  height: 20px;
  border: 2px solid #000;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: rotation 1s linear infinite;
  position: absolute;
}

.hidden {
  display: none !important;
}

.form-message {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 4px;
  font-size: 0.95rem;
  text-align: center;
  animation: fadeIn 0.4s ease;
}

.form-message.success {
  background-color: rgba(39, 174, 96, 0.1);
  border: 1px solid rgba(39, 174, 96, 0.2);
  color: #2ecc71;
}

.form-message.error {
  background-color: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.2);
  color: #e74c3c;
}

/* Footer */
.footer {
  background-color: #050608;
  padding: 5rem 0 3rem;
  border-top: 1px solid var(--border-color);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 4rem;
}

.footer-brand {
  max-width: 450px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  display: inline-block;
  margin-bottom: 1rem;
}

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

.footer-socials {
  display: flex;
  gap: 1.2rem;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.footer-socials a:hover {
  color: var(--primary);
  border-color: var(--primary);
  background-color: rgba(197, 168, 128, 0.05);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes scrollDown {
  0% { transform: translateY(-20px); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateY(20px); opacity: 0; }
}

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

/* Intersection Observer Reveal States */
.scroll-reveal-left,
.scroll-reveal-right {
  opacity: 0;
  transition: var(--transition-smooth);
}

.scroll-reveal-left {
  transform: translateX(-50px);
}

.scroll-reveal-right {
  transform: translateX(50px);
}

.scroll-reveal-left.active,
.scroll-reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}
