body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
}

/* Hamburger -> X animation */
.navbar-toggler {
  border: none;
  padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler .hamburger {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 18px;
}

.navbar-toggler .hamburger-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #2c3e50;
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}

.navbar-toggler .hamburger-line:nth-child(1) { top: 0; }
.navbar-toggler .hamburger-line:nth-child(2) { top: 8px; }
.navbar-toggler .hamburger-line:nth-child(3) { top: 16px; }

/* Expanded state -> X */
.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(1) {
  top: 8px;
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .hamburger-line:nth-child(3) {
  top: 8px;
  transform: rotate(-45deg);
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
}

.navbar-brand {
    padding: 0 1rem;
}

.navbar.container {
    padding: 0;
}

.navbar.container {
    padding: 0;
}

.logo {
    width: 100px;
    height: 60px;
    object-fit: contain;
}

.logo-solo {
    display: none; /* Hidden by default */
    width: 50px; /* Adjust as needed */
    height: 50px; /* Adjust as needed */
    object-fit: contain;
}

.language-selector {
    display: flex;
    gap: 10px;
    align-items: center;
    height: 100%;
}

.lang-flag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

body.language-transition * {
    transition: opacity 0.3s ease;
}

body.language-transition .nav-link,
body.language-transition .section-title,
body.language-transition .team-member h3,
body.language-transition .team-member p,
body.language-transition .service-item p,
body.language-transition .copyright-text,
body.language-transition .contact-text {
    opacity: 0;
    transition: opacity 0.3s ease;
}

body.language-transition .nav-link,
body.language-transition .section-title,
body.language-transition .team-member h3,
body.language-transition .team-member p,
body.language-transition .service-item p,
body.language-transition .copyright-text,
body.language-transition .contact-text {
    opacity: 1;
}

.flag-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lang-flag:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.lang-flag.active {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.contact-link {
    display: flex;
    align-items: center;
    color: #2c3e50;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
}

.contact-link:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.contact-link i {
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

.espa-section {
    text-align: right;
    padding: 0;
    margin: 0;
}

.espa-image {
    max-width: 400px;
    height: auto;
}

@media (max-width: 768px) {
    .contact-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding: 0.5rem 0.75rem;
    }
    
    .contact-link i {
        font-size: 1.2rem;
        margin-right: 0;
        margin-bottom: 0.25rem;
    }
    
    .contact-link span {
        font-size: 0.875rem;
        display: none;
    }
    
    footer .container {
        padding: 0 1rem;
    }
    
    footer span {
        display: block;
        font-size: 0.875rem;
        color: #6c757d;
    }
}

/* Small screen logo swap */
@media (max-width: 576px) { 
    .logo {
        display: none; /* Hide original logo */
    }
    .logo-solo {
        display: inline-block; /* Show solo logo */
    }
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    padding-top: 75px;
    background-color: white;
}

.nav-link {
    color: #2c3e50;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    margin: 0 0.5rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
}

.nav-link:hover {
    background-color: #f8f9fa;
    color: #007bff;
}

.navbar-nav {
    gap: 1rem;
    padding-right: 2rem;
}

.hero-section {
    height: 400px;
    display: flex;
    align-items: center;
    text-align: left;
    padding: 0;
    margin: 0;
    width: 100vw;
    overflow: hidden;
}

.hero-image {
    width: 100vw;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content {
    padding: 2rem;
}

.hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.description-section {
    padding: 4rem 0;
    text-align: left;
}

.description-section p {
    font-size: 1.1rem;
    color: #333;
}

.services-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

/* Modern Grid Layout */
.services-grid-modern {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 2rem;
    margin-top: 2rem;
    padding: 1rem 0;
}

.services-grid-modern .service-card {
    flex: 0 0 280px;
    min-width: 280px;
    max-width: 350px;
    scroll-snap-align: start;
}

/* Hide scrollbar */
.services-grid-modern::-webkit-scrollbar {
    display: none;
}

.services-grid-modern {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Pagination bullets container */
.services-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

/* Bullet dots */
.pagination-bullet {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.pagination-bullet:hover {
    background: #9ca3af;
    transform: scale(1.2);
}

.pagination-bullet.active {
    background: #007bff;
    width: 30px;
    border-radius: 5px;
}

/* Service Card */
.service-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #00d4ff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.15);
}

/* Icon Wrapper */
.service-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: linear-gradient(135deg, #007bff 0%, #00d4ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    position: relative;
}

.service-icon-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    background: linear-gradient(135deg, #007bff 0%, #00d4ff 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-icon-wrapper {
    transform: rotateY(360deg) scale(1.1);
}

.service-card:hover .service-icon-wrapper::after {
    opacity: 0.3;
    animation: pulse 1.5s ease-in-out infinite;
}

.service-icon {
    font-size: 2rem;
    color: white;
    z-index: 1;
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* Service Title */
.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.service-card:hover .service-title {
    color: #007bff;
}

/* Service Description */
.service-description {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-grid-modern {
        gap: 1rem;
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .services-grid-modern .service-card {
        flex: 0 0 calc(45% - 0.75rem);
        min-width: calc(45% - 0.75rem);
        padding: 1.5rem 1rem;
    }
    
    .service-icon-wrapper {
        width: 50px;
        height: 50px;
        margin-bottom: 1rem;
    }
    
    .service-icon {
        font-size: 1.5rem;
    }
    
    .service-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .service-description {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .services-section {
        padding: 3rem 0;
        overflow: hidden;
    }
}

/* Container */
.container {
    max-width: 100%;
    padding-left: 100px;
    padding-right: 100px;
}

.navbar {
    background-color: #f8f9fa;
}

/* Cookie Consent Banner Styling */
.cc-window {
    font-family: 'Roboto', sans-serif !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px 8px 0 0 !important;
}

.cc-message {
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
}

.cc-btn {
    border-radius: 6px !important;
    padding: 0.6rem 1.5rem !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
}

.cc-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3) !important;
}

.cc-deny {
    background: #6c757d !important;
}

.cc-deny:hover {
    background: #5a6268 !important;
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3) !important;
}



.contact-form .alert {
margin-top: 1rem;
padding: 1rem;
border-radius: 4px;
}

.section-title {
text-align: left;
font-weight: bold;
font-size: 2.5rem;
color: #2c3e50;
margin-bottom: 3rem;
}

.team-member {
    text-align: left;
    margin-left: 0;
    padding-left: 0;
}

.about-section {
    padding: 2rem 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-align: center;
    font-weight: 500;
}

.team-member {
    text-align: center;
    padding: 1.5rem;
    background-color: white;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

/* Align items to the end in collapsed navbar menu */
@media (max-width: 991.98px) { /* Bootstrap 'lg' breakpoint */
    .navbar-collapse.show .navbar-nav .nav-link {
        text-align: start; /* Aligns text to the end */
    }

    .navbar-collapse.show .navbar-nav .language-selector {
        justify-content: flex-start; /* Aligns the language flags to the end within their container */
      margin-left: 2rem;
    }
}

@media (max-width: 991.98px) { /* Corresponds to Bootstrap 'lg' breakpoint */
    .navbar .container {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Mobile horizontal padding across the site */
@media (max-width: 576px) {
    .container {
        padding-inline: 1em;
    }

    .navbar .container {
        padding-inline: 1em;
    }

    footer .container {
        padding-inline: 1em;
    }
}

/* Slide-in mobile nav (left-to-right) */
@media (max-width: 991.98px) {
  /* Turn the collapsed menu into a left sidebar */
  .navbar-collapse {
    position: fixed;
    top: 66px;
    left: 0;
    height: calc(100vh - 65px);
    width: 75vw;
    max-width: 320px;
    background-color: #F7F8F9 !important; /* match navbar */
    box-shadow: 2px 0 12px rgba(0,0,0,0.15);
    padding: 1.25rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1050; /* above navbar */
    overflow-y: auto;
  }

  /* Override Bootstrap's display:none so we can animate with transform */
  .navbar-collapse.collapse {
    display: block !important;
    visibility: visible !important;
  }

  /* Ensure vertical stacking inside the side panel */
  .navbar-collapse .navbar-nav {
    flex-direction: column;
    gap: 0.25rem;
    padding-right: 0;
  }

  /* During Bootstrap's collapsing phase, keep our panel visible to allow transform animation */
  .navbar-collapse.collapsing {
    display: block !important;
    height: calc(100vh - 65px) !important;
    overflow: hidden;
    transition: transform 0.3s ease;
  }

  /* When shown, slide into view */
  .navbar-collapse.show {
    transform: translateX(0);
  }
}
