/* Madrid Tech Hub - Custom Styles */

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

/* Custom CSS Variables - Madrid Theme Colors */
:root {
  --madrid-red: #d32f2f;
  --madrid-dark-red: #b71c1c;
  --madrid-gray: #424242;
  --madrid-light-gray: #f5f5f5;
  --madrid-white: #ffffff;
  --tech-blue: #1565c0;
  --tech-light-blue: #e3f2fd;
}

/* Base Typography */
* {
  font-family: "Poppins", sans-serif;
}

body {
  font-weight: 300;
  color: var(--madrid-gray);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  color: var(--madrid-gray);
}

/* Custom Utility Classes */
.text-madrid-red {
  color: var(--madrid-red);
}
.text-madrid-dark-red {
  color: var(--madrid-dark-red);
}
.text-madrid-gray {
  color: var(--madrid-gray);
}
.text-tech-blue {
  color: var(--tech-blue);
}

.bg-madrid-red {
  background-color: var(--madrid-red);
}
.bg-madrid-dark-red {
  background-color: var(--madrid-dark-red);
}
.bg-madrid-gray {
  background-color: var(--madrid-gray);
}
.bg-madrid-light-gray {
  background-color: var(--madrid-light-gray);
}
.bg-tech-blue {
  background-color: var(--tech-blue);
}
.bg-tech-light-blue {
  background-color: var(--tech-light-blue);
}

.border-madrid-red {
  border-color: var(--madrid-red);
}
.border-tech-blue {
  border-color: var(--tech-blue);
}

/* Hero Section Styling */
.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(211, 47, 47, 0.8) 0%,
    rgba(21, 101, 192, 0.6) 100%
  );
}

/* Feature Cards Hover Effects */
.feature-card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--madrid-red);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Button Styles */
.btn-primary {
  background-color: var(--madrid-red);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: 2px solid var(--madrid-red);
}

.btn-primary:hover {
  background-color: var(--madrid-dark-red);
  border-color: var(--madrid-dark-red);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--madrid-red);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: 2px solid var(--madrid-red);
}

.btn-secondary:hover {
  background-color: var(--madrid-red);
  color: white;
  transform: translateY(-2px);
}

/* Navigation Styles */
.nav-link {
  color: var(--madrid-gray);
  font-weight: 400;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--madrid-red);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    135deg,
    var(--madrid-gray) 0%,
    var(--madrid-dark-red) 100%
  );
  color: white;
  z-index: 1000;
  transform: translateY(100%);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  border-top: 3px solid var(--madrid-red);
}

.cookie-banner.show {
  transform: translateY(0);
  animation: slideUpBounce 0.6s ease-out;
}

@keyframes slideUpBounce {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  60% {
    transform: translateY(-10px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  }
  50% {
    box-shadow: 0 -8px 30px rgba(211, 47, 47, 0.25);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Cookie Banner Buttons */
.cookie-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 14px;
  min-width: 120px;
}

.cookie-btn-accept {
  background-color: var(--madrid-red);
  color: white;
  border: 2px solid var(--madrid-red);
}

.cookie-btn-accept:hover {
  background-color: var(--madrid-dark-red);
  border-color: var(--madrid-dark-red);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(211, 47, 47, 0.3);
}

.cookie-btn-decline {
  background-color: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cookie-btn-decline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: white;
  transform: translateY(-2px);
}

.cookie-icon {
  font-size: 24px;
  margin-right: 12px;
  color: var(--madrid-red);
}

.cookie-text {
  line-height: 1.5;
}

.cookie-link {
  color: #ffd700;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.cookie-link:hover {
  color: #fff8dc;
}

/* Cookie Settings Panel */
.cookie-settings {
  background-color: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
}

.cookie-category {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 12px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.cookie-category:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.cookie-category input[type="checkbox"] {
  accent-color: var(--madrid-red);
  width: 18px;
  height: 18px;
}

/* Cookie banner responsive improvements */
@media (max-width: 640px) {
  .cookie-banner {
    padding: 16px 0;
  }

  .cookie-btn {
    padding: 10px 16px;
    font-size: 13px;
    min-width: 100px;
  }

  .cookie-icon {
    font-size: 20px;
    margin-right: 8px;
  }
}

/* Stats Counter Animation */
.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .feature-card {
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .tablet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1025px) {
  .desktop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* Blog Article Styles */
.article-content {
  line-height: 1.8;
}

.article-content h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--madrid-red);
}

.article-content h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--tech-blue);
}

.article-content p {
  margin-bottom: 1rem;
}

.article-content ul {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

/* Contact Form Styles */
.contact-form input,
.contact-form textarea {
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: "Poppins", sans-serif;
  transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--madrid-red);
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

/* Mobile Navigation */
.mobile-menu {
  display: none;
}

@media (max-width: 768px) {
  .desktop-menu {
    display: none;
  }

  .mobile-menu {
    display: block;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Tech Pattern Background */
.tech-pattern {
  background-image: radial-gradient(
      circle at 20% 50%,
      rgba(21, 101, 192, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(211, 47, 47, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 80%,
      rgba(21, 101, 192, 0.08) 0%,
      transparent 50%
    );
}
