/* Responsive Design for Reddy Book Website */

/* Large Desktops (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Medium Desktops (992px to 1199px) */
@media (max-width: 1199px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets (768px to 991px) */
@media (max-width: 991px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 0;
    }

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

    .nav-menu .nav-link {
        padding: 1rem;
        display: block;
        border-bottom: 1px solid #f3f4f6;
    }

    .nav-menu .nav-link:last-child {
        border-bottom: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

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

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        min-width: 200px;
    }

    /* About Grid */
    .about-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2rem;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    /* Contact Preview */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    /* Page Content */
    .page-content {
        padding: 3rem 0;
    }

    /* Typography adjustments */
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

/* Mobile Devices (576px to 767px) */
@media (max-width: 767px) {
    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Navigation */
    .nav-container {
        padding: 1rem;
    }

    .nav-logo h2 {
        font-size: 1.5rem;
    }

    /* Hero Section */
    .hero {
        height: 80vh;
        min-height: 500px;
    }

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

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

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    /* Section Padding */
    .about-preview,
    .services-preview,
    .contact-preview {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* About Grid */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 2rem;
    }

    .about-item {
        padding: 1.5rem;
    }

    /* Services Grid */
    .service-card {
        padding: 2rem 1rem;
    }

    /* Contact Preview */
    .contact-info h2 {
        font-size: 2rem;
    }

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

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

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

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-section h3 {
        font-size: 1.3rem;
    }

    .footer-section h4 {
        font-size: 1.1rem;
    }

    .social-links {
        justify-content: center;
    }

    /* Contact Form */
    .contact-form {
        padding: 1.5rem;
    }

    /* Maps */
    .map-container {
        height: 300px;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        min-width: 160px;
    }

    .btn-large {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

/* Small Mobile Devices (up to 575px) */
@media (max-width: 575px) {
    /* Container */
    .container {
        padding: 0 10px;
    }

    /* Navigation */
    .nav-container {
        padding: 0.8rem;
    }

    .nav-logo h2 {
        font-size: 1.3rem;
    }

    .nav-toggle {
        width: 20px;
    }

    .bar {
        width: 20px;
        height: 2px;
    }

    /* Hero Section */
    .hero {
        height: 70vh;
        min-height: 450px;
    }

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

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    /* Section Padding */
    .about-preview,
    .services-preview,
    .contact-preview {
        padding: 3rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    /* About Section */
    .about-item {
        padding: 1rem;
    }

    .about-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .about-icon i {
        font-size: 1.5rem;
    }

    /* Services Section */
    .service-card {
        padding: 1.5rem 1rem;
    }

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

    .service-icon i {
        font-size: 1.5rem;
    }

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

    /* Contact Preview */
    .contact-info h2 {
        font-size: 1.8rem;
    }

    .contact-details {
        gap: 0.8rem;
    }

    .contact-item {
        font-size: 0.85rem;
    }

    .contact-item i {
        font-size: 1rem;
    }

    /* Footer */
    .footer-section h3 {
        font-size: 1.2rem;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-section p,
    .footer-section ul li a {
        font-size: 0.9rem;
    }

    .social-links a {
        width: 35px;
        height: 35px;
    }

    .social-links a i {
        font-size: 0.9rem;
    }

    /* Forms */
    .form-control {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .contact-form {
        padding: 1rem;
    }

    /* Typography */
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    p {
        font-size: 0.9rem;
    }

    /* Buttons */
    .btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        min-width: 140px;
    }

    .btn-large {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
}

/* Landscape Mobile Devices */
@media (max-width: 767px) and (orientation: landscape) {
    .hero {
        height: 100vh;
    }

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

    .nav-menu {
        top: 60px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .hero,
    .page-hero {
        background-attachment: scroll;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .btn,
    .social-links {
        display: none;
    }

    .hero {
        height: auto;
        padding: 2rem 0;
        background: #f8f9fa;
        color: #333;
    }

    .page-content {
        padding: 1rem 0;
    }

    * {
        box-shadow: none !important;
    }
}

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

    .hero {
        background-attachment: scroll;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* This is a placeholder for future dark mode implementation */
    /* Currently maintaining light theme for professional IT company appearance */
}

/* Focus Styles for Accessibility */
@media (any-hover: hover) {
    .nav-link:hover,
    .btn:hover,
    .service-card:hover,
    .about-item:hover {
        /* Enhanced hover effects for devices that support hover */
    }
}

/* Touch Device Optimizations */
@media (any-pointer: coarse) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }

    .nav-link {
        padding: 12px 0;
    }

    .social-links a {
        min-width: 44px;
        min-height: 44px;
    }
} 