/* Light Theme Variables */
:root[data-theme="light"]{
  --brand-primary:#009EDB;
  --brand-secondary:#00C9FF;
  --brand-dark:#1c4764;
  --brand-accent:#0ea5a3;
  --text-primary:#1a1a1a;
  --text-secondary:#4a5568;
  --text-muted:#718096;
  --bg-primary:#ffffff;
  --bg-secondary:#f7fafc;
  --bg-tertiary:#edf2f7;
  --border-color:#e2e8f0;
  --shadow-sm:0 1px 3px rgba(0,0,0,0.1);
  --shadow-md:0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg:0 10px 15px rgba(0,0,0,0.1);
  --hero-gradient-start:#f0f9ff;
  --hero-gradient-end:#e0f2fe;
  --card-bg:#ffffff;
  --footer-bg:#f8fafc;
}

/* Dark Theme Variables (Default) */
:root,
:root[data-theme="dark"]{
  --brand-primary:#00D9FF;
  --brand-secondary:#00A8E8;
  --brand-dark:#0ea5a3;
  --brand-accent:#5dfdcb;
  --text-primary:#ffffff;
  --text-secondary:#e2e8f0;
  --text-muted:#cbd5e0;
  --bg-primary:#0a0e13;
  --bg-secondary:#151b23;
  --bg-tertiary:#1e2730;
  --border-color:#2d3748;
  --shadow-sm:0 1px 3px rgba(0,0,0,0.5);
  --shadow-md:0 4px 6px rgba(0,0,0,0.6);
  --shadow-lg:0 10px 15px rgba(0,217,255,0.15);
  --hero-gradient-start:#0f1419;
  --hero-gradient-end:#1a202c;
  --card-bg:#151b23;
  --footer-bg:#0a0e13;
}

body{
  font-family:'Segoe UI',system-ui,-apple-system,BlinkMacSystemFont,Roboto,'Helvetica Neue',Arial,sans-serif;
  background:var(--bg-primary);
  color:var(--text-primary);
  line-height:1.6;
  overflow-y:scroll;
  transition:background-color 0.3s ease, color 0.3s ease;
}

/* Header & Navigation */
.site-header{
  background:var(--bg-primary);
  border-bottom:1px solid var(--border-color);
  box-shadow:var(--shadow-sm);
  position:sticky;
  top:0;
  z-index:1000;
  transition:background-color 0.3s ease;
}

.navbar{
  padding:0.5rem 0;
}

.navbar-brand{
  font-weight:600;
  color:var(--brand-primary)!important;
}

.logo{
  height:80px;
  width:auto;
}

/* Make navbar toggler icon visible */
.navbar-toggler{
  border:2px solid var(--text-primary);
  padding:0.5rem;
}

.navbar-toggler-icon{
  background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link{
  color:var(--text-primary)!important;
  font-weight:400;
  font-size:15px;
  padding:0.5rem 1rem!important;
  transition:color 0.2s ease;
}

.nav-link:hover{
  color:var(--brand-primary)!important;
}

/* Hero Section */
.hero-section{
  background:linear-gradient(135deg,var(--hero-gradient-start) 0%,var(--hero-gradient-end) 100%);
  min-height:350px;
  display:flex;
  align-items:flex-start;
  position:relative;
  overflow:hidden;
  transition:background 0.3s ease;
}

.hero-section::before{
  content:'';
  position:absolute;
  top:0;
  right:0;
  width:50%;
  height:100%;
  background:linear-gradient(135deg,rgba(0,201,255,0.08) 0%,rgba(0,158,219,0.12) 100%);
  border-radius:0 0 0 100%;
  transition:background 0.3s ease;
}

.hero-title{
  font-size:3.5rem;
  font-weight:600;
  color:var(--text-primary);
  line-height:1.2;
  margin-top:0;
  margin-bottom:1.5rem;
}

.hero-subtitle{
  font-size:1.25rem;
  color:var(--text-secondary);
  line-height:1.6;
  margin-bottom:2rem;
  max-width:700px;
  margin-left:0;
  margin-right:0;
  text-align:left;
  font-weight:500;
  letter-spacing:0.01em;
}

.btn-hero-primary{
  background:var(--brand-primary);
  border:none;
  color:#fff;
  font-weight:600;
  padding:0.875rem 2rem;
  border-radius:4px;
  transition:all 0.2s ease;
}

.btn-hero-primary:hover{
  background:var(--brand-secondary);
  transform:translateY(-2px);
  box-shadow:0 8px 16px rgba(0,201,255,0.3);
  color:#fff;
}

.btn-hero-secondary{
  background:transparent;
  border:2px solid var(--brand-primary);
  color:var(--brand-primary);
  font-weight:600;
  padding:0.75rem 2rem;
  border-radius:4px;
  transition:all 0.2s ease;
}

.btn-hero-secondary:hover{
  background:var(--brand-primary);
  color:#fff;
}

/* Section Titles */
.section-title{
  font-size:2.5rem;
  font-weight:600;
  color:var(--text-primary);
  margin-bottom:1rem;
}

/* Featured Section */
.featured-section{
  background:var(--bg-primary);
  transition:background-color 0.3s ease;
}

.featured-card{
  padding:2rem;
  border-radius:8px;
  background:var(--card-bg);
  border:1px solid var(--border-color);
  transition:all 0.3s ease;
  height:100%;
}

.featured-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-lg);
  border-color:var(--brand-primary);
}

.card-icon{
  width:48px;
  height:48px;
}

.featured-title{
  font-size:1.25rem;
  font-weight:600;
  color:var(--text-primary);
  margin-bottom:1rem;
}

.featured-excerpt{
  color:var(--text-muted);
  margin-bottom:1rem;
  line-height:1.6;
}

.featured-link{
  color:var(--brand-primary);
  text-decoration:none;
  font-weight:600;
  font-size:0.95rem;
  transition:color 0.2s ease;
}

.featured-link:hover{
  color:var(--brand-secondary);
  text-decoration:underline;
}

/* Solutions Section */
.solutions-section{
  background:var(--bg-secondary);
  transition:background-color 0.3s ease;
}

.solution-card{
  background:var(--card-bg);
  border-radius:8px;
  border:1px solid var(--border-color);
  padding:2rem;
  height:100%;
  transition:all 0.3s ease;
}

.solution-card:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow-md);
}

.solution-title{
  font-size:1.5rem;
  font-weight:600;
  margin-bottom:0.5rem;
}

.solution-title a{
  color:var(--text-primary);
  text-decoration:none;
  transition:color 0.2s ease;
}

.solution-title a:hover{
  color:var(--brand-primary);
}

.solution-text{
  color:var(--text-secondary);
  margin-bottom:1rem;
}

.solution-link{
  color:var(--brand-primary);
  text-decoration:none;
  font-weight:600;
  font-size:0.95rem;
  transition:color 0.2s ease;
}

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

/* CTA Section */
.cta-section{
  background:var(--bg-primary);
  transition:background-color 0.3s ease;
}

.cta-title{
  font-size:2.5rem;
  font-weight:600;
  color:var(--text-primary);
}

.cta-card{
  padding:2rem;
  background:var(--bg-secondary);
  border-radius:8px;
  height:100%;
  transition:background-color 0.3s ease;
}

/* Buttons */
.btn-primary{
  background:var(--brand-primary);
  border-color:var(--brand-primary);
  font-weight:600;
  padding:0.625rem 1.5rem;
  border-radius:4px;
  transition:all 0.2s ease;
}

.btn-primary:hover{
  background:var(--brand-secondary);
  border-color:var(--brand-secondary);
  transform:translateY(-1px);
}

.btn-outline-primary{
  color:var(--brand-primary);
  border-color:var(--brand-primary);
  font-weight:600;
  padding:0.625rem 1.5rem;
  border-radius:4px;
  transition:all 0.2s ease;
}

.btn-outline-primary:hover{
  background:var(--brand-primary);
  border-color:var(--brand-primary);
  color:#fff;
}

/* Footer */
footer{
  background:var(--footer-bg);
  border-top:1px solid var(--border-color);
  margin-top:4rem;
  transition:background-color 0.3s ease;
}



/* About Page */
.expertise-card{
  text-align:center;
  padding:2rem 1.5rem;
  background:var(--card-bg);
  border-radius:8px;
  border:1px solid var(--border-color);
  transition:all 0.3s ease;
  height:100%;
}

.expertise-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-lg);
  border-color:var(--brand-primary);
}

.expertise-icon{
  display:flex;
  justify-content:center;
}

.approach-item{
  position:relative;
  padding-left:3rem;
}

.approach-number{
  position:absolute;
  left:0;
  top:0;
  width:2rem;
  height:2rem;
  background:var(--brand-primary);
  color:#fff;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:0.875rem;
}

.stats-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:1.5rem;
}

.stat-card{
  background:var(--card-bg);
  padding:2rem;
  border-radius:8px;
  text-align:center;
  border:1px solid var(--border-color);
  transition:all 0.3s ease;
}

.stat-card:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow-lg);
}

.stat-number{
  font-size:2.5rem;
  font-weight:700;
  color:var(--brand-primary);
  line-height:1;
  margin-bottom:0.5rem;
}

.stat-label{
  color:var(--text-muted);
  font-size:0.875rem;
  font-weight:600;
}

.tech-card{
  background:var(--card-bg);
  border:1px solid var(--border-color);
  border-radius:6px;
  padding:1rem;
  text-align:center;
  font-weight:600;
  color:var(--text-primary);
  transition:all 0.2s ease;
}

.tech-card:hover{
  border-color:var(--brand-primary);
  background:var(--brand-primary);
  color:#fff;
  transform:translateY(-2px);
}

.bg-gradient{
  background:linear-gradient(135deg,var(--brand-primary) 0%,var(--brand-secondary) 100%);
}

.text-white-50{
  color:rgba(255,255,255,0.7);
}

.btn-light{
  background:var(--card-bg);
  color:var(--brand-primary);
  border:1px solid var(--border-color);
  font-weight:600;
  transition:all 0.2s ease;
}

.btn-light:hover{
  background:var(--bg-secondary);
  color:var(--brand-secondary);
  transform:translateY(-2px);
}

.contact-form-container{
  background:var(--card-bg);
  padding:2rem;
  border-radius:8px;
  border:1px solid var(--border-color);
  transition:background-color 0.3s ease;
}

.contact-form .form-label{
  font-weight:600;
  color:var(--text-primary);
  margin-bottom:0.5rem;
}

.contact-form .form-control{
  border:1px solid var(--border-color);
  background:var(--bg-primary);
  color:var(--text-primary);
  border-radius:4px;
  padding:0.75rem;
  transition:border-color 0.2s ease,box-shadow 0.2s ease;
}

.contact-form .form-control:focus{
  border-color:var(--brand-primary);
  box-shadow:0 0 0 0.2rem rgba(0,201,255,0.2);
  background:var(--bg-primary);
  color:var(--text-primary);
}

.contact-info{
  background:var(--card-bg);
  padding:2rem;
  border-radius:8px;
  border:1px solid var(--border-color);
  height:100%;
  transition:background-color 0.3s ease;
}

.contact-item{
  padding-bottom:1.5rem;
  border-bottom:1px solid var(--border-color);
}

.contact-item:last-child{
  border-bottom:none;
  padding-bottom:0;
}

.contact-icon svg{
  width:24px;
  height:24px;
}

.contact-link{
  color:var(--brand-primary);
  text-decoration:none;
  font-weight:600;
  transition:color 0.2s ease;
}

.contact-link:hover{
  color:var(--brand-secondary);
  text-decoration:underline;
}

.expertise-list{
  list-style:none;
  padding:0;
  margin:0;
}

.expertise-list li{
  padding:0.5rem 0;
  padding-left:1.5rem;
  position:relative;
  color:var(--text-secondary);
}

.expertise-list li::before{
  content:'✓';
  position:absolute;
  left:0;
  color:var(--brand-primary);
  font-weight:bold;
}

.quick-link-card{
  padding:1.5rem;
}

/* Text Muted Color Override for Better Visibility */
.text-muted{
  color:var(--text-muted)!important;
}

/* Ensure good contrast for all text elements */
h1, h2, h3, h4, h5, h6{
  color:var(--text-primary);
}

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

/* Theme Toggle Button */
.theme-toggle{
  position:fixed;
  bottom:2rem;
  right:2rem;
  width:4rem;
  height:4rem;
  border-radius:50%;
  background:linear-gradient(135deg, #00D9FF 0%, #00A8E8 100%);
  border:3px solid #ffffff;
  color:#ffffff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 4px 20px rgba(0,217,255,0.6), 0 0 0 0 rgba(0,217,255,0.4);
  transition:all 0.3s ease;
  z-index:9999;
  animation:pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow:0 4px 20px rgba(0,217,255,0.6), 0 0 0 0 rgba(0,217,255,0.4);
  }
  50% {
    box-shadow:0 4px 20px rgba(0,217,255,0.8), 0 0 0 10px rgba(0,217,255,0);
  }
  100% {
    box-shadow:0 4px 20px rgba(0,217,255,0.6), 0 0 0 0 rgba(0,217,255,0);
  }
}

.theme-toggle:hover{
  transform:scale(1.15) rotate(20deg);
  box-shadow:0 6px 30px rgba(0,217,255,0.9);
  animation:none;
}

.theme-toggle svg{
  width:1.75rem;
  height:1.75rem;
  transition:transform 0.3s ease;
  filter:drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.theme-toggle:active{
  transform:scale(0.95);
}

/* Responsive */
@media (max-width:768px){
  .hero-title{
    font-size:2.5rem;
  }
  .hero-subtitle{
    font-size:1.1rem;
  }
  .section-title{
    font-size:2rem;
  }
  .logo{
    height:50px;
  }
  .navbar-collapse{
    background:var(--bg-secondary);
    padding:1rem;
    margin-top:0.5rem;
    border-radius:8px;
  }
  .contact-form-container,
  .contact-info{
    margin-bottom:2rem;
  }
  .theme-toggle{
    bottom:1.5rem;
    right:1.5rem;
    width:3.5rem;
    height:3.5rem;
  }
  .theme-toggle svg{
    width:1.5rem;
    height:1.5rem;
  }
}
