/* Modern CSS Reset and Base Styles */
* {
  box-sizing: border-box;
}

body { 
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.7;
  color: #1e293b;
  min-height: 100vh;
} 

/* Header Styles */
#header { 
  background: #475569;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(71, 85, 105, 0.3);
}

#header nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo img {
  height: 50px;
  width: auto;
  transition: transform 0.3s ease;
}

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

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
  letter-spacing: 0.08em;
}

/* Navigation Styles */
ul.topnav { 
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.topnav li { 
  display: inline-block;
}

ul.topnav li a {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}



ul.topnav li a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

ul.topnav li a.active {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  border: none;
  background: none;
}

.mobile-nav-toggle span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

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

.mobile-nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Content Styles */
#content { 
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
}

#content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #475569;
  border-radius: 20px 20px 0 0;
}

/* Typography */
h1 { 
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.5rem;
  position: relative;
  letter-spacing: -0.025em;
}

h1::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #475569;
  border-radius: 2px;
}

h2 {
  font-size: 1.6rem;
  color: #1e293b;
  margin: 1.5rem 0 1rem 0;
  font-weight: 700;
  letter-spacing: -0.025em;
  position: relative;
}

h2::before {
  content: '';
  position: absolute;
  left: -1rem;
  top: 0.5rem;
  width: 4px;
  height: 2rem;
  background: #475569;
  border-radius: 2px;
}

h3 {
  font-size: 1.2rem;
  color: #334155;
  margin: 1rem 0 0.75rem 0;
  font-weight: 600;
}

p { 
  margin-bottom: 1.2rem;
  font-size: 1rem;
  color: #475569;
  line-height: 1.6;
  font-weight: 400;
}

/* Home page specific */
.hero {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(71, 85, 105, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn::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 ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: #475569;
  color: white;
  box-shadow: 0 4px 14px rgba(71, 85, 105, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(71, 85, 105, 0.4);
}

.btn-secondary {
  background: rgba(71, 85, 105, 0.1);
  color: #475569;
  border: 2px solid rgba(71, 85, 105, 0.2);
}

.btn-secondary:hover {
  background: rgba(71, 85, 105, 0.15);
  border-color: rgba(71, 85, 105, 0.3);
  transform: translateY(-2px);
}

img.mainpage-banner { 
  display: block;
  margin: 0 auto 1.5rem auto;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}

img.mainpage-banner:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

/* Features section */
.features {
  margin-top: 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.feature-card {
  background: rgba(248, 250, 252, 0.8);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: #475569;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

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

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border-color: rgba(71, 85, 105, 0.2);
}

.feature-card h3 {
  color: #1e293b;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.feature-card p {
  color: #64748b;
  margin-bottom: 0;
  font-size: 1rem;
}

/* Services page specific */
.service-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  position: relative;
}

.service-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}



ul.details {
  list-style: none;
  padding: 0;
}

ul.details li {
  background: rgba(71, 85, 105, 0.05);
  margin: 1rem 0;
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  border-left: 4px solid #475569;
  font-size: 1rem;
  color: #334155;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

ul.details li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(71, 85, 105, 0.05), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

ul.details li:hover::before {
  transform: translateX(100%);
}

ul.details li:hover {
  background: rgba(71, 85, 105, 0.08);
  transform: translateX(6px);
  box-shadow: 0 4px 15px rgba(71, 85, 105, 0.15);
}

ul.details li strong {
  color: #1e293b;
  font-weight: 600;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.benefit-item {
  background: rgba(248, 250, 252, 0.8);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.benefit-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: #475569;
  transition: width 0.3s ease;
  transform: translateX(-50%);
}

.benefit-item:hover::after {
  width: 100%;
}

.benefit-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.benefit-item h3 {
  color: #1e293b;
  margin-bottom: 1rem;
}

.benefit-item p {
  color: #64748b;
  margin-bottom: 0;
}

/* Contact page specific */
.contact-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  position: relative;
}

.contact-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}



.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.contact-item {
  background: rgba(71, 85, 105, 0.05);
  padding: 0.75rem;
  border-radius: 12px;
  border: 2px solid rgba(71, 85, 105, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(71, 85, 105, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-item:hover::before {
  opacity: 1;
}

.contact-item:hover {
  background: rgba(71, 85, 105, 0.08);
  border-color: rgba(71, 85, 105, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(71, 85, 105, 0.15);
}

.contact-item h3 {
  color: #1e293b;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.contact-item p {
  margin-bottom: 0;
}

.contact-item a {
  color: #475569;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

.contact-item a:hover {
  color: #334155;
  text-decoration: underline;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.expertise-item {
  background: rgba(248, 250, 252, 0.8);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(226, 232, 240, 0.8);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.expertise-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: #475569;
  transition: width 0.3s ease;
  transform: translateX(-50%);
}

.expertise-item:hover::after {
  width: 100%;
}

.expertise-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border-color: rgba(71, 85, 105, 0.2);
}

.expertise-item h3 {
  color: #1e293b;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.expertise-item p {
  color: #64748b;
  margin-bottom: 0;
}

p.contact { 
  text-align: center;
  background: rgba(71, 85, 105, 0.05);
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid rgba(71, 85, 105, 0.1);
  margin: 1.5rem 0;
}

p.contact a {
  color: #475569;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

p.contact a:hover {
  color: #334155;
  text-decoration: underline;
}

/* Footer Styles */
#footer { 
  background: #475569;
  color: white;
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}



#copyright {
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 400;
}

/* Enhanced Responsive Design */
@media (max-width: 1024px) {
  #header nav {
    padding: 0 1.5rem;
  }
  
  #content {
    margin: 3rem 1.5rem;
    padding: 2.5rem;
  }
  
  .feature-grid,
  .benefits-grid,
  .contact-info,
  .expertise-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  body {
    margin: 0;
  }
  
  #header {
    padding: 0.75rem 0;
  }
  
  #header nav {
    padding: 0 1rem;
    flex-direction: column;
    gap: 1rem;
  }
  
  .logo {
    justify-content: center;
  }
  
  ul.topnav {
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
  }
  
  ul.topnav li a {
    display: block;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
  }
  
  #content {
    margin: 2rem 1rem;
    padding: 2rem;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  
  .feature-grid,
  .benefits-grid,
  .contact-info,
  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-card,
  .benefit-item,
  .contact-item,
  .expertise-item {
    padding: 1.5rem;
  }
  
  p.contact {
    padding: 2rem;
    margin: 1rem 0;
  }
  
  .service-section::before,
  .contact-section::before {
    display: none;
  }
}

@media (max-width: 480px) {
  #content {
    margin: 1rem 0.5rem;
    padding: 1.5rem;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.6rem;
  }
  
  p {
    font-size: 1rem;
  }
  
  ul.details li {
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
  }
  
  .btn {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  .contact-item,
  .expertise-item {
    padding: 1.5rem;
  }
  
  .logo img {
    height: 40px;
  }
  
  .logo-text {
    font-size: 1.25rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus styles for accessibility */
a:focus,
button:focus {
  outline: 2px solid #475569;
  outline-offset: 2px;
}

/* Loading animation for images */
img {
  opacity: 0;
  animation: fadeIn 0.6s ease-in forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Scroll animations */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-section,
.contact-section,
.feature-card,
.benefit-item,
.contact-item,
.expertise-item {
  animation: slideInUp 0.6s ease-out forwards;
}

/* Stagger animation delays */
.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

.benefit-item:nth-child(1) { animation-delay: 0.1s; }
.benefit-item:nth-child(2) { animation-delay: 0.2s; }
.benefit-item:nth-child(3) { animation-delay: 0.3s; }

.contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation-delay: 0.2s; }

.expertise-item:nth-child(1) { animation-delay: 0.1s; }
.expertise-item:nth-child(2) { animation-delay: 0.2s; }
.expertise-item:nth-child(3) { animation-delay: 0.3s; }

