/* ==========================================================================
   UTILITIES: Buttons, Text, Animations, Responsive
   ========================================================================== */

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 8px; padding: 12px 24px; font-size: 15px; font-weight: 600;
    border-radius: var(--radius-sm); cursor: pointer; border: 2px solid transparent;
    transition: var(--transition-smooth); font-family: var(--font-heading);
}
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: var(--radius-md); }
.btn-primary { background-color: var(--primary); color: var(--white); }
.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(37, 99, 235, 0.4);
}
.btn-outline-light {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
}
.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--dark);
    transform: translateY(-2px);
}
.btn-block { display: flex; width: 100%; }
.btn-loading-state { position: relative; }

/* Text Utilities */
.text-center { text-align: center; }

/* Animations */
.animate-fade-in { animation: fadeIn 1s ease forwards; opacity: 0; }
.animate-fade-in-up { animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

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

/* Scroll Reveal */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal.revealed { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   RESPONSIVE DESIGN (ALL MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1150px) {
    .nav-toggle { display: block; z-index: 1001; }
    .nav-menu {
        position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
        background-color: var(--white); box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        padding: 100px 40px 40px 40px; transition: var(--transition-smooth); z-index: 1000;
    }
    .nav-menu.active { right: 0; }
    .nav-menu ul { flex-direction: column; align-items: flex-start; gap: 24px; }
    .nav-menu a.nav-link { font-size: 16px; }
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .footer-bottom-container { flex-direction: column; gap: 15px; text-align: center; }
}

@media (max-width: 992px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .grid-2 { gap: 40px; }
    .grid-3 { gap: 30px; }
    .section-title { font-size: 30px; }
    .hero-content h1 { font-size: 36px; }
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content { max-width: 100%; }
    .hero-logo { order: -1; padding-top: 55px; }
    .hero-logo-img { max-height: 200px; }
    .hero-lead { font-size: 16px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .about-image-wrapper { order: -1; }
    .experience-badge { left: 20px; }
    .mv-card { padding: 30px; }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .gallery-slideshow-container { height: 350px; }
    .slide-caption p { font-size: 14px; }
    .slide-nav { padding: 12px; font-size: 16px; }
    .work-card { grid-template-columns: 1fr; }
    .work-img-box { min-height: 250px; }
    .work-content { padding: 30px 24px 60px 24px; }
    .carousel-nav-controls { right: 24px; bottom: 15px; }
}

@media (max-width: 576px) {
    section.section { padding: 60px 0; }
    .about-stats-mini { flex-direction: column; gap: 20px; }
    .contact-form-container { padding: 24px; }
    .hero-section { height: auto; padding-top: 85px; padding-bottom: 80px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
    .social-icons { justify-content: center; }
    .footer-contact-p { justify-content: center; }
    .testimonial-modal { padding: 28px 20px; }
    .form-row { grid-template-columns: 1fr; }
    .testimonials-cta { padding: 24px 16px; }
    .site-header { height: 85px; }
    .site-header.scrolled { height: 72px; }
    .logo-img { height: 56px !important; }
    .footer-logo-img { height: 80px; }
    .logo-sub-footer { font-size: 9.5px; }
    .footer-brand p { font-size: 13.5px; line-height: 1.5; }
    body, html { overflow-x: hidden; width: 100%; }
}

/* Overflow Protection */
.contact-info a, .footer-contact-p, .footer-grid a, .site-footer a,
.method-details a, .method-details span, .logo-bold, .logo-sub {
    word-break: break-word;
    overflow-wrap: break-word;
}
