/*
 * Atanexus Website Styles
 *
 * How to modify:
 * 1. Update colors in :root variables
 * 2. Adjust breakpoints for responsive design
 * 3. Modify section spacing using --section-padding
 * 4. Update typography by changing font-family values
 */

/* ==================== CSS Variables ==================== */
:root {
  /* Brand Colors */
  --primary-color: #0a2463;
  --secondary-color: #3d99a6;
  --accent-color: #d1d1d1;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-primary: #ffffff;
  --background-secondary: #f8f9fa;

  /* Gradient */
  --gradient-primary: linear-gradient(135deg, #0a2463 0%, #3d99a6 100%);

  /* Spacing */
  --section-padding: 100px;
  --container-max-width: 1200px;

  /* Typography */
  --font-family: 'Montserrat', sans-serif;
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Shadows */
  --shadow-small: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-large: 0 8px 24px rgba(0, 0, 0, 0.2);

  /* Border Radius */
  --radius-small: 4px;
  --radius-medium: 8px;
  --radius-large: 16px;
}

/* ==================== Global Styles ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  font-weight: var(--font-regular);
  color: var(--text-dark);
  background-color: var(--background-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-padding) 0;
}

/* ==================== Typography ==================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-semibold);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.75rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.section-title {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 2.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-dark);
  opacity: 0.8;
  margin-bottom: 3rem;
  font-size: 1.1rem;
  font-weight: var(--font-light);
}

/* ==================== Buttons ==================== */
.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--radius-medium);
  font-weight: var(--font-medium);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  font-size: 1rem;
  font-family: var(--font-family);
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--text-light);
  border-color: var(--secondary-color);
}

.btn-primary:hover {
  background-color: #2d7a84;
  border-color: #2d7a84;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-light);
  border-color: var(--text-light);
}

.btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.btn-light {
  background-color: var(--text-light);
  color: var(--primary-color);
  border-color: var(--text-light);
}

.btn-light:hover {
  background-color: transparent;
  color: var(--text-light);
  border-color: var(--text-light);
}

.btn-large {
  padding: 16px 48px;
  font-size: 1.1rem;
}

.btn-small {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==================== Navigation ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--background-primary);
  box-shadow: var(--shadow-small);
  z-index: 1000;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  box-shadow: var(--shadow-medium);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 20px;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform var(--transition-normal);
}

.logo-link:hover {
  transform: scale(1.05);
}

.logo {
  width: 180px;
  height: 60px;
  margin-right: 12px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: var(--font-bold);
  color: var(--primary-color);
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: var(--font-medium);
  position: relative;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width var(--transition-normal);
}

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

.nav-link:hover::after {
  width: 100%;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ==================== Hero Section ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--gradient-primary);
  padding-top: 80px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.geometric-pattern {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  background-image:
    linear-gradient(
      45deg,
      transparent 48%,
      var(--text-light) 49%,
      var(--text-light) 51%,
      transparent 52%
    ),
    linear-gradient(
      -45deg,
      transparent 48%,
      var(--text-light) 49%,
      var(--text-light) 51%,
      transparent 52%
    );
  background-size: 80px 80px;
  animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
  0% {
    background-position:
      0 0,
      0 0;
  }
  100% {
    background-position:
      80px 80px,
      -80px 80px;
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-light);
  max-width: 900px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  font-weight: var(--font-bold);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2.5rem;
  font-weight: var(--font-light);
  opacity: 0.95;
}

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

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-arrow {
  width: 30px;
  height: 50px;
  border: 2px solid var(--text-light);
  border-radius: 25px;
  position: relative;
}

.scroll-arrow::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--text-light);
  animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(10px);
  }
  60% {
    transform: translateX(-50%) translateY(5px);
  }
}

/* ==================== About Section ==================== */
.about {
  background-color: var(--background-primary);
}

.about-content {
  max-width: 900px;
  margin: 0 auto 4rem;
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.value-propositions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.value-card {
  text-align: center;
  padding: 2rem;
  border-radius: var(--radius-large);
  background-color: var(--background-secondary);
  transition: all var(--transition-normal);
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.value-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-icon svg {
  width: 40px;
  height: 40px;
  color: var(--text-light);
}

.value-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.value-card p {
  font-size: 1rem;
  color: var(--text-dark);
  opacity: 0.8;
}

/* ==================== Products Section ==================== */
.products {
  background-color: var(--background-secondary);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.product-card {
  background-color: var(--background-primary);
  border-radius: var(--radius-large);
  padding: 2rem;
  box-shadow: var(--shadow-small);
  transition: all var(--transition-normal);
  border: 2px solid transparent;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-large);
  border-color: var(--secondary-color);
}

.product-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1.5rem;
  border-radius: var(--radius-medium);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-icon svg {
  width: 30px;
  height: 30px;
  color: var(--text-light);
}

.product-name {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.product-description {
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.product-features {
  list-style: none;
  margin-bottom: 2rem;
}

.product-features li {
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-dark);
  opacity: 0.9;
}

.product-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: var(--font-bold);
}

.learn-more-btn {
  width: 100%;
}

/* ==================== Portfolio Section ==================== */
.portfolio {
  background-color: var(--background-primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.portfolio-card {
  background-color: var(--background-primary);
  border-radius: var(--radius-large);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  transition: all var(--transition-normal);
  border: 2px solid transparent;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-large);
  border-color: var(--secondary-color);
}

.portfolio-card.featured {
  border-color: var(--secondary-color);
}

.portfolio-image {
  position: relative;
  width: 100%;
  height: 240px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portfolio-image.coming-soon {
  background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
}

.portfolio-image.brand {
  color: #ffffff;
}

.portfolio-image.leapedge {
  background:
    radial-gradient(circle at 20% 20%, rgba(59, 130, 246, 0.35), transparent 55%),
    radial-gradient(circle at 80% 0%, rgba(37, 99, 235, 0.45), transparent 60%),
    linear-gradient(135deg, #0f172a 0%, #1e40af 55%, #2563eb 100%);
}

.portfolio-image.promptcheat {
  background:
    radial-gradient(circle at 25% 30%, rgba(118, 75, 162, 0.45), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(102, 126, 234, 0.35), transparent 60%),
    linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.portfolio-image.citizenready {
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.35), transparent 55%),
    radial-gradient(circle at 80% 80%, rgba(14, 165, 233, 0.25), transparent 60%),
    linear-gradient(135deg, #0f172a 0%, #1e3a8a 50%, #2563eb 100%);
}

.portfolio-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  color: inherit;
  z-index: 2;
  position: relative;
  pointer-events: none;
  transition:
    opacity var(--transition-normal),
    transform var(--transition-normal);
}

.portfolio-brand svg {
  filter: drop-shadow(0 8px 24px rgba(15, 23, 42, 0.35));
}

.portfolio-brand-name {
  font-size: 1.35rem;
  letter-spacing: 0.3rem;
  font-weight: var(--font-semibold);
  text-transform: uppercase;
}

.portfolio-brand-tagline {
  font-size: 0.85rem;
  letter-spacing: 0.25rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.portfolio-image.brand .portfolio-overlay {
  background: rgba(15, 23, 42, 0.9);
  z-index: 3;
}

.portfolio-image.brand .portfolio-overlay .btn {
  transform: translateY(10px);
}

.portfolio-image.brand:hover .portfolio-brand {
  opacity: 0.15;
  transform: scale(0.95);
}

.portfolio-image.promptcheat .portfolio-overlay {
  background: rgba(26, 32, 44, 0.92);
}

.portfolio-image.citizenready .portfolio-overlay {
  background: rgba(2, 6, 23, 0.9);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 36, 99, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.portfolio-card:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay .btn {
  transform: translateY(10px);
  transition: transform var(--transition-normal);
}

.portfolio-card:hover .portfolio-overlay .btn {
  transform: translateY(0);
}

.coming-soon-text {
  color: var(--text-dark);
  font-size: 1.5rem;
  font-weight: var(--font-semibold);
  opacity: 0.5;
}

.portfolio-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: var(--font-semibold);
  z-index: 2;
}

.portfolio-badge.live {
  background-color: #4ade80;
  color: var(--text-light);
  animation: pulse 2s ease-in-out infinite;
}

.portfolio-badge.upcoming {
  background-color: var(--accent-color);
  color: var(--text-dark);
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(74, 222, 128, 0);
  }
}

.portfolio-content {
  padding: 2rem;
}

.portfolio-title {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.portfolio-category {
  color: var(--secondary-color);
  font-size: 0.95rem;
  font-weight: var(--font-medium);
  margin-bottom: 1rem;
}

.portfolio-description {
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  padding: 6px 14px;
  background-color: var(--background-secondary);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: var(--font-medium);
  transition: all var(--transition-fast);
}

.tag:hover {
  background-color: var(--secondary-color);
  color: var(--text-light);
}

/* ==================== Technology Section ==================== */
.technology {
  background-color: var(--background-primary);
}

.tech-stack {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.tech-item {
  text-align: center;
}

.tech-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-icon svg {
  width: 40px;
  height: 40px;
  color: var(--text-light);
}

.tech-item h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: var(--background-secondary);
  border-radius: 4px;
  overflow: hidden;
  margin: 1.5rem 0;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  width: 0;
  transition: width 1.5s ease;
  border-radius: 4px;
}

.tech-description {
  font-size: 0.95rem;
  color: var(--text-dark);
  opacity: 0.8;
}

/* ==================== CTA Section ==================== */
.cta-section {
  background: var(--gradient-primary);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-light);
}

.cta-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.cta-subtitle {
  font-size: 1.2rem;
  margin-bottom: 3rem;
  opacity: 0.95;
}

.cta-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group input {
  flex: 1;
  padding: 16px 24px;
  border: none;
  border-radius: var(--radius-medium);
  font-size: 1rem;
  font-family: var(--font-family);
  outline: none;
}

.form-group input:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.form-group button {
  position: relative;
  min-width: 150px;
}

.btn-loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--text-light);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

button.loading .btn-text {
  display: none;
}

button.loading .btn-loader {
  display: inline-block;
}

.form-message {
  color: var(--text-light);
  margin-top: 1rem;
  font-size: 0.95rem;
}

.form-message.success {
  color: #4ade80;
}

.form-message.error {
  color: #fca5a5;
}

.form-disclaimer {
  font-size: 0.85rem;
  color: var(--text-light);
  opacity: 0.8;
  margin-top: 1rem;
}

/* ==================== Footer ==================== */
.footer {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 60px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h4 {
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

.footer-logo {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-logo .logo {
  width: 150px;
  height: 50px;
  margin-right: 10px;
}

.footer-logo .logo-text {
  font-size: 1.3rem;
  color: var(--text-light);
}

.footer-tagline {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: all var(--transition-normal);
}

.social-links a:hover {
  background-color: var(--secondary-color);
  transform: translateY(-3px);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  opacity: 0.8;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.8;
}

/* ==================== Cookie Banner ==================== */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background-color: var(--background-primary);
  box-shadow: var(--shadow-large);
  border-radius: var(--radius-medium);
  padding: 1.5rem;
  z-index: 1001;
  max-width: 600px;
  margin: 0 auto;
}

.cookie-content p {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.cookie-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

/* ==================== Responsive Design ==================== */

/* Tablets and below (1024px) */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

  .hero-title {
    font-size: 3rem;
  }

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

  .section-title {
    font-size: 2.2rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
  }
}

/* Mobile devices (768px) */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: calc(100vh - 70px);
    background-color: var(--background-primary);
    flex-direction: column;
    align-items: stretch;
    padding: 2rem;
    box-shadow: var(--shadow-large);
    transition: right var(--transition-normal);
    gap: 1rem;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    gap: 1rem;
  }

  .cta-button {
    width: 100%;
  }

  .hero {
    min-height: 80vh;
  }

  .hero-title {
    font-size: 2.2rem;
  }

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

  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .about-text p {
    font-size: 1rem;
  }

  .value-propositions {
    grid-template-columns: 1fr;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .portfolio-image {
    height: 200px;
  }

  .portfolio-content {
    padding: 1.5rem;
  }

  .portfolio-tags {
    gap: 0.4rem;
  }

  .tag {
    font-size: 0.8rem;
    padding: 5px 12px;
  }

  .tech-stack {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cta-title {
    font-size: 1.8rem;
  }

  .cta-subtitle {
    font-size: 1rem;
  }

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

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cookie-banner {
    left: 10px;
    right: 10px;
  }

  .cookie-actions {
    flex-direction: column;
  }
}

/* Small mobile devices (480px) */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .logo-text {
    font-size: 1.2rem;
  }

  .btn {
    padding: 10px 24px;
  }

  .btn-large {
    padding: 12px 32px;
    font-size: 1rem;
  }
}

/* ==================== Print Styles ==================== */
@media print {
  .navbar,
  .scroll-indicator,
  .cookie-banner,
  .btn {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  body {
    color: #000;
    background: #fff;
  }
}

/* ====================  Modal Component ==================== */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.modal-visible {
  opacity: 1;
}

.modal.modal-closing {
  opacity: 0;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.modal-content {
  position: relative;
  background-color: var(--background-primary);
  border-radius: var(--radius-large);
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  z-index: 1;
}

.modal-visible .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-secondary);
  transition:
    color 0.2s ease,
    transform 0.2s ease;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  color: var(--text-primary);
  background-color: var(--background-secondary);
  transform: rotate(90deg);
}

.modal-close:focus {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: var(--primary-color);
}

.modal-message {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 1.5rem 0;
  color: var(--text-secondary);
}

.modal-button {
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-medium);
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Modal Types */
.modal-info .modal-title {
  color: var(--secondary-color);
}

.modal-success .modal-title {
  color: #4ade80;
}

.modal-warning .modal-title {
  color: #fb923c;
}

.modal-error .modal-title {
  color: #ef4444;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-content {
    padding: 1.5rem;
    max-width: 95%;
  }

  .modal-title {
    font-size: 1.25rem;
  }

  .modal-message {
    font-size: 0.9rem;
  }
}
