/* ============================================
   CSS Variables & Base Styles
   ============================================ */

:root {
    --cream: #f8f5f0;
    --beige: #e8e3db;
    --light-beige: #f5f1eb;
    --warm-beige: #d4c9b8;
    --dark-beige: #c4b5a3;
    --charcoal: #2c2c2c;
    --soft-charcoal: #4a4a4a;
    --gold-accent: #d4af37;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    
    --font-serif-primary: 'Playfair Display', serif;
    --font-serif-secondary: 'Cormorant Garamond', serif;
    
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-serif-secondary);
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--cream);
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch; /* Better mobile scrolling */
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif-primary);
    font-weight: 600;
    line-height: 1.3;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.4rem;
}

p {
    margin-bottom: 1.2rem;
    color: var(--text-dark);
}

.lead-text {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--soft-charcoal);
    margin-bottom: 1.5rem;
}

.text-center {
    text-align: center;
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(248, 245, 240, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    padding: 0.7rem 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-serif-primary);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--charcoal);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 400;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--gold-accent);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--charcoal);
    transition: var(--transition);
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--beige) 0%, var(--warm-beige) 100%);
    background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--charcoal);
    padding: 2rem;
    max-width: 90%;
    margin: 0 auto;
}

.hero-content .hero-buttons {
    margin-top: 3.5rem;
}

.hero-title {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    color: var(--charcoal);
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 0;
    color: var(--soft-charcoal);
    letter-spacing: 2px;
    padding: 0 1rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3.5rem;
    padding: 0 1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.hero-content.visible .hero-buttons {
    opacity: 1;
    transform: translateY(0);
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 2;
    opacity: 1;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.scroll-indicator.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
    pointer-events: none;
}

.scroll-text {
    color: var(--charcoal);
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: var(--font-serif-secondary);
    opacity: 0.7;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--charcoal), transparent);
    opacity: 0.6;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scaleY(1);
    }
    50% {
        opacity: 0.8;
        transform: scaleY(1.1);
    }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-family: var(--font-serif-secondary);
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 0;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-align: center;
}

.btn-primary {
    background-color: var(--charcoal);
    color: var(--white);
    border-color: var(--charcoal);
}

.btn-primary:hover {
    background-color: var(--soft-charcoal);
    border-color: var(--soft-charcoal);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--charcoal);
    border-color: var(--charcoal);
}

.btn-secondary:hover {
    background-color: var(--charcoal);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--charcoal);
    border-color: var(--warm-beige);
}

.btn-outline:hover {
    background-color: var(--warm-beige);
    border-color: var(--warm-beige);
}

/* ============================================
   Sections
   ============================================ */

.section {
    padding: 6rem 0;
    position: relative;
}

.section-alt {
    background-color: var(--light-beige);
}

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

.section-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.section-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    font-weight: 300;
}

/* ============================================
   Bio Section
   ============================================ */

#bio {
    position: relative;
}

#bio .section-content {
    position: relative;
}

.bio-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
    background-color: var(--white);
    padding: 3rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--beige);
    position: relative;
}

.bio-grid::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background-color: var(--light-beige);
    z-index: -1;
    border: 1px solid var(--warm-beige);
}

.bio-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: linear-gradient(135deg, var(--beige) 0%, var(--warm-beige) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-style: italic;
    border: 1px solid var(--warm-beige);
    box-shadow: var(--shadow);
}

.bio-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover;
    border: 1px solid var(--warm-beige);
    box-shadow: var(--shadow);
    display: block;
}

/* ============================================
   Performing Section
   ============================================ */

.performances-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.performance-card {
    background-color: var(--white);
    padding: 2rem;
    border: 1px solid var(--beige);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    gap: 2rem;
}

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

.performance-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 1rem;
    background-color: var(--beige);
    text-align: center;
}

.date-day {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-serif-primary);
    color: var(--charcoal);
    line-height: 1;
}

.date-month {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.performance-details h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.venue {
    font-weight: 500;
    color: var(--gold-accent);
    margin-bottom: 1rem;
    font-style: italic;
}

.programme {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
}

/* ============================================
   Teaching Section
   ============================================ */

.teaching-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.teaching-features {
    margin: 2rem 0;
}

.feature-item {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--warm-beige);
}

.feature-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature-item p {
    color: var(--text-light);
    font-size: 1rem;
}

.teaching-testimonials h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.testimonial-card {
    background-color: var(--white);
    padding: 2rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--gold-accent);
    box-shadow: var(--shadow);
}

.testimonial-text {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.testimonial-author {
    text-align: right;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ============================================
   Media Section
   ============================================ */

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.media-item {
    background-color: var(--white);
    border: 1px solid var(--beige);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

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

.media-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

.media-link:hover {
    color: inherit;
}

.media-thumbnail {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.media-item .media-placeholder {
    position: relative;
}

.media-item .media-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.media-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--beige) 0%, var(--warm-beige) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    position: relative;
}

.play-icon {
    font-size: 3rem;
    color: var(--charcoal);
    margin-bottom: 1rem;
    opacity: 0.7;
    transition: var(--transition);
}

.media-item:hover .play-icon {
    opacity: 1;
    transform: scale(1.1);
}

.media-item h4 {
    padding: 1.5rem;
    margin: 0;
    font-size: 1.2rem;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.social-link {
    color: var(--charcoal);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--beige);
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--charcoal);
    color: var(--white);
    border-color: var(--charcoal);
}

/* ============================================
   Publications Section
   ============================================ */

.publications-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.publication-card {
    background-color: var(--white);
    border: 1px solid var(--beige);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
}

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

.publication-cover {
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    height: 375px !important;
    max-height: 375px !important;
    background-color: var(--beige);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    margin: 1.5rem auto 0;
}

.publication-cover img,
.book-cover-image {
    max-width: 250px !important;
    width: 250px !important;
    max-height: 375px !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
}

.publication-details {
    padding: 0.75rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

.publication-title {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--charcoal);
    line-height: 1.3;
}

.publication-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.25rem;
    flex-grow: 1;
}

.publication-details .btn {
    align-self: center;
    margin-top: 0.25rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

/* ============================================
   Contact Section
   ============================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-details p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.contact-details strong {
    color: var(--charcoal);
    font-weight: 600;
}

.contact-form {
    background-color: var(--white);
    padding: 2.5rem;
    border: 1px solid var(--beige);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--charcoal);
    font-weight: 500;
    font-size: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid var(--beige);
    background-color: var(--cream);
    font-family: var(--font-serif-secondary);
    font-size: 1rem;
    color: var(--text-dark);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--warm-beige);
    background-color: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
    margin-top: 1rem;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background-color: var(--charcoal);
    color: var(--white);
    padding: 3rem 0;
    margin-top: 4rem;
}

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

.footer-content p {
    color: var(--white);
    opacity: 0.8;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--gold-accent);
}

/* ============================================
   Fade-in Animation Classes
   ============================================ */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 968px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(248, 245, 240, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden;
        position: fixed;
        width: 100%;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

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

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

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

    .hero {
        min-height: 500px;
        height: 100vh;
        max-height: 100vh;
    }

    .hero-content {
        padding: 1.5rem;
        max-width: 95%;
    }

    .hero-title {
        font-size: 3rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        margin-bottom: 2.5rem;
    }

    .hero-buttons {
        gap: 1rem;
    }

    .bio-grid,
    .teaching-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .bio-grid {
        padding: 2rem;
    }

    .bio-grid::before {
        top: -15px;
        left: -15px;
        right: 15px;
        bottom: 15px;
    }

    .performances-grid,
    .media-grid {
        grid-template-columns: 1fr;
    }

    .publications-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .performance-card {
        flex-direction: column;
        gap: 1.5rem;
    }

    .performance-date {
        min-width: auto;
        width: 100%;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.6rem;
    }

    .lead-text {
        font-size: 1.15rem;
    }

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

@media (max-width: 600px) {
    body {
        font-size: 18px;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.1rem;
        letter-spacing: 0.5px;
    }

    .navbar {
        padding: 0.8rem 0;
    }

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

    .hero {
        min-height: 100vh;
        height: 100vh;
    }

    .hero-content {
        padding: 1rem;
        max-width: 100%;
    }

    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 0;
        padding: 0 0.5rem;
        letter-spacing: 1px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 0 1rem;
        margin-top: 2.5rem;
    }

    .btn {
        width: 100%;
        max-width: 100%;
        padding: 1rem 2rem;
        font-size: 1rem;
        min-height: 48px; /* Better touch target */
    }

    .section {
        padding: 3rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    h4 {
        font-size: 1.2rem;
    }

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

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .lead-text {
        font-size: 1.15rem;
        margin-bottom: 1.2rem;
    }

    p {
        font-size: 18px;
        line-height: 1.7;
        margin-bottom: 1rem;
    }

    .bio-grid,
    .teaching-grid,
    .contact-grid {
        gap: 2rem;
    }

    .bio-grid {
        padding: 1.5rem;
    }

    .bio-grid::before {
        top: -10px;
        left: -10px;
        right: 10px;
        bottom: 10px;
    }

    .performance-card {
        padding: 1.5rem;
        gap: 1.5rem;
    }

    .performance-details h3 {
        font-size: 1.3rem;
    }

    .date-day {
        font-size: 1.75rem;
    }

    .date-month {
        font-size: 0.85rem;
    }

    .media-item h4 {
        font-size: 1.1rem;
        padding: 1.2rem;
    }

    .publication-card {
        max-width: 100%;
    }

    .publication-card {
        flex-direction: column;
        align-items: center;
    }

    .publication-cover {
        width: 180px !important;
        min-width: 180px !important;
        max-width: 180px !important;
        height: 270px !important;
        max-height: 270px !important;
        margin: 1rem auto 0;
    }

    .publication-cover img,
    .book-cover-image {
        max-width: 180px !important;
        width: 180px !important;
        max-height: 270px !important;
    }

    .publication-details {
        padding: 0.75rem 1rem;
        text-align: center;
    }

    .publication-title {
        font-size: 1rem;
    }

    .publication-description {
        font-size: 0.85rem;
    }

    .publication-details .btn {
        padding: 0.7rem 1.25rem;
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .form-group {
        margin-bottom: 1.2rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.85rem;
        font-size: 16px; /* Prevents zoom on iOS */
        min-height: 48px; /* Better touch target */
    }

    .form-group textarea {
        min-height: 120px;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

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

    .social-links {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .social-link {
        text-align: center;
        padding: 0.85rem 1.5rem;
        min-height: 48px;
    }

    .footer {
        padding: 2rem 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-links a {
        display: block;
        padding: 0.5rem 0;
    }
    
    /* Faster animations on mobile for better performance */
    .fade-in,
    .section-content {
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    
    /* Better touch targets */
    .nav-link {
        padding: 1rem 0;
        font-size: 1.1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Reduce transform distance on mobile */
    .fade-in {
        transform: translateY(20px);
    }

    /* Prevent horizontal scrolling */
    * {
        max-width: 100%;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    /* Hide scroll indicator on mobile for cleaner look */
    .scroll-indicator {
        display: none;
    }

    /* Improve feature items on mobile */
    .feature-item {
        padding-left: 1rem;
        margin-bottom: 1.5rem;
    }

    .feature-item h4 {
        font-size: 1.1rem;
    }

    .feature-item p {
        font-size: 0.95rem;
    }
}

/* Extra small devices */
@media (max-width: 400px) {
    .hero-title {
        font-size: 1.9rem;
    }

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

    .logo {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

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