* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1e3a5f;
  --secondary: #2d5a8c;
  --accent: #00a8ff;
  --light-bg: #f8f9fa;
  --text-dark: #1a1a1a;
  --text-light: #666666;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body {
  font-family: "Cairo", sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============ NAVBAR ============ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 24px;
  cursor: pointer;
}

/* ============ HERO SECTION ============ */
.hero {
  margin-top: 70px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  background-image: url("https://images.unsplash.com/photo-1517694712202-14dd9538aa97?auto=format&fit=crop&w=1920&q=80");
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 58, 95, 0.85);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}

.hero h1 {
  font-size: clamp(28px, 8vw, 56px);
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease;
}

.hero p {
  font-size: clamp(16px, 3vw, 20px);
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 40px;
  font-weight: 300;
  animation: fadeInUp 1s ease 0.2s backwards;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s ease 0.4s backwards;
}

.btn {
  display: inline-block;
  padding: 14px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 16px;
  font-family: "Cairo", sans-serif;
}

.btn-primary {
  background: var(--accent);
  color: var(--primary);
  box-shadow: 0 5px 15px rgba(0, 168, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 168, 255, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-3px);
}

/* ============ SECTIONS STYLE ============ */
section {
  padding: 80px 0;
}

section h2 {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 900;
  color: var(--primary);
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 20px;
}

section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 18px;
  margin-bottom: 50px;
  font-weight: 300;
}

/* ============ ABOUT SECTION ============ */
.about {
  background: var(--light-bg);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.8;
}

.features-list {
  list-style: none;
  margin-top: 30px;
}

.features-list li {
  padding: 10px 0;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.stat {
  background: var(--white);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.stat:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.stat h3 {
  font-size: 36px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.stat p {
  color: var(--text-light);
  font-size: 14px;
}

/* ============ SERVICES SECTION ============ */
.services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border-top: 4px solid var(--accent);
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow);
  background: linear-gradient(
    135deg,
    rgba(0, 168, 255, 0.05),
    rgba(30, 58, 95, 0.05)
  );
}

.service-icon {
  font-size: 48px;
  margin-bottom: 20px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.2) rotate(10deg);
}

.service-card h3 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 15px;
  font-weight: 700;
}

.service-card p {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 14px;
}

/* ============ PORTFOLIO SECTION ============ */
.portfolio {
  background: var(--light-bg);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.portfolio-item {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.portfolio-image {
  overflow: hidden;
  height: 220px;
  position: relative;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.1);
}

.portfolio-item h3 {
  padding: 20px 20px 10px;
  font-size: 18px;
  color: var(--primary);
  font-weight: 700;
}

.portfolio-item p {
  padding: 0 20px 20px;
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
}

/* ============ TESTIMONIALS SECTION ============ */
.testimonials {
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: var(--light-bg);
  padding: 30px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border-right: 4px solid var(--accent);
}

.testimonial-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.stars {
  color: #ffc107;
  font-size: 16px;
  margin-bottom: 15px;
}

.testimonial-text {
  color: var(--text-light);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  gap: 15px;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.author-avatar {
  font-size: 32px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-author h4 {
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
}

.testimonial-author p {
  color: var(--text-light);
  font-size: 13px;
}

/* ============ CONTACT SECTION ============ */
.contact {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white);
}

.contact h2 {
  color: var(--white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 50px;
}

.contact-form {
  background: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-family: "Cairo", sans-serif;
  font-size: 14px;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 10px rgba(0, 168, 255, 0.3);
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.info-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.info-card h3 {
  color: var(--accent);
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 700;
}

.info-card p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.8;
}

/* ============ FOOTER ============ */
footer {
  background: var(--primary);
  color: var(--white);
  padding: 50px 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-section h4 {
  font-size: 18px;
  margin-bottom: 15px;
  font-weight: 700;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.8;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 12px;
}

.social-links a:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============ RESPONSIVE DESIGN ============ */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 20px;
    gap: 0;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    margin-top: 60px;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .portfolio-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  section {
    padding: 60px 0;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 24px;
  }

  .hero p {
    font-size: 14px;
  }

  section h2 {
    font-size: 28px;
  }

  .logo {
    font-size: 18px;
  }

  .btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .about-stats,
  .footer-content {
    grid-template-columns: 1fr;
  }

  .service-card,
  .portfolio-item,
  .testimonial-card,
  .info-card,
  .contact-form {
    padding: 20px;
  }

  .contact-form {
    padding: 25px 15px;
  }

  .stat h3 {
    font-size: 28px;
  }
}
