/* 
   Main CSS File
   Color Palette:
   - Main Colors: #20B2AA (turquoise), #F0F0F0 (light gray), #192841 (dark blue)
   - Accent: #FF7F50 (orange)
*/

/* Base Styles */
:root {
  --primary: #20B2AA;
  --primary-light: #5ccbc5;
  --secondary: #192841;
  --accent: #FF7F50;
  --light: #F0F0F0;
  --gray: #808080;
  --dark: #333333;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: linear-gradient(135deg, #ffffff, #f9f9f9);
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--secondary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background-color: var(--accent);
  margin: 10px auto 0;
}

p {
  margin-bottom: 1rem;
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

a:hover {
  color: var(--primary-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

section {
  padding: 5rem 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.btn-primary {
  background-color: var(--accent);
  color: white;
}

.btn-primary:hover {
  background-color: #ff9672;
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(255, 127, 80, 0.3);
  color: white;
}

.btn-secondary {
  background-color: var(--primary);
  color: white;
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 7px 20px rgba(32, 178, 170, 0.3);
  color: white;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  z-index: 1000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo svg {
  width: 40px;
  height: 40px;
  margin-right: 10px;
  fill: var(--primary);
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
}

/* Navigation */
.nav-desktop {
  display: flex;
}

.nav-mobile {
  display: none;
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 2rem;
}

.nav-link {
  color: var(--secondary);
  font-weight: 600;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.burger {
  display: none;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: var(--secondary);
  margin: 5px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(32, 178, 170, 0.2), rgba(25, 40, 65, 0.2)), url('./img/d19pX.jpg') center/cover;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(25, 40, 65, 0.7);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  animation: fadeInUp 1s ease forwards;
}

.hero h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Services Section */
.services {
  background-color: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  margin-bottom: 1rem;
  color: var(--primary);
}

/* Testimonials Section */
.testimonials {
  background: linear-gradient(135deg, #f9f9f9, #f5f5f5);
}

.testimonial-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.testimonial-content {
  padding: 2rem;
  position: relative;
}

.testimonial-content::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 4rem;
  color: rgba(32, 178, 170, 0.1);
  font-family: Georgia, serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
  background-color: var(--light);
}

.testimonial-author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 1rem;
}

.testimonial-author h4 {
  margin-bottom: 0.2rem;
  font-size: 1rem;
}

.testimonial-author p {
  margin-bottom: 0;
  font-size: 0.8rem;
  color: var(--gray);
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-image {
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-info {
  padding: 1.5rem;
}

/* About Section */
.about {
  background: linear-gradient(135deg, rgba(32, 178, 170, 0.1), rgba(25, 40, 65, 0.1));
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
}

.about-image {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-text p:last-of-type {
  margin-bottom: 2rem;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
}

.contact-icon {
  margin-right: 1rem;
  color: var(--primary);
}

.contact-map {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* Form Section */
.form-section {
  background-color: white;
}

.contact-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem;
  background-color: white;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--secondary);
}

input, select, textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #e0e0e0;
  border-radius: 5px;
  font-family: inherit;
  transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.services-checkboxes, .consent-checkboxes {
  margin-bottom: 1.5rem;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 10px;
}

.checkbox-wrapper label {
  margin-bottom: 0;
  font-weight: normal;
}

.required label::after {
  content: '*';
  color: red;
  margin-left: 3px;
}

/* Legal Section */
.legal-section {
  background-color: #f5f5f5;
  padding: 3rem 0;
}

.legal-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Footer */
footer {
  background-color: var(--secondary);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-logo svg {
  width: 30px;
  height: 30px;
  fill: white;
  margin-right: 10px;
}

.footer-about p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-links h4, .footer-contact h4 {
  color: white;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #cccccc;
}

.footer-links a:hover {
  color: white;
}

.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.footer-contact svg {
  width: 16px;
  height: 16px;
  margin-right: 10px;
  fill: var(--primary);
}

.copyright {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Cookie Popup */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(25, 40, 65, 0.95);
  color: white;
  padding: 1rem;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.3s ease-in-out;
}

.cookie-popup.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.cookie-content p {
  margin-bottom: 1rem;
  margin-right: 2rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.cookie-link {
  color: white;
  text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fadeIn 1s ease forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 1s ease forwards;
}

/* Mobile Navigation */
@media screen and (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  
  .burger {
    display: block;
  }
  
  .nav-mobile {
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    height: 100vh;
    background-color: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  
  .nav-mobile.active {
    transform: translateX(0);
  }
  
  .mobile-nav-list {
    list-style: none;
    width: 100%;
  }
  
  .mobile-nav-item {
    margin: 1.5rem 0;
    text-align: center;
  }
  
  .mobile-nav-link {
    font-size: 1.2rem;
    padding: 0.5rem 2rem;
    display: block;
  }
  
  .mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
  }
  
  .nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out;
  }
  
  .nav-overlay.active {
    opacity: 1;
    pointer-events: all;
  }
  
  /* Animation for burger icon */
  .toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
  }
  
  .toggle .line2 {
    opacity: 0;
  }
  
  .toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
  }
}

/* Responsive adjustments */
@media screen and (max-width: 991px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .about-content,
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media screen and (max-width: 576px) {
  section {
    padding: 3rem 0;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .testimonial-slider,
  .projects-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mt-3 {
  margin-top: 3rem;
} 