/*
 * 7 Hills Cyberwall - Updated Stylesheet
 * Professional cybersecurity website with logo-matching color scheme
 */

/* ===== BASE STYLES ===== */
:root {
  /* Updated color palette to match logo */
  --primary-color: #2b5bae;     /* Logo blue */
  --primary-dark: #1e4080;      /* Darker blue */
  --primary-light: #3d6ec2;     /* Lighter blue */
  --secondary-color: #d8b51c;   /* Logo gold/yellow */
  --secondary-dark: #b19617;    /* Darker gold */
  --secondary-light: #e9c93a;   /* Lighter gold */
  --accent-color: #4075c9;      /* Accent blue */
  --accent-neon: #ffcc33;       /* Bright yellow accent */
  
  /* Neutral colors */
  --dark: #0a1428;              /* Very dark blue */
  --dark-gray: #344563;         /* Dark blue-gray */
  --medium-gray: #6b7a99;       /* Medium blue-gray */
  --light-gray: #e9edf7;        /* Light blue-gray */
  --white: #ffffff;
  
  /* Alert colors */
  --success: #00CF91;
  --warning: #FFBB4F;
  --danger: #FF5978;
  
  /* Typography */
  --heading-font: 'Raleway', sans-serif;
  --body-font: 'Raleway', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 5rem;
  
  /* Effects */
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  --box-shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.18);
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --glassmorphism: rgba(255, 255, 255, 0.1);
  --glassmorphism-dark: rgba(10, 20, 40, 0.8);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Account for fixed header */
  font-size: 16px;
}

body {
  font-family: var(--body-font);
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--primary-color);
}

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Updated button styles to match logo colors */
.btn {
  display: inline-block;
  padding: 0.8rem 2.2rem;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  z-index: -1;
}

.btn:hover::before {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(43, 91, 174, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(43, 91, 174, 0.5);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: rgba(43, 91, 174, 0.05);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(43, 91, 174, 0.15);
}

.btn-cta {
  background: linear-gradient(135deg, var(--secondary-color), var(--secondary-light));
  color: var(--dark);
  font-size: 1.1rem;
  padding: 1.1rem 2.8rem;
  box-shadow: 0 10px 25px rgba(216, 181, 28, 0.4);
  border-radius: 50px;
  font-weight: 700;
}

.btn-cta:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 15px 35px rgba(216, 181, 28, 0.5);
  color: var(--dark);
}

.btn-cta::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 300%;
  background: rgba(255, 255, 255, 0.3);
  z-index: 1;
  transform: rotate(35deg);
  top: -100%;
  left: -130%;
  transition: all 0.65s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-cta:hover::after {
  left: 130%;
}

.btn-service {
  background: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 0.7rem 1.6rem;
  margin-top: var(--space-md);
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.btn-service::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--primary-color);
  transition: var(--transition);
  z-index: -1;
}

.btn-service:hover {
  color: var(--white);
}

.btn-service:hover::after {
  height: 100%;
}

.btn-service:hover {
  transform: translateY(-3px);
}

.section-title {
  font-size: 2.6rem;
  margin-bottom: var(--space-md);
  position: relative;
  display: inline-block;
  color: var(--primary-color);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.3rem;
  color: var(--medium-gray);
  margin-bottom: var(--space-lg);
}

.section-description {
  font-size: 1.1rem;
  max-width: 800px;
  margin-bottom: var(--space-lg);
  
  
}

/* ===== ENHANCED HEADER & NAVIGATION ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  background-color: transparent;
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(228, 232, 245, 0.8);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo {
  height: 60px;
  width: auto;
  transition: var(--transition);
}

.header.scrolled .logo {
  height: 50px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  
}

.nav-link {
  color: var(--dark);
  font-weight: 600;
  position: relative;
  padding: 0.5rem 0;
  color: #000;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
  transition: var(--transition);
  border-radius: 50px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.contact-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  padding: 0.6rem 1.7rem;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(43, 91, 174, 0.25);
}

.contact-btn:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(43, 91, 174, 0.35);
  color: var(--white);
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
  z-index: 1000;
}

.hamburger-menu span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--dark);
  border-radius: 3px;
  transition: var(--transition);
}

/* ===== MODERNIZED HERO SECTION WITH ENHANCED ANIMATIONS ===== */
.hero {
  background: linear-gradient(135deg, #1a375e 0%, #2b5bae 50%, #2b5bae 100%);
  color: var(--white);
  padding: calc(120px + var(--space-xl)) 0 var(--space-xl);
  position: relative;
  overflow: hidden;
}

/* Updated hero section with logo inspired colors */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.5;
  animation: gridMove 30s linear infinite;
}

/* Glowing circuit lines */
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 30%;
  background: var(--secondary-color);
  opacity: 0.15;
  transform: translateY(70%) skewY(-5deg) scale(1.5);
  filter: blur(2px);
  animation: glowPulse 6s ease-in-out infinite;
}

.hero-content {
  max-width: 650px;
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease-out;
}

.hero-title {
  font-size: 3.8rem;
  margin-bottom: var(--space-md);
  line-height: 1.2;
  background: linear-gradient(90deg, var(--white) 0%, var(--secondary-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientText 5s ease infinite;
  text-shadow: 0 0 30px rgba(216, 181, 28, 0.5);
}

.hero-subtitle {
  font-size: 1.4rem;
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards 0.5s;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.hero .btn-cta {
  opacity: 0;
  animation: fadeInUp 1s ease-out forwards 0.8s;
}

.hero-waves {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.hero-waves svg {
  position: relative;
  display: block;
  width: calc(100% + 1.3px);
  height: 80px;
  transform: rotateY(180deg);
}

.hero-waves .shape-fill {
  fill: var(--white);
}

/* ===== SECURE BUSINESS SECTION ===== */
.secure-business {
  padding: var(--space-xxl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.secure-business::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(43, 91, 174, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: -1;
}

/* ===== TRUSTED COMPANIES SECTION ===== */
.trusted-companies {
  padding: var(--space-xl) 0;
  background-color: var(--light-gray);
  text-align: center;
  position: relative;
}

.trusted-companies::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 100%);
  z-index: -1;
}

.companies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.company-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  padding: var(--space-md);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100px;
  transform: translateY(0);
  position: relative;
  overflow: hidden;
}

.company-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0) 0%, 
    rgba(255, 255, 255, 0.4) 50%, 
    rgba(255, 255, 255, 0) 100%
  );
  transition: left 0.7s ease;
}

.company-item:hover::before {
  left: 100%;
}

.company-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-hover);
}

.company-logo {
  max-height: 60px;
  max-width: 100%;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
}

.company-item:hover .company-logo {
  filter: grayscale(0);
  opacity: 1;
}

/* ===== MODERNIZED SERVICES SECTION ===== */
.services {
  padding: var(--space-xxl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(43, 91, 174, 0.03) 0%, rgba(255, 255, 255, 0) 50%);
  z-index: -1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.service-card {
  background-color: var(--white);
  border-radius: var(--border-radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  z-index: 1;
  border: 1px solid rgba(232, 236, 247, 0.8);
  
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--secondary-color), var(--secondary-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s ease;
  z-index: 2;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  opacity: 0;
  transition: var(--transition);
  z-index: -1;
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--box-shadow-hover);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover::after {
  opacity: 1;
}

.service-icon-wrapper {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(43, 91, 174, 0.1), rgba(216, 181, 28, 0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  transition: var(--transition);
  position: relative;
}

.service-icon-wrapper::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  z-index: -1;
  opacity: 0;
  transition: var(--transition);
}

.service-card:hover .service-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(43, 91, 174, 0.15), rgba(216, 181, 28, 0.15));
}

.service-card:hover .service-icon-wrapper::after {
  opacity: 0.3;
  filter: blur(6px);
  transform: scale(1.15);
}

.service-icon {
  width: 40px;
  height: 40px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 0 10px rgba(216, 181, 28, 0.5));
}

.service-title {
  font-size: 1.4rem;
  margin-bottom: var(--space-md);
  transition: var(--transition);
  color: var(--primary-color);
}

.service-card:hover .service-title {
  color: var(--primary-color);
}

.service-description {
  color: var(--medium-gray);
  margin-bottom: auto;
  padding-bottom: var(--space-md);
}

/* ===== ENHANCED PROJECT CTA SECTION ===== */
.project-cta {
  padding: var(--space-xxl) 0;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Cyber circuit background with logo-inspired yellow */
.project-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 2px, transparent 2px);
  background-size: 30px 30px;
  animation: patternMove 20s linear infinite;
}

/* Yellow glow effect */
.project-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(216, 181, 28, 0.3) 0%, rgba(43, 91, 174, 0) 70%);
  opacity: 0.6;
  animation: pulse 6s ease-in-out infinite alternate;
}

@keyframes pulse {
  0% {
    opacity: 0.4;
    transform: scale(1);
  }
  100% {
    opacity: 0.7;
    transform: scale(1.2);
  }
}

@keyframes patternMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50%, 50%);
  }
}

.project-cta .container {
  position: relative;
  z-index: 2;
}

.project-cta .section-title,
.project-cta .section-subtitle {
  color: var(--white);
  position: relative;
  z-index: 1;
}

.project-cta .section-title::after {
  background: var(--secondary-color);
}

.project-cta .section-title {
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.project-cta .btn-cta {
  position: relative;
  z-index: 1;
  background: var(--secondary-color);
  color: var(--dark);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  font-weight: 700;
}

.project-cta .btn-cta:hover {
  background: var(--secondary-light);
  color: var(--dark);
  transform: translateY(-7px) scale(1.03);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* ===== CERTIFICATES SECTION ===== */
.certificates {
  padding: var(--space-xxl) 0;
  text-align: center;
  background-color: var(--white);
  position: relative;
  overflow: hidden;
}

.certificates::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(circle at 80% 20%, rgba(43, 91, 174, 0.03) 0%, rgba(255, 255, 255, 0) 50%);
  z-index: -1;
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.certificate-item {
  background-color: var(--white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: 1px solid rgba(232, 236, 247, 0.8);
}

.certificate-item::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(43, 91, 174, 0.05) 0%, rgba(216, 181, 28, 0.05) 100%);
  opacity: 0;
  transition: var(--transition);
}

.certificate-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--box-shadow-hover);
}

.certificate-item:hover::before {
  opacity: 1;
}

.certificate-item img {
  max-height: 180px;
  padding: var(--space-md);
  transition: var(--transition);
  position: relative;
  z-index: 1;
}

.certificate-item:hover img {
  transform: scale(1.08);
}

/* ===== ENHANCED FOOTER ===== */
.footer {
  background-color: var(--dark);
  color: var(--white);
  padding-top: var(--space-xxl);
  position: relative;
  overflow: hidden;
}

/* Cyber circuit background */
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 30px 30px;
  opacity: 0.3;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.footer-logo {
  grid-column: span 1;
}

.footer-logo img {
  width: 150px;
  margin-bottom: var(--space-md);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.footer-logo p {
  color: var(--light-gray);
  margin-bottom: var(--space-lg);
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 80%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  padding-top: 15px;
}




  .social-link::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  top: 100%;
  left: 0;
  transition: var(--transition);
  z-index: -1;
}

.social-link:hover {
  transform: translateY(-5px);
}

.social-link:hover::before {
  top: 0;
}

.social-link img {
  width: 18px;
  height: 18px;
  transition: var(--transition);
  filter: brightness(0) invert(1);
}

.footer-links {
  grid-column: span 1;
}

.footer-links h4 {
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer-links h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 50px;
}

.footer-links a {
  display: block;
  color: var(--light-gray);
  margin-bottom: var(--space-sm);
  transition: var(--transition);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

/* Branches section styling */
.branches-section {
  padding: var(--space-lg) 0;
  position: relative;
  z-index: 1;
}

.branches-section h2 {
  color: var(--white);
  font-size: 1.8rem;
  margin-bottom: var(--space-lg);
  text-align: center;
}

.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.branch-card {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-md);
  padding: var(--space-md);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.branch-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.branch-card h3 {
  color: var(--secondary-color);
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
}

.branch-card p, .branch-card a {
  color: var(--light-gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

.branch-card a {
  color: var(--light-gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

.branch-card a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.footer-bottom {
  padding: var(--space-md) 0;
  background-color: rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-copyright {
  color: var(--medium-gray);
  font-size: 0.9rem;
  margin: 0;
}

/* Back to top button */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  border: none;
  box-shadow: 0 5px 15px rgba(35, 81, 220, 0.3);
  z-index: 100;
}

#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

/* Animation Keyframes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowPulse {
  0% {
    opacity: 0.1;
    filter: blur(2px);
  }
  50% {
    opacity: 0.2;
    filter: blur(5px);
  }
  100% {
    opacity: 0.1;
    filter: blur(2px);
  }
}

@keyframes gradientText {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes gridMove {
  0% {
    background-position: 0px 0px;
  }
  100% {
    background-position: 100px 100px;
  }
}

/* Media Queries for Responsive Design */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3.2rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-logo, .footer-links {
    grid-column: span 1;
  }
}

@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    transition: var(--transition);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 999;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .hamburger-menu {
    display: flex;
    z-index: 1000;
  }
  
  .hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .services-grid, .certificate-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .hero-title {
    font-size: 2.4rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .services-grid, .companies-grid, .certificate-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .footer-logo, .footer-links {
    text-align: center;
  }
  
  .footer-links h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
  
  .social-links {
    justify-content: center;
  
  }
  
  .branches-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero {
    padding-top: calc(100px + var(--space-xl));
  }
  
  .btn-cta {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
  
  .branches-section h2 {
    font-size: 1.5rem;
  }
}

/* Print styles */
@media print {
  .header, .footer, #back-to-top {
    display: none;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  
  .container {
    width: 100%;
    padding: 0;
    max-width: none;
  }
}
/* 1. Hero Scanner Animation */
.hero-scanner {
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #00ffae 0%, #003cff 100%);
  animation: scan 2s linear infinite;
  margin-top: 10px;
  border-radius: 5px;
}

@keyframes scan {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

/* 2. Animated Counter */
.counter {
  font-size: 2rem;
  font-weight: bold;
  color: #00ffae;
  text-align: center;
  margin-top: 20px;
}

/* 3. Hover Reveal on Service Cards */
.service-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: scale(1.05);
}

.service-card .overlay {
  position: absolute;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  color: #fff;
  width: 100%;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  padding: 15px;
  font-size: 0.9rem;
}

.service-card:hover .overlay {
  transform: translateY(0);
}

/* 4. Client Logo Carousel */
.logo-carousel {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  animation: scrollLogos 20s linear infinite;
  gap: 40px;
  padding: 20px 0;
}

.logo-carousel img {
  height: 50px;
  object-fit: contain;
}

@keyframes scrollLogos {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* 5. Dark Mode */
:root {
  --bg: #ffffff;
  --text: #000000;
}

body.dark-mode {
  --bg: #121212;
  --text: #f5f5f5;
  background-color: var(--bg);
  color: var(--text);
}

.dark-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #222;
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 1000;
}

/* 6. Parallax Effect */
.parallax {
  background-image: url('your-background.jpg');
  min-height: 400px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}