/* =========== RESPONSIVE STYLES - COMPLETE =========== */

/* Large Screens (max-width: 1200px) */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .choose-grid,
    .mission-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }
    
    .process-steps,
    .dev-process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefits-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium Screens (max-width: 992px) */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .hero .container,
    .about-content,
    .service-overview,
    .about-overview,
    .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 38px;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .services-grid,
    .portfolio-grid,
    .blog-grid,
    .detailed-services,
    .tech-categories,
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-logos {
        gap: 30px;
    }
    
    .tech-logo i {
        font-size: 40px;
    }
    
    .expertise-grid,
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .service-features-grid {
        grid-template-columns: 1fr;
    }
    
    .service-feature-item {
        text-align: left;
        justify-content: flex-start;
    }
    
    .strategy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-phase {
        text-align: left;
    }
}

/* Small Screens (max-width: 768px) */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
        overflow-x: hidden;
    }
    
    /* ===== MOBILE HEADER - LOGO, NAV, QUOTE INLINE ===== */
    .navbar {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .nav-actions {
        order: 2;
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 15px;
    }
    
    .logo {
        order: 1;
        flex-shrink: 0;
    }
    
    /* FIXED: Logo size on mobile - Properly sized */
    .logo-icon {
        height: 40px !important;  /* CHANGED: 50px se 40px - Fixed size */
        width: auto;
        max-width: 120px;
    }
    
    /* Also fix footer logo on mobile */
    .footer-logo .logo-icon {
        height: 40px !important;
    }
    
    .nav-menu {
        order: 3;
        width: 100%;
    }
    
    /* ===== MOBILE NAVIGATION ===== */
    .nav-list {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--deep-navy);
        box-shadow: var(--shadow-lg);
        padding: 20px;
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.3s ease, opacity 0.3s ease;
        z-index: 999;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid rgba(56, 189, 248, 0.3);
    }
    
    .nav-list.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-item {
        width: 100%;
        position: relative;
    }
    
    .nav-link {
        display: block;
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
        width: 100%;
        color: var(--off-white);
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: var(--sky-blue);
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    /* Dropdown Styles for Mobile */
    .dropdown {
        position: relative;
        width: 100%;
    }
    
    .dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        cursor: pointer;
        padding: 15px 0;
        border-bottom: 1px solid var(--border-color);
        color: var(--off-white);
    }
    
    .dropdown-toggle i {
        transition: transform 0.3s ease;
    }
    
    .dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 0;
        margin: 0;
        display: none;
        width: 100%;
        background-color: var(--bg-light);
        border-radius: var(--radius-sm);
        margin-top: 5px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
        max-height: 300px;
        padding: 10px 0;
    }
    
    .dropdown-item {
        display: block;
        padding: 12px 20px;
        color: var(--off-white-muted);
        font-weight: 500;
        border-bottom: 1px solid var(--border-color);
        font-size: 14px;
        padding-left: 30px;
    }
    
    .dropdown-item:last-child {
        border-bottom: none;
    }
    
    .dropdown-item:hover {
        background-color: rgba(56, 189, 248, 0.1);
        color: var(--sky-blue);
    }
    
    .nav-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        color: var(--sky-blue);
        cursor: pointer;
        z-index: 1000;
    }
    
    .nav-toggle i {
        transition: transform 0.3s ease;
    }
    
    /* ===== GENERAL STYLES ===== */
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    /* Banner and hero padding */
    .page-header,
    .hero {
        padding-top: 120px;
    }
    
    /* Banner text size - Smaller */
    .page-header h1,
    .hero-title {
        font-size: 28px;
    }
    
    .page-header p,
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
    }
    
    /* ===== GRID LAYOUTS - ALL 1 COLUMN ON MOBILE ===== */
    .about-stats,
    .services-grid,
    .choose-grid,
    .mission-grid,
    .team-grid,
    .portfolio-grid,
    .blog-grid,
    .detailed-services,
    .dev-process-steps,
    .testimonials-grid,
    .faq-grid,
    .metrics-grid,
    .benefits-list,
    .strategy-grid {
        grid-template-columns: 1fr !important;
    }
    
    .process-steps {
        grid-template-columns: 1fr !important;
    }
    
    .tech-logos {
        gap: 20px;
    }
    
    .tech-logo i {
        font-size: 36px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 40px;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .contact-form-container {
        padding: 30px 25px;
    }
    
    .map-container {
        height: 300px;
    }
    
    /* ===== SERVICE DETAIL PAGES ===== */
    .service-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-feature-item {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .service-feature-icon {
        margin-bottom: 10px;
    }
    
    .detailed-service {
        padding: 20px;
        text-align: center;
    }
    
    .detailed-service h3 {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    /* ===== TECH CATEGORIES ===== */
    .tech-categories {
        grid-template-columns: 1fr;
    }
    
    .tech-category {
        padding: 20px;
    }
    
    .tech-category h3 {
        justify-content: center;
    }
    
    /* ===== PROCESS STEPS ===== */
    .process-step,
    .dev-step {
        padding: 20px;
    }
    
    .step-number,
    .dev-step-icon {
        margin-bottom: 15px;
    }
    
    /* ===== DIGITAL MARKETING PAGE ===== */
    .strategy-step {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .strategy-step .step-number {
        margin-bottom: 10px;
    }
    
    .metric-item {
        padding: 25px;
    }
    
    /* ===== SEO SMO PAGE ===== */
    .process-phase {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .phase-number {
        margin-bottom: 10px;
    }
    
    .strategy-item {
        padding: 25px;
    }
    
    .benefit {
        padding: 20px;
    }
    
    .benefit h3 {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    /* ===== WEB DESIGN PAGE ===== */
    .process-phase {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .phase-content {
        text-align: center;
    }
    
    /* ===== ABOUT PAGE ===== */
    .team-member {
        padding: 25px;
    }
    
    .member-image {
        width: 120px;
        height: 120px;
    }
    
    .expertise-item {
        padding: 25px;
    }
    
    .expertise-item h3 {
        text-align: center;
    }
    
    /* ===== PORTFOLIO PAGE ===== */
    .portfolio-filters {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .portfolio-item {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .portfolio-image {
        height: 200px;
    }
    
    /* ===== BLOG PAGE ===== */
    .blog-categories {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .category-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
    
    .blog-card {
        max-width: 400px;
        margin: 0 auto;
    }
    
    .blog-image {
        height: 180px;
    }
    
    .blog-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    /* ===== CONTACT PAGE ===== */
    .contact-method {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .contact-icon {
        margin-bottom: 10px;
    }
    
    .office-hours ul {
        text-align: center;
        padding-left: 0;
    }
    
    .office-hours li {
        text-align: center;
    }
    
    .faq-item {
        padding: 25px;
        text-align: center;
    }
    
    /* ===== FOOTER ===== */
    .footer {
        padding: 60px 0 20px;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
    
    .footer-title {
        text-align: center;
    }
    
    .footer-links {
        text-align: center;
    }
    
    /* ===== FIX FOR CUTTING CONTENT/IMAGES ===== */
    img, iframe, video {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .hero-image, .about-image, .service-image {
        overflow: hidden;
    }
    
    /* ===== BUTTONS ===== */
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-large {
        padding: 12px 28px;
    }
    
    /* ===== CTA SECTION ===== */
    .cta-content h2 {
        font-size: 24px !important;
    }
    
    .cta-content p {
        font-size: 14px !important;
        padding: 0 20px;
    }
}

/* Extra Small Screens (max-width: 576px) */
@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .page-header h1,
    .hero-title {
        font-size: 24px;
    }
    
    /* FIXED: Logo on extra small screens */
    .logo-icon {
        height: 35px !important;  /* Even smaller on very small devices */
        max-width: 100px;
    }
    
    .footer-logo .logo-icon {
        height: 35px !important;
    }
    
    .hero-actions .btn {
        width: 100%;
        max-width: 280px;
    }
    
    .about-text h3 {
        font-size: 24px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .service-card,
    .choose-item,
    .mission-card,
    .team-member,
    .portfolio-item,
    .blog-card,
    .testimonial-card,
    .faq-item {
        padding: 25px 20px;
    }
    
    .tech-logos {
        gap: 15px;
    }
    
    .tech-logo i {
        font-size: 32px;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .footer {
        padding: 60px 0 20px;
    }
    
    .portfolio-filters,
    .blog-categories {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .filter-btn,
    .category-btn {
        padding: 6px 15px;
        font-size: 13px;
    }
    
    .contact-form-container {
        padding: 25px 20px;
    }
    
    .newsletter-form input {
        width: 100%;
    }
    
    .service-overview {
        gap: 30px;
        margin-bottom: 40px;
    }
    
    .service-features-grid {
        margin: 20px 0;
    }
    
    .service-feature-item {
        padding: 15px;
    }
    
    .detailed-service {
        padding: 15px;
    }
    
    .detailed-service h3 {
        font-size: 16px;
    }
    
    .tech-category {
        padding: 15px;
    }
    
    .tech-category h3 {
        font-size: 16px;
    }
    
    .tech-category li {
        font-size: 13px;
    }
    
    .process-step,
    .dev-step,
    .strategy-step,
    .process-phase {
        padding: 20px 15px;
    }
    
    .step-number,
    .phase-number {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .dev-step-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    
    .metric-item,
    .strategy-item,
    .benefit {
        padding: 20px 15px;
    }
    
    .metric-icon,
    .strategy-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .metric-item h3,
    .strategy-item h3,
    .benefit h3 {
        font-size: 16px;
    }
    
    .metric-item p,
    .strategy-item p,
    .benefit p {
        font-size: 14px;
    }
    
    .blog-meta {
        font-size: 12px;
    }
    
    .blog-title {
        font-size: 18px;
    }
    
    .blog-excerpt {
        font-size: 13px;
    }
    
    .page-link {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .page-link.next {
        width: auto;
        padding: 0 12px;
    }
    
    .contact-info h2 {
        font-size: 28px;
    }
    
    .contact-method {
        gap: 10px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .contact-details h3 {
        font-size: 16px;
    }
    
    .contact-details p {
        font-size: 13px;
    }
    
    .office-hours li {
        font-size: 13px;
    }
    
    .faq-item h3 {
        font-size: 16px;
    }
    
    .faq-item p {
        font-size: 13px;
    }
    
    .footer-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .footer-description {
        font-size: 13px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
    
    .footer-contact li {
        font-size: 13px;
    }
    
    .footer-bottom {
        font-size: 12px;
    }
}

/* Landscape Mode for Mobile Devices */
@media (max-width: 768px) and (orientation: landscape) {
    .nav-list {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 15px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .team-grid,
    .services-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Logo size in landscape mode */
    .logo-icon {
        height: 35px !important;
    }
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.05);
}

.whatsapp-btn img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .whatsapp-btn img {
        width: 50px;
        height: 50px;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-item, .blog-card {
    animation: fadeIn 0.5s ease;
}