* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-rounded, 'Hiragino Maru Gothic ProN', Quicksand, Comfortaa, Manjari, 'Arial Rounded MT', 'Arial Rounded MT Bold', Calibri, source-sans-pro, sans-serif;
    background-color: #f8f9fa;
    color: #406187;
}

header {
    position: relative;
    display: flex;
    align-items: center;
    padding: 16px;
    background: rgb(0, 0, 0);
    height: 320px;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    background-color: black;
}

#video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 1;
    transition: opacity 1s;
}

.svg-overlay {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    pointer-events: none;
    z-index: 2;
}

.wave {
    transform: scaleX(-1);
    display: block;
    width: 100vw;
    height: 60px;
}

#devnest-logo {
    margin-top: -40px;
    height: 300px;
    position: relative;
    z-index: 1;
    filter: brightness(100);
}

.services {
    padding: 40px;
    background: #f9f9f9;
}

.services h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
}

.intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-item {
    background: white;
    color: #415e84;
    border-radius: 12px;
    text-align: center;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    font-size: 0.8em;
}

.icon {
    margin-bottom: 10px;
}

.icon img {
    display: block;
    margin: auto;
    width: 100%;
    max-width: 120px;
    filter: brightness(150%);
}

.service-item h3 {
    margin-top: 0;
}

.price {
    font-size: 0.9em;
    color: #6c757d;
}

.wave-container {
    position: relative;
    background-color: #f9fafb;
    line-height: 0;
    margin-bottom: -20px;
}

.wave {
    display: block;
    width: 100%;
}

.wave.flipped path {
    transform: scaleX(-1) translateX(-1440px);
    transform-origin: left;
}

.wave.overlay {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.5;
    margin-top: -8px;
    pointer-events: none;
}

.responsive-nav {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.75rem;
}

.responsive-nav a {
    color: #e5e7eb;
    text-decoration: none;
    transition: color 0.3s;
}

.responsive-nav a:hover {
    color: #ffffff;
}

@media (min-width: 768px) {
    .responsive-nav {
        flex-direction: row;
    }
}

footer {
    padding: 48px;
    background-color: #203b5c;
    text-align: center;
    color: white;
}

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: white;
    color: black;
    padding: 24px 16px 16px 16px;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.12);
    z-index: 1000;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
}

#cookie-banner p {
    margin: 0 0 8px 0;
    text-align: left;
    max-width: 600px;
}

.cookie-banner-buttons {
    display: flex;
    gap: 12px;
}

.cookie-banner-buttons button {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

#accept-cookies {
    background: #4ade80;
    color: #203b5c;
}

#accept-cookies:hover {
    background: #22c55e;
}

#decline-cookies {
    background: #697f9f;
    color: #fff;
    border: 1px solid #fff;
}

#decline-cookies:hover {
    background: #334155;
    color: #fff;
}


.contact-section {
    padding: 2rem;
    background-color: #f8f8f8;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
}

.contact-form,
.contact-info {
    flex: 1 1 45%;
    background: #fff;
    padding: 1.5rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.contact-form h2,
.contact-info h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #2E4CA7;
}

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

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
}

.contact-info i {
    margin-right: 0.8rem;
    font-size: 24px;
}

.contact-info a {
    color: #2E4CA7;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.contactform {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.form-row input {
    flex: 1 1 45%;
}

.contact-section input,
.contact-section textarea {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.contact-section button {
    padding: 0.75rem;
    background-color: #336699;
    color: white;
    font-size: 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.contact-section button:hover {
    background-color: #537ea9;
}

@media (max-width: 768px) {

    .contact-form,
    .contact-info {
        flex: 1 1 100%;
    }

    .form-row input {
        flex: 1 1 100%;
    }
}

.office-locations {
    background: #8c9aac52;
    border-radius: 10px;
    padding: 18px 20px;
    margin: 0 auto 24px auto;
    font-size: 0.93em;
    list-style: none;
    display: flex;
    flex-direction: column;
}

.office-locations li {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 12px;
    margin: 0;
    border-bottom: 1px solid white;
}

.office-locations li:last-child {
    border-bottom: none;
}

.office-locations strong {
    font-family: Seravek, 'Gill Sans Nova', Ubuntu, Calibri, 'DejaVu Sans', source-sans-pro, sans-serif;
    font-weight: 600;
    font-size: 1.2em;
    color: #5581b6;
    margin-bottom: 4px;
}

.office-email {
    display: block;
    color: #5581b6;
    font-size: 0.93em;
    margin-top: 2px;
    word-break: break-all;
}

.about-section {
    padding: 60px 20px;
    color: #333;
    font-family: Seravek, 'Gill Sans Nova', Ubuntu, Calibri, 'DejaVu Sans', source-sans-pro, sans-serif;

}

.about-container {
    max-width: 900px;
    margin: auto;
}

.about-container h2 {
    font-size: 2em;
    margin-bottom: 10px;
    text-align: center;
}

.about-container h3 {
    font-size: 1.5em;
    margin-top: 40px;
}

.about-container p {
    font-size: 1.05em;
    line-height: 1.7;
    color: #555;
}

.steps-section {
  background-color: #fff;
  padding: 60px 20px;
  animation: fadeIn 1s ease-out forwards;
}

.steps-container {
  max-width: 900px;
  margin: auto;
  padding: 0 20px;
}

.steps-title {
  font-size: 28px;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.steps-list {
  list-style: none;
  padding-left: 30px;
  position: relative;
  border-left: 2px solid #ccc;
}

.steps-list li {
  position: relative;
  margin-bottom: 40px;
  padding-left: 30px;
}

.step-icon {
  position: absolute;
  left: -48px;
  top: 0;
  width: 36px;
  height: 36px;
  background-color: #2f3e9e;
  color: white;
  font-weight: bold;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 6px solid white;
  transform: scale(1.3);
}

.steps-list h3 {
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: bold;
  color: #2f3e9e;
}

.steps-list p {
  color: #555;
  font-size: 15px;
  line-height: 1.5;
}

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

.testimonials-section {
  background-color: #f9f9f9;
  padding: 60px 20px;
  animation: fadeIn 1s ease-in-out;
}

.testimonials-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

.testimonials-title {
  font-size: 28px;
  text-align: center;
  font-weight: bold;
  margin-bottom: 40px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: bold;
}

.stars {
  color: #fbbf24; /* yellow-ish */
  font-size: 18px;
}

.headline {
  font-size: 14px;
  color: #333;
}

.testimonial-text {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.testimonial-author {
  font-size: 12px;
  color: #888;
  margin-top: 10px;
}

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