/* Responsive Design for Sadguru Engineering Website */

/* Large Desktop (1200px and above) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .slide-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Desktop (992px to 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    .slide-title {
        font-size: 2.8rem;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 15px;
    }
    
    /* Header */
    .header-content {
        padding: 10px 0;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Hero Slider */
    .hero-slider {
        height: 80vh;
        margin-top: 70px;
    }
    
    .slide-title {
        font-size: 2.2rem;
    }
    
    .slide-subtitle {
        font-size: 1.3rem;
    }
    
    .slide-description {
        font-size: 1rem;
    }
    
    .slide-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    /* Sections */
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
    }
    
    /* Products Section */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .product-image {
        height: 200px;
    }
    
    /* Stats Section */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .feature-item {
        padding: 25px;
    }
    
    .feature-icon {
        width: 70px;
        height: 70px;
    }
    
    .feature-icon i {
        font-size: 28px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    /* Slider Controls */
    .slider-controls {
        padding: 0 20px;
    }
    
    .slider-btn {
        width: 45px;
        height: 45px;
    }
    
    /* CTA Section */
    .cta-content h2 {
        font-size: 2.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

/* Mobile Large (576px to 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 15px;
    }
    
    /* Header */
    .header-content {
        padding: 8px 0;
    }
    
    .logo-text {
        font-size: 14px;
    }
    
    .logo-s, .logo-e {
        font-size: 20px;
    }
    
    /* Hero Slider */
    .hero-slider {
        height: 70vh;
        margin-top: 60px;
    }
    
    .slide-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .slide-subtitle {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .slide-description {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }
    
    .slide-content {
        padding: 0 20px;
    }
    
    /* Sections */
    section {
        padding: 50px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* About Section */
    .about-features {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature {
        gap: 12px;
    }
    
    .feature i {
        font-size: 20px;
    }
    
    /* Products Section */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-content {
        padding: 20px;
    }
    
    .product-content h3 {
        font-size: 1.3rem;
    }
    
    /* Stats Section */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 2rem;
        margin-bottom: 5px;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-item {
        padding: 20px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .feature-icon i {
        font-size: 24px;
    }
    
    .feature-item h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .footer-links li {
        margin-bottom: 8px;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
    
    .contact-item {
        gap: 10px;
    }
    
    .contact-item p {
        font-size: 0.9rem;
    }
    
    /* Slider Controls */
    .slider-controls {
        padding: 0 15px;
    }
    
    .slider-btn {
        width: 40px;
        height: 40px;
    }
    
    .slider-dots {
        bottom: 20px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    /* CTA Section */
    .cta-content h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .cta-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .btn-outline {
        padding: 8px 20px;
        font-size: 13px;
    }
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 10px;
    }
    
    /* Header */
    .header-content {
        padding: 5px 0;
    }
    
    .logo-text {
        font-size: 12px;
    }
    
    .logo-s, .logo-e {
        font-size: 18px;
    }
    
    /* Hero Slider */
    .hero-slider {
        height: 60vh;
        margin-top: 50px;
    }
    
    .slide-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }
    
    .slide-subtitle {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .slide-description {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    .slide-content {
        padding: 0 15px;
    }
    
    /* Sections */
    section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 30px;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 8px;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    /* About Section */
    .about-content {
        gap: 30px;
    }
    
    .about-text h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .about-text p {
        font-size: 0.9rem;
    }
    
    .feature {
        gap: 10px;
    }
    
    .feature i {
        font-size: 18px;
    }
    
    .feature h4 {
        font-size: 1rem;
    }
    
    .feature p {
        font-size: 0.85rem;
    }
    
    /* Products Section */
    .products-grid {
        gap: 15px;
    }
    
    .product-image {
        height: 160px;
    }
    
    .product-content {
        padding: 15px;
    }
    
    .product-content h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .product-content p {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    
    /* Stats Section */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-item {
        padding: 12px;
    }
    
    .stat-number {
        font-size: 1.8rem;
        margin-bottom: 3px;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    /* Features Grid */
    .features-grid {
        gap: 15px;
    }
    
    .feature-item {
        padding: 15px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 12px;
    }
    
    .feature-icon i {
        font-size: 20px;
    }
    
    .feature-item h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .feature-item p {
        font-size: 0.85rem;
    }
    
    /* Footer */
    .footer {
        padding: 30px 0 10px;
    }
    
    .footer-content {
        gap: 20px;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .footer-links li {
        margin-bottom: 6px;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .contact-item {
        gap: 8px;
    }
    
    .contact-item p {
        font-size: 0.85rem;
    }
    
    .social-links {
        gap: 10px;
        margin-top: 15px;
    }
    
    .social-links a {
        width: 35px;
        height: 35px;
    }
    
    /* Slider Controls */
    .slider-controls {
        padding: 0 10px;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
    }
    
    .slider-dots {
        bottom: 15px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
    
    /* CTA Section */
    .cta-content h2 {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    
    .cta-content p {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }
    
    /* Buttons */
    .btn {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    .btn-outline {
        padding: 6px 15px;
        font-size: 12px;
    }
    
    /* Typography */
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }
    h4 { font-size: 1rem; }
    
    p {
        font-size: 0.85rem;
    }
}

/* Landscape Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-slider {
        height: 100vh;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-subtitle {
        font-size: 1.2rem;
    }
    
    .slide-description {
        font-size: 1rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-s, .logo-e {
        font-weight: 800;
    }
    
    .btn {
        font-weight: 600;
    }
}

/* Print Styles */
@media print {
    .header,
    .hero-slider,
    .slider-controls,
    .slider-dots,
    .cta-section,
    .footer,
    .back-to-top {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    section {
        padding: 20pt 0;
        page-break-inside: avoid;
    }
    
    .section-title {
        font-size: 18pt;
        color: #000;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .product-card {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .slide {
        transition: none;
    }
    
    .product-card:hover,
    .feature-item:hover {
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* This can be expanded if dark mode is desired */
    .header {
        background: rgba(0, 0, 0, 0.95);
    }
    
    .logo-text {
        color: #fff;
    }
    
    .nav-link {
        color: #fff;
    }
}

/* Focus Styles for Accessibility */
.btn:focus,
.nav-link:focus,
.slider-btn:focus,
.dot:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Skip to Content Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #1e3c72;
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1001;
}

.skip-link:focus {
    top: 6px;
}





