/* Global Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* Typography */
.text-big {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #1e3a8a;
  line-height: 1.2;
}

.text-small {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 2rem;
}

.sectionTag {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1e3a8a;
}

.sectionSubTag {
  font-size: 1.125rem;
  color: #6b7280;
  line-height: 1.7;
}

.text-center {
  text-align: center;
}

/* Buttons */
.btn {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border: none;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.25);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
}

.btn-secondary {
  background: linear-gradient(135deg, #6b7280, #4b5563);
  box-shadow: 0 4px 14px rgba(107, 114, 128, 0.25);
}

.btn-secondary:hover {
  box-shadow: 0 8px 25px rgba(107, 114, 128, 0.35);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(30, 58, 138, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 2rem;
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.logo img {
  height: 45px;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

.nav-list {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
  justify-content: center;
  align-items: center;
}

.nav-list li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-list li a:hover,
.nav-list li a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.1);
  color: #e0e7ff;
}

.nav-list li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: #e0e7ff;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-list li a:hover::after,
.nav-list li a[aria-current="page"]::after {
  width: 80%;
}

.rightNav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#search {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: none;
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transition: all 0.3s ease;
}

#search::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

#search:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.firstSection {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #dbeafe, #eff6ff, #f8fafc);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
}

.box-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  gap: 3rem;
}

.firstHalf {
  flex: 1 1 500px;
}

.secondHalf {
  flex: 1 1 500px;
  display: flex;
  justify-content: center;
}

.secondHalf img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.secondHalf img:hover {
  transform: scale(1.02);
}

.buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Content Sections */
section {
  padding: 5rem 2rem;
}

.secRight, .secLeft, .secRight1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.secRight .paras, .secRight1 .paras {
  order: 1;
  flex: 1 1 55%;
}

.secRight .thumbnail, .secRight1 .thumbnail {
  order: 2;
  flex: 1 1 40%;
}

.secLeft .paras {
  order: 2;
  flex: 1 1 55%;
}

.secLeft .thumbnail {
  order: 1;
  flex: 1 1 40%;
}

.thumbnail {
  text-align: center;
}

.thumbnail img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.thumbnail img:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Services Section */
.services {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  padding: 5rem 2rem;
}

.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 3rem;
}

.service-box {
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-box:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.service-box h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e3a8a;
  margin: 1.5rem 0 1rem 0;
}

.service-box p {
  color: #6b7280;
  line-height: 1.6;
}

.service-icon {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.service-box:hover .service-icon {
  transform: scale(1.1);
}

/* Contact Section */
.contact {
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  padding: 5rem 2rem;
  text-align: center;
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: #1e3a8a;
}

.form {
  max-width: 600px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-input {
  padding: 1rem;
  border-radius: 8px;
  border: 2px solid #e5e7eb;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
  color: #9ca3af;
}

.form-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btndark {
  background: linear-gradient(135deg, #1e3a8a, #1e40af);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(30, 58, 138, 0.25);
}

.btndark:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 58, 138, 0.35);
}

/* Footer */
footer {
  padding: 2rem;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #e2e8f0;
  text-align: center;
}

.text-footer {
  margin: 0;
  font-size: 0.875rem;
  letter-spacing: 0.5px;
}

/* Back to Top Button */
#backToTop {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
  z-index: 999;
  transition: all 0.3s ease;
  font-size: 18px;
  font-weight: bold;
}

#backToTop:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .box-main,
  .secRight,
  .secLeft,
  .secRight1 {
    gap: 2rem;
  }
  
  .services-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-top: 1rem;
    gap: 0.5rem;
  }

  .nav-list li a {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
  }

  .rightNav {
    margin-top: 1rem;
    width: 100%;
    justify-content: flex-start;
  }

  #search {
    width: 70%;
  }

  .box-main,
  .secRight,
  .secLeft,
  .secRight1 {
    flex-direction: column;
    text-align: center;
  }

  .buttons {
    justify-content: center;
  }

  .services-container {
    grid-template-columns: 1fr;
  }

  .form-buttons {
    flex-direction: column;
  }

  .btndark {
    width: 100%;
  }
}

@media (max-width: 480px) {
  section {
    padding: 3rem 1rem;
  }

  .firstSection {
    padding: 4rem 1rem;
  }

  .buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .service-box {
    padding: 2rem 1.5rem;
  }

  #backToTop {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 16px;
  }
}

/* Utility Classes */
.bg {
  background: white;
}

hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
  margin: 0;
}

/* Animation Enhancements */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* Focus styles for accessibility */
.btn:focus,
.btndark:focus,
.form-input:focus,
#search:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Loading states */
.btn:disabled,
.btndark:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* Notification styles */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #3b82f6;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  max-width: 400px;
}

.notification-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.notification-message {
  flex: 1;
}

.notification-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.notification-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.notification-success {
  background: #10b981;
}

.notification-error {
  background: #ef4444;
}

.notification-info {
  background: #3b82f6;
}

/* Active navigation state */
.nav-list li a.active {
  background: rgba(255, 255, 255, 0.2);
  color: #e0e7ff;
  font-weight: 600;
}

/* Enhanced focus states */
.btn:focus-visible,
.btndark:focus-visible,
.form-input:focus-visible,
#search:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Smooth transitions for all interactive elements */
* {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Print styles */
@media print {
  .navbar,
  #backToTop,
  .notification {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  .text-big {
    font-size: 18pt;
  }
  
  .sectionTag {
    font-size: 16pt;
  }
}
