@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  /* Mediterranean Palette */
  --bg-main: #ffffff;
  --bg-secondary: #f8f9fa;
  /* Warm very light gray/sand */
  --text-main: #0f172a;
  /* Deep Navy */
  --text-muted: #64748b;
  /* Soft cool gray */
  --accent-primary: #0d9488;
  /* Teal/Turquoise - Sea color */
  --accent-secondary: #0ea5e9;
  /* Sky Blue */
  --accent-pop: #f59e0b;
  /* Sun Yellow/Orange for subtle highlights */

  --surface-white: #ffffff;
  --surface-alt: #f1f5f9;

  --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 40px -10px rgba(13, 148, 136, 0.15);
  --border-light: #e2e8f0;

  --radius: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height: 80px;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: 'Outfit', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
  line-height: 1.1;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  color: var(--text-main);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-main) 30%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
}

p.lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2rem;
  font-weight: 400;
}

.text-gradient {
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-muted {
  color: var(--text-muted);
}

.accent {
  color: var(--accent-primary);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 100px 0;
  position: relative;
}

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  font-size: 1rem;
}

@media (max-width: 600px) {
  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    width: auto !important;
    /* Override inline styles if necessary */
    justify-content: center;
  }
}

.btn-primary {
  background: var(--accent-primary);
  color: #ffffff;
  border: 1px solid transparent;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
  background: #0f766e;
  /* Darker teal */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--accent-primary);
  background: var(--surface-alt);
  color: var(--accent-primary);
}

.card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 2.5rem;
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-hover);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
}

.nav-links {
  display: none;
  gap: 2rem;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

color: var(--accent-primary);
}

/* Mobile Menu Styles */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  padding: 0.5rem;
}

.cta-header {
  display: none;
  /* Hidden on very small screens if needed, or adjusted */
}

@media (min-width: 900px) {
  .cta-header {
    display: inline-flex;
  }

  .menu-toggle {
    display: none;
  }
}

@media (max-width: 899px) {
  .menu-toggle {
    display: block;
    order: 3;
    /* Rightmost */
  }

  .cta-header {
    display: inline-flex;
    margin-left: auto;
    margin-right: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  /* Dropdown Menu */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-soft);
    display: none;
    /* Hidden by default */
    align-items: center;
    gap: 1.5rem;
  }

  .nav-links.active {
    display: flex;
    animation: slideDown 0.3s ease-out forwards;
  }

  .lang-switcher {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border-light);
    padding-top: 1rem;
    width: 100%;
    justify-content: center;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero */
.hero {
  padding-top: 180px;
  min-height: 100vh;
  /* Keep full height for impact */
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.8)), url('assets/ibiza-tech.png');
  background-size: cover;
  background-position: center bottom;
}

/* Abstract shapes instead of neon glow */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.1) 0%, transparent 70%);
  /* Soft teal blob */
  z-index: -1;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.1) 0%, transparent 70%);
  /* Soft blue blob */
  z-index: -1;
  pointer-events: none;
}

/* Services Grid */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-3 {
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--surface-alt);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-primary);
  transition: var(--transition);
}

.card:hover .service-icon {
  background: var(--accent-primary);
  color: #fff;
}

/* New Section Style for 'Fresh' look */
.bg-soft {
  background-color: var(--bg-secondary);
}

/* Footer */
footer {
  border-top: 1px solid var(--border-light);
  background: var(--bg-secondary);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
  color: var(--text-main);
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--accent-primary);
  transform: translateX(5px);
}

/* Cookie Banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-light);
  padding: 1.5rem 0;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.05);
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  visibility: hidden;
}

#cookie-banner.show {
  transform: translateY(0);
  visibility: visible;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: 100%;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Utilities */
.hidden {
  display: none;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}