/* css/main.css */

:root {
  --primary: #333333; /* Charcoal grey - main dark base */
  --primary-dark: #1a1a1a; /* Slightly darker variant for body/sections */
  --primary-darker: #111111; /* For deepest elements like footer */
  --secondary: #ff6200; /* Vibrant orange - CTAs, highlights */
  --accent: #4a90e2; /* Slate blue - links, focus, tech accents */
  --accent-dark: #cc4e00; /* Darker orange for orange hovers/shadows */
  --text: #f5f6f5; /* Off-white - main text on dark */
  --text-muted: #b0b0b0; /* Light grey - secondary text, subtitles */
  --border: #444444; /* Subtle borders */
  --success: #00a860; /* Green - future use */
  --error: #e23c3c; /* Red - future use */
  --company-accent-color: #ff6200; /* Logo accent color - vibrant orange */
}

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

body {
  background-color: var(--primary-dark);
  color: var(--text);
  font-family:
    "Zalando Sans",
    system-ui,
    -apple-system,
    sans-serif;
  line-height: 1.6;
}

.company-logo {
  width: 300px;
  height: auto;
  padding-bottom: 0.5rem;
  gap: 0.5rem;
  margin-right: 0.5rem;
}

.hero-bg {
  background:
    /* linear-gradient(
      135deg,
      var(--primary) 0%,
      #2a2a2a 40%,
      #1f1f1f 70%,
      #0d0d0d 100%
    ), */
    /* radial-gradient(
      circle at 30% 70%,
      rgba(255, 98, 0, 0.08) 0%,
      transparent 60%
    ), 
    radial-gradient(
      circle at 70% 30%,
      rgba(74, 144, 226, 0.06) 0%,
      transparent 60%
    ),*/ url("../assets/images/hero-bg.jpg")
    center/cover no-repeat;
  /* Photo by Milad Fakurian on Unsplash */

  background-blend-mode: overlay;
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* If you prefer no image → uncomment pure gradient version below and comment the url line above */
/*
.hero-bg {
    background: linear-gradient(
        135deg,
        var(--primary) 0%,
        #2a2a2a 40%,
        #1f1f1f 70%,
        #0d0d0d 100%
    );
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
*/

/* Navigation */
nav {
  background: rgba(34, 34, 34, 0.92); /* #222 with transparency */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

nav a:hover {
  color: var(--accent) !important;
}

/* Buttons / CTAs */
.btn-primary {
  background-color: var(--secondary);
  color: white;
  border: none;
  border-radius: 1rem;
  padding: 1rem 2.5rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-primary:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--text);
  color: var(--text);
  background: transparent;
  border-radius: 1rem;
  padding: 1rem 2.5rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--text);
  color: var(--primary);
}

/* Sections */
section {
  padding: 6rem 1.5rem;
}

section.alternate {
  background-color: #1e1e1e; /* Toned-down dark instead of white */
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

#approach {
  background-image: url("../assets/images/hero-bg2.jpg");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-color: var(--primary);
  position: relative;
}

#approach::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.85);
  pointer-events: none;
  z-index: 0;
}

#approach > * {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3 {
  color: var(--text);
}

h2 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.text-muted {
  color: var(--text-muted);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: #6aa8f3; /* lighter blue hover */
}

/* Form inputs */
/* Enhanced form styling */

form {
  background: #181818;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

form label {
  display: block;
  margin-bottom: 0.5rem;
}

input,
textarea {
  width: 100%;
  background-color: #111;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
  transition: all 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.15);
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 140px;
}

button[type="submit"] {
  background-color: var(--secondary);
  color: white;
  font-weight: 600;
  font-size: 1.125rem;
  padding: 1.25rem 2rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 98, 0, 0.25);
}

button[type="submit"]:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(204, 78, 0, 0.35);
}

button[type="submit"]:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 98, 0, 0.3);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  form {
    padding: 2rem 1.5rem;
  }

  button[type="submit"] {
    padding: 1.125rem 1.75rem;
    font-size: 1.0625rem;
  }
}

/* Cards */
.card {
  background: #222;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 2rem;
  transition: border-color 0.3s;
  opacity: 0;
  --hover-offset: 0px;
}

.card:nth-child(odd) {
  transform: translateY(-80px);
}

.card:nth-child(even) {
  transform: translateY(80px);
}

.card:hover {
  border-color: var(--accent);
  --hover-offset: -8px;
}

/* Scroll animation - updated during scroll */
.card.animating {
  opacity: var(--card-opacity, 0);
  transform: translateY(
    calc(var(--card-translateY, 0px) + var(--hover-offset, 0px))
  );
}

/* Footer */
footer {
  background: var(--primary-darker);
  border-top: 1px solid var(--border);
}

/* Optional: override some Tailwind classes if needed */
@layer base {
  body {
    @apply font-sans antialiased;
  }
}

@import url("https://fonts.googleapis.com/css2?family=Zalando+Sans:ital,wght@0,200..900;1,200..900&display=swap");
