:root { 
    --primary-color: #DC3545;
    --secondary-color: #3A4454;
}
.navbar {
    background: white!important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.navbar-brand {
    font-weight: 900;
    color: var(--secondary-color)!important;
}
.nav-link {
    color: var(--secondary-color)!important;
    font-weight: 500;
}
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--primary-color);
    --bs-btn-border-color: var(--primary-color);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--primary-color);
    --bs-btn-hover-border-color: var(--primary-color);
    --bs-btn-focus-shadow-rgb: 49,132,253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--primary-color);
    --bs-btn-active-border-color: var(--primary-color);
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0,0,0,0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--primary-color);
    --bs-btn-disabled-border-color: var(--primary-color);
}
.btn-primary:hover {
    background-color: #c82333;
    border-color: #c82333;
}
.hero-section {
    position: relative;
    background-size: cover;
    background-attachment: fixed;
    min-height: calc(100vh + 76px);
    display: flex;
    align-items: center;
    margin-top: -76px;
    padding-top: 120px;
    color: white;
}
#seadmed {
    height: 180px;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    right: 0;
    z-index: -1
}
.brands-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.9);
    padding: 20px 0;
    z-index: 2;
    margin-top: 30px;
    overflow: hidden;
    white-space: nowrap;
}
.brands-slider {
    display: inline-block;
    animation: slide 20s linear infinite;
    white-space: nowrap;
}
.brands-group {
    display: inline-block;
}
@keyframes slide {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-30%);
    }
}
.brand-logo-small {
    height: 50px;
    width: auto;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    margin: 0 2rem;
}
@media (max-width:1600px) {
    @keyframes slide {
        from {
            transform: translateX(0);
        }
        to {
            transform: translateX(-30%);
        }
    }
    .brand-logo-small {
        height: 30px;
        margin: 0 1rem;
    }
}
@media (max-width:600px) {
    @keyframes slide {
        from {
            transform: translateX(0);
        }
        to {
            transform: translateX(-100%);
        }
    }
    .brand-logo-small {
        height: 25px;
        margin: 0 .5rem;
    }
}
.brand-logo-small:hover {
    filter: grayscale(0%);
}
.service-card {
    background: white;
    border-radius: 10px;
    transition: transform 0.3s ease;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid #fff
}
.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}
.service-card:hover h3 {
    text-decoration: underline
}
.team-languages {
    font-size: 0.9rem;
    color: var(--primary-color);
    margin-top: 0.5rem;
}
.service-detail {
    padding: 2rem;
    background: white;
    border-radius: 10px;

    margin-bottom: 2rem;
}
.service-detail h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.hero-section::after {
    content: " ";
    display: block;
    background: #000;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: .5;
}
.hero-content {
    position: relative;
    z-index: 2;
}
.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: #fff;
}
.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 3rem;

}
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150%;
    background-image:url("../img/hero.jpeg");
    background-size: cover;
    background-position: center;
    z-index: 1;
}
.parallax-content {
    position: relative;
    z-index: 2;
    background: rgba(255,255,255,0.80);
    width: 100%;
    padding: 5rem 0;
}
.service-card {
    background: white;
    border-radius: 10px;
    transition: transform 0.3s ease;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.service-card:hover {
    transform: translateY(-5px);
}
.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}
.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}
.btn-read-more {
    background-color: var(--secondary-color);
    color: white;
    transition: all 0.3s ease;
    margin-top: 1rem;
}
.btn-read-more:hover {
    background-color: var(--primary-color);
    color: white;
}
.team-box {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}
.team-content {
    padding: 1.5rem;
    text-align: center;
}
.team-content h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}
.team-contact {
    padding: 1rem;
    border-top: 1px solid #eee;
}
.team-contact a {
    display: flex;
    align-items: center;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: rgba(255,255,255,0.5);
}
.team-contact a:hover {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.team-contact i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}
#hinnakiri, #meeskond {
    position: relative;
    overflow: hidden;
}
#hinnakiri .container, #meeskond .container {
    position: relative;
    z-index: 1
}
.title-underline {
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    margin: 1rem auto 3rem;
}
.title-underline::before, .title-underline::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 4px;
    background: var(--secondary-color);
    opacity: 0.5;
}
.stats-item {
    text-align: center;
    padding: 2rem;
}
.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}
.stats-text {
    color: var(--secondary-color);
    font-weight: 500;
}
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 6rem 0!important;
}
.footer a {
    color: #fff
}
.footer a:hover {
    text-decoration: none
}
.py-5 {
    padding: 5rem 0!important
}
@media (max-width:1400px) {
    .hero-title {
        font-size: 4rem;
    }
    .hero-subtitle {
        font-size: 1.3rem;
    }
}
@media (max-width:1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-section {
        min-height: calc(90vh + 76px);
    }
    .team-image img {
        height: 400px;
    }
    .stats-item {
        padding: 1rem;
    }
}
@media (max-width:992px) {
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .hero-section {
        min-height: calc(80vh + 76px);
        padding-top: 100px;
    }
    .navbar .btn-primary {
        margin: 1rem 0;
    }
    .stats-number {
        font-size: 2rem;
    }
    .py-5 {
        padding: 3rem 0!important;
    }
}
@media (max-width:768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    .hero-section {
        min-height: calc(70vh + 76px);
        text-align: center;
    }
    .service-card {
        margin-bottom: 1rem;
    }
    .team-image img {
        height: 350px;
    }
}
@media (max-width:576px) {
    .hero-section, .parallax-bg {
        background-position: right
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-section .container {
        min-height: calc(100vh - 80px);
        padding: 110px 30px;
        box-sizing: border-box;
    }
    .brand-card {
        padding: 1rem;
    }
    .brand-logo {
        max-width: 120px;
    }
    .team-image img {
        height: 300px;
    }
    .footer {
        padding: 3rem 0!important;
    }
}
.team-box {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
}
.team-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    border-color: #999;
}
.team-content {
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
}
.team-content h3 {
    color: var(--secondary-color);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
}
.team-content p {
    color: var(--primary-color);
    font-weight: 500;
    opacity: 0.8;
    margin: 0
}
.team-contact {
    padding: 1.5rem;
    background: linear-gradient(to bottom,rgba(248,249,250,0.5),rgba(248,249,250,1));
    border-top: 1px solid rgba(0,0,0,0.05);
}
.team-contact a {
    display: flex;
    align-items: center;
    color: var(--secondary-color);
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: rgba(255,255,255,0.5);
}
.team-contact a:hover {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.team-contact a:last-child {
    margin-bottom: 0;
}
.team-contact i {
    margin-right: 1rem;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}
.team-contact a:hover i {
    transform: scale(1.1);
}

.team-photo-container {
  width: 100%;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  margin-bottom: 0;
}

.team-photo {
  display: block;
  object-fit: cover;
  max-height: 240px;
    margin:3rem auto 0;
  transition: transform 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .team-photo {
    max-height: 200px;
  }
}