﻿@media (max-width: 1024px) {
    .glass-card {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .scrolling-wrapper {
        width: 100%;
        min-width: 100%;
        overflow: hidden;
    }

    .glass-card {
        border-radius: 1rem;
    }

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

    .hero {
        min-height: auto;
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .hero-button-group {
        gap: 0.75rem;
        align-items: stretch;
    }

    .hero-button-group>a {
        width: 100%;
    }

    .contact-container {
        padding: 32px 20px;
    }

    .contact-actions {
        justify-content: stretch;
    }

    #contactForm button,
    .contact-form button {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .gradient-text {
        font-size: 2.5rem;
    }

    .hero h1 {
        line-height: inherit;
    }

    .glass-card {
        padding: 1.75rem;
    }

    .contact-container {
        padding: 24px 16px;
    }

    /* Slightly reduce textarea height on narrow screens for better rhythm */
    textarea {
        min-height: 120px;
    }
}