/* Google Fonts are loaded dynamically via cookie.js after consent is obtained (GDPR compliance) */

:root {
  /* Clear Light Theme Palette */
  --bg-body: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;
  --border-light: #E2E8F0;
  --border-glow: #93C5FD;
  
  --accent-cyan: #0EA5E9;   /* Sky Blue */
  --accent-blue: #4F46E5;   /* Indigo */
  --accent-light: #EFF6FF;  /* Very Light Blue */
  --text-main: #0F172A;     /* Slate 900 */
  --text-muted: #475569;    /* Slate 600 */
  
  --gradient-primary: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
  --gradient-text: linear-gradient(135deg, #0EA5E9 0%, #4F46E5 100%);
  --shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(14, 165, 233, 0.2);
  --glass-blur: blur(16px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { 
  font-family: 'Inter', sans-serif; 
  background: var(--bg-body); 
  color: var(--text-main); 
  line-height: 1.6; 
  overflow-x: hidden; 
  position: relative;
}

/* Ambient Background Animations (Soft and Clear) */
.ambient-bg {
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 15% 50%, rgba(79, 70, 229, 0.03), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(14, 165, 233, 0.03), transparent 25%);
  z-index: -2;
  pointer-events: none;
}
.ambient-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.25; /* Enhanced for better aesthetic */
  mix-blend-mode: multiply;
  pointer-events: none;
  animation: float 20s infinite alternate cubic-bezier(0.5, 0, 0.5, 1);
}
.ambient-glow.bg-blue {
  background: var(--accent-blue);
  top: -100px;
  left: -200px;
}
.ambient-glow.bg-cyan {
  background: var(--accent-cyan);
  bottom: -100px;
  right: -200px;
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 30px) scale(1.1); }
  100% { transform: translate(-30px, 60px) scale(0.9); }
}

/* Typography */
h1, h2, h3, h4, h5, h6, .logo span {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.03em;
}

/* ─── HEADER ── */
header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-light);
  position: sticky; top: 0; z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
nav { max-width: 1200px; margin: 0 auto; padding: 0 32px; height: 80px; display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-image { height: 42px; width: auto; object-fit: contain; }
.logo span { font-size: 1.4rem; font-weight: 800; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-transform: uppercase; letter-spacing: 0em; }

.nav-links { display: flex; list-style: none; gap: 3rem; }
.nav-links a { 
  color: var(--text-muted); 
  text-decoration: none; 
  font-size: 0.9rem; 
  font-weight: 600; 
  letter-spacing: 0.05em; 
  text-transform: uppercase; 
  transition: all 0.3s ease; 
  position: relative; 
}
.nav-links a::after { 
  content: ''; position: absolute; bottom: -6px; left: 0; 
  width: 0; height: 2px; 
  background: var(--gradient-primary); 
  transition: width 0.3s ease; 
}
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.menu-toggle { display: none; flex-direction: column; cursor: pointer; gap: 6px; }
.menu-toggle span { width: 28px; height: 2px; background: var(--text-main); transition: 0.3s; border-radius: 2px; }

/* ─── HERO ── */
.hero { 
  position: relative; 
  min-height: 90vh; display: flex; align-items: center; justify-content: center; 
  overflow: hidden; 
}
/* For light theme hero, we can use a soft gradient or white overlay over the image */
.hero::before { 
  content: ''; position: absolute; inset: 0; 
  background-image: url('./images/cable.jpg'); 
  background-size: cover; background-position: center; 
  opacity: 0.10; z-index: 0; 
}
.hero::after { 
  content: ''; position: absolute; inset: 0; 
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.4) 0%, var(--bg-body) 100%); z-index: 1; 
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 1000px; padding: 0 32px; }
.hero-content h1 { 
  font-size: clamp(3rem, 7vw, 5.5rem); 
  font-weight: 800; line-height: 1.1; 
  text-transform: uppercase; 
  color: var(--text-main);
  margin-bottom: 1.5rem; 
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) both; 
}
/* Specific text portion for gradient */
.hero-content h1 span {
  background: linear-gradient(270deg, var(--accent-cyan), var(--accent-blue), #db2777, var(--accent-cyan));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 5s ease infinite;
}
.hero-content p { 
  font-size: clamp(1rem, 2vw, 1.2rem); 
  color: var(--text-muted); 
  letter-spacing: 0.05em; 
  font-weight: 500;
  margin-bottom: 3rem; 
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both; 
  max-width: 80%;
  margin-left: auto; margin-right: auto;
}

.cta-button { 
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent-blue); 
  position: relative;
  padding: 16px 48px; 
  font-family: 'Space Grotesk', sans-serif; 
  font-size: 1.1rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; 
  cursor: pointer; 
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); 
  animation: fadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both; 
  border-radius: 40px; /* More modern, pill-shaped */
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
  z-index: 1;
}
.cta-button::after {
  content: ''; position: absolute; inset: -3px; z-index: -2;
  background: var(--gradient-primary);
  border-radius: 40px;
}
.cta-button::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: white;
  border-radius: 40px;
  transition: all 0.4s ease;
}
.cta-button:hover { 
  color: white;
  box-shadow: var(--shadow-hover), var(--shadow-glow);
  transform: translateY(-4px) scale(1.02);
}
.cta-button:hover::before { 
  opacity: 0; 
}

/* ─── SECTION COMMON ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
section { padding: 120px 0; position: relative; z-index: 2; }
.section-label { 
  display: inline-block; font-family: 'Space Grotesk', sans-serif; 
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; 
  color: var(--accent-blue); margin-bottom: 1rem; padding: 0.4rem 1rem; 
  background: var(--accent-light); border: 1px solid rgba(79, 70, 229, 0.1);
  border-radius: 4px;
}
h2 { 
  font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 800; 
  color: var(--text-main); margin-bottom: 1.5rem; line-height: 1.2;
}

/* ─── ABOUT ── */
.about { border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); background: #FFFFFF; }
.about-inner { display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px; align-items: center; }
.about p { font-size: 1.1rem; color: var(--text-muted); line-height: 1.8; white-space: pre-line; }
.about-image { 
  width: 100%; height: 450px; object-fit: cover; display: block; 
  border-radius: 16px; box-shadow: var(--shadow-hover);
}
.about-stats { 
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 3rem; 
}
.stat-box { 
  padding: 2.5rem 1.5rem; background: var(--bg-body); 
  border: 1px solid var(--border-light); text-align: center; border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.stat-box:hover {
  transform: translateY(-5px); box-shadow: var(--shadow-subtle);
}
.stat-box strong { 
  display: block; font-family: 'Space Grotesk', sans-serif; 
  font-size: 3rem; font-weight: 800; 
  background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; 
  line-height: 1; margin-bottom: 0.3rem;
}
.stat-box span { font-size: 0.85rem; color: var(--text-muted); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }

/* ─── SERVICES ── */
.services h2 { margin-bottom: 3rem; text-align: center; }
.services .section-label { display: block; width: fit-content; margin: 0 auto 1rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; }

.service-card { 
  background: rgba(255, 255, 255, 0.6); 
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 16px; 
  padding: 2.5rem; transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1); 
  position: relative; overflow: hidden; box-shadow: var(--shadow-subtle);
}
.service-card::before { 
  content: ''; position: absolute; inset: 0; 
  background: var(--gradient-primary); 
  opacity: 0; transition: opacity 0.5s ease;
  z-index: -1;
  pointer-events: none;
}
.service-card:hover { 
  box-shadow: var(--shadow-hover); border-color: transparent; transform: translateY(-10px) scale(1.02); 
}
.service-card:hover::before { opacity: 0.03; }
.service-card:hover h3 { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; }
.service-card img { 
  width: 100%; height: 220px; object-fit: cover; margin-bottom: 1.8rem; 
  border-radius: 8px; transition: transform 0.4s;
}
.service-card:hover img { transform: scale(1.02); }
.service-card h3 { 
  font-size: 1.5rem; font-weight: 700; text-transform: uppercase; 
  letter-spacing: 0.02em; color: var(--text-main); margin-bottom: 1rem; 
}
.service-card p, .service-card .service-desc { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; white-space: pre-line; }
.service-card ul { list-style: none; padding: 0; margin-top: 1.5rem; border-top: 1px solid var(--border-light); padding-top: 1.5rem; }
.service-card ul li { color: var(--text-muted); font-size: 1rem; padding: 0.4rem 0 0.4rem 1.8rem; position: relative; font-weight: 500;}
.service-card ul li::before { 
  content: '✓'; position: absolute; left: 0; color: var(--accent-cyan); font-weight: 800; font-family: system-ui;
}

/* ─── CONTACT ── */
.contact { background: #FFFFFF; border-top: 1px solid var(--border-light); }
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: start; }
.contact-info, .contact-form-wrapper { 
  background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.8); border-radius: 16px; 
  padding: 3.5rem 3rem; box-shadow: var(--shadow-subtle);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-info:hover, .contact-form-wrapper:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}
.contact-info h3, .contact-form-wrapper h3 { font-size: 1.8rem; font-weight: 700; text-transform: uppercase; color: var(--text-main); margin-bottom: 2.5rem; }

.contact-item { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 2rem; }
.contact-item:last-child { margin-bottom: 0; }
.contact-icon { 
  width: 60px; height: 60px; min-width: 60px; 
  background: var(--accent-light); border-radius: 12px; 
  display: flex; align-items: center; justify-content: center; color: var(--accent-blue); 
  transition: transform 0.3s, background 0.3s;
}
.contact-item:hover .contact-icon {
  transform: scale(1.05) rotate(5deg);
  background: #E0E7FF;
}
.contact-icon svg { width: 26px; height: 26px; }
.contact-details { display: flex; flex-direction: column; gap: 0.4rem; }
.contact-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.contact-value { font-size: 1.1rem; color: var(--text-main); line-height: 1.5; font-weight: 500;}

/* ─── FORM ── */
#contactForm { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
#contactForm input:not([type="checkbox"]), #contactForm textarea { 
  padding: 16px 20px; background: var(--bg-body); 
  border: 1px solid var(--border-light); color: var(--text-main); 
  font-family: 'Inter', sans-serif; font-size: 1.05rem; width: 100%; 
  transition: all 0.3s ease; outline: none; border-radius: 8px; 
}
#contactForm input:not([type="checkbox"])::placeholder, #contactForm textarea::placeholder { color: var(--text-muted); opacity: 0.7; }
#contactForm input:not([type="checkbox"]):focus, #contactForm textarea:focus { 
  border-color: var(--accent-blue); 
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1); 
  background: #FFFFFF; 
}
.form-note { font-size: 0.9rem; color: var(--text-muted); margin: -0.2rem 0 0; }

.form-checkbox input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  flex-shrink: 0;
  width: 20px; height: 20px; border: 2px solid var(--border-light);
  border-radius: 4px; background: var(--bg-card);
  cursor: pointer; margin-top: 2px;
  transition: all 0.2s;
}
.form-checkbox input[type="checkbox"]:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
  outline: none;
}
.form-checkbox input[type="checkbox"]:checked {
  background-color: var(--accent-blue);
  border-color: var(--accent-blue);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 8l3.5 3.5L13 4.5' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px;
}
.form-checkbox label { color: var(--text-muted) !important; font-size: 0.95rem !important; }
.form-checkbox a { color: var(--accent-blue) !important; text-decoration: underline; text-underline-offset: 4px; font-weight: 600 !important; }

#contactForm button { 
  background: var(--gradient-primary); color: #fff; border: none; padding: 18px; 
  font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700; 
  letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; 
  transition: all 0.3s ease; border-radius: 40px; margin-top: 1rem;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}
#contactForm button:hover { 
  transform: translateY(-3px); box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}
#contactForm button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
#formMessage { 
  margin-top: 1rem; padding: 16px 20px; font-size: 1rem; display: none; 
  border-left: 4px solid var(--accent-cyan); background: var(--accent-light); 
  color: var(--accent-blue); border-radius: 0 8px 8px 0; animation: fadeIn 0.3s ease; font-weight: 500;
}

/* ─── FOOTER ── */
footer { 
  background: var(--text-main); border-top: 1px solid var(--border-light); 
  padding: 4rem 32px; text-align: center; position: relative; z-index: 2;
}
footer p { font-size: 1rem; color: rgba(255, 255, 255, 0.5); letter-spacing: 0.05em; font-weight: 500; }
.footer-links { margin-top: 1.5rem; display: flex; justify-content: center; gap: 30px; }
.footer-links a { 
  font-size: 0.95rem; color: rgba(255, 255, 255, 0.7); text-decoration: none; 
  font-family: 'Space Grotesk', sans-serif; text-transform: uppercase; 
  letter-spacing: 0.1em; font-weight: 600; transition: color 0.3s; 
}
.footer-links a:hover { color: #FFFFFF; }

/* ─── ANIMATIONS & REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.97);
  filter: blur(4px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

img { max-width: 100%; height: auto; display: block; }

/* ─── COOKIE BANNER ── */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 400px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: var(--shadow-hover);
  padding: 24px;
  z-index: 9999;
  transform: translateY(150%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.cookie-banner-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.cookie-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-cyan);
}

.cookie-banner h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.cookie-banner p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
}

.cookie-banner p a {
  color: var(--accent-blue);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
}

.cookie-actions {
  display: flex;
  gap: 12px;
}

.cookie-btn {
  flex: 1;
  padding: 12px;
  border-radius: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  border: none;
}

.cookie-btn-accept {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.cookie-btn-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

.cookie-btn-reject {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

.cookie-btn-reject:hover {
  background: var(--bg-body);
  color: var(--text-main);
}

@media (max-width: 600px) {
  .cookie-banner {
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    border-left: none;
    border-right: none;
  }
}

/* ─── RESPONSIVE ── */
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-image { height: 300px; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 768px) {
  nav { padding: 0 20px; height: 75px; }
  .logo span { font-size: 1.3rem; }
  .nav-links { 
    position: fixed; top: 75px; left: -100%; width: 100%; height: calc(100vh - 75px);
    flex-direction: column; background: rgba(255, 255, 255, 0.98); backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--border-light); padding: 3rem 2rem; gap: 2.5rem; 
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1); z-index: 999; 
  }
  .nav-links.active { left: 0; }
  .menu-toggle { display: flex; }
  .menu-toggle span { background: var(--text-main); }
  .services-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  section { padding: 80px 0; }
  .container { padding: 0 20px; }
  .contact-info, .contact-form-wrapper, .service-card, .stat-box { padding: 2rem; }
  h2 { font-size: 2.2rem; }
}
