* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #ff6b35;
  --secondary: #004e89;
  --accent: #f7b801;
  --dark: #1a1a2e;
  --light: #f8f9fa;
  --text-dark: #2c3e50;
  --text-light: #ffffff;
  --border-color: #e0e0e0;
  --success: #1dd1a1;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Prevent font zoom on input focus for iOS */
input,
select,
textarea,
button {
  font-size: 16px;
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: linear-gradient(135deg, var(--secondary) 0%, #003d6b 100%);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  padding: 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  height: 180px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

.logo-text {
  color: var(--text-light);
}

.logo-highlight {
  color: var(--accent);
  font-weight: 900;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-light);
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
  margin-top: 60px;
  min-height: 100vh;
  background: linear-gradient(135deg, #004e89 0%, #0066bb 50%, #ff6b35 100%);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(255, 107, 53, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(247, 184, 1, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
}

.hero-content {
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-text {
  animation: slideInLeft 1s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hero-title .word {
  display: inline-block;
  animation: fadeInUp 0.8s ease-out forwards;
}

.hero-title .word:nth-child(1) {
  animation-delay: 0s;
}

.hero-title .word:nth-child(2) {
  animation-delay: 0.2s;
}

.hero-title .word:nth-child(3) {
  animation-delay: 0.4s;
}

.highlight {
  color: var(--accent);
  text-shadow: 0 0 30px rgba(247, 184, 1, 0.5);
}

.hero-subtitle {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: var(--accent);
  color: var(--dark);
  box-shadow: 0 10px 30px rgba(247, 184, 1, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(247, 184, 1, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid var(--text-light);
}

.btn-secondary:hover {
  background: var(--text-light);
  color: var(--secondary);
  transform: translateY(-3px);
}

.btn-large {
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
}

.hero-visual {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.floating-card {
  position: absolute;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: float 3s ease-in-out infinite;
}

.card-1 {
  width: 250px;
  height: 180px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.85) 100%
  );
  top: 20px;
  left: 0;
  animation-delay: 0s;
}

.card-2 {
  width: 250px;
  height: 180px;
  background: linear-gradient(
    135deg,
    rgba(247, 184, 1, 0.95) 0%,
    rgba(247, 184, 1, 0.85) 100%
  );
  top: 100px;
  right: 0;
  animation-delay: 0.5s;
}

.card-3 {
  width: 250px;
  height: 180px;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 53, 0.95) 0%,
    rgba(255, 107, 53, 0.85) 100%
  );
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 1s;
}

.card-1 {
  width: 250px;
  height: 180px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.85) 100%
  );
  top: 20px;
  left: 0;
  animation-delay: 0s;
}

.card-2 {
  width: 250px;
  height: 180px;
  background: linear-gradient(
    135deg,
    rgba(247, 184, 1, 0.95) 0%,
    rgba(247, 184, 1, 0.85) 100%
  );
  top: 100px;
  right: 0;
  animation-delay: 0.5s;
}

.card-3 {
  width: 250px;
  height: 180px;
  background: linear-gradient(
    135deg,
    rgba(29, 209, 161, 0.95) 0%,
    rgba(29, 209, 161, 0.85) 100%
  );
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 1s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-30px);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  color: var(--text-light);
  font-size: 0.9rem;
  opacity: 0.8;
}

.mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--text-light);
  border-radius: 12px;
  position: relative;
}

.mouse::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 8px;
  background: var(--text-light);
  left: 50%;
  top: 8px;
  transform: translateX(-50%);
  border-radius: 1px;
  animation: scroll-wheel 1.5s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

@keyframes scroll-wheel {
  0%,
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Services Section */
.services {
  padding: 6rem 2rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(255, 107, 53, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.title-underline {
  height: 6px;
  width: 80px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  margin: 0 auto;
  border-radius: 3px;
  animation: expandWidth 1s ease-out;
}

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 80px;
  }
}

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  position: relative;
  z-index: 1;
}

.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 25px 60px rgba(255, 107, 53, 0.2);
}

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  font-size: 3rem;
}

.icon-svg {
  width: 100%;
  height: 100%;
  color: white;
}

.service-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.service-list {
  list-style: none;
}

.service-list li {
  padding: 0.8rem 0;
  font-size: 0.95rem;
  color: #555;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.checkmark {
  color: var(--success);
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Why Choose Us Section */
.why-choose {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #001a33 0%, var(--secondary) 100%);
  color: var(--text-light);
  position: relative;
  overflow: hidden;
}

.why-choose::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(255, 107, 53, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.why-choose .section-title {
  color: var(--text-light);
}

.why-choose .title-underline {
  margin-left: 0;
  margin-right: auto;
}

.why-choose .section-header {
  text-align: left;
  position: relative;
  z-index: 1;
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}

.feature-item {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  text-align: center;
}

.feature-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-10px);
  border-color: var(--accent);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--dark);
}

.feature-item h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.feature-item p {
  opacity: 0.9;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* CTA Section */
.cta-section {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, var(--primary) 0%, #ff8c42 100%);
  color: var(--text-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before,
.cta-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
}

.cta-section::before {
  top: -50%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: var(--dark);
}

.cta-section::after {
  bottom: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: var(--accent);
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease-out;
}

.cta-title {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.cta-subtitle {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  font-weight: 300;
}

.cta-section .btn {
  background: white;
  color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-section .btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Contact Section */
.contact {
  padding: 6rem 2rem;
  background: var(--light);
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--text-dark);
}

.contact-item {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: white;
  border-radius: 10px;
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.contact-item:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transform: translateX(10px);
}

.contact-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.contact-item .label {
  font-size: 0.85rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-item .value {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--text-light);
  padding: 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: bold;
}

.social-icon:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 107, 53, 0.4);
}

/* Animations for scroll */
[data-aos] {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

[data-aos="scale-in"] {
  animation: scaleIn 0.8s ease-out forwards;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 1rem;
  }

  /* Hide nav links by default on mobile - JS will toggle display */
  .nav-links {
    display: none !important;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--secondary) 0%, #003d6b 100%);
    flex-direction: column;
    gap: 0;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    z-index: 999;
  }

  .nav-links.active {
    display: flex !important;
    animation: slideDown 0.3s ease-out;
  }

  .nav-links li {
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links li:last-child {
    border-bottom: none;
  }

  .nav-links a {
    display: block;
    padding: 1rem 2rem;
    color: var(--text-light);
    transition: all 0.3s ease;
  }

  .nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    padding-left: 2.5rem;
  }

  .hamburger {
    display: flex;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-visual {
    height: 250px;
  }

  .floating-card {
    width: 150px !important;
    height: 120px !important;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .why-choose .section-header {
    text-align: center;
  }

  .why-choose .title-underline {
    margin: 0 auto;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .cta-title {
    font-size: 1.8rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  .cta-subtitle {
    font-size: 1rem;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
  }

  .contact-icon {
    font-size: 2rem;
  }

  .nav-container {
    padding: 0.75rem 1rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }

  .social-links {
    justify-content: center;
  }
}

/* Additional responsive improvements for tablets (600px - 768px) */
@media (max-width: 768px) and (min-width: 480px) {
  .hero-content {
    gap: 1.5rem;
  }

  .hero-visual {
    height: 300px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
  }

  .footer-content {
    flex-direction: column;
  }
}

/* Large screens optimization */
@media (min-width: 1200px) {
  .nav-container {
    max-width: 1400px;
  }

  .section-header {
    margin-bottom: 5rem;
  }

  .hero-title {
    font-size: 4rem;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .btn {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
  }

  .btn:active {
    transform: scale(0.95);
  }

  .nav-links a {
    padding: 1rem 0;
  }

  .contact-item {
    padding: 1.25rem;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  textarea,
  select {
    font-size: 16px;
  }
}
