/* Responsive Design */

/* Tablet Styles */
@media screen and (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--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 li {
        margin: 1rem 0;
    }

    .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 */
    .slide-text h1 {
        font-size: 2.2rem;
    }

    .slide-text p {
        font-size: 1rem;
    }

    .slider-controls {
        padding: 0 20px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    /* Section Headers */
    .section-header h2 {
        font-size: 2rem;
    }

    /* Purpose Cards */
    .purpose-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .purpose-card {
        padding: 2rem;
    }

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

    /* Projects Grid */
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    /* CTA Section */
    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content p {
        font-size: 1.1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 250px;
        text-align: center;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Page Hero */
    .page-hero h1 {
        font-size: 2.2rem;
    }

    .page-hero p {
        font-size: 1.1rem;
    }

    /* Content Grid */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Founder Profile */
    .founder-profile {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .founder-image img {
        max-width: 250px;
        height: 300px;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* Service Features */
    .service-features {
        grid-template-columns: 1fr;
    }
}

/* Mobile Styles */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

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

    /* Hero Section */
    .hero {
        height: 70vh;
    }

    .slide-text {
        padding: 0 15px;
    }

    .slide-text h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .slide-text p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .slider-controls {
        padding: 0 15px;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    /* Emergency Banner */
    .emergency-content {
        flex-direction: column;
        gap: 5px;
        font-size: 1rem;
    }

    .emergency-content span {
        text-align: center;
    }

    /* Section Spacing */
    .vision-mission,
    .services-overview,
    .recent-projects,
    .cta-section {
        padding: 60px 0;
    }

    .content-section {
        padding: 40px 0;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 2rem;
    }

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

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

    /* Purpose Cards */
    .purpose-card {
        padding: 1.5rem;
    }

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

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

    .purpose-card h3 {
        font-size: 1.5rem;
    }

    /* Service Cards */
    .service-card {
        padding: 1.5rem;
    }

    .service-icon {
        width: 60px;
        height: 60px;
    }

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

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

    /* Project Cards */
    .project-image {
        height: 200px;
    }

    .project-content {
        padding: 1.2rem;
    }

    .project-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Statistics */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    /* CTA Section */
    .cta-content h2 {
        font-size: 1.8rem;
    }

    .cta-content p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* Footer */
    .footer {
        padding: 30px 0 15px;
    }

    .footer-content {
        gap: 1.2rem;
    }

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

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

    .social-links a {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    /* Page Hero */
    .page-hero {
        padding: 100px 0 40px;
    }

    .page-hero h1 {
        font-size: 1.8rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

    /* Content Sections */
    .main-content,
    .sidebar {
        padding: 1.5rem;
    }

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

    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    /* Founder Profile */
    .founder-info h2 {
        font-size: 1.6rem;
    }

    .founder-title {
        font-size: 1.1rem;
    }

    .founder-image img {
        max-width: 200px;
        height: 250px;
    }

    .founder-achievements {
        padding: 1.5rem;
    }

    /* Service Details */
    .service-detail {
        padding: 1.5rem;
    }

    .service-detail h3 {
        font-size: 1.4rem;
    }

    .feature-item {
        padding: 1.2rem;
    }

    .feature-item i {
        font-size: 1.5rem;
    }

    /* Gallery */
    .gallery-item img,
    .gallery-item video {
        height: 200px;
    }

    .gallery-overlay {
        padding: 15px 10px 10px;
    }

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

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

/* Extra Small Mobile */
@media screen and (max-width: 320px) {
    .slide-text h1 {
        font-size: 1.5rem;
    }

    .slide-text p {
        font-size: 0.9rem;
    }

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

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

    .cta-content h2 {
        font-size: 1.6rem;
    }

    .page-hero h1 {
        font-size: 1.6rem;
    }

    .founder-info h2 {
        font-size: 1.4rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* Large Desktop */
@media screen and (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }

    .nav-container {
        max-width: 1400px;
    }

    .slide-text h1 {
        font-size: 3.5rem;
    }

    .slide-text p {
        font-size: 1.3rem;
    }

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

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero,
    .slider-controls,
    .slider-dots,
    .emergency-banner,
    .cta-section,
    .footer {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .container {
        max-width: none;
        padding: 0;
    }

    .section-header h2 {
        font-size: 18pt;
        color: black;
    }

    .purpose-card,
    .service-card,
    .project-card {
        box-shadow: none;
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-green: #1a5d3a;
        --secondary-green: #2d7d4d;
        --dark-gray: #000000;
        --text-gray: #444444;
        --border-color: #000000;
    }

    .nav-link,
    .service-link,
    .footer-section ul li a {
        text-decoration: underline;
    }

    .cta-button,
    .btn {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion */
@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;
    }

    .emergency-content i {
        animation: none;
    }
}