/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2596BE;
    --primary-dark: #1A7090;
    --secondary-color: #1A5365;
    --text-dark: #264653;
    --text-light: #5A7A87;
    --bg-light: #E8F4F8;
    --white: #ffffff;
    --accent-green: #9DD14A;
    --light-green: #B8E986;
    --accent-teal: #48B5D0;
    --border-color: #A8D5E8;
    --shadow: 0 4px 6px -1px rgba(37, 150, 190, 0.1), 0 2px 4px -1px rgba(37, 150, 190, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(37, 150, 190, 0.1), 0 4px 6px -2px rgba(37, 150, 190, 0.05);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    padding-top: 140px;
    /* Space for fixed header */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    background-color: var(--white);
    padding: 0.5rem 0;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.4rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 120px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

.navbar.scrolled .nav-logo {
    height: 54px;
}

.brand-text {
    margin-left: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.brand-subtitle {
    font-size: 0.9rem;
    color: var(--accent-green);
    font-weight: 500;
    margin-top: 0.3rem;
    transition: all 0.3s ease;
}

.navbar.scrolled .brand-title {
    font-size: 0.7rem;
}

.navbar.scrolled .brand-subtitle {
    font-size: 0.45rem;
    margin-top: 0;
    /* Color remains accent-green from default style */
}

/* Hamburger menu button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu .cta-button {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.nav-menu .cta-button:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

/* Language Selector */
.language-selector {
    display: inline-flex;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    overflow: hidden;
    background-color: var(--white);
}

.lang-btn {
    background-color: transparent;
    border: none;
    color: var(--text-light);
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

/* Flag icon styling */
.lang-btn .flag-icon {
    height: 1.2em;
    width: 1.2em;
    margin-right: 0.3em;
    vertical-align: -0.2em;
    display: inline-block;
}

.lang-btn:first-child::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: var(--border-color);
}

.lang-btn:hover:not(.active) {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.lang-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.lang-btn.active:first-child::after {
    background-color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 5rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='800' height='600' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='white' stroke-width='2' opacity='0.1'%3E%3Cpath d='M100,150 L150,100 M150,100 L200,100 L250,150 M250,150 L300,200 M300,200 L350,150 M100,300 Q150,250 200,300 T300,300'/%3E%3Ccircle cx='450' cy='120' r='40'/%3E%3Ccircle cx='500' cy='120' r='40'/%3E%3Ccircle cx='550' cy='120' r='40'/%3E%3Cpath d='M420,180 L580,180 M450,200 L550,200 M470,220 L530,220'/%3E%3Cpath d='M100,400 L200,450 L300,400 L400,450'/%3E%3Ccircle cx='600' cy='350' r='60' stroke-dasharray='5,5'/%3E%3Cpath d='M550,450 L600,400 L650,450 M580,420 L620,420'/%3E%3C/g%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.8;
}

.btn-primary {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Sections */
section {
    padding: 1.5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

/* Testimonials Section */
.testimonials {
    background-color: var(--white);
    padding: 3rem 0;
}

.testimonial-carousel {
    max-width: 900px;
    margin: 0 auto;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.testimonial-track {
    position: relative;
    width: 100%;
    overflow: visible;
    min-height: 280px;
    margin-bottom: 0.5rem;
    padding-bottom: 2.5rem;
}

.testimonial-card {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: relative;
}

.testimonial-card.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease;
}

.testimonial-card::before {
    content: '"';
    font-size: 8rem;
    color: var(--primary-color);
    opacity: 0.15;
    position: absolute;
    top: 0.5rem;
    right: 1.5rem;
    font-family: Georgia, serif;
    font-style: italic;
    line-height: 1;
    z-index: 1;
    pointer-events: none;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-content {
    background-color: var(--bg-light);
    padding: 3rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow);
    position: relative;
    overflow: visible;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-content::after {
    content: '';
    position: absolute;
    bottom: -25px;
    left: 3rem;
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-top: 25px solid var(--bg-light);
    filter: drop-shadow(0 2px 3px rgba(61, 39, 35, 0.1));
}

.testimonial-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.author-photo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.linkedin-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.linkedin-icon:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.linkedin-icon svg {
    width: 16px;
    height: 16px;
}

.author-role {
    font-size: 0.95rem;
    color: var(--text-light);
}

.carousel-btn {
    background-color: var(--white);
    border: 2px solid var(--border-color);
    color: var(--primary-color);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.carousel-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 0;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dot:hover {
    transform: scale(1.2);
}

.dot.active {
    background-color: var(--primary-color);
}

/* Services Section */
.services {
    background-color: var(--bg-light);
}

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

.service-card {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--primary-color) 100%);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.service-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* About Section */
.about {
    background-color: var(--bg-light);
}

.about-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}

.about-photo-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.about-photo {
    width: 315px;
    height: 315px;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--primary-color);
    object-fit: cover;
}

.about-text-section {
    display: flex;
    flex-direction: column;
}

.section-title-left {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: left;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.about-text p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.highlight-item {
    padding: 1.5rem;
    background-color: var(--bg-light);
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-color);
}

.highlight-item h4 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.highlight-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background-color: var(--bg-light);
}

.contact-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.cal-container {
    max-width: 1000px;
    margin: 0 auto 3rem;
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.cal-inline {
    width: 100%;
    min-height: 700px;
    overflow: hidden;
    /* Hide scrollbars in all browsers */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.cal-inline::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Edge */
}

/* Target the iframe injected by Cal.com */
.cal-inline iframe {
    border: none;
    display: block;
}

.email-option {
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.email-option p {
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-color);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.email-link:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.email-link svg {
    width: 20px;
    height: 20px;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-links span {
    opacity: 0.5;
}

/* Responsive Design */

/* Large screens - reduce gap */
@media (max-width: 1200px) {
    .nav-menu {
        gap: 1rem;
    }
}

/* Medium screens - adjust brand text size */
@media (max-width: 1100px) {
    .brand-title {
        font-size: 1.15rem;
    }
}

@media (max-width: 900px) {

    /* Adjust font size for small screens to fit the multi-line title */
    .brand-title {
        font-size: 1.1rem;
    }

    .navbar.scrolled .brand-title {
        font-size: 0.9rem;
    }
}

/* Small screens - hamburger menu */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }

    .nav-brand {
        font-size: 1.1rem;
    }

    .nav-logo {
        height: 60px;
    }

    .navbar.scrolled .nav-logo {
        height: 35px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem;
        padding-top: 3rem;
        gap: 1rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
        text-align: center;
    }

    .nav-menu li.language-selector {
        width: auto;
        position: absolute;
        top: 0.75rem;
        right: 0.75rem;
    }

    .nav-menu a {
        font-size: 1rem;
        display: block;
        padding: 0.5rem;
    }

    .nav-menu .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        display: inline-block;
    }

    .nav-menu .language-selector .lang-btn {
        font-size: 0.875rem;
        padding: 0.4rem 0.75rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero {
        padding: 5rem 0 4rem;
    }

    section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-photo {
        width: 70px;
        height: 70px;
        margin: 0 auto;
    }

    .section-title-left {
        text-align: center;
        font-size: 2rem;
    }

    .cal-container {
        padding: 1rem;
    }

    .email-option {
        padding: 1.5rem;
    }

    .carousel-container {
        gap: 1rem;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .testimonial-content {
        padding: 2rem;
    }

    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.75rem 0;
    }

    .nav-brand {
        font-size: 0.95rem;
    }

    .nav-logo {
        height: 50px;
    }

    .nav-menu {
        gap: 0.4rem;
        font-size: 0.85rem;
    }

    .nav-menu a {
        font-size: 0.85rem;
    }

    .nav-menu .cta-button {
        padding: 0.35rem 0.75rem;
        font-size: 0.85rem;
    }

    .language-selector {
        transform: scale(0.85);
    }

    .lang-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .cal-container {
        padding: 0.75rem;
    }

    .email-option {
        padding: 1rem;
    }

    .email-link {
        font-size: 1rem;
        padding: 0.625rem 1.25rem;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
    }

    .testimonial-content {
        padding: 1.5rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }
}