/* Duna Technologies - Main Stylesheet */
body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  margin: 0;
  background: #ffffff;
  color: #2c3e50;
  line-height: 1.8;
  position: relative;
  overflow-x: hidden;
}

/* Subtle background pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(0, 61, 92, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 31, 51, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(255, 204, 0, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

header {
  background: #003d5c;
  color: white;
  padding: 0;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.header-nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 17px;
  transition: color 0.3s ease;
}

.header-nav a:hover {
  color: #ffcc00;
}

/* Disable header nav hover when mobile menu is open */
.header-nav.mobile-open a:hover {
  color: white !important;
  background: none !important;
  padding-left: 0 !important;
}

main {
  max-width: 1200px;
  margin: auto;
  padding: 60px 30px;
}

section {
  margin-bottom: 80px;
}

h1 {
  font-size: 3em;
  margin: 0.2em 0 0.2em;
  font-weight: 300;
}

h2 {
  font-size: 2em;
  border-left: 4px solid #003d5c;
  padding-left: 15px;
  margin-bottom: 25px;
  color: #001f33;
}

h3 {
  font-size: 1.5em;
  color: #001f33;
  margin-bottom: 15px;
}

p, li {
  font-size: 1.15em;
}

ul {
  padding-left: 25px;
}

footer {
  background: #001f33;
  color: white;
  text-align: center;
  padding: 40px 20px;
  font-size: 0.95em;
}

.logo {
  max-width: 200px;
  height: auto;
  display: block;
}

.logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  height: 100%;
}

.section-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 12px;
  margin-top: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.experts-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

.expert {
  flex: 1 1 240px;
  background: #f8fafc;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  transition: transform 0.3s ease;
}

.expert:hover {
  transform: translateY(-5px);
}

/* Disable expert card hover when mobile menu is open */
.header-nav.mobile-open ~ * .expert:hover,
body:has(.header-nav.mobile-open) .expert:hover {
  transform: none !important;
}

.expert img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 4px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.service-card {
  background: #f8fafc;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

/* Disable service card hover when mobile menu is open */
.header-nav.mobile-open ~ * .service-card:hover,
body:has(.header-nav.mobile-open) .service-card:hover {
  transform: none !important;
}

.service-card h3 {
  color: #003d5c;
  margin-bottom: 15px;
}

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

.project-card {
  background: #f8fafc;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

/* Disable project card hover when mobile menu is open */
.header-nav.mobile-open ~ * .project-card:hover,
body:has(.header-nav.mobile-open) .project-card:hover {
  transform: none !important;
}

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

.credibility-card {
  background: #f8fafc;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  transition: transform 0.3s ease;
}

.credibility-card:hover {
  transform: translateY(-5px);
}

/* Disable credibility card hover when mobile menu is open */
.header-nav.mobile-open ~ * .credibility-card:hover,
body:has(.header-nav.mobile-open) .credibility-card:hover {
  transform: none !important;
}

.contact-info {
  background: #f8fafc;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  margin-top: 30px;
}

.contact-info a {
  color: #003d5c;
  text-decoration: none;
  font-weight: 500;
}

.contact-info a:hover {
  color: #001f33;
  text-decoration: underline;
}

/* Disable contact info hover when mobile menu is open */
.header-nav.mobile-open ~ * .contact-info a:hover,
body:has(.header-nav.mobile-open) .contact-info a:hover {
  color: #003d5c !important;
  text-decoration: none !important;
}

/* ===== JAVASCRIPT EFFECTS STYLES ===== */

/* Scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate-in {
  opacity: 1;
  transform: translateY(0);
}


/* Scroll to top button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #003d5c;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(0, 61, 92, 0.3);
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background: #001f33;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 61, 92, 0.4);
}

/* Disable scroll to top hover when mobile menu is open */
.header-nav.mobile-open ~ * .scroll-to-top:hover,
body:has(.header-nav.mobile-open) .scroll-to-top:hover {
  background: #003d5c !important;
  transform: none !important;
  box-shadow: 0 4px 15px rgba(0, 61, 92, 0.3) !important;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 10px;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.mobile-menu-toggle:hover {
  background: rgba(255,255,255,0.1);
}

/* Disable mobile menu toggle hover when menu is open */
.mobile-menu-toggle.active:hover {
  background: rgba(255,255,255,0.2) !important;
}

.mobile-menu-toggle.active {
  background: rgba(255,255,255,0.2);
}

/* Contact form styles */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #2c3e50;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #003d5c;
  box-shadow: 0 0 0 2px rgba(0, 61, 92, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-button {
  background: #003d5c;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-button:hover {
  background: #001f33;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 61, 92, 0.3);
}

/* Disable form button hover when mobile menu is open */
.header-nav.mobile-open ~ * .form-button:hover,
body:has(.header-nav.mobile-open) .form-button:hover {
  background: #003d5c !important;
  transform: none !important;
  box-shadow: none !important;
}

.form-button:active {
  transform: translateY(0);
}

/* Active navigation link */
.header-nav a.active {
  color: #ffcc00;
  font-weight: 600;
}

/* Enhanced hover effects */
.service-card:hover,
.expert:hover,
.project-card:hover,
.credibility-card:hover {
  transform: translateY(-10px) scale(1.02) !important;
  box-shadow: 0 10px 30px rgba(0, 61, 92, 0.15) !important;
}

/* Disable hover effects when mobile menu is open */
.header-nav.mobile-open ~ * .service-card:hover,
.header-nav.mobile-open ~ * .expert:hover,
.header-nav.mobile-open ~ * .project-card:hover,
.header-nav.mobile-open ~ * .credibility-card:hover,
body:has(.header-nav.mobile-open) .service-card:hover,
body:has(.header-nav.mobile-open) .expert:hover,
body:has(.header-nav.mobile-open) .project-card:hover,
body:has(.header-nav.mobile-open) .credibility-card:hover {
  transform: none !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03) !important;
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .service-card:hover,
  .expert:hover,
  .project-card:hover,
  .credibility-card:hover {
    transform: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03) !important;
  }
  
  .service-card:active,
  .expert:active,
  .project-card:active,
  .credibility-card:active {
    transform: translateY(-5px) scale(1.01) !important;
    box-shadow: 0 8px 20px rgba(0, 61, 92, 0.1) !important;
  }
  
  /* Larger touch targets for mobile */
  .header-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .form-button {
    min-height: 44px;
    min-width: 44px;
  }
  
  .scroll-to-top {
    min-width: 50px;
    min-height: 50px;
  }
}

/* Focus styles for accessibility */
.service-card:focus,
.expert:focus,
.project-card:focus,
.credibility-card:focus {
  outline: 2px solid #003d5c;
  outline-offset: 2px;
}

.header-nav a:focus {
  outline: 2px solid #ffcc00;
  outline-offset: 2px;
  background: rgba(255, 204, 0, 0.1);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: 2px solid #003d5c;
  outline-offset: 2px;
}


/* Counter animation */
.counter {
  font-size: 2.5em;
  font-weight: bold;
  color: #003d5c;
  display: inline-block;
}

#company-stats .service-card h3 {
  font-size: 2.5em;
  margin-bottom: 10px;
  color: #003d5c;
}

#company-stats .service-card p {
  font-size: 1.1em;
  color: #666;
  margin: 0;
}

/* Staggered animation delays */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

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

/* ===== RESPONSIVE DESIGN ===== */

/* Very large screens */
@media (min-width: 1400px) {
  .header-content {
    max-width: 1400px;
  }
  
  main {
    max-width: 1400px;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
  }
}

/* Large screens and tablets in landscape */
@media (max-width: 1200px) {
  .header-content {
    padding: 20px 30px;
  }
  
  main {
    padding: 50px 25px;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
}

/* Tablets and small laptops */
@media (max-width: 1024px) {
  .header-content {
    padding: 18px 25px;
  }
  
  .header-nav {
    gap: 25px;
  }
  
  .header-nav a {
    font-size: 16px;
  }
  
  main {
    padding: 45px 20px;
  }
  
  h1 {
    font-size: 2.8em;
  }
  
  h2 {
    font-size: 1.9em;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }
  
  .experts-section {
    gap: 30px;
  }
}

/* Tablets in portrait and large phones */
@media (max-width: 768px) {
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: relative;
  }
  
  .mobile-menu-toggle {
    display: block;
    order: 2;
  }
  
  .logo-link {
    order: 1;
  }
  
  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #003d5c;
    flex-direction: column;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    gap: 0;
    z-index: 1000;
  }
  
  .header-nav.mobile-open {
    display: flex;
  }
  
  .header-nav a {
    font-size: 16px;
    padding: 15px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
  }
  
  .header-nav a:last-child {
    border-bottom: none;
  }
  
  .header-nav a:hover {
    background: rgba(255,255,255,0.1);
    padding-left: 10px;
  }
  
  main {
    padding: 40px 20px;
  }
  
  section {
    margin-bottom: 60px;
  }
  
  h1 {
    font-size: 2.5em;
    line-height: 1.2;
  }
  
  h2 {
    font-size: 1.8em;
    padding-left: 12px;
  }
  
  h3 {
    font-size: 1.4em;
  }
  
  p, li {
    font-size: 1.1em;
  }
  
  .experts-section {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }
  
  .expert {
    max-width: 350px;
    width: 100%;
  }
  
  .services-grid,
  .projects-grid,
  .credibility-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service-card,
  .project-card,
  .credibility-card {
    padding: 25px;
  }
  
  .section-image {
    margin-top: 20px;
    border-radius: 8px;
  }
  
  .logo {
    max-width: 180px;
  }
  
  .contact-info {
    padding: 30px 20px;
  }
  
  /* Form improvements for mobile */
  .contact-info input,
  .contact-info select,
  .contact-info textarea {
    font-size: 16px !important; /* Prevents zoom on iOS */
    padding: 12px !important;
  }
  
  .contact-info button {
    width: 100%;
    padding: 15px 30px !important;
    font-size: 16px !important;
  }
}

/* Large phones */
@media (max-width: 600px) {
  .header-content {
    padding: 12px 15px;
  }
  
  .header-nav {
    padding: 15px;
  }
  
  .header-nav a {
    font-size: 15px;
    padding: 12px 0;
  }
  
  main {
    padding: 35px 15px;
  }
  
  h1 {
    font-size: 2.2em;
  }
  
  h2 {
    font-size: 1.6em;
    padding-left: 10px;
  }
  
  h3 {
    font-size: 1.3em;
  }
  
  .expert {
    max-width: 300px;
  }
  
  .expert img {
    width: 110px;
    height: 110px;
  }
  
  .service-card,
  .project-card,
  .credibility-card {
    padding: 20px;
  }
  
  .section-image {
    margin-top: 15px;
  }
  
  .logo {
    max-width: 160px;
  }
  
  .contact-info {
    padding: 25px 15px;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .header-content {
    padding: 10px 12px;
  }
  
  .header-nav {
    padding: 12px;
  }
  
  .header-nav a {
    font-size: 14px;
    padding: 10px 0;
  }
  
  main {
    padding: 30px 12px;
  }
  
  section {
    margin-bottom: 50px;
  }
  
  h1 {
    font-size: 2em;
  }
  
  h2 {
    font-size: 1.4em;
    padding-left: 8px;
  }
  
  h3 {
    font-size: 1.2em;
  }
  
  p, li {
    font-size: 1em;
  }
  
  .expert {
    max-width: 280px;
  }
  
  .expert img {
    width: 100px;
    height: 100px;
  }
  
  .service-card,
  .project-card,
  .credibility-card {
    padding: 18px;
  }
  
  .logo {
    max-width: 140px;
  }
  
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
  
  .counter {
    font-size: 2em;
  }
  
  #company-stats .service-card h3 {
    font-size: 2em;
  }
  
  .contact-info {
    padding: 20px 12px;
  }
  
  .contact-info input,
  .contact-info select,
  .contact-info textarea {
    padding: 10px !important;
  }
  
  .contact-info button {
    padding: 12px 25px !important;
  }
}

/* Extra small devices */
@media (max-width: 360px) {
  .header-content {
    padding: 8px 10px;
  }
  
  main {
    padding: 25px 10px;
  }
  
  h1 {
    font-size: 1.8em;
  }
  
  h2 {
    font-size: 1.3em;
  }
  
  .expert {
    max-width: 260px;
  }
  
  .expert img {
    width: 90px;
    height: 90px;
  }
  
  .service-card,
  .project-card,
  .credibility-card {
    padding: 15px;
  }
  
  .logo {
    max-width: 120px;
  }
  
  .contact-info {
    padding: 18px 10px;
  }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
  .header-nav {
    max-height: 80vh;
    overflow-y: auto;
  }
  
  main {
    padding: 30px 20px;
  }
  
  section {
    margin-bottom: 40px;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Print styles */
@media print {
  .header-nav,
  .mobile-menu-toggle,
  .scroll-to-top {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
  
  .service-card,
  .project-card,
  .expert {
    page-break-inside: avoid;
  }
}
