/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Custom Properties */
:root {
  /* Apple-inspired colors */
  --primary-black: #1d1d1f;
  --secondary-black: #424245;
  --light-gray: #f5f5f7;
  --medium-gray: #a1a1a6;
  --dark-gray: #86868b;
  --white: #ffffff;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.18);
  --shadow: rgba(0, 0, 0, 0.1);
  --gradient-primary: linear-gradient(135deg, var(--primary-black) 0%, var(--secondary-black) 100%);
  
  /* Spacing */
  --section-padding: 6rem 0;
  --container-padding: 0 1.5rem;
  --border-radius: 1.5rem;
  
  /* Typography */
  --font-apple: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-apple);
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  color: var(--primary-black);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Background Wave Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/wave-pattern.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0.08;
  z-index: -2;
}

/* Elegant overlay */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, 
    rgba(255, 255, 255, 0.95) 0%, 
    rgba(250, 250, 252, 0.9) 50%, 
    rgba(240, 245, 250, 0.85) 100%);
  z-index: -1;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--container-padding);
}

/* Navigation */
.navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: all 0.3s ease;
}

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

.nav-brand .logo {
  height: 45px;
  width: auto;
  transition: transform 0.3s ease;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--primary-black);
  text-decoration: none;
  font-weight: var(--font-weight-medium);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary-black);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary-black);
  border-radius: 1px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--primary-black);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 1px;
}

/* Glass Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: 0 8px 32px var(--shadow);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-family: var(--font-apple);
  font-weight: var(--font-weight-semibold);
  font-size: 1rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 4px 20px var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--primary-black);
  border: 2px solid var(--medium-gray);
}

.btn-outline:hover {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-color: var(--primary-black);
}

.btn-full {
  width: 100%;
}

/* Typography */
.hero-title,
.page-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 2rem;
}

.hero-subtitle,
.page-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: var(--font-weight-regular);
  color: var(--dark-gray);
  letter-spacing: -0.01em;
  line-height: 1.5;
  margin-bottom: 3rem;
}

.section-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--dark-gray);
  letter-spacing: -0.01em;
  line-height: 1.6;
  max-width: 768px;
  margin: 0 auto;
}

/* Hero Section */
.hero-section {
  padding: 8rem 0 6rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/background-waves.jpg');
  background-size: 120% 120%;
  background-position: center bottom;
  background-repeat: no-repeat;
  opacity: 0.04;
  z-index: 0;
  transform: scale(1.1);
}

.hero-content {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Page Header */
.page-header {
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/background-waves.jpg');
  background-size: 150% 150%;
  background-position: right top;
  background-repeat: no-repeat;
  opacity: 0.025;
  z-index: 0;
  transform: rotate(180deg);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* Services Grid */
.services-section {
  padding: var(--section-padding);
}

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

.service-card {
  text-align: center;
  padding: 3rem 2rem;
}

.service-icon {
  margin-bottom: 2rem;
}

.service-icon i {
  width: 48px;
  height: 48px;
  color: var(--primary-black);
}

.service-title {
  font-size: 1.5rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.service-description {
  color: var(--dark-gray);
  line-height: 1.6;
}

/* Services Detail Page */
.services-detail-section {
  padding: var(--section-padding);
}

.services-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.service-detail-card {
  padding: 3rem;
}

.service-features {
  list-style: none;
  margin-top: 1.5rem;
}

.service-features li {
  padding: 0.5rem 0;
  color: var(--dark-gray);
  position: relative;
  padding-left: 1.5rem;
}

.service-features li::before {
  content: '•';
  color: var(--primary-black);
  position: absolute;
  left: 0;
  top: 0.5rem;
}

/* Stats Section */
.stats-section {
  padding: var(--section-padding);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-top: 4rem;
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: var(--font-weight-bold);
  color: var(--primary-black);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--dark-gray);
  font-size: 1rem;
}

/* Founders Section */
.founders-section {
  padding: var(--section-padding);
}

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

.founder-card {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.founder-image {
  width: 100%;
  height: 300px;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.founder-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-name {
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  margin-bottom: 0.5rem;
}

.founder-title {
  color: var(--dark-gray);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.founder-description {
  line-height: 1.6;
  margin-bottom: 2rem;
}

.founder-expertise h4 {
  font-weight: var(--font-weight-semibold);
  margin-bottom: 1rem;
}

.founder-expertise ul {
  list-style: none;
  margin-bottom: 2rem;
}

.founder-expertise li {
  padding: 0.5rem 0;
  color: var(--dark-gray);
  position: relative;
  padding-left: 1.5rem;
}

.founder-expertise li::before {
  content: '•';
  color: var(--primary-black);
  position: absolute;
  left: 0;
  top: 0.5rem;
}

.founder-contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.founder-contact i {
  width: 16px;
  height: 16px;
}

.founder-contact a {
  color: var(--primary-black);
  text-decoration: none;
}

.founder-contact a:hover {
  text-decoration: underline;
}

/* Values Section */
.values-section {
  padding: var(--section-padding);
}

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

.value-card {
  text-align: center;
  padding: 3rem 2rem;
}

.value-icon {
  margin-bottom: 2rem;
}

.value-icon i {
  width: 48px;
  height: 48px;
  color: var(--primary-black);
}

.value-title {
  font-size: 1.5rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 1rem;
}

.value-description {
  color: var(--dark-gray);
  line-height: 1.6;
}

/* Office Section */
.office-section {
  padding: var(--section-padding);
}

.office-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.office-features {
  margin-top: 2rem;
}

.office-feature {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

.office-feature i {
  width: 20px;
  height: 20px;
  color: var(--primary-black);
}

.office-image {
  border-radius: var(--border-radius);
  overflow: hidden;
}

.office-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

/* Contact Section */
.contact-section {
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/background-waves.jpg');
  background-size: 100% 100%;
  background-position: left center;
  background-repeat: no-repeat;
  opacity: 0.02;
  z-index: 0;
  transform: scale(1.2) rotate(90deg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  position: relative;
  z-index: 1;
}

.contact-info {
  padding: 3rem;
}

.contact-title {
  font-size: 2rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-icon {
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.contact-icon i {
  width: 24px;
  height: 24px;
  color: var(--primary-black);
}

.contact-details h4 {
  font-weight: var(--font-weight-semibold);
  margin-bottom: 0.5rem;
}

.contact-details p {
  color: var(--dark-gray);
  line-height: 1.6;
}

.contact-details a {
  color: var(--dark-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-details a:hover {
  color: var(--primary-black);
}

/* Contact Form */
.contact-form-container {
  padding: 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: var(--font-weight-medium);
  margin-bottom: 0.5rem;
  color: var(--primary-black);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 1rem;
  border: 2px solid var(--medium-gray);
  border-radius: 8px;
  font-family: var(--font-apple);
  font-size: 1rem;
  background: var(--white);
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-black);
}

.form-note {
  color: var(--dark-gray);
  font-size: 0.9rem;
  text-align: center;
  margin-top: 1rem;
}

/* Map Section */
.map-section {
  padding: 2rem 0;
}

.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 8px 32px var(--shadow);
}

/* CTA Section */
.cta-section {
  text-align: center;
  margin-top: 4rem;
}

.cta-text {
  font-size: 1.25rem;
  color: var(--dark-gray);
  margin-bottom: 2rem;
}

/* Footer */
.footer {
  background: var(--primary-black);
  color: var(--white);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/background-waves.jpg');
  background-size: 120% 120%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.05;
  z-index: 0;
  filter: invert(1);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.footer-logo {
  height: 40px;
  width: auto;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.footer-title {
  font-size: 1.1rem;
  font-weight: var(--font-weight-semibold);
  margin-bottom: 1rem;
}

.footer-text {
  color: var(--medium-gray);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.footer-text a {
  color: var(--medium-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-text a:hover {
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  color: var(--medium-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid var(--secondary-black);
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: var(--medium-gray);
}

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

.fade-in {
  animation: fadeInUp 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .services-detail-grid {
    grid-template-columns: 1fr;
  }
  
  .founders-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .office-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width: 480px) {
  :root {
    --container-padding: 0 1rem;
  }
  
  .glass-card {
    padding: 2rem 1.5rem;
  }
  
  .hero-section {
    padding: 6rem 0 4rem;
  }
  
  .page-header {
    padding: 6rem 0 3rem;
  }
}

/* Print Styles */
@media print {
  .navigation,
  .footer {
    display: none;
  }
  
  body::before,
  body::after {
    display: none;
  }
  
  .glass-card {
    background: var(--white);
    border: 1px solid var(--medium-gray);
    box-shadow: none;
  }
}
