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

body {
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    font-variation-settings: 'wdth' 100;
    line-height: 1.5;
    color: #3c3c3c;
    background-color: #fafafa;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 5rem;
    }
}

/* Hero Section */
.hero-section {
    background-color: #fafafa;
    padding: 3rem 0;
}

@media (min-width: 640px) {
    .hero-section {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    .hero-section {
        padding: 5rem 0;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1045px;
}

.logo {
    flex-shrink: 0;
}

.hero-title {
    font-weight: 500;
    line-height: 1.2;
    color: #3c3c3c;
    font-size: clamp(2rem, 5vw, 4rem);
}

.hero-title .underline {
    text-decoration: underline;
    text-decoration-skip-ink: none;
    text-underline-position: from-font;
}

.hero-description {
    font-weight: 400;
    line-height: 1.4;
    color: #5a5a5a;
    font-size: clamp(1rem, 2vw, 1.5rem);
    max-width: 1045px;
}

/* Image Section */
.image-section {
    background-color: #ebebeb;
    height: 300px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .image-section {
        height: 400px;
    }
}

@media (min-width: 1024px) {
    .image-section {
        height: 527px;
    }
}

.image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s ease-out;
}

.image-zoom {
    transform: scale(1.1);
}

.image-section.visible .image-zoom {
    transform: scale(1);
}

/* Services Section */
.services-section {
    background-color: #fafafa;
    padding: 3rem 0;
}

@media (min-width: 640px) {
    .services-section {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    .services-section {
        padding: 5rem 0;
    }
}

.section-title {
    font-weight: 500;
    line-height: 1.2;
    color: #3c3c3c;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 2rem;
}

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

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.service-card {
    min-height: 340px;
    border-radius: 0.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    display: flex;
    flex-direction: column;
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-content {
    margin-top: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-title {
    font-weight: 500;
    color: #3c3c3c;
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    line-height: 1.4;
}

.card-description {
    font-weight: 400;
    color: #5a5a5a;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    line-height: 1.4;
}

.card-pricing {
    font-weight: 600;
    color: #3c3c3c;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    margin-top: 0.5rem;
    padding: 0.5rem 0;
}

.card-link {
    font-weight: 500;
    color: #3c3c3c;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    text-decoration: underline;
    text-decoration-skip-ink: none;
    text-underline-position: from-font;
    transition: all 0.2s ease;
    display: inline-block;
    cursor: pointer;
}

.card-link:hover {
    color: #2c2c2c;
    transform: translateX(5px);
}

/* Expert Section */
.expert-section {
    background-color: #fafafa;
    padding: 3rem 0;
}

@media (min-width: 640px) {
    .expert-section {
        padding: 4rem 0;
    }
}

@media (min-width: 1024px) {
    .expert-section {
        padding: 4rem 0;
    }
}

.expert-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .expert-wrapper {
        flex-direction: row;
        gap: 4rem;
    }
}

.expert-image {
    background-color: white;
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    width: 100%;
    max-width: 622px;
    flex-shrink: 0;
}

.expert-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
}

@media (min-width: 1024px) {
    .expert-image img {
        height: 670px;
    }
}

.expert-badge {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 2rem);
    max-width: 574px;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 1rem;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .expert-badge {
        bottom: auto;
        top: 426px;
        gap: 1.5rem;
    }
}

.badge-label {
    font-weight: 500;
    color: white;
    font-size: 1rem;
}

.badge-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.badge-name {
    font-weight: 500;
    color: white;
    font-size: clamp(1.125rem, 2vw, 1.25rem);
}

.badge-role {
    font-weight: 400;
    color: white;
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    line-height: 1.4;
}

.expert-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .expert-content {
        gap: 2rem;
    }
}

.expert-title {
    font-weight: 500;
    color: #3c3c3c;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.4;
}

.expert-description {
    font-weight: 400;
    color: #5a5a5a;
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.4;
}

.expert-link {
    font-weight: 500;
    color: #3c3c3c;
    font-size: clamp(1rem, 2vw, 1.25rem);
    text-decoration: underline;
    text-decoration-skip-ink: none;
    text-underline-position: from-font;
    transition: all 0.2s ease;
    display: inline-block;
    cursor: pointer;
    align-self: flex-start;
}

.expert-link:hover {
    color: #2c2c2c;
    transform: translateX(5px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out forwards;
    opacity: 0;
}

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

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Service card specific animations */
.service-card.animate-on-scroll {
    transition-delay: 0s;
}

.service-card.animate-on-scroll.visible {
    transition-delay: inherit;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .services-grid {
        gap: 1rem;
    }
    
    .service-card {
        min-height: 260px;
    }
}