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

:root {
    /* Color Palette */
    --primary-bg: #f5e6d3;
    --secondary-bg: #ead5c4;
    --accent-brown: #8b4513;
    --accent-gold: #d2691e;
    --text-dark: #333333;
    --text-medium: #555555;
    --text-light: #777777;
    --white: #ffffff;
    --overlay-dark: rgba(0, 0, 0, 0.7);
    --overlay-light: rgba(255, 255, 255, 0.9);
    
    /* Typography */
    --font-serif: 'Crimson Text', serif;
    --font-sans: 'Open Sans', sans-serif;
    
    /* Spacing */
    --section-padding: 6rem 0;
    --container-padding: 0 2rem;
    --card-padding: 3rem;
    --border-radius: 15px;
    --border-radius-large: 25px;
    
    /* Shadows */
    --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.2);
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--primary-bg);
    /* Account for fixed header to prevent layout shift */
    padding-top: 80px;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

h1 {
    font-size: 4rem;
    font-weight: 400;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

h2.section-title {
    font-size: 3rem;
    font-weight: 400;
    margin-bottom: 3rem;
    color: var(--text-dark);
    text-align: center;
    position: relative;
}

h2.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-brown), var(--accent-gold));
    margin: 1rem auto 0;
    border-radius: 2px;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-medium);
}

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Card Component */
.card {
    background: var(--overlay-light);
    padding: var(--card-padding);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(139, 69, 19, 0.1);
    transition: all 0.3s ease;
}

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

/* Button Styles */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-brown), var(--accent-gold));
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius-large);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    text-align: center;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, #704010, #b85515);
}

/* Header */
.header {
    background-color: var(--overlay-light);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(139, 69, 19, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-brown);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: var(--font-serif);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.9rem;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-brown), var(--accent-gold));
    transition: width 0.3s ease;
}

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

.nav-menu a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--accent-brown);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

@media (max-width: 1024px) {
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        backdrop-filter: blur(15px);
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        padding: 1rem 0;
    }
    
    .nav-toggle {
        display: flex;
    }
}

/* Hero Section */
.hero {
    height: calc(100vh - 80px);
    background: linear-gradient(var(--overlay-dark), var(--overlay-dark)), url('../images/ornate-architecture.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--white);
    /* Prevent layout shifts */
    contain: layout style;
    margin-top: -80px;
    padding-top: 80px;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
    /* Reserve space to prevent shifts */
    width: 100%;
    display: flex;
    justify-content: center;
    contain: layout;
}

.hero-text {
    background: rgba(0, 0, 0, 0.4);
    padding: 3rem 4rem;
    border-radius: var(--border-radius-large);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-heavy);
    /* Fixed dimensions to prevent layout shift */
    min-width: 400px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    contain: layout style;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
}

.hero-text h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-brown), var(--accent-gold));
    border-radius: 2px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
    opacity: 0.95;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    color: var(--white);
    line-height: 1.4;
}

.btn-hero {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-brown), var(--accent-gold));
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius-large);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    border: 2px solid rgba(255, 255, 255, 0.2);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    font-family: var(--font-sans);
}

.btn-hero:hover {
    background: linear-gradient(135deg, #704010, #b85515);
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-copyright {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 0.8rem;
    opacity: 0.7;
    color: var(--white);
    /* Prevent layout shift by reserving space */
    width: 280px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    contain: layout style;
}

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

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
    align-items: start;
}

.about-text {
    font-size: 1rem;
    line-height: 1.8;
}

.greeting {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--accent-brown);
    font-family: var(--font-serif);
}

.about-text strong {
    font-weight: 600;
    color: var(--accent-brown);
}

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

.profile-placeholder {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-medium);
    margin: 0 auto;
}

.about-location-image {
    margin-top: 3rem;
}

.location-placeholder {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

/* Languages Section */
.languages-section {
    padding: 6rem 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/ornate-architecture.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.languages-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.languages-section .section-title {
    color: white;
    font-size: 3rem;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.languages-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.language-card {
    background-color: rgba(139, 69, 19, 0.9);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    max-width: 300px;
}

.language-card:hover {
    background-color: rgba(139, 69, 19, 1);
    transform: translateX(10px);
}

.language-card h3 {
    font-size: 1.4rem;
    margin: 0;
    color: white;
    font-weight: 600;
}

.languages-future {
    display: flex;
    align-items: center;
    gap: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
}

.future-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.future-icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

.future-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: white;
}

.future-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.5;
}

.languages-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.languages-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

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

.services-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.services-image {
    position: relative;
    order: 2;
}

.services-placeholder {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

.services-text {
    padding: 0;
    order: 1;
}

.services-text .section-title {
    font-size: 2.8rem;
    margin-bottom: 3rem;
    text-align: center;
}

.services-text .section-title::after {
    margin: 1rem auto 0 auto;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-item {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2rem;
    background: var(--overlay-light);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border-left: 4px solid var(--accent-brown);
}

.service-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-left-color: var(--accent-gold);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--accent-brown), var(--accent-gold));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-light);
}

.service-icon svg {
    width: 32px;
    height: 32px;
    color: var(--white);
}

.service-content {
    flex: 1;
}

.service-content h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-family: var(--font-serif);
}

.service-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-medium);
    margin-bottom: 1rem;
    text-align: left;
}

.service-note {
    font-style: italic;
    color: var(--text-light) !important;
    font-size: 0.95rem;
    background: rgba(139, 69, 19, 0.05);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent-gold);
    margin-top: 1rem;
}

.service-icons {
    margin-top: 2rem;
    text-align: center;
}

.service-icons h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-family: var(--font-serif);
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.service-mini-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-bg), var(--secondary-bg));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(139, 69, 19, 0.1);
    cursor: pointer;
}

.service-mini-icon:hover {
    background: linear-gradient(135deg, var(--accent-brown), var(--accent-gold));
    transform: scale(1.1) rotate(5deg);
    border-color: var(--accent-gold);
}

/* Pricing Information Styles */
.pricing-info {
    margin-top: 3rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 248, 248, 0.9));
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(139, 69, 19, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.pricing-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-brown), var(--accent-gold));
}

.pricing-info h4 {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
    font-family: var(--font-serif);
    text-align: center;
    font-weight: 600;
    position: relative;
}

.pricing-info h4::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-brown), var(--accent-gold));
    margin: 0.5rem auto 0;
    border-radius: 1px;
}

.pricing-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.pricing-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border-left: 4px solid var(--accent-brown);
    transition: all 0.3s ease;
    position: relative;
}

.pricing-item:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
    border-left-color: var(--accent-gold);
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.1);
}

.pricing-icon {
    font-size: 1.8rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent-brown), var(--accent-gold));
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(139, 69, 19, 0.2);
}

.pricing-item p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-medium);
    font-weight: 500;
}

.pricing-item p strong {
    color: var(--accent-brown);
    font-weight: 600;
}

/* Languages Section */
.languages-section {
    padding: 6rem 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/ornate-architecture.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.languages-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.languages-section .section-title {
    color: white;
    font-size: 3rem;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.languages-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.language-card {
    background-color: rgba(139, 69, 19, 0.9);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    max-width: 300px;
}

.language-card:hover {
    background-color: rgba(139, 69, 19, 1);
    transform: translateX(10px);
}

.language-card h3 {
    font-size: 1.4rem;
    margin: 0;
    color: white;
    font-weight: 600;
}

.languages-future {
    display: flex;
    align-items: center;
    gap: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    max-width: 600px;
}

.future-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.future-icon svg {
    width: 30px;
    height: 30px;
    color: white;
}

.future-content h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: white;
}

.future-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.5;
}

.languages-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.languages-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 0;
}
.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy.loaded {
    opacity: 1;
}

/* Async Image Placeholders */
.image-placeholder {
    background-color: #e8d5c4;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.profile-placeholder {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin: 0 auto;
}

.location-placeholder {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.highlight-placeholder {
    width: 100%;
    height: 250px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.service-placeholder {
    width: 120px;
    height: 90px;
    flex-shrink: 0;
}

.services-placeholder {
    width: 100%;
    height: 500px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.languages-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.contact-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

/* Shimmer Loading Animation */
.placeholder-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.image-placeholder.loaded .placeholder-shimmer {
    display: none;
}

.image-placeholder.loaded {
    background-color: transparent;
}

.image-placeholder.error {
    background-color: #f0f0f0;
    border: 2px dashed #ccc;
}

.image-placeholder.error::after {
    content: "Image failed to load";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 0.8rem;
    text-align: center;
}

/* Critical rendering optimization */
.js-enabled .hero {
    /* Optimize initial render */
    contain: layout style paint;
}

/* Image optimization */
img {
    max-width: 100%;
    height: auto;
    /* Enable hardware acceleration */
    transform: translateZ(0);
    /* Improve image rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: optimize-contrast;
}

/* Optimize animations for better performance */
.highlight-item,
.service-item,
.stat-item,
.social-stat,
.contact-item {
    will-change: transform, opacity;
}

/* Contact Section */
.contact-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, #f5e6d3 0%, #ead5c4 50%, #e8d5c4 100%);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(139, 69, 19, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(160, 82, 45, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.contact-section .section-title {
    color: #333;
    font-size: 3.5rem;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 400;
    font-family: 'Crimson Text', serif;
    position: relative;
    z-index: 2;
}

.contact-section .section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #8b4513, #d2691e);
    margin: 1.5rem auto;
    border-radius: 2px;
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.contact-info {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(248, 248, 248, 0.9));
    padding: 4rem 5rem;
    border-radius: 25px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(139, 69, 19, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    max-width: 700px;
    width: 100%;
    border: 1px solid rgba(139, 69, 19, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 15px 30px rgba(139, 69, 19, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #d2691e, #8b4513, #cd853f, #daa520);
    border-radius: 27px;
    z-index: -1;
    opacity: 0.1;
}

.contact-item {
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding: 1.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background-color: rgba(139, 69, 19, 0.03);
    transform: scale(1.02);
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #8b4513, #d2691e);
    border-radius: 1px;
    margin-bottom: 1rem;
}

.contact-item h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
    color: #333;
    font-weight: 600;
    font-family: 'Crimson Text', serif;
    position: relative;
    letter-spacing: 0.5px;
}

.contact-item p {
    font-size: 1.3rem;
    color: #555;
    margin: 0;
    font-weight: 500;
    line-height: 1.6;
    font-family: 'Open Sans', sans-serif;
    letter-spacing: 0.3px;
}

.contact-item p a {
    color: #8b4513;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.contact-item p a:hover {
    color: #d2691e;
    border-bottom-color: #d2691e;
}

/* Email responsive styles */
.contact-item p a[href^="mailto:"] {
    word-break: break-all;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    display: inline-block;
    max-width: 100%;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .services-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--overlay-light);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        backdrop-filter: blur(15px);
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        padding: 1rem 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .languages-grid {
        align-items: center;
    }
    
    .language-card {
        max-width: 100%;
    }
    
    .languages-future {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem 0;
        --card-padding: 2rem;
        --container-padding: 0 1rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2.section-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-text {
        padding: 2rem 2.5rem;
        /* Maintain fixed dimensions for mobile */
        min-width: 320px;
        min-height: 240px;
    }
    
    .services-placeholder {
        height: 300px;
    }
    
    .service-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .service-content {
        text-align: center;
    }
    
    .service-content p {
        text-align: center;
    }
    
    .icon-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 250px;
    }
    
    .pricing-info {
        padding: 2rem;
        margin-top: 2rem;
    }
    
    .pricing-item {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
        padding: 1rem;
    }
    
    .pricing-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .languages-section .section-title {
        font-size: 2rem;
    }
    
    .languages-future {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .contact-info {
        padding: 2.5rem;
    }
    
    .contact-section .section-title {
        font-size: 2.5rem;
    }
    
    .contact-item p {
        font-size: 1.1rem;
    }
    
    .contact-item p a[href^="mailto:"] {
        font-size: 1rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 3rem 0;
        --card-padding: 1.5rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-text {
        padding: 1.5rem 2rem;
        /* Minimum dimensions for small screens */
        min-width: 280px;
        min-height: 200px;
    }
    
    .services-text .section-title {
        font-size: 1.8rem;
    }
    
    .language-card {
        padding: 1rem 1.5rem;
    }
    
    .languages-future {
        padding: 1.5rem;
    }
    
    .contact-info {
        padding: 2rem;
    }
    
    .contact-section .section-title {
        font-size: 2rem;
    }
    
    .pricing-info {
        padding: 1.5rem;
    }
    
    .pricing-item {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
        padding: 1rem;
    }
    
    .pricing-icon {
        width: 35px;
        height: 35px;
        font-size: 1.3rem;
    }
    
    .contact-item p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .contact-item p a[href^="mailto:"] {
        font-size: 0.9rem;
        line-height: 1.6;
        padding: 0.2rem 0;
    }
}
