/*
 * semity Responsive Design System - Clean Version
 * Mobile-only overrides. Desktop styles are in light-theme.css
 * Breakpoints: 1024px (tablet), 768px (mobile), 480px (small)
 */

/* ============================================
   MOBILE-ONLY ELEMENTS - Hidden on Desktop
   ============================================ */
.theme-toggle-mobile,
.lang-btn-mobile,
.nav-right-group {
    display: none;
}

.theme-toggle {
    cursor: pointer;
    pointer-events: auto;
    z-index: 1000;
    position: relative;
}

/* ============================================
   TABLET (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
    .container { padding-left: 1.5rem; padding-right: 1.5rem; }
    .hero { min-height: 85vh; padding: 6rem 1.5rem 4rem; }
    .hero-content { max-width: 90%; }
    h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
    h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
    .section { padding: 4rem 1.5rem; }
    .glass { padding: 2rem; }
    .cta-btn { padding: 0.875rem 1.75rem; font-size: 0.95rem; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }

    .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .creative-cards-grid { grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .services-grid-home {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .image-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ============================================
   MOBILE RESPONSIVE (max-width: 768px)
   ============================================ */

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .creative-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .services-grid-home {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .image-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
}

/* ============================================
   SMALL MOBILE (max-width: 480px)
   ============================================ */

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .image-gallery {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================
   TABLET STYLES (max-width: 1024px)
   ============================================ */

@media (max-width: 1024px) {
    /* Container */
    .container {
        padding-left: var(--container-padding-tablet);
        padding-right: var(--container-padding-tablet);
    }
    
    /* Navigation */
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    .nav-menu {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    /* Hero */
    .hero {
        min-height: 85vh;
        padding: 6rem 1.5rem 4rem;
    }
    
    .hero-content {
        max-width: 90%;
    }
    
    h1 {
        font-size: clamp(2rem, 5vw, 3.5rem);
    }
    
    h2 {
        font-size: clamp(1.75rem, 4vw, 2.5rem);
    }
    
    h3 {
        font-size: clamp(1.25rem, 3vw, 1.75rem);
    }
    
    /* Sections */
    .section {
        padding: var(--section-padding-tablet);
    }
    
    /* Grids */
    .services-grid,
    .team-grid,
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Glass Cards */
    .glass {
        padding: 2rem;
    }
    
    /* CTA Buttons */
    .cta-group {
        gap: 1rem;
    }
    
    .cta-btn {
        padding: 0.875rem 1.75rem;
        font-size: 0.95rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Process/How We Work */
    .process-phase .glass > div {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    
    .process-phase .glass > div > div:first-child {
        margin-bottom: 1.5rem;
    }
}

/* ============================================
   MOBILE LARGE STYLES (max-width: 768px)
   ============================================ */

@media (max-width: 768px) {
    /* Container */
    .container {
        padding-left: var(--container-padding-mobile);
        padding-right: var(--container-padding-mobile);
    }
    
    /* Navigation - MOVED TO navbar.php inline styles */
    
    /* Hero */
    .hero {
        min-height: auto;
        padding: 7rem 1rem 3rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    h1 {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
        line-height: 1.6;
    }
    
    /* Sections */
    .section {
        padding: var(--section-padding-mobile);
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    /* Grids - Single Column */
    .services-grid,
    .team-grid,
    .features-grid,
    [style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    /* Glass Cards */
    .glass {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    /* Service Cards */
    .service-card,
    .team-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* CTA Buttons */
    .cta-group {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Breadcrumbs */
    .breadcrumbs {
        padding: 0.75rem 0;
        font-size: 0.8rem;
    }
    
    .breadcrumbs ol {
        gap: 0.25rem;
    }
    
    .breadcrumbs li:not(:last-child)::after {
        margin: 0 0.25rem;
    }
    
    /* Process Steps */
    .process-phase {
        margin-bottom: 2rem !important;
    }
    
    .process-phase .glass {
        padding: 1.5rem !important;
    }
    
    /* Tables - Responsive */
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 1rem;
    }
    
    input,
    textarea,
    select {
        font-size: 16px !important; /* Prevents zoom on iOS */
        padding: 0.875rem 1rem;
    }
    
    /* Blog Grid */
    .blog-grid {
        grid-template-columns: 1fr !important;
    }
    
    .blog-card {
        margin-bottom: 1.5rem;
    }
    
    /* Contact Form */
    .contact-card {
        padding: 1.5rem !important;
    }
    
    /* Why semity Comparison */
    .comparison-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }
    
    /* Framework Steps */
    .creative-framework {
        grid-template-columns: 1fr !important;
    }
    
    .framework-step {
        padding: 2rem 1.5rem;
    }
}

/* ============================================
   CRITICAL MOBILE GRID OVERRIDES
   Override inline styles for mobile
   ============================================ */

@media (max-width: 768px) {
    /* Force all inline grids to single column on mobile */
    [style*="display: grid"],
    [style*="display:grid"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Stats grid - 2 columns on tablet */
    .stats-grid,
    [style*="repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    /* Testimonials grid */
    .testimonials-grid,
    [style*="minmax(350px"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Creative cards */
    [style*="minmax(320px"],
    [style*="minmax(280px"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Fix inline flex displays */
    [style*="display: flex"][style*="gap: 1rem"] {
        flex-direction: column !important;
        align-items: center !important;
    }
    
    /* Fix stat items */
    .stat-item {
        padding: 1.5rem !important;
    }
    
    .stat-number {
        font-size: 2.5rem !important;
    }
    
    /* Fix testimonial cards */
    .testimonial-card {
        padding: 1.5rem !important;
    }
    
    /* Fix CTA section */
    .cta-section .container > div {
        padding: 0 1rem !important;
    }
    
    .cta-section h2 {
        font-size: 1.5rem !important;
    }
    
    .cta-section p {
        font-size: 0.95rem !important;
    }
    
    /* Fix WhatsApp button position */
    .whatsapp-float {
        bottom: 15px !important;
        right: 15px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 1.5rem !important;
    }
    
    body.rtl .whatsapp-float {
        right: auto !important;
        left: 15px !important;
    }
}

/* ============================================
   MOBILE SMALL STYLES (max-width: 480px)
   ============================================ */

@media (max-width: 480px) {
    /* Force single column on all grids */
    .stats-grid,
    [style*="repeat(4, 1fr)"],
    [style*="repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Typography */
    h1 {
        font-size: 1.5rem !important;
    }
    
    h2 {
        font-size: 1.35rem !important;
    }
    
    h3 {
        font-size: 1.15rem !important;
    }
    
    p {
        font-size: 0.9rem !important;
    }
    
    /* Hero */
    .hero {
        padding: 6rem 0.75rem 2.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.9rem !important;
    }
    
    /* Sections */
    .section {
        padding: 2.5rem 0.75rem !important;
    }
    
    /* Glass Cards */
    .glass {
        padding: 1.25rem !important;
        border-radius: 12px !important;
    }
    
    /* Buttons */
    .cta-btn {
        padding: 0.875rem 1.25rem !important;
        font-size: 0.9rem !important;
        width: 100% !important;
        max-width: 280px !important;
    }
    
    /* Stats */
    .stat-item {
        padding: 1rem !important;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }
    
    .stat-icon {
        font-size: 2rem !important;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0.75rem !important;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    /* Breadcrumbs */
    .breadcrumbs {
        font-size: 0.75rem;
    }
    
    /* Service Icons */
    .service-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.25rem !important;
    }
    
    /* Contact Page */
    .contact-hero {
        min-height: 40vh !important;
    }
    
    .contact-hero h1 {
        font-size: 1.5rem !important;
    }
    
    /* Footer */
    .footer-bottom {
        font-size: 0.8rem;
        padding: 1rem 0;
    }
}

/* ============================================
   RTL RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    [dir="rtl"] .nav-menu {
        flex-direction: column;
    }
    
    [dir="rtl"] .cta-group {
        flex-direction: column;
    }
    
    [dir="rtl"] .breadcrumbs li:not(:last-child)::after {
        content: '\\';
    }
    
    [dir="rtl"] .glass-card [style*="position: absolute"][style*="top: 1rem"] {
        right: auto !important;
        left: 0.5rem !important;
    }
    
    [dir="rtl"] .footer-section {
        text-align: center;
    }
    
    [dir="rtl"] .social-links {
        justify-content: center;
    }
}

/* ============================================
   LANDSCAPE MOBILE
   ============================================ */

@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 5rem 2rem 2rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .nav-menu {
        max-height: 70vh;
        overflow-y: auto;
    }
}

/* ============================================
   TOUCH DEVICE OPTIMIZATIONS
   ============================================ */

@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch */
    .nav-link:hover::after {
        width: 0;
    }
    
    .cta-btn:hover {
        transform: none;
    }
    
    .glass:hover {
        transform: none;
    }
    
    .framework-step:hover {
        transform: none;
    }
    
    /* Larger touch targets */
    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .cta-btn {
        min-height: 48px;
    }
    
    .lang-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Active states for touch */
    .cta-btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }
    
    .nav-link:active {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* ============================================
   SPECIFIC PAGE ADJUSTMENTS - MOBILE
   ============================================ */

/* About Page */
@media (max-width: 768px) {
    .about-hero {
        min-height: 50vh;
    }
    
    .team-grid {
        gap: 1rem;
    }
    
    .team-card img {
        height: 200px !important;
    }
}

/* Services Page */
@media (max-width: 768px) {
    .service-section .glass > div {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    
    .service-section .glass > div > div:first-child {
        margin-bottom: 1.5rem;
    }
}

/* How We Work Page */
@media (max-width: 768px) {
    .process-phase {
        margin-bottom: 2rem !important;
    }
    
    .process-phase [style*="width: 100px"] {
        width: 70px !important;
        height: 70px !important;
        font-size: 1.75rem !important;
    }
}

/* Why semity Page */
@media (max-width: 768px) {
    [style*="grid-template-columns: repeat(auto-fit, minmax(300px"] {
        grid-template-columns: 1fr !important;
    }
}

/* Contact Page */
@media (max-width: 768px) {
    .contact-form-section {
        padding: 2rem 0;
    }
    
    .contact-card {
        border-radius: 16px !important;
    }
    
    .contact-info-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Blog Page */
@media (max-width: 768px) {
    .blog-hero {
        min-height: 50vh;
    }
    
    .blog-search-form {
        flex-direction: column;
    }
    
    .blog-search-form input,
    .blog-search-form button {
        width: 100%;
    }
    
    .blog-categories {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .blog-post-content {
        padding: 0 !important;
    }
    
    .blog-content {
        padding: 1rem !important;
    }
    
    .blog-content img {
        max-width: 100%;
        height: auto;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .navbar,
    .hamburger,
    .cta-btn,
    .social-links,
    footer {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .glass {
        background: #f5f5f5 !important;
        border: 1px solid #ddd !important;
    }
    
    h1, h2, h3 {
        color: black !important;
        -webkit-text-fill-color: black !important;
    }
}

/* ============================================
   SAFE AREA (NOTCH SUPPORT)
   ============================================ */

@supports (padding-top: env(safe-area-inset-top)) {
    .navbar {
        padding-top: env(safe-area-inset-top);
    }
    
    .nav-menu {
        padding-bottom: env(safe-area-inset-bottom);
    }
    
    footer {
        padding-bottom: env(safe-area-inset-bottom);
    }
}

/* ============================================
   ANIMATIONS - REDUCED FOR MOBILE
   ============================================ */

@media (max-width: 768px) {
    @keyframes heroRotate {
        0%, 100% { transform: rotate(0deg); }
    }
    
    body::before {
        animation: none;
    }
    
    .hero::before {
        animation: none;
    }
    
    .strategic-framework-section::before {
        animation: none;
    }
}

/* ============================================
   ADMIN PANEL RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .admin-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: relative;
        height: auto;
    }
    
    .sidebar-nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }
    
    .sidebar-nav .nav-item {
        flex: 0 1 auto;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .admin-container .sidebar {
        padding: 1rem;
    }
    
    .sidebar-header h2 {
        font-size: 1.25rem;
    }
    
    .sidebar-nav .nav-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .admin-card {
        padding: 1rem;
    }
    
    .admin-grid {
        grid-template-columns: 1fr !important;
    }
    
    .admin-table {
        display: block;
        overflow-x: auto;
    }
    
    .admin-form input,
    .admin-form textarea,
    .admin-form select {
        font-size: 16px;
    }
}

/* ============================================
   ADDITIONAL MOBILE FIXES
   ============================================ */

@media (max-width: 768px) {
    /* Glass CTA Section */
    .glass-cta {
        padding: 2rem 1.5rem !important;
        text-align: center;
    }
    
    .glass-cta h2 {
        font-size: 1.5rem !important;
    }
    
    .glass-cta p {
        font-size: 1rem !important;
    }
    
    /* Inline Grid Fixes */
    [style*="display: grid"] {
        gap: 1.5rem !important;
    }
    
    [style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Featured Blog Cards */
    .glass-card {
        padding: 1.5rem !important;
    }
    
    .glass-card [style*="margin: -2rem"] {
        margin: -1.5rem -1.5rem 1rem -1.5rem !important;
        border-radius: 12px 12px 0 0 !important;
    }
    
    .glass-card [style*="position: absolute"][style*="top: 1rem"] {
        top: 0.5rem !important;
        right: 0.5rem !important;
        font-size: 0.75rem !important;
        padding: 0.35rem 0.75rem !important;
    }
    
    /* Form Row on Mobile */
    .form-row {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Info Cards Grid */
    .info-cards-grid {
        grid-template-columns: 1fr !important;
    }
    
    .info-card {
        padding: 2rem 1.5rem !important;
    }
    
    .info-card-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 2rem !important;
    }
    
    /* FAQ Section */
    .faq-question {
        padding: 1.25rem !important;
        font-size: 1rem !important;
    }
    
    .faq-answer p {
        font-size: 0.95rem !important;
    }
    
    /* CTA Buttons Row */
    .cta-buttons {
        flex-direction: column !important;
        width: 100%;
    }
    
    .cta-buttons a {
        width: 100% !important;
        text-align: center !important;
    }
    
    /* Newsletter Form */
    [style*="display: flex"][style*="max-width: 600px"] {
        flex-direction: column !important;
    }
    
    [style*="display: flex"][style*="max-width: 600px"] input,
    [style*="display: flex"][style*="max-width: 600px"] button {
        width: 100% !important;
    }
    
    /* Search Form in Blog */
    .hero form[style*="display: flex"] {
        flex-direction: column !important;
    }
    
    .hero form input[style*="flex: 1"] {
        width: 100% !important;
    }
    
    /* Inline Padding Fixes */
    [style*="padding: 3rem"] {
        padding: 1.5rem !important;
    }
    
    [style*="padding: 4rem"] {
        padding: 2rem !important;
    }
    
    [style*="padding: 5rem"] {
        padding: 2.5rem !important;
    }
    
    /* Vision/Mission Cards */
    [style*="width: 80px"][style*="height: 80px"] {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
    }
    
    /* Team Member Image */
    [style*="width: 120px"][style*="height: 120px"] {
        width: 100px !important;
        height: 100px !important;
    }
}

@media (max-width: 480px) {
    /* Extra small screens */
    .glass-cta {
        padding: 1.5rem 1rem !important;
    }
    
    .glass-cta h2 {
        font-size: 1.25rem !important;
    }
    
    .info-card {
        padding: 1.5rem 1rem !important;
    }
    
    .faq-question {
        padding: 1rem !important;
        font-size: 0.95rem !important;
    }
    
    /* Contact Hero */
    .contact-hero-content {
        padding: 1rem !important;
    }
    
    .contact-hero-content h1 {
        font-size: 1.5rem !important;
    }
    
    .contact-hero-content p {
        font-size: 1rem !important;
    }
}

/* ============================================
   SERVICES & HOW-WE-WORK PAGE MOBILE FIXES
   ============================================ */

@media (max-width: 768px) {
    /* Service Section Grid - 1fr 2fr to single column */
    .service-section .glass > div[style*="grid-template-columns: 1fr 2fr"],
    .service-section .glass > div[style*="grid-template-columns:1fr 2fr"] {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    
    .service-section .service-icon {
        width: 80px !important;
        height: 80px !important;
        font-size: 2rem !important;
    }
    
    /* Process Phase Grid - auto 1fr to single column */
    .process-phase .glass > div[style*="grid-template-columns: auto 1fr"],
    .process-phase .glass > div[style*="grid-template-columns:auto 1fr"] {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    
    .process-phase .glass > div > div:first-child {
        margin-bottom: 1.5rem;
    }
    
    /* Process Phase Number */
    .process-phase [style*="width: 100px"][style*="height: 100px"] {
        width: 70px !important;
        height: 70px !important;
        font-size: 1.75rem !important;
    }
    
    /* Timeline - Stack vertically */
    [style*="grid-template-columns: 1fr 1fr"][style*="gap: 2rem"] {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }
    
    /* Hide timeline vertical line on mobile */
    [style*="position: absolute"][style*="left: 50%"][style*="width: 2px"] {
        display: none !important;
    }
    
    /* Timeline items */
    [style*="text-align: right"],
    [style*="text-align: left"] {
        text-align: center !important;
    }
    
    /* Service Categories Grid */
    [style*="grid-template-columns: repeat(auto-fit, minmax(250px"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Process Steps Grid */
    [style*="grid-template-columns: repeat(auto-fit, minmax(200px"] {
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 480px) {
    /* Even smaller screens - single column for process steps */
    [style*="grid-template-columns: repeat(auto-fit, minmax(200px"] {
        grid-template-columns: 1fr !important;
    }
    
    .process-phase [style*="width: 100px"][style*="height: 100px"] {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.5rem !important;
    }
    
    .process-phase h3 {
        font-size: 1.25rem !important;
    }
}

/* ============================================
   CREATIVE ELEMENTS - MOBILE OPTIMIZATION
   ============================================ */

@media (max-width: 768px) {
    /* Floating Shapes - Smaller on mobile */
    .floating-shapes .shape {
        width: 80px !important;
        height: 80px !important;
    }
    
    .floating-shapes .shape:nth-child(2) {
        width: 60px !important;
        height: 60px !important;
    }
    
    .floating-shapes .shape:nth-child(3) {
        width: 100px !important;
        height: 100px !important;
    }
    
    .floating-shapes .shape:nth-child(4) {
        width: 50px !important;
        height: 50px !important;
    }
    
    /* Creative Cards - Full width */
    .creative-card {
        margin: 0 !important;
    }
    
    .creative-card-image {
        height: 100px !important;
        background-color: var(--bg-tertiary) !important;
    }
    
    /* Hide external images on mobile for better performance */
    .creative-card-image[style*="background-image"] {
        background-image: none !important;
        background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary)) !important;
        height: 80px !important;
    }
    
    /* Fix creative card icon position */
    .creative-card-icon {
        margin-top: -40px !important;
        width: 60px !important;
        height: 60px !important;
    }
    
    .creative-card-icon img {
        width: 28px !important;
    }
    
    /* Remove decorative top bar on mobile */
    .creative-card::before {
        display: none !important;
    }
    
    .creative-card-content {
        padding: 1.25rem !important;
    }
    
    .creative-card-content h3 {
        font-size: 1.1rem !important;
        margin: 0.75rem 0 !important;
    }
    
    .creative-card-content p {
        font-size: 0.9rem !important;
        line-height: 1.6 !important;
    }
    
    .creative-card-content {
        padding: 1.25rem !important;
    }
    
    .creative-card-icon {
        width: 60px !important;
        height: 60px !important;
        margin-top: -40px !important;
    }
    
    .creative-card-icon img {
        width: 28px !important;
    }
    
    /* Glow Cards - Mobile */
    .glow-card {
        padding: 1.5rem !important;
        text-align: center !important;
    }
    
    .glow-card > div:first-child {
        width: 60px !important;
        height: 60px !important;
        border-radius: 15px !important;
        margin: 0 auto 1rem auto !important;
    }
    
    .glow-card > div:first-child img {
        width: 30px !important;
    }
    
    .glow-card h3 {
        font-size: 1.1rem !important;
    }
    
    .glow-card p {
        font-size: 0.85rem !important;
    }
    
    /* Hex Grid - 2 columns on tablet, 1 on mobile */
    .hex-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .hex-item {
        padding: 1.25rem !important;
        clip-path: none !important;
        border-radius: 16px !important;
    }
    
    .hex-item img {
        width: 40px !important;
    }
    
    /* Image Gallery - 2 columns */
    .image-gallery {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    
    .gallery-item {
        border-radius: 12px !important;
    }
    
    /* Section Header Pro */
    .section-header-pro {
        margin-bottom: 2rem !important;
    }
    
    .section-header-pro h2 {
        font-size: 1.5rem !important;
    }
    
    .section-header-pro p {
        font-size: 0.95rem !important;
    }
    
    /* Pillars Container */
    .pillars-container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .pillar-item {
        padding: 1.5rem !important;
    }
    
    .icon-circle {
        width: 70px !important;
        height: 70px !important;
    }
    
    .icon-circle img {
        width: 35px !important;
    }
    
    /* MVV Section */
    .mvv-container {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .mvv-item {
        padding: 1.5rem !important;
    }
    
    /* Dots Pattern - Hide on mobile */
    .dots-pattern {
        display: none !important;
    }
    
    /* Animated Lines - Reduce */
    .animated-lines .line {
        opacity: 0.3 !important;
    }
    
    /* Wave Divider */
    .wave-divider {
        height: 40px !important;
    }
    
    /* Stats Cards */
    .stat-card {
        padding: 1.25rem !important;
    }
    
    .stat-card h3 {
        font-size: 2rem !important;
    }
    
    /* Quick Contact Buttons in Hero */
    [style*="display: flex"][style*="justify-content: center"][style*="gap: 1.5rem"] {
        flex-direction: column !important;
        gap: 0.75rem !important;
        padding: 0 1rem;
    }
    
    [style*="display: flex"][style*="justify-content: center"] a[style*="border-radius: 50px"] {
        width: 100% !important;
        justify-content: center !important;
    }
    
    /* Contact Info Cards Grid */
    .info-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* FAQ Container */
    .faq-container {
        padding: 0 !important;
    }
    
    .faq-item {
        margin-bottom: 0.75rem !important;
    }
    
    .faq-question {
        padding: 1rem !important;
        font-size: 0.95rem !important;
    }
    
    .faq-answer {
        padding: 1rem !important;
    }
}

@media (max-width: 480px) {
    /* Creative Cards - Extra small */
    .creative-card-image {
        height: 60px !important;
        background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary)) !important;
    }
    
    .creative-card-image[style*="background-image"] {
        background-image: none !important;
    }
    
    .creative-card-icon {
        margin-top: -30px !important;
        width: 50px !important;
        height: 50px !important;
    }
    
    .creative-card-icon img {
        width: 24px !important;
    }
    
    .creative-card h3 {
        font-size: 1.15rem !important;
    }
    
    .creative-card p {
        font-size: 0.9rem !important;
    }
    
    /* Hex Grid - Single column */
    .hex-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Image Gallery - Single column */
    .image-gallery {
        grid-template-columns: 1fr !important;
    }
    
    /* Glow Card Icons */
    .glow-card [style*="width: 80px"][style*="height: 80px"],
    .glow-card [style*="width: 60px"][style*="height: 60px"] {
        width: 50px !important;
        height: 50px !important;
    }
    
    .glow-card [style*="width: 80px"] img,
    .glow-card [style*="width: 60px"] img {
        width: 24px !important;
    }
    
    .glow-card h3 {
        font-size: 1.1rem !important;
    }
    
    .glow-card p {
        font-size: 0.85rem !important;
    }
    
    /* Section Headers */
    .section-header-pro h2 {
        font-size: 1.35rem !important;
    }
    
    /* Floating Shapes - Even smaller */
    .floating-shapes .shape {
        width: 50px !important;
        height: 50px !important;
    }
    
    /* Hide some decorative elements */
    .gradient-mesh {
        opacity: 0.5 !important;
    }
}

/* ============================================
   MOBILE COLOR IMPROVEMENTS - CALMER COLORS
   ============================================ */

@media (max-width: 768px) {
    /* Reduce Aurora Background Effects */
    body::before {
        opacity: 0.3 !important;
        animation: none !important;
    }
    
    /* Calmer Hero Background */
    .hero {
        background: linear-gradient(180deg, 
            var(--bg-primary) 0%, 
            var(--bg-secondary) 100%) !important;
    }
    
    .hero::before,
    .hero::after {
        opacity: 0.2 !important;
        animation: none !important;
    }
    
    /* Simplify CTA Buttons - Remove gradient */
    .cta-btn.cta-primary {
        background: var(--primary-color) !important;
        box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3) !important;
    }
    
    .cta-btn.cta-secondary {
        background: transparent !important;
        border: 2px solid var(--primary-color) !important;
        color: var(--primary-color) !important;
    }
    
    /* Hero Title - Solid color instead of gradient */
    .hero h1,
    .hero-title {
        background: none !important;
        -webkit-background-clip: unset !important;
        background-clip: unset !important;
        -webkit-text-fill-color: var(--text-primary) !important;
        color: var(--text-primary) !important;
    }
    
    /* Reduce floating shapes opacity */
    .floating-shapes {
        opacity: 0.3 !important;
    }
    
    /* Simplify gradient mesh */
    .gradient-mesh {
        opacity: 0.2 !important;
    }
    
    /* Animated lines - more subtle */
    .animated-lines {
        opacity: 0.15 !important;
    }
    
    /* Glass cards - cleaner look */
    .glass {
        background: var(--bg-card) !important;
        backdrop-filter: blur(10px) !important;
    }
    
    /* Section backgrounds - simpler */
    .section-dark {
        background: var(--bg-secondary) !important;
    }
    
 
    
    /* Strategic framework - reduce colors */
    .strategic-framework-section::before {
        opacity: 0.1 !important;
    }
}

/* Light Mode Mobile - Extra calm */
@media (max-width: 768px) {
    [data-theme="light"] body::before,
    :root:not([data-theme="dark"]) body::before {
        opacity: 0.15 !important;
    }
    
    [data-theme="light"] .hero,
    :root:not([data-theme="dark"]) .hero {
        background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%) !important;
    }
    
    [data-theme="light"] .cta-btn.cta-primary,
    :root:not([data-theme="dark"]) .cta-btn.cta-primary {
        background: #5a8ad8 !important;
        box-shadow: 0 4px 15px rgba(43, 161, 216, 0.25) !important;
    }
    
    [data-theme="light"] .hero h1,
    :root:not([data-theme="dark"]) .hero h1 {
        color: #1e293b !important;
        -webkit-text-fill-color: #1e293b !important;
    }
    
    [data-theme="light"] .hero p,
    [data-theme="light"] .hero-subtitle,
    :root:not([data-theme="dark"]) .hero p,
    :root:not([data-theme="dark"]) .hero-subtitle {
        color: #475569 !important;
    }
    
    /* Remove orange/pink gradients from buttons */
    [data-theme="light"] [style*="linear-gradient"][style*="orange"],
    [data-theme="light"] [style*="linear-gradient"][style*="pink"],
    :root:not([data-theme="dark"]) [style*="linear-gradient"][style*="orange"],
    :root:not([data-theme="dark"]) [style*="linear-gradient"][style*="pink"] {
        background: #2563eb !important;
    }
}

/* Dark Mode Mobile - Reduce neon colors */
@media (max-width: 768px) {
    [data-theme="dark"] body::before {
        opacity: 0.2 !important;
        filter: saturate(0.5) !important;
    }
    
    [data-theme="dark"] .hero {
        background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
    }
    
    [data-theme="dark"] .hero h1 {
        background: linear-gradient(135deg, #60a5fa, #3b82f6) !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
    }
    
    [data-theme="dark"] .cta-btn.cta-primary {
        background: #3b82f6 !important;
    }
    
    /* Reduce purple/pink aurora */
    [data-theme="dark"] .floating-shapes .shape {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(37, 99, 235, 0.2)) !important;
    }
}

/* CTA Section - Mobile Improvements */
@media (max-width: 768px) {
    .cta-section {
        background: var(--bg-secondary) !important;
        padding: 3rem 1rem !important;
    }
    
    .cta-section::before,
    .cta-section [style*="position: absolute"] {
        display: none !important;
    }
    
    .cta-section h2 {
        font-size: 1.5rem !important;
        color: var(--text-primary) !important;
    }
    
    .cta-section p {
        font-size: 0.95rem !important;
    }
    
    .cta-section .cta-btn {
        width: 100% !important;
        padding: 1rem !important;
        font-size: 1rem !important;
    }
    
    .cta-section .cta-btn.cta-primary {
        background: var(--primary-color) !important;
        box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2) !important;
    }
    
    .cta-section .cta-btn.cta-secondary {
        background: var(--bg-card) !important;
        border: 1px solid var(--border-color) !important;
    }
    
    /* Light Mode CTA */
    [data-theme="light"] .cta-section,
    :root:not([data-theme="dark"]) .cta-section {
        background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    }
    
    [data-theme="light"] .cta-section h2,
    :root:not([data-theme="dark"]) .cta-section h2 {
        color: #1e293b !important;
    }
    
    [data-theme="light"] .cta-section p,
    :root:not([data-theme="dark"]) .cta-section p {
        color: #475569 !important;
    }
    
    [data-theme="light"] .cta-section .cta-btn.cta-primary,
    :root:not([data-theme="dark"]) .cta-section .cta-btn.cta-primary {
        background: #2563eb !important;
        color: white !important;
    }
    
    [data-theme="light"] .cta-section .cta-btn.cta-secondary,
    :root:not([data-theme="dark"]) .cta-section .cta-btn.cta-secondary {
        background: white !important;
        border: 1px solid #e2e8f0 !important;
        color: #1e293b !important;
    }
    
    /* Dark Mode CTA */
    [data-theme="dark"] .cta-section {
        background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
    }
    
    [data-theme="dark"] .cta-section h2 {
        color: #f1f5f9 !important;
    }
    
    [data-theme="dark"] .cta-section .cta-btn.cta-secondary {
        background: rgba(255, 255, 255, 0.1) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        color: #f1f5f9 !important;
    }
}

/* ============================================
   TABLET SPECIFIC (768px - 1024px)
   ============================================ */

@media (min-width: 768px) and (max-width: 1024px) {
    /* Creative Cards - 2 columns */
    [style*="grid-template-columns: repeat(auto-fit, minmax(320px"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Glow Cards - 2 columns */
    [style*="grid-template-columns: repeat(auto-fit, minmax(280px"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Hex Grid - 3 columns */
    .hex-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    /* Image Gallery - 4 columns */
    .image-gallery {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    /* Pillars - 3 columns */
    .pillars-container {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    /* MVV - 3 columns */
    .mvv-container {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* ============================================
   iOS SAFARI SPECIFIC FIXES
   ============================================ */

/* Fix for iOS Safari rendering issues */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari specific styles */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Fix viewport height on iOS */
    .hero {
        min-height: -webkit-fill-available;
    }
    
    /* Fix sticky positioning on iOS */
    .navbar {
        position: -webkit-sticky;
        position: sticky;
    }
    
    /* Fix backdrop-filter on iOS */
    .glass,
    .nav-menu {
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
    }
    
    /* Fix transform issues on iOS */
    .glass,
    .service-card,
    .team-card {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    /* Fix text rendering on iOS */
    h1, h2, h3, h4, h5, h6 {
        -webkit-font-smoothing: antialiased;
        text-rendering: optimizeLegibility;
    }
    
    /* Fix gradient text on iOS */
    .hero h1,
    .hero-title {
        -webkit-background-clip: text !important;
        background-clip: text !important;
    }
}

/* iPhone specific fixes */
@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 932px) 
  and (-webkit-min-device-pixel-ratio: 2) {
    
    /* Fix font sizes on iPhone */
    body {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    /* Fix input zoom on iPhone */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px !important;
    }
    
    /* Fix navbar on iPhone */
    .navbar {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    
    /* Fix glass effect on iPhone */
    .glass {
        background: rgba(255, 255, 255, 0.95) !important;
        -webkit-backdrop-filter: saturate(180%) blur(20px);
        backdrop-filter: saturate(180%) blur(20px);
    }
    
    [data-theme="dark"] .glass {
        background: rgba(15, 15, 26, 0.95) !important;
    }
    
    /* Fix button rendering on iPhone */
    .cta-btn {
        -webkit-appearance: none;
        appearance: none;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    /* Fix overflow scrolling on iPhone */
    .nav-menu {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Fix animation performance on iPhone */
    .floating-shapes,
    .floating-circles {
        will-change: transform;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    /* Reduce animations on iPhone for better performance */
    @media (prefers-reduced-motion: no-preference) {
        * {
            animation-duration: 0.5s !important;
            transition-duration: 0.3s !important;
        }
    }
}

/* iPhone Notch Support (iPhone X and later) */
@supports (padding: max(0px)) {
    .navbar {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-top: max(0.5rem, env(safe-area-inset-top));
    }
    
    .hero {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    footer {
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }
}

/* Fix for iPhone landscape mode */
@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 932px) 
  and (orientation: landscape) {
    
    .hero {
        min-height: auto;
        padding: 4rem 2rem 2rem;
    }
    
    .nav-menu {
        max-height: 60vh;
    }
}

/* ============================================
   UNIVERSAL MOBILE FIXES
   Works on iPhone, Android, and all devices
   ============================================ */

@media screen and (max-width: 768px) {
    /* Ensure proper box sizing */
    *,
    *::before,
    *::after {
        box-sizing: border-box !important;
    }
    
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
    }
    
    /* Fix container width */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Fix all sections */
    section,
    .section {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }
    
    /* Universal grid fix for inline styles */
    div[style*="grid-template-columns: repeat(4"],
    div[style*="grid-template-columns: repeat(3"],
    div[style*="grid-template-columns: repeat(auto-fit, minmax(3"],
    div[style*="grid-template-columns: repeat(auto-fit, minmax(2"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Fix hero section */
    .hero {
        min-height: auto !important;
        padding: 5rem 1rem 3rem !important;
    }
    
    .hero h1 {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }
    
    .hero p,
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    /* Fix all cards */
    .glass,
    .service-card,
    .feature-card,
    .team-card,
    .creative-card,
    .glow-card,
    .testimonial-card,
    .stat-item {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Fix buttons */
    .cta-group {
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100% !important;
    }
    
    .cta-btn {
        width: 100% !important;
        max-width: 300px !important;
        text-align: center !important;
        justify-content: center !important;
    }
    
    /* Fix footer */
    .footer-content {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }
    
    .footer-section {
        text-align: center !important;
    }
    
    /* Fix font sizes */
    .section-title,
    .section h2 {
        font-size: 1.5rem !important;
    }
    
    .section-subtitle {
        font-size: 0.95rem !important;
    }
    
    /* Fix images */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Glow card fixes */
    .glow-card {
        padding: 1.5rem !important;
    }
    
    .glow-card > div:first-child {
        width: 60px !important;
        height: 60px !important;
        margin: 0 auto 1rem !important;
    }
    
    /* Creative card fixes */
    .creative-card {
        margin-bottom: 1.5rem !important;
    }
    
    .creative-card-image {
        height: 120px !important;
    }
    
    .creative-card-content {
        padding: 1.25rem !important;
    }
    
    .creative-card-icon {
        width: 50px !important;
        height: 50px !important;
        margin-top: -25px !important;
    }
    
    /* Section headers */
    .section-header-pro h2 {
        font-size: 1.5rem !important;
    }
    
    .section-header-pro p {
        font-size: 0.9rem !important;
    }
}

/* ============================================
   EXTRA SMALL DEVICES (max-width: 375px)
   ============================================ */

@media screen and (max-width: 375px) {
    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
    
    .hero h1 {
        font-size: 1.5rem !important;
    }
    
    .nav-menu {
        left: 0.25rem !important;
        right: 0.25rem !important;
    }
    
    .stat-number {
        font-size: 1.75rem !important;
    }
    
    .cta-btn {
        padding: 0.75rem 1rem !important;
        font-size: 0.85rem !important;
    }
}

/* ============================================
   MODERN MOBILE DESIGN - NAVBAR MOVED TO navbar.php
   ============================================ */

@media screen and (max-width: 768px) {
    /* Navbar styles moved to navbar.php inline styles */
    
    /* Theme Toggle Mobile */
    .theme-toggle {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        padding: 0.75rem !important;
        margin-top: 0.5rem !important;
        border-radius: 12px !important;
        background: rgba(0, 0, 0, 0.03) !important;
        border: none !important;
        cursor: pointer !important;
    }
    
    [data-theme="dark"] .theme-toggle {
        background: rgba(255, 255, 255, 0.05) !important;
    }
    
    /* ===== CREATIVE CARDS - WHY CHOOSE US ===== */
    .creative-card {
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 1.5rem !important;
        border-radius: 20px !important;
        overflow: hidden !important;
        background: #ffffff !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
        border: 1px solid rgba(0, 0, 0, 0.05) !important;
    }
    
    [data-theme="dark"] .creative-card {
        background: #1a1a2e !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
        border-color: rgba(255, 255, 255, 0.1) !important;
    }
    
    /* Hide the decorative bar on mobile */
    .creative-card::before,
    .creative-card::after {
        display: none !important;
    }
    
    /* Hide the image area on mobile - cleaner look */
    .creative-card-image {
        display: none !important;
    }
    
    .creative-card-content {
        padding: 2rem 1.5rem !important;
        text-align: center !important;
    }
    
    .creative-card-icon {
        width: 70px !important;
        height: 70px !important;
        margin: 0 auto 1.25rem !important;
        border-radius: 18px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        z-index: 2 !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
    }
    
    .creative-card-icon img {
        width: 32px !important;
        height: 32px !important;
    }
    
    .creative-card-content h3 {
        font-size: 1.25rem !important;
        font-weight: 700 !important;
        margin: 0 0 0.75rem !important;
        color: var(--text-primary) !important;
    }
    
    .creative-card-content p {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
        color: var(--text-secondary) !important;
        margin: 0 !important;
    }
    
    /* ===== STATS SECTION ===== */
    .stat-item {
        padding: 1.5rem 1rem !important;
        text-align: center !important;
        background: var(--bg-card, #ffffff) !important;
        border-radius: 16px !important;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05) !important;
    }
    
    [data-theme="dark"] .stat-item {
        background: var(--bg-card, #1e1e2e) !important;
    }
    
    .stat-number {
        font-size: 2.5rem !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
    }
    
    .stat-label {
        font-size: 0.9rem !important;
        margin-top: 0.5rem !important;
    }
    
    /* ===== GLOW CARDS (Services) ===== */
    .glow-card {
        padding: 1.5rem !important;
        border-radius: 20px !important;
        text-align: center !important;
    }
    
    .glow-card > div:first-child {
        width: 70px !important;
        height: 70px !important;
        margin: 0 auto 1.25rem !important;
        border-radius: 18px !important;
    }
    
    .glow-card h3 {
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .glow-card p {
        font-size: 0.9rem !important;
    }
    
    /* ===== HERO SECTION ===== */
    .hero {
        padding: 5rem 1rem 3rem !important;
        min-height: auto !important;
    }
    
    .hero h1 {
        font-size: 1.75rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
        line-height: 1.7 !important;
        margin-bottom: 2rem !important;
    }
    
    .cta-group {
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100% !important;
        align-items: center !important;
    }
    
    .cta-btn {
        width: 100% !important;
        max-width: 280px !important;
        padding: 1rem 1.5rem !important;
        font-size: 1rem !important;
        text-align: center !important;
        justify-content: center !important;
        border-radius: 50px !important;
    }
    
    /* ===== SECTION HEADERS ===== */
    .section-title,
    .section h2 {
        font-size: 1.5rem !important;
        line-height: 1.4 !important;
        margin-bottom: 0.75rem !important;
    }
    
    .section-subtitle {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
    
    .section-header-pro h2 {
        font-size: 1.5rem !important;
    }
    
    .section-header-pro p {
        font-size: 0.95rem !important;
    }
    
    /* ===== TESTIMONIALS ===== */
    .testimonial-card {
        padding: 1.5rem !important;
        border-radius: 20px !important;
        text-align: center !important;
    }
    
    /* ===== FOOTER ===== */
    .footer-content,
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
    }
    
    .footer-section {
        text-align: center !important;
    }
    
    /* ===== WHATSAPP BUTTON ===== */
    .whatsapp-float {
        bottom: 20px !important;
        right: 20px !important;
        width: 55px !important;
        height: 55px !important;
        font-size: 1.6rem !important;
        z-index: 9998 !important;
    }
    
    body.rtl .whatsapp-float {
        right: auto !important;
        left: 20px !important;
    }
}

/* ===== MOBILE-ONLY ELEMENTS - Hidden on Desktop ===== */
.theme-toggle-mobile,
.lang-btn-mobile,
.nav-right-group {
    display: none;
}

/* Desktop theme toggle - ensure clickable */
.theme-toggle {
    cursor: pointer !important;
    pointer-events: auto !important;
    z-index: 1000 !important;
    position: relative !important;
}

@media screen and (max-width: 768px) {
    .theme-toggle-mobile {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 44px !important;
        height: 44px !important;
        padding: 8px !important;
        background: var(--bg-secondary, #f1f5f9) !important;
        border: 1px solid var(--border-color, rgba(0,0,0,0.1)) !important;
        border-radius: 12px !important;
        cursor: pointer !important;
        margin-right: 10px !important;
        transition: all 0.3s ease !important;
        -webkit-tap-highlight-color: transparent !important;
        z-index: 10000 !important;
        pointer-events: auto !important;
        position: relative !important;
    }
    
    body.rtl .theme-toggle-mobile {
        margin-right: 0 !important;
        margin-left: 10px !important;
    }
    
    [data-theme="dark"] .theme-toggle-mobile {
        background: rgba(255, 255, 255, 0.1) !important;
        border-color: rgba(255, 255, 255, 0.2) !important;
    }
    
    .theme-toggle-mobile:active {
        transform: scale(0.95) !important;
    }
    
    .theme-toggle-mobile .theme-icon {
        font-size: 1.25rem !important;
    }
    
    .theme-toggle-mobile .icon-sun {
        display: none;
    }
    
    .theme-toggle-mobile .icon-moon {
        display: block;
    }
    
    [data-theme="dark"] .theme-toggle-mobile .icon-sun {
        display: block;
    }
    
    [data-theme="dark"] .theme-toggle-mobile .icon-moon {
        display: none;
    }
}

/* ===== VERY SMALL SCREENS ===== */
@media screen and (max-width: 380px) {
    .navbar {
        padding: 0.5rem 0.75rem !important;
    }
    
    .logo img {
        height: 35px !important;
    }
    
    .hero h1 {
        font-size: 1.5rem !important;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }
    
    .creative-card-content {
        padding: 1.25rem !important;
    }
    
    .creative-card-content h3 {
        font-size: 1.1rem !important;
    }
}

/* ============================================
   SPIRAL SCROLL - MOBILE FIX
   Simple fade-in on scroll, always visible
   ============================================ */
@media screen and (max-width: 900px) {
    .spiral-scroll {
        height: auto !important;
        padding: 3rem 1rem !important;
    }
    
    .spiral-scroll__container {
        position: relative !important;
        height: auto !important;
        padding: 0 !important;
    }
    
    .spiral-scroll__cards {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
        height: auto !important;
    }
    
    /* All cards visible - no hide/show */
    .spiral-card,
    .spiral-card.is-prev,
    .spiral-card.is-active {
        position: relative !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
    }
    
    .spiral-card__inner {
        display: flex !important;
        flex-direction: column !important;
        background: var(--bg-card, #fff) !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
        border: 1px solid var(--border-color) !important;
    }
    
    .spiral-card__image,
    .spiral-card.is-active .spiral-card__image,
    [dir="rtl"] .spiral-card__image,
    [dir="rtl"] .spiral-card.is-active .spiral-card__image {
        position: relative !important;
        width: 100% !important;
        height: 180px !important;
        transform: none !important;
        opacity: 1 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }
    
    .spiral-card__content,
    .spiral-card.is-active .spiral-card__content,
    [dir="rtl"] .spiral-card__content,
    [dir="rtl"] .spiral-card.is-active .spiral-card__content {
        position: relative !important;
        width: 100% !important;
        transform: none !important;
        opacity: 1 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border: none !important;
        padding: 1.5rem !important;
    }
    
    .spiral-card__title {
        font-size: 1.25rem !important;
    }
    
    .spiral-card__text {
        font-size: 0.95rem !important;
    }
    
    /* Simple fade-in animation on scroll */
    .spiral-card {
        animation: spiralFadeIn 0.6s ease forwards;
    }
    
    .spiral-card:nth-child(1) { animation-delay: 0.1s; }
    .spiral-card:nth-child(2) { animation-delay: 0.2s; }
    .spiral-card:nth-child(3) { animation-delay: 0.3s; }
    .spiral-card:nth-child(4) { animation-delay: 0.4s; }
}

@keyframes spiralFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   MOBILE FIX - FORCE ALL SECTIONS VISIBLE
   Override kota-animations.css hiding behavior
   ============================================ */
@media screen and (max-width: 900px) {
    /* Force ALL sections visible - override js-ready hiding */
    .js-ready section,
    .js-ready section:not(.hero-video),
    section,
    section:not(.hero-video) {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }
    
    /* Force ALL cards and elements visible */
    .js-ready .reveal-child,
    .js-ready .card,
    .js-ready .service-card,
    .js-ready .stat-item,
    .js-ready .creative-card,
    .js-ready .glow-card,
    .js-ready .testimonial-card,
    .reveal-child,
    .card,
    .service-card,
    .stat-item,
    .creative-card,
    .glow-card,
    .testimonial-card {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
    }
    
    /* Stats scroll - show all cards */
    .stats-scroll {
        height: auto !important;
        padding: 3rem 1rem !important;
    }
    
    .stats-scroll__container {
        position: relative !important;
        height: auto !important;
    }
    
    .stats-scroll__cards {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        position: relative !important;
    }
    
    .stats-card,
    .stats-card.is-active,
    .stats-card.is-prev,
    .stats-card.is-next,
    .stats-card.is-far-prev,
    .stats-card.is-far-next {
        position: relative !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        visibility: visible !important;
        pointer-events: auto !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .stats-card__inner {
        padding: 1.5rem !important;
    }
    
    .stats-card__number {
        font-size: 2rem !important;
    }
    
    /* Clients scroll - show all cards */
    .clients-scroll {
        height: auto !important;
        padding: 3rem 1rem !important;
    }
    
    .clients-scroll__container {
        position: relative !important;
        height: auto !important;
        padding: 0 !important;
    }
    
    .clients-scroll__cards {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
        position: relative !important;
    }
    
    .client-card,
    .client-card.is-active,
    .client-card.is-prev,
    .client-card.is-next,
    .client-card.is-far-prev,
    .client-card.is-far-next {
        position: relative !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        visibility: visible !important;
        pointer-events: auto !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .client-card__inner {
        padding: 1.5rem !important;
        text-align: center !important;
    }
    
    .client-card__logo {
        width: 80px !important;
        height: 80px !important;
        margin: 0 auto 1rem !important;
    }
    
    /* Disable all complex animations on mobile */
    .reveal-up,
    .reveal-scale,
    .reveal-bounce,
    [class*="reveal-"] {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
    }
    
    /* Navbar styles moved to navbar.php */
}
