/* ============================================
   Sparkle Beauty Lounge - Responsive Styles
   ============================================ */

/* ============================================
   EXTRA LARGE DEVICES (1400px and up)
   ============================================ */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }

    .hero-title {
        font-size: 5.5rem;
    }

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

/* ============================================
   LARGE DEVICES (Desktops, 992px and up)
   ============================================ */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .hero-title {
        font-size: 4rem;
    }

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

    .service-card {
        padding: 1.5rem !important;
    }

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

/* ============================================
   MEDIUM DEVICES (Tablets, 768px and up)
   ============================================ */
@media (min-width: 768px) and (max-width: 991.98px) {

    /* Navigation */
    .navbar-nav {
        flex-direction: row;
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem !important;
    }

    .btn-book {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    /* Hero Section */
    .hero-title {
        font-size: 3.5rem;
    }

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

    .hero-buttons .btn {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .stat-card {
        padding: 1.5rem !important;
    }

    /* Sections */
    section {
        padding: 50px 0;
    }

    body {
        padding-bottom: 80px;
        /* Space for bottom nav */
    }

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

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

    /* Services */
    .service-card {
        margin-bottom: 1.5rem;
    }

    .service-icon {
        width: 70px;
        height: 70px;
        font-size: 1.75rem;
    }

    /* About Section */
    .about-image-placeholder {
        height: 350px;
    }

    .floating-badge {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
    }

    /* Gallery */
    .gallery-item {
        height: 300px;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 2rem !important;
    }

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

    .stars {
        font-size: 1.3rem;
    }

    /* Contact */
    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    /* Footer */
    .footer {
        padding: 3rem 0 !important;
    }
}

/* ============================================
   SMALL DEVICES (Landscape Phones, 576px and up)
   ============================================ */
@media (min-width: 576px) and (max-width: 767.98px) {

    /* Navigation - Use Offcanvas on small devices */
    .navbar-collapse {
        display: none !important;
    }

    /* Hero Section */
    .hero-title {
        font-size: 2.75rem;
        margin-bottom: 1.5rem;
    }

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

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        margin: 0 !important;
        padding: 1rem;
    }

    .stat-card {
        padding: 1.25rem !important;
    }

    .stat-card h3 {
        font-size: 2.5rem;
    }

    /* Sections */
    section {
        padding: 60px 0;
    }

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

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

    /* Services */
    .service-card {
        padding: 1.5rem !important;
        margin-bottom: 1.5rem;
    }

    .service-icon {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
    }

    .service-card h3 {
        font-size: 1.25rem;
    }

    /* About Section */
    .about-image-placeholder {
        height: 300px;
        margin-bottom: 2rem;
    }

    .floating-badge {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .badge-1,
    .badge-2 {
        position: static;
        display: inline-block;
        margin: 0.5rem;
    }

    .feature-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }

    /* Gallery */
    .gallery-item {
        height: 280px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 40px;
        height: 40px;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 1.2rem;
    }

    /* Testimonials */
    .testimonial-card {
        padding: 1.75rem !important;
    }

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

    .stars {
        font-size: 1.2rem;
    }

    /* Contact */
    .contact-info,
    .contact-form {
        margin-bottom: 2rem;
    }

    .info-icon {
        width: 38px;
        height: 38px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    /* Footer */
    .footer {
        padding: 2.5rem 0 !important;
    }

    .footer .col-lg-4,
    .footer .col-lg-2,
    .footer .col-lg-3 {
        margin-bottom: 2rem;
    }
}

/* ============================================
   EXTRA SMALL DEVICES (Portrait Phones, less than 576px)
   ============================================ */
@media (max-width: 575.98px) {

    /* General */
    body {
        font-size: 14px;
    }

    /* Navigation */
    .navbar {
        padding: 0.75rem 0;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .navbar-brand .fa-gem {
        font-size: 1.5rem;
    }

    .navbar-collapse {
        display: none !important;
    }

    /* Hero Section */
    .hero-section {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem !important;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        width: 100%;
        margin: 0 !important;
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .stat-card {
        padding: 1rem !important;
        margin-bottom: 1rem;
    }

    .stat-card h3 {
        font-size: 2rem;
    }

    .stat-card p {
        font-size: 0.85rem;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    /* Sections */
    section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.875rem;
        margin-bottom: 1rem;
    }

    .section-title::after {
        width: 40px;
        height: 3px;
    }

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

    /* Services Section */
    .services-section .row.g-4 {
        gap: 0 !important;
    }

    .service-card {
        padding: 1.25rem !important;
        margin-bottom: 1.25rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .service-card h3 {
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
    }

    .service-card p {
        font-size: 0.875rem;
    }

    .service-list li {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }

    .price-tag {
        font-size: 1.1rem;
    }

    /* About Section */
    .about-image-placeholder {
        height: 250px;
        margin-bottom: 2rem;
    }

    .floating-badge {
        position: static;
        display: inline-block;
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        margin: 0.5rem 0.25rem;
    }

    .feature-item {
        margin-bottom: 1.5rem;
    }

    .feature-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

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

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

    /* Gallery Section */
    .gallery-swiper {
        padding: 20px 0;
    }

    .gallery-item {
        height: 250px;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 35px;
        height: 35px;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 1rem;
    }

    .gallery-overlay h4 {
        font-size: 1.1rem;
    }

    .gallery-overlay p {
        font-size: 0.85rem;
    }

    /* Testimonials Section */
    .testimonial-card {
        padding: 1.5rem !important;
    }

    .stars {
        font-size: 1.1rem;
        margin-bottom: 1rem !important;
    }

    .testimonial-text {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .author-image i {
        font-size: 2.5rem;
    }

    .author-name {
        font-size: 1rem;
    }

    .author-title {
        font-size: 0.8rem;
    }

    /* Contact Section */
    .contact-info {
        margin-bottom: 2rem;
    }

    .info-item {
        margin-bottom: 1.5rem !important;
    }

    .info-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .info-item h5 {
        font-size: 0.95rem;
    }

    .info-item p {
        font-size: 0.85rem;
    }

    .social-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .form-control,
    .form-select {
        font-size: 0.9rem;
        padding: 0.625rem 0.875rem;
    }

    .form-label {
        font-size: 0.9rem;
    }

    /* Footer */
    .footer {
        padding: 2rem 0 !important;
    }

    .footer h5 {
        font-size: 1.1rem;
        margin-bottom: 1.25rem;
    }

    .footer .col-lg-4,
    .footer .col-lg-2,
    .footer .col-lg-3,
    .footer .col-md-6 {
        margin-bottom: 1.75rem;
    }

    .footer p,
    .footer-links a {
        font-size: 0.875rem;
    }

    .footer .row:last-child .col-md-6 {
        text-align: center !important;
        margin-top: 1rem;
    }

    /* Modal */
    .modal-dialog {
        margin: 0.5rem;
    }

    .glass-modal .modal-body {
        padding: 1.5rem !important;
    }

    .modal-title {
        font-size: 1.15rem;
    }

    .service-option label {
        font-size: 0.9rem;
        padding: 0.75rem;
    }

    .service-option i {
        font-size: 1.5rem !important;
    }

    /* Buttons */
    .btn-primary,
    .btn-outline-primary {
        font-size: 0.9rem;
        padding: 0.625rem 1.25rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.95rem !important;
    }

    /* Back to Top Button */
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1.25rem;
    }

    /* Toast */
    .toast-container {
        padding: 1rem !important;
    }

    .toast {
        font-size: 0.875rem;
    }
}

/* ============================================
   ULTRA SMALL DEVICES (less than 360px)
   ============================================ */
@media (max-width: 359.98px) {
    .hero-title {
        font-size: 1.75rem;
    }

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

    .service-card {
        padding: 1rem !important;
    }

    .hero-buttons .btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    .stat-card h3 {
        font-size: 1.75rem;
    }
}

/* ============================================
   LANDSCAPE ORIENTATION
   ============================================ */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 50px;
    }

    .stat-card {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }

    section {
        padding: 40px 0;
    }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */
@media (hover: none) and (pointer: coarse) {

    /* Increase touch targets */
    .nav-link,
    .btn,
    .social-icon {
        min-height: 44px;
        min-width: 44px;
    }

    /* Remove hover effects on touch devices */
    .service-card:hover::before {
        display: none;
    }

    .glass-card:hover {
        transform: none;
    }

    /* Simplify animations for better performance */
    .tilt-card {
        transform: none !important;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {

    /* Hide non-essential elements */
    .navbar,
    .hero-buttons,
    .scroll-indicator,
    .back-to-top,
    .modal,
    .toast-container,
    #particles-js {
        display: none !important;
    }

    /* Optimize layout */
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    section {
        page-break-inside: avoid;
        padding: 20px 0;
    }

    .glass-card {
        background: #fff;
        border: 1px solid #ddd;
    }

    /* Ensure links are visible */
    a {
        color: #000;
        text-decoration: underline;
    }
}

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */
@media (prefers-contrast: high) {
    .glass-card {
        border: 2px solid currentColor;
        background: var(--white);
    }

    .btn-primary {
        border: 2px solid currentColor;
    }

    .nav-link::after {
        height: 3px;
    }
}

/* ============================================
   REDUCED TRANSPARENCY (Accessibility)
   ============================================ */
@media (prefers-reduced-transparency: reduce) {

    .glass-card,
    .glass-nav,
    .glass-offcanvas,
    .glass-modal {
        backdrop-filter: none;
        background: var(--white);
        opacity: 1;
    }

    body.dark-mode .glass-card,
    body.dark-mode .glass-nav,
    body.dark-mode .glass-offcanvas,
    body.dark-mode .glass-modal {
        background: var(--dark);
    }
}