/* Adica Creative - Responsive CSS */

/* ===== MOBILE FIRST RESPONSIVE DESIGN ===== */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-content {
        gap: 6rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .packages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Desktop (992px to 1199px) */
@media (max-width: 1199px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .dropdown-content {
        min-width: 500px;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
}

/* Tablet (768px to 991px) */
@media (max-width: 991px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        min-height: 400px;
        background: white;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(0);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 9999;
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        padding: 1rem 0;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-list {
        display: flex;
        flex-direction: row;
        padding: 0 2rem;
        gap: 2rem;
        margin: 0;
        align-items: center;
    }
    
    .nav-list li {
        flex-shrink: 0;
        white-space: nowrap;
        border-bottom: none;
        position: relative;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 0;
        white-space: nowrap;
        font-weight: 500;
        color: #374151;
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .nav-link:hover {
        color: #667eea;
    }
    
    .dropdown {
        position: relative;
    }
    
    .dropdown-content {
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        padding: 1rem;
        margin-top: 0.5rem;
        min-width: 250px;
        z-index: 1000;
        display: none;
        white-space: normal;
    }
    
    /* Industries dropdown - single column layout */
    .dropdown-content > a {
        display: block;
        padding: 0.75rem 0;
        color: #374151;
        text-decoration: none;
        font-size: 0.875rem;
        font-weight: 500;
        border-bottom: 1px solid #f3f4f6;
        transition: color 0.3s ease;
    }
    
    .dropdown-content > a:last-child {
        border-bottom: none;
    }
    
    .dropdown-content > a:hover {
        color: #667eea;
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    .dropdown-section {
        margin-bottom: 1rem;
    }
    
    .dropdown-section:last-child {
        margin-bottom: 0;
    }
    
    .dropdown-section h4 {
        font-size: 0.875rem;
        font-weight: 600;
        color: #1f2937;
        margin-bottom: 0.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .dropdown-section a {
        display: block;
        padding: 0.5rem 0;
        color: #6b7280;
        text-decoration: none;
        font-size: 0.875rem;
        transition: color 0.3s ease;
    }
    
    .dropdown-section a:hover {
        color: #667eea;
    }
    
    .nav-cta {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }
    
    .mobile-cta {
        border-bottom: none !important;
        padding: 1rem 0;
    }
    
    .mobile-phone {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--primary-color);
        font-weight: 600;
        text-decoration: none;
    }
    
    .mobile-phone:hover {
        color: var(--primary-color);
    }
    
    .mobile-consultation {
        margin: 0.5rem 0;
        display: inline-block;
        width: auto;
        text-align: center;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero Section */
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .dashboard-image {
        transform: none;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    /* Packages */
    .packages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .package-card {
        padding: 2rem;
    }
    
    /* Industry */
    .industry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* About */
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-text {
        order: 2;
    }
    
    .about-image {
        order: 1;
    }
    
    /* Case Studies */
    .case-studies-grid {
        grid-template-columns: 1fr;
    }
    
    /* Consultation */
    .consultation-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .consultation-text {
        order: 2;
        text-align: center;
    }
    
    .consultation-form {
        order: 1;
    }
    
    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-info {
        order: 2;
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .contact-form-section {
        order: 1;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Mobile Large (576px to 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }
    
    /* Typography */
    h1 { font-size: clamp(2rem, 8vw, 3rem); }
    h2 { font-size: clamp(1.75rem, 6vw, 2.5rem); }
    h3 { font-size: clamp(1.25rem, 5vw, 1.75rem); }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .section-subtitle {
        font-size: 1.125rem;
    }
    
    /* Header */
    .navbar {
        padding: 0.75rem 0;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .logo img {
        height: 35px;
    }
    
    /* Hero */
    .hero {
        min-height: 90vh;
        padding: 6rem 0 2rem 0;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
        margin-bottom: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    /* Sections */
    .services-overview,
    .service-packages,
    .industry-solutions,
    .about,
    .case-studies,
    .testimonials,
    .consultation-cta,
    .contact {
        padding: 4rem 0;
    }
    
    /* Services */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-features {
        margin-bottom: 1.5rem;
    }
    
    /* Packages */
    .package-toggle {
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .toggle-btn {
        width: 100%;
        text-align: center;
    }
    
    .package-card {
        padding: 1.5rem;
    }
    
    .price-amount {
        font-size: 2.5rem;
    }
    
    /* Industry */
    .industry-grid {
        grid-template-columns: 1fr;
    }
    
    .industry-card {
        padding: 2rem;
    }
    
    /* About */
    .about-features {
        gap: 1.5rem;
    }
    
    .feature {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .feature-icon {
        margin: 0 auto;
    }
    
    /* Case Studies */
    .case-study-content {
        padding: 1.5rem;
    }
    
    .case-study-metrics {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Testimonials */
    .testimonials-slider {
        margin-bottom: 2rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-content blockquote {
        font-size: 1.125rem;
    }
    
    .testimonial-author {
        flex-direction: column;
        gap: 1rem;
    }
    
    .testimonial-navigation {
        gap: 1rem;
    }
    
    /* Consultation */
    .consultation-text {
        text-align: left;
    }
    
    .consultation-benefits {
        gap: 0.75rem;
    }
    
    .consultation-form {
        padding: 1.5rem;
    }
    
    .calendly-container {
        min-height: 500px;
    }
    
    /* Contact */
    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-form-section {
        padding: 1.5rem;
    }
    
    /* Forms */
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    /* Footer */
    .footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom-links {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    /* Live Chat */
    .live-chat {
        bottom: 1rem;
        right: 1rem;
    }
    
    .chat-button {
        padding: 0.75rem 1rem;
    }
    
    .chat-text {
        display: none;
    }
    
    .chat-widget {
        width: 300px;
        bottom: 60px;
    }
    
    .chat-content {
        padding: 1rem;
    }
}

/* Mobile Small (480px to 575px) */
@media (max-width: 575px) {
    .container {
        padding: 0 0.75rem;
    }
    
    /* Hero adjustments */
    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Service cards */
    .service-card,
    .package-card,
    .industry-card {
        padding: 1.25rem;
    }
    
    /* Reduce icon sizes */
    .service-icon,
    .feature-icon,
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .industry-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i,
    .feature-icon i,
    .contact-icon i {
        font-size: 1.25rem;
    }
    
    .industry-icon i {
        font-size: 1.5rem;
    }
    
    /* Form adjustments */
    .consultation-form,
    .contact-form-section {
        padding: 1.25rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem;
    }
    
    /* Button adjustments */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .btn-large {
        padding: 0.875rem 1.75rem;
        font-size: 0.9375rem;
    }
    
    /* Chat widget */
    .chat-widget {
        width: 280px;
        right: -10px;
    }
}

/* Mobile Extra Small (up to 479px) */
@media (max-width: 479px) {
    /* Ultra-compact adjustments */
    .hero-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* Minimal padding for smallest screens */
    .service-card,
    .package-card,
    .industry-card,
    .case-study-content,
    .contact-card {
        padding: 1rem;
    }
    
    .consultation-form,
    .contact-form-section {
        padding: 1rem;
    }
    
    /* Testimonial adjustments */
    .testimonial-card {
        padding: 1rem;
    }
    
    .testimonial-content blockquote {
        font-size: 1rem;
    }
    
    /* Footer adjustments */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        gap: 1.5rem;
    }
    
    /* Chat positioning */
    .chat-widget {
        width: calc(100vw - 2rem);
        right: -0.75rem;
        left: 1rem;
    }
}

/* ===== ACCESSIBILITY & PERFORMANCE ===== */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .scroll-indicator {
        animation: none;
    }
    
    .btn::before {
        transition: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        border: 2px solid #000;
    }
    
    .btn-secondary,
    .btn-outline {
        border-width: 3px;
    }
    
    .service-card,
    .package-card,
    .industry-card {
        border-width: 2px;
        border-color: #000;
    }
}

/* Print styles */
@media print {
    .header,
    .nav-toggle,
    .hero-scroll,
    .live-chat,
    .btn,
    .consultation-cta,
    .testimonial-navigation {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-background {
        display: none;
    }
    
    .hero-text {
        color: #000 !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .section-header,
    .services-overview,
    .service-packages,
    .about,
    .contact {
        padding: 1rem 0;
    }
    
    .services-grid,
    .packages-grid,
    .industry-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .service-card,
    .package-card,
    .industry-card {
        border: 1px solid #ccc;
        break-inside: avoid;
        margin-bottom: 1rem;
    }
    
    .footer {
        border-top: 1px solid #ccc;
        background: white !important;
        color: #000 !important;
    }
}

/* ===== LOADING STATES ===== */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== FOCUS STYLES ===== */
.btn:focus,
.nav-link:focus,
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* ===== SMOOTH SCROLLING ===== */
html {
    scroll-padding-top: 80px; /* Account for fixed header */
}

/* ===== UTILITY CLASSES FOR RESPONSIVE ===== */
.show-mobile {
    display: none;
}

.hide-mobile {
    display: block;
}

@media (max-width: 767px) {
    .show-mobile {
        display: block;
    }
    
    .hide-mobile {
        display: none;
    }
}

/* ===== WEBKIT SCROLLBAR STYLING ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #5b6fd8;
}