/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Chipad Round Color Palette - Modern Dark Tech Theme */
:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #38bdf8;
  --accent: #06b6d4;
  --accent-light: #22d3ee;
  --electric: #3b82f6;
  --cyan: #06b6d4;
  --light: #0f172a;
  --light-bg: #1e293b;
  --dark: #020617;
  --white: #ffffff;
  --gray: #94a3b8;
  --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #3b82f6 50%, #06b6d4 100%);
  --gradient-hero: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
}

body {
  font-family: 'Inter', 'Montserrat', Arial, sans-serif;
  background: var(--light);
  color: var(--white);
}

.bg-primary {
  background: var(--gradient-hero) !important;
}
.bg-dark {
  background: var(--dark) !important;
}
.bg-light {
  background: var(--light-bg) !important;
}
.text-accent {
  color: var(--accent) !important;
}
.btn-accent {
  background: var(--gradient-accent);
  color: var(--white);
  border: none;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4);
  position: relative;
  overflow: hidden;
}
.btn-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
.btn-accent:hover::before {
  left: 100%;
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(6, 182, 212, 0.6);
}
.btn-outline-light {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}
.btn-outline-light:hover {
  background: var(--accent);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.4);
}

.navbar {
  font-family: 'Montserrat', Arial, sans-serif;
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(6, 182, 212, 0.2);
}
.navbar-brand {
  font-size: 2rem;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  font-weight: 700;
  text-transform: uppercase;
}
.logo-shape {
  display: inline-block;
  width: 36px;
  height: 36px;
  margin-right: 12px;
  background: var(--gradient-accent);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  animation: logo-glow 3s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.6);
}
@keyframes logo-glow {
  0%, 100% { 
    transform: scale(1); 
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.6);
  }
  50% { 
    transform: scale(1.1); 
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.9);
  }
}
.nav-link {
  color: var(--gray) !important;
  font-weight: 500;
  margin-left: 1rem;
  transition: all 0.3s ease;
  position: relative;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-accent);
  transition: width 0.3s ease;
}
.nav-link:hover {
  color: var(--accent) !important;
}
.nav-link:hover::after {
  width: 100%;
}

.hero-section {
  background: var(--gradient-hero);
  color: var(--white);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
  pointer-events: none;
}
.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(90deg, transparent 0%, rgba(6, 182, 212, 0.03) 50%, transparent 100%),
    linear-gradient(0deg, transparent 0%, rgba(59, 130, 246, 0.03) 50%, transparent 100%);
  pointer-events: none;
  animation: grid-move 20s linear infinite;
}
@keyframes grid-move {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}
.hero-title .highlight {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 30px rgba(6, 182, 212, 0.5);
}
.hero-visual {
  position: relative;
  min-height: 300px;
  height: 100%;
}
.css-shape {
  display: inline-block;
  margin: 0 10px;
  position: absolute;
  z-index: 1;
  opacity: 0.8;
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.4);
  animation-duration: 7s;
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  filter: blur(0.5px);
}
.shape-hex {
  width: 90px;
  height: 90px;
  background: var(--gradient-accent);
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  top: 30px;
  left: 40px;
  animation-name: float-hex;
}
.shape-circle {
  width: 70px;
  height: 70px;
  background: var(--electric);
  border-radius: 50%;
  top: 120px;
  left: 120px;
  animation-name: float-circle;
  animation-delay: 1.5s;
  box-shadow: 0 0 25px rgba(59, 130, 246, 0.5);
}
.shape-triangle {
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  border-bottom: 70px solid var(--accent);
  top: 80px;
  left: 200px;
  animation-name: float-triangle;
  animation-delay: 2.5s;
  filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.6));
}
.shape-square {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  border-radius: 8px;
  top: 180px;
  left: 60px;
  animation-name: float-square;
  animation-delay: 3.5s;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.5);
}
.shape-diamond {
  width: 60px;
  height: 60px;
  background: var(--gradient-accent);
  transform: rotate(45deg);
  top: 200px;
  left: 220px;
  animation-name: float-diamond;
  animation-delay: 4.5s;
}

@keyframes float-hex {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
  50% { transform: translateY(-18px) scale(1.08) rotate(8deg); }
}
@keyframes float-circle {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.12); }
}
@keyframes float-triangle {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
  50% { transform: translateY(-16px) scale(1.05) rotate(6deg); }
}
@keyframes float-square {
  0%, 100% { transform: translateY(0) scale(1) rotate(0deg); }
  50% { transform: translateY(-10px) scale(1.09) rotate(-8deg); }
}
@keyframes float-diamond {
  0%, 100% { transform: translateY(0) scale(1) rotate(45deg); }
  50% { transform: translateY(-14px) scale(1.13) rotate(60deg); }
}

.hero-visual, .about-visual {
  position: relative;
  min-height: 320px;
  height: 100%;
  z-index: 1;
}

/* Responsive Tweaks for Animated Shapes */
@media (max-width: 991px) {
  .hero-visual, .about-visual {
    min-height: 180px;
  }
  .css-shape {
    position: static;
    display: inline-block;
    margin: 10px 5px;
    animation: none;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
  }
}

.section-title {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 0.5rem;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 2px;
}
.section-subtitle {
  color: var(--gray);
  margin-bottom: 2.5rem;
}
.service-card {
  background: var(--light-bg);
  border: 1px solid rgba(6, 182, 212, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border-radius: 1rem;
  padding: 2.2rem 1.5rem 1.5rem 1.5rem;
  border-top: 3px solid transparent;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-card:hover {
  box-shadow: 0 8px 40px rgba(6, 182, 212, 0.3);
  transform: translateY(-8px);
  border-color: rgba(6, 182, 212, 0.5);
  background: rgba(30, 41, 59, 0.8);
}
.service-icon {
  margin-bottom: 1.2rem;
}
.service-features li {
  margin-bottom: 0.5rem;
  color: var(--accent);
  font-weight: 500;
}

/* Add a subtle fade-in for hero content */
.hero-content {
  animation: fadein-hero 1.2s cubic-bezier(.4,0,.2,1) 0.2s both;
  position: relative;
  z-index: 2;
}
@keyframes fadein-hero {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: none; }
}

/* About section shapes layering */
.about-visual .css-shape {
  z-index: 2;
  opacity: 0.7;
} 

/* --- About Section Redesign --- */
.about-section {
  position: relative;
  background: var(--gradient-hero);
  color: var(--white);
  overflow: hidden;
  z-index: 1;
  border-top: 1px solid rgba(6, 182, 212, 0.2);
}
.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 40%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
  pointer-events: none;
}
.about-bg-shapes {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
.about-bg-shapes .about-hex {
  width: 180px; height: 180px;
  left: -60px; top: 10%;
  opacity: 0.1;
  background: var(--gradient-accent);
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  animation: about-float-hex 8s ease-in-out infinite;
}
.about-bg-shapes .about-circle {
  width: 120px; height: 120px;
  right: 10%; top: 60%;
  opacity: 0.12;
  background: var(--electric);
  border-radius: 50%;
  animation: about-float-circle 7s ease-in-out infinite;
}
.about-bg-shapes .about-diamond {
  width: 100px; height: 100px;
  left: 60%; bottom: -40px;
  opacity: 0.1;
  background: var(--accent-light);
  transform: rotate(45deg);
  animation: about-float-diamond 9s ease-in-out infinite;
}
@keyframes about-float-hex {
  0%,100% { transform: translateY(0) scale(1) rotate(0deg); }
  50% { transform: translateY(-18px) scale(1.08) rotate(8deg); }
}
@keyframes about-float-circle {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.12); }
}
@keyframes about-float-diamond {
  0%,100% { transform: translateY(0) scale(1) rotate(45deg); }
  50% { transform: translateY(-14px) scale(1.13) rotate(60deg); }
}

.about-content {
  position: relative;
  z-index: 2;
  background: transparent;
  padding: 2rem 0 2rem 0.5rem;
}
.about-accent-bar {
  width: 50px;
  height: 4px;
  background: var(--gradient-accent);
  border-radius: 2px;
  margin-bottom: 1.2rem;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}
.about-description {
  font-size: 1.15rem;
  color: var(--gray);
  opacity: 0.95;
  line-height: 1.8;
}
.about-list {
  list-style: none;
  padding-left: 0;
}
.about-list li {
  display: flex;
  align-items: center;
  font-size: 1.05rem;
  margin-bottom: 0.7rem;
  color: var(--gray);
  opacity: 0.95;
}
.about-list-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 0.7em;
  box-shadow: 0 0 8px rgba(6, 182, 212, 0.6);
}

.about-stats-cards {
  position: relative;
  z-index: 2;
  margin-top: 1.5rem;
}
.about-stat-card {
  min-width: 220px;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  padding: 1.1rem 2.2rem 1.1rem 1.2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(6, 182, 212, 0.3);
  transition: all 0.3s ease;
  align-items: center;
}
.about-stat-card:hover {
  box-shadow: 0 8px 40px rgba(6, 182, 212, 0.4);
  transform: translateY(-4px);
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(6, 182, 212, 0.6);
}
.about-stat-icon {
  font-size: 2.1rem;
  color: var(--accent);
  background: rgba(6, 182, 212, 0.2);
  border-radius: 50%;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  margin-right: 0.7rem;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

/* Fade-in/slide-in animations */
.fadein-left {
  opacity: 0;
  transform: translateX(-40px);
  animation: fadein-left 1.1s cubic-bezier(.4,0,.2,1) 0.2s both;
}
.fadein-right {
  opacity: 0;
  transform: translateX(40px);
  animation: fadein-right 1.1s cubic-bezier(.4,0,.2,1) 0.4s both;
}
@keyframes fadein-left {
  to { opacity: 1; transform: none; }
}
@keyframes fadein-right {
  to { opacity: 1; transform: none; }
}

@media (max-width: 991px) {
  .about-content {
    padding: 1.2rem 0 1.2rem 0.2rem;
  }
  .about-stats-cards {
    margin-top: 2.5rem;
  }
  .about-stat-card {
    min-width: 160px;
    padding: 1rem 1.2rem 1rem 1rem;
  }
}
@media (max-width: 767px) {
  .about-section {
    padding: 2.5rem 0;
  }
  .about-content {
    padding: 0.5rem 0;
  }
  .about-stats-cards {
    gap: 1.2rem;
  }
}

.footer {
  background: var(--dark);
  color: var(--gray);
  font-size: 1rem;
  border-top: 1px solid rgba(6, 182, 212, 0.2);
}
.footer a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
}
.footer a:hover {
  color: var(--accent-light);
  text-shadow: 0 0 10px rgba(6, 182, 212, 0.6);
}
