@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --bg-dark: #070913;
  --bg-card: rgba(15, 18, 36, 0.5);
  --bg-card-hover: rgba(22, 26, 51, 0.7);
  --primary: #6366f1; /* Indigo */
  --primary-glow: rgba(99, 102, 241, 0.25);
  --secondary: #06b6d4; /* Cyan */
  --secondary-glow: rgba(6, 182, 212, 0.25);
  --accent: #ec4899; /* Pink */
  --text-main: #f8fafc;
  --text-muted: #a6b2c2;
  --border-color: rgba(255, 255, 255, 0.06);
  --border-color-hover: rgba(255, 255, 255, 0.15);
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-accent: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1280px;
}

/* Base resets & styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background blob decorations */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.35;
  animation: float 20s infinite alternate;
}

.blob-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: var(--primary);
}

.blob-2 {
  bottom: -10%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: var(--secondary);
  animation-delay: -5s;
}

.blob-3 {
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40vw;
  height: 40vw;
  background: var(--accent);
  opacity: 0.15;
  animation-duration: 25s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(5%, 5%) scale(1.1); }
}

/* Scrollbar styles */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Container */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

/* Typography & Headers */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  color: var(--text-muted);
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.text-gradient-accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 12px;
  font-family: var(--font-title);
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5), 0 0 10px rgba(6, 182, 212, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color-hover);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--text-main);
  transform: translateY(-2px);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 1200px;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  background: rgba(7, 9, 19, 0.6);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all var(--transition-normal);
  padding: 0 2rem;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  transition: opacity var(--transition-fast);
}

.logo-container:hover {
  opacity: 0.9;
}

.logo-img {
  height: 38px;
  width: auto;
  border-radius: 8px;
}

.logo-text {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.75rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
}

/* Call to Action Button in Header */
.nav-btn {
  background: var(--gradient-primary);
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.nav-btn:hover {
  background: var(--gradient-primary);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
  transform: translateY(-1px) !important;
}

.nav-toggle {
  display: none;
}

/* Hero Section */
.hero {
  padding: 180px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.hero-tagline {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 100px;
  color: #a5b4fc;
}

.hero-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 550px;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
}

/* Hero Visual Graphic (Logo Glow Display) */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-glow-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 3rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

.hero-glow-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent, 
    var(--primary) 20%, 
    transparent 40%, 
    transparent 50%, 
    var(--secondary) 70%, 
    transparent 90%
  );
  animation: rotate 12s linear infinite;
  z-index: -1;
  opacity: 0.5;
}

.hero-glow-card-inner {
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  background: #0d111e;
  position: absolute;
  top: 2px;
  left: 2px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.5rem;
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

.hero-glow-card:hover {
  transform: translateY(-8px);
  border-color: rgba(99, 102, 241, 0.4);
}

.hero-logo-large {
  width: 160px;
  height: auto;
  margin-bottom: 2rem;
  filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.5));
  animation: pulse 4s infinite alternate;
}

@keyframes pulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.4)); }
  100% { transform: scale(1.04); filter: drop-shadow(0 0 35px rgba(6, 182, 212, 0.7)); }
}

.hero-logo-sub {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.01em;
}

/* Sections General */
.section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}

.section-tagline {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.section-desc {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Services Section */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 10%, rgba(99, 102, 241, 0.08), transparent 50%);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.75rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(99, 102, 241, 0.15);
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon {
  background: var(--gradient-primary);
  color: #fff;
  transform: rotate(5deg) scale(1.05);
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.35);
}

.service-card:nth-child(2) .service-icon {
  background: var(--secondary-glow);
  color: var(--secondary);
  border-color: rgba(6, 182, 212, 0.15);
}

.service-card:nth-child(2):hover .service-icon {
  background: var(--gradient-primary);
  color: #fff;
}

.service-title {
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.service-desc {
  font-size: 1rem;
  flex-grow: 1;
}

/* Products Section (Own Software Portfolio) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.product-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 25px 50px rgba(0,0,0,0.4), 0 0 25px rgba(6, 182, 212, 0.1);
}

.product-preview {
  position: relative;
  height: 240px;
  background: linear-gradient(135deg, #10162e 0%, #1e295d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Abstract screen simulations for products */
.screen-mockup {
  width: 80%;
  height: 75%;
  background: #060913;
  border-radius: 12px 12px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-card:hover .screen-mockup {
  transform: translateY(10px);
}

.mock-window-bar {
  display: flex;
  gap: 5px;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  flex-shrink: 0;
}

.mockup-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  flex-grow: 1;
}

.mock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}

.mock-line {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  width: 100%;
}

.mock-line.short {
  width: 60%;
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.mock-box {
  height: 50px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 6px;
}

.mock-chart {
  height: 70px;
  background: radial-gradient(circle at center, rgba(6, 182, 212, 0.1), transparent);
  border-radius: 6px;
  border-bottom: 2px solid var(--secondary);
  position: relative;
}

.product-info {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--secondary);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
  display: inline-block;
}

.product-name {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.product-description {
  font-size: 0.95rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-title);
  color: var(--text-main);
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.product-link i {
  transition: transform var(--transition-fast);
}

.product-link:hover {
  color: var(--secondary);
  gap: 0.75rem;
}

.product-link:hover i {
  transform: translateX(2px);
}

/* Technology Stack Section */
.tech-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 2rem;
  width: 100%;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition-normal);
  cursor: default;
}

.tech-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 15px 30px rgba(0,0,0,0.3), 0 0 15px rgba(99, 102, 241, 0.15);
}

.tech-icon {
  font-size: 2.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.2));
}

.tech-name {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-info-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.25rem;
  border: 1px solid rgba(99, 102, 241, 0.1);
}

.contact-detail-text h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.contact-detail-text p {
  color: var(--text-main);
  font-weight: 500;
}

/* Form Styling */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 3rem;
  backdrop-filter: blur(12px);
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-label {
  display: block;
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-input {
  width: 100%;
  background: rgba(7, 9, 19, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.85rem 1.25rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(7, 9, 19, 0.8);
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.15);
}

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

.form-submit-btn {
  width: 100%;
  margin-top: 1rem;
}

.form-success-msg {
  display: none;
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #34d399;
  text-align: center;
  font-weight: 500;
}

.form-error-msg {
  display: none;
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  text-align: center;
  font-weight: 500;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-color);
  padding: 60px 0 40px;
  background: rgba(4, 5, 11, 0.9);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: 4rem;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.footer-logo-img {
  height: 38px;
  width: auto;
  border-radius: 8px;
}

.footer-logo-text {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.footer-tagline {
  font-size: 0.9rem;
}

.footer-column h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-link a:hover {
  color: var(--text-main);
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.footer-social-link:hover {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(6, 182, 212, 0.25);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  font-size: 0.85rem;
}

.footer-legal-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-legal-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-legal-links a:hover {
  color: var(--text-main);
}

/* Animations (Intersection Observer) */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-desc {
    margin: 0 auto 2.5rem;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-visual {
    margin-top: 2rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
  
  .footer-grid .footer-column:last-child {
    grid-column: span 3;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.25rem;
  }
  
  .header {
    top: 0.75rem !important;
    width: calc(100% - 1.5rem) !important;
    padding: 0.75rem 1rem;
    border-radius: 20px;
  }

  .nav {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0;
    height: auto;
  }

  .logo-img {
    height: 32px;
  }

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

  .nav-links {
    display: flex;
    flex-direction: row;
    gap: 0.35rem;
    align-items: center;
  }

  .nav-link {
    font-size: 0.8rem;
    padding: 0.35rem 0.6rem;
  }

  .nav-btn {
    padding: 0.35rem 0.8rem;
  }
  
  .nav-toggle {
    display: none;
  }
  
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-grid .footer-column:last-child {
    grid-column: span 1;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* Modal overlay styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(4, 5, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  width: 90%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 3rem;
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,0.5);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition-fast);
}

.modal-close:hover {
  color: var(--text-main);
}

.modal-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.modal-body h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-body p {
  color: var(--text-main);
  font-size: 0.95rem;
  line-height: 1.6;
}

.modal-body a {
  color: var(--primary);
  text-decoration: none;
}

.modal-body a:hover {
  text-decoration: underline;
}

/* Keyboard Accessibility Focus Outlines */
:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 4px;
}

/* Skip-link styles */
.skip-link {
  position: absolute;
  top: -100px;
  left: 2rem;
  background: var(--gradient-primary);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 0 0 12px 12px;
  z-index: 9999;
  font-family: var(--font-title);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus-visible {
  top: 0;
}

/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: -500px; /* Hidden by default */
  left: 2rem;
  right: 2rem;
  max-width: calc(var(--max-width) - 4rem);
  margin: 0 auto;
  background: rgba(10, 14, 30, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 2rem;
  z-index: 1500;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
  transition: bottom var(--transition-normal);
}

.cookie-banner.active {
  bottom: 2rem;
}

.cookie-banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-banner-content div {
  flex: 1 1 500px;
}

.cookie-banner h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.cookie-banner p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.cookie-banner-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Switch sliders for Cookie preferences */
.cookie-pref-item {
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 0;
}

.cookie-pref-item:last-child {
  border-bottom: none;
}

.cookie-pref-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cookie-pref-header h3 {
  font-size: 1.1rem;
  font-family: var(--font-title);
  font-weight: 600;
  margin: 0;
}

.cookie-pref-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Toggle Switch */
.cookie-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 24px;
}

.cookie-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.1);
  transition: .3s;
  border-radius: 24px;
  border: 1px solid var(--border-color);
}

.cookie-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: var(--text-muted);
  transition: .3s;
  border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider {
  background: var(--gradient-primary);
  border-color: transparent;
}

.cookie-switch input:checked + .cookie-slider:before {
  transform: translateX(22px);
  background-color: #fff;
}

.cookie-switch input:disabled + .cookie-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .cookie-banner {
    left: 1rem;
    right: 1rem;
    padding: 1.5rem;
  }
  
  .cookie-banner-content {
    gap: 1.5rem;
  }
  
  .cookie-banner-actions {
    width: 100%;
  }
  
  .cookie-banner-actions .btn {
    flex: 1 1 120px;
  }
}
