/* Colors */
:root {
  --primary-color: #29a1d8;
  --primary-color-hover: #38a9dd;
  --bg-color: #eef2ff;
  --shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.07);
}

.primary-color {
  color: var(--primary-color);
}

/* Fonts */
@font-face {
  font-family: 'Poppins';
  src: url('/app/assets/pages/home/about/fonts/Poppins-Regular.ttf');
}

@font-face {
  font-family: 'PoppinsL';
  src: url('/app/assets/pages/home/about/fonts/Poppins-Light.ttf');
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h2 {
  font-family: ui-sans-serif;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: transparent;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo .logo-img {
  height: 50px;
  object-fit: contain;
  object-position: center;
}

/* Desktop Menu */
.desktop-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.nav-link:hover {
  color: var(--primary-color);
  background: rgba(41, 161, 216, 0.1);
}

/* Mobile Menu Button */
.menu-btn {
  display: none;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 400;
  color: #333;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hamburger span {
  width: 20px;
  height: 2px;
  background: #333;
  border-radius: 1px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.menu-btn.active .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.active .hamburger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-btn.active .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Dropdown Menu */
.mobile-menu {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid lightgray;
  padding: 1rem;
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav-link {
  display: block;
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 1rem;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(10px);
  animation: slideInUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.mobile-nav-link:nth-child(1) {
  animation-delay: 0.1s;
}

.mobile-nav-link:nth-child(2) {
  animation-delay: 0.2s;
}

.mobile-nav-link:hover {
  background: rgba(41, 161, 216, 0.1);
  color: var(--primary-color);
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: white;
  color: black;
  padding: 60px 0 30px;
}

.footer-top img {
  width: 300px;
  margin-bottom: 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  text-decoration: none;
  transition: color 0.3s ease;
  color: black;
}

.footer-section ul li a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: start;
}

.copyright {
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

/* Contact Hero Section */
.contact-hero {
  padding: 120px 0 0px;
  background: transparent;
  color: #333;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: ui-sans-serif;
  color: var(--primary-color);
}

.contact-subtitle {
  font-size: 1.2rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

/* Contact Form Section */
.contact-form-section {
  padding-block: 50px;
  background: white;
  position: relative;
}

.contact-form-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  text-align: left;
  grid-column: 1;
}

.contact-info h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-weight: 700;
}

.contact-info h3 {
  font-size: 1.5rem;
  color: #333;
  font-weight: 400;
}

/* Contact Form */
.contact-form {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  grid-column: 1;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #333;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group label:after {
  content: '';
}

.form-group label[for]:after {
  content: '';
}

/* Required field indicator */
.form-group label:has(+ input[required]):after,
.form-group label:has(+ textarea[required]):after {
  content: ' *';
  color: #dc3545;
  font-weight: bold;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #e8e4f3;
  position: relative;
  z-index: 2;
  display: block;
  color: #333;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #666;
  font-weight: 500;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background: #d4c5e8;
  box-shadow: 0 0 0 3px rgba(41, 161, 216, 0.1);
  transform: translateY(-2px);
}

.submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
}

.submit-btn:hover {
  background: var(--primary-color-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(41, 161, 216, 0.3);
}

.submit-btn i {
  font-size: 1rem;
}

/* Footer */
.footer {
  background: #1a1a1a;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-top {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-logo {
  height: 60px;
  object-fit: contain;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  color: #999;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.copyright {
  color: #666;
  font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .desktop-menu {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .contact-hero-content h1 {
    font-size: 2.5rem;
  }

  .contact-form-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info {
    grid-column: 1;
    text-align: center;
  }

  .contact-form {
    grid-column: 1;
    padding: 0;
  }

  .illustration-section {
    grid-column: 1;
    order: -1;
  }

  .contact-info h2 {
    font-size: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .contact-hero {
    padding: 100px 0 60px;
  }

  .contact-hero-content h1 {
    font-size: 2rem;
  }

  .contact-form-section {
    padding: 60px 0;
  }

  .contact-form {
    padding: 1.5rem;
  }
}

/* Form Validation Styles - Only show colors on error */
.form-group input.error,
.form-group textarea.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.field-error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
  position: relative;
  z-index: 1;
  background: transparent;
}

/* Success Message Styles */
.success-message {
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 10;
  background: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  border: 1px solid #c3e6cb;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  border: 1px solid #f5c6cb;
}

/* Illustration Section */
.illustration-section {
  grid-column: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.contact-illustration {
  max-width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
}
