/* Responsive CSS for Dr. P. Sathish Neuro Center Website */

/* Extra Small Devices (Phones, 576px and down) */
@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
    }

    .hero-section h2 {
        font-size: 1.5rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

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

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

    .nav-link {
        font-size: 0.9rem;
    }

    .service-card {
        margin-bottom: 1rem;
    }

    .contact-info {
        font-size: 0.9rem;
    }

    footer .text-center {
        text-align: center !important;
    }
}

/* Small Devices (Tablets, 577px and up) */
@media (min-width: 577px) and (max-width: 768px) {
    .hero-section h2 {
        font-size: 1.8rem;
    }

    .hero-section .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

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

    .service-card {
        padding: 1.5rem;
    }

    .contact-info {
        font-size: 1rem;
    }
}

/* Medium Devices (Desktops, 769px and up) */
@media (min-width: 769px) and (max-width: 992px) {
    .hero-section h2 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

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

    .service-icon {
        font-size: 2.5rem;
    }

    .contact-info {
        font-size: 1.05rem;
    }
}

/* Large Devices (Large Desktops, 993px and up) */
@media (min-width: 993px) and (max-width: 1200px) {
    .hero-section h2 {
        font-size: 2.2rem;
    }

    .hero-section .lead {
        font-size: 1.2rem;
    }

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

    .service-icon {
        font-size: 3rem;
    }
}

/* Extra Large Devices (Extra Large Desktops, 1201px and up) */
@media (min-width: 1201px) {
    .hero-section h2 {
        font-size: 2.5rem;
    }

    .hero-section .lead {
        font-size: 1.3rem;
    }

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

    .service-icon {
        font-size: 3.5rem;
    }
}

/* Specific Responsive Adjustments */
/* Mobile Navigation */
@media (max-width: 992px) {
    .navbar-collapse {
        background-color: rgba(255, 255, 255, 0.95);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 15px;
        margin-top: 10px;
        border-radius: 5px;
    }

    .navbar-nav .nav-item {
        margin: 5px 0;
    }

    .navbar-nav .nav-link {
        padding: 10px 15px;
        border-radius: 5px;
        text-align: center;
    }

    .navbar-nav .nav-link:hover {
        background-color: #007bff;
        color: white !important;
    }
}

/* Tablet Portrait */
@media (min-width: 768px) and (max-width: 992px) {
    .hero-image {
        min-height: 250px;
    }

    .about-image {
        min-height: 250px;
    }

    .service-card {
        padding: 1.2rem;
    }
}

/* Mobile Landscape */
@media (min-width: 576px) and (max-width: 768px) {
    .hero-image {
        min-height: 200px;
    }

    .about-image {
        min-height: 200px;
    }
}

/* Extra Small Devices */
@media (max-width: 576px) {
    .hero-image {
        min-height: 150px;
    }

    .about-image {
        min-height: 150px;
    }

    .service-card {
        padding: 1rem;
    }

    .map-container iframe {
        height: 200px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .section-title {
        border-bottom: 3px solid #000;
    }

    .service-card {
        border: 2px solid #000;
    }
}

/* Print Styles */
@media print {
    * {
        background: transparent !important;
        color: black !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    .navbar, footer, .hero-section {
        display: none;
    }

    .section-title {
        border-bottom: 2px solid #000;
    }
}

/* Orientation Specific */
@media (orientation: landscape) {
    .hero-section {
        min-height: 70vh;
    }

    .about-image, .hero-image {
        min-height: 400px;
    }
}

@media (orientation: portrait) {
    .hero-section {
        min-height: 60vh;
    }

    .about-image, .hero-image {
        min-height: 300px;
    }
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .service-card:hover {
        transform: none;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    }

    .nav-link:hover {
        background-color: transparent;
        color: #007bff !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .service-card {
        transition: none;
    }

    .hero-section {
        animation: none;
    }
}

/* Focus Styles */
*:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #e0e0e0;
    }

    .service-card {
        background-color: #1e1e1e;
    }

    .card {
        background-color: #1e1e1e;
        color: #e0e0e0;
    }

    .form-control {
        background-color: #2d2d2d;
        color: #e0e0e0;
        border-color: #444;
    }

    .navbar {
        background-color: #1e1e1e;
    }

    .footer {
        background-color: #0a0a0a;
    }
}