/* Mobile First Approach */
@media (max-width: 768px) {
    /* Base Reset & Typography */
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 20px;
        max-width: 100%;
    }
    
    /* Header & Navigation */
    .top-bar {
        display: none !important;
    }
    
    .header {
        height: 70px;
    }
    
    .nav {
        padding: 0;
    }
    
    .nav-container {
        padding: 10px 0;
        min-height: 60px;
    }
    
    .logo {
        gap: 10px;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
    }
    
    .logo-main {
        font-size: 1.2rem;
    }
    
    .logo-sub {
        font-size: 0.7rem;
    }
    
    /* Mobile Navigation Fix */
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 5px 20px rgba(0,0,0,0.1);
        flex-direction: column;
        padding: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        padding: 1rem;
        font-size: 1.1rem;
        border-bottom: 1px solid #f1f5f9;
        display: block;
    }
    
    .hamburger {
        display: flex !important;
        flex-direction: column;
        cursor: pointer;
        padding: 5px;
    }
    
    .hamburger span {
        width: 25px;
        height: 3px;
        background: #2563eb;
        margin: 3px 0;
        transition: 0.3s;
        border-radius: 2px;
    }
    
    /* Hero Section */
    .hero {
        padding-top: 80px;
        padding-bottom: 40px;
        min-height: 70vh;
    }
    
    .hero-floating {
        display: none !important;
    }
    
    .hero-content {
        padding: 30px 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .title-line, .title-highlight {
        display: inline;
    }
    
    .hero-description {
        font-size: 1.1rem !important;
        margin-bottom: 2rem;
        line-height: 1.5;
    }
    
    .hero-badge {
        font-size: 0.85rem;
        padding: 8px 16px;
        margin-bottom: 1.5rem;
        display: inline-block;
    }
    
    .hero-stats {
        gap: 25px;
        margin-bottom: 2rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat {
        min-width: 80px;
    }
    
    .stat-number {
        font-size: 1.8rem;
        margin-bottom: 4px;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 2rem;
    }
    
    .btn-large {
        padding: 14px 24px;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    /* Sections */
    .services, .why-choose, .process, .about, .contact, .department-details {
        padding: 60px 0;
    }
    
    .section-header {
        text-align: center;
    }
    
    .section-title {
        font-size: 1.8rem !important;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .section-description {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
    
    /* Services Grid */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .service-card {
        padding: 25px 20px;
        text-align: center;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        margin: 0 auto 20px;
    }
    
    .service-card h3 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }
    
    .service-features {
        text-align: left;
    }
    
    .service-features li {
        padding: 10px 0;
        font-size: 0.95rem;
    }
    
    /* Department Gallery - Square Images */
    .department-info {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .gallery-item {
        aspect-ratio: 1/1;
        border-radius: 12px;
        overflow: hidden;
        position: relative;
        background: #f8fafc;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }
    
    .gallery-item:hover img {
        transform: scale(1.05);
    }
    
    .gallery-placeholder {
        font-size: 2rem;
        color: #64748b;
        text-align: center;
        padding: 20px;
    }
    
    .gallery-placeholder span {
        display: block;
        font-size: 0.9rem;
        margin-top: 8px;
        color: #475569;
    }
    
    /* Features Grid - 2 columns */
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .feature-card {
        padding: 25px 15px;
        text-align: center;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 20px;
    }
    
    .feature-card h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .feature-card p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    /* Process */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .process-steps::before {
        display: none;
    }
    
    .process-step {
        padding: 0 15px;
        text-align: center;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
        margin: 0 auto 20px;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto 20px;
    }
    
    .process-step h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .about-features {
        gap: 25px;
    }
    
    .feature {
        gap: 15px;
        text-align: left;
    }
    
    .feature i {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        flex-shrink: 0;
    }
    
    .certification-badges {
        flex-direction: row;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .certification {
        padding: 20px;
        min-width: 120px;
    }
    
    .experience-badge {
        padding: 30px;
        margin: 20px auto 0;
        max-width: 200px;
    }
    
    .experience-badge .years {
        font-size: 2.5rem;
    }
    
    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-info-side {
        text-align: center;
    }
    
    .contact-card {
        justify-content: center;
        text-align: center;
    }
    
    .contact-form-side {
        padding: 25px 20px;
    }
    
    .contact-form h3 {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .form-group {
        margin-bottom: 25px;
    }
    
    /* Department Tabs */
    .department-tabs {
        margin: 0 -15px;
    }
    
    .tab-buttons {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .tab-btn {
        padding: 18px;
        font-size: 1rem;
        text-align: center;
        justify-content: center;
    }
    
    .department-info {
        padding: 25px 20px;
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .department-text {
        text-align: center;
    }
    
    .department-text h3 {
        font-size: 1.5rem;
    }
    
    .service-features-list {
        text-align: left;
        max-width: 300px;
        margin: 0 auto;
    }
    
    /* Footer */
    .footer {
        padding: 50px 0 0;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .footer-section h4 {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .footer-section ul li {
        margin-bottom: 10px;
    }
    
    .footer-section ul li a {
        font-size: 0.9rem;
        justify-content: center;
    }
    
    .footer-contact .contact-item {
        margin-bottom: 15px;
        font-size: 0.9rem;
        justify-content: center;
    }
    
    .footer-bottom {
        padding: 25px 0;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 10px;
    }
    
    /* CTA Section */
    .cta {
        padding: 60px 0;
        text-align: center;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .cta-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .cta-actions {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .cta-actions .btn {
        width: 100%;
        max-width: 280px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.7rem !important;
    }
    
    .section-title {
        font-size: 1.5rem !important;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat {
        min-width: 70px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* Adjust features grid for very small screens */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-card {
        padding: 20px 15px;
    }
    
    /* Gallery adjustments */
    .gallery-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
    }
    
    .gallery-item {
        max-height: 300px;
    }
    
    /* Service cards */
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon {
        width: 55px;
        height: 55px;
    }
    
    /* Button adjustments */
    .btn-large {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

/* Tablet Adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}