@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@300;400;600;800&display=swap');

:root {
  /* Colors */
  --bg-primary: #050507;
  --bg-secondary: #0f111a;
  --bg-glass: rgba(15, 17, 26, 0.6);
  --accent-primary: #CD7F32; /* Metallic Bronze */
  --accent-secondary: #8C5523; /* Darker Bronze for gradients */
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --border-color: rgba(255, 255, 255, 0.1);
  
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
}

.text-gradient {
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-accent {
  color: var(--accent-primary);
}

/* Glassmorphism Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition-smooth);
}

.navbar.scrolled {
  padding: 1rem 5%;
  background: rgba(5, 5, 7, 0.9);
}

.logo {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  position: relative;
}

.logo span {
  color: var(--accent-primary);
}

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

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: var(--transition-smooth);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: var(--transition-smooth);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-primary);
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition-smooth);
}

.btn-primary:hover::before {
  left: 100%;
  transition: 0.8s;
}

/* Sections */
section {
  padding: 8rem 5% 4rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Hero Section */
.hero {
  position: relative;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-bg .img-empty,
.hero-bg .img-office {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The empty space */
.hero-bg .img-empty {
  opacity: 0.6;
  filter: grayscale(80%) brightness(0.8);
}

.scanner-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  animation: scanReveal 8s infinite cubic-bezier(0.65, 0, 0.35, 1);
}

/* The full office space revealing */
.scanner-layer .img-office {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.scanner-line {
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 100%;
  background: var(--accent-primary);
  box-shadow: 0 0 15px var(--accent-primary), 0 0 30px var(--accent-primary), -5px 0 20px rgba(205, 127, 50, 0.4);
  opacity: 0.9;
  z-index: 2;
}

@keyframes scanReveal {
  0%, 10% {
    width: 0%;
  }
  45%, 55% {
    width: 100%;
  }
  90%, 100% {
    width: 0%;
  }
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, var(--bg-primary) 20%, transparent 100%), linear-gradient(to top, var(--bg-primary) 0%, transparent 40%);
}

.hero-content {
  max-width: 800px;
  z-index: 1;
}

.hero-title {
  font-size: 5rem;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  max-width: 600px;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 4rem;
}

.about-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 3rem;
  border-radius: 8px;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.about-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.about-card h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--accent-primary);
}

.about-card p {
  color: var(--text-secondary);
}

/* Process Section */
.process-section {
  background: var(--bg-primary);
  position: relative;
}

.section-header {
  margin-bottom: 4rem;
}

.section-header .section-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.text-center {
  text-align: center;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.process-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 3rem 2rem;
  border-radius: 8px;
  position: relative;
  transition: var(--transition-smooth);
  overflow: hidden;
}

.process-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.process-card:hover {
  transform: translateY(-10px);
  background: rgba(15, 17, 26, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.process-card:hover::before {
  transform: scaleX(1);
}

.process-step {
  position: absolute;
  top: -15px;
  right: 15px;
  font-family: var(--font-heading);
  font-size: 6rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.03);
  z-index: 0;
  transition: var(--transition-smooth);
}

.process-card:hover .process-step {
  color: rgba(205, 127, 50, 0.1);
  transform: scale(1.1);
}

.process-icon {
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.process-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.process-card p {
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
  font-size: 0.95rem;
}

/* Company Story Section */
.story-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  text-align: center;
}

.story-content p {
  margin-bottom: 1.5rem;
}

/* Values Section */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.value-item {
  background: var(--bg-glass);
  padding: 2.5rem;
  border-left: 2px solid var(--accent-primary);
  border-radius: 0 8px 8px 0;
  transition: var(--transition-smooth);
}

.value-item:hover {
  background: rgba(15, 17, 26, 0.9);
  transform: translateX(10px);
}

.value-item h4 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.value-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Leadership Section */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 2rem;
}

.team-card {
  background: var(--bg-secondary);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.team-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.team-img {
  width: 100%;
  height: 400px;
  position: relative;
  overflow: hidden;
}

.team-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: grayscale(80%);
}

.team-card:hover .team-img img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.team-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, var(--bg-secondary), transparent);
}

.team-info {
  padding: 2rem;
  text-align: center;
}

.team-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.team-info .role {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.team-info .bio {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Portfolio Section */
.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.portfolio-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  height: 300px;
  cursor: pointer;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,5,7,0.9), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition-smooth);
}

.portfolio-item:hover img {
  transform: scale(1.1);
  filter: brightness(0.6);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.portfolio-cat {
  color: var(--text-primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.contact-info p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.quirky-form {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  padding: 3rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  position: relative;
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-input {
  width: 100%;
  padding: 1rem 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-bottom-color: var(--accent-primary);
}

.form-label {
  position: absolute;
  top: 1rem;
  left: 0;
  color: var(--text-secondary);
  pointer-events: none;
  transition: var(--transition-smooth);
  font-family: var(--font-heading);
}

.form-input:focus ~ .form-label,
.form-input:valid ~ .form-label {
  top: -15px;
  font-size: 0.8rem;
  color: var(--accent-primary);
}

.form-row {
  display: flex;
  gap: 2rem;
}

.form-row .form-group {
  flex: 1;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
footer {
  padding: 3rem 5%;
  text-align: center;
  border-top: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

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

/* Success Message */
.success-msg {
  display: none;
  text-align: center;
  padding: 2rem;
  color: var(--accent-primary);
  font-family: var(--font-heading);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.7; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.02); }
  100% { opacity: 0.7; transform: scale(0.98); }
}

@media (max-width: 900px) {
  .about-grid, .contact-container, .form-row {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 3rem;
  }
  .nav-links {
    display: none; /* simple hidden state for demo */
  }
}
