/* ============================================
   MOBILE-ONLY CSS STYLESHEET
   For screens 768px and below
   ============================================ */

@media (max-width: 768px) {
    
    /* ============================================
       RESET & BASE STYLES
       ============================================ */
    
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }
    
    body {
        padding-top: 70px;
    }
    
    /* ============================================
       NAVIGATION
       ============================================ */
    
    #navbar {
        padding: 15px 20px;
        flex-wrap: nowrap;
    }
    
    #navbar.scrolled {
        padding: 12px 20px;
    }
    
    /* Logo */
    .logo-image {
        height: 50px;
        width: auto;
    }
    
    /* Hamburger Menu */
    .hamburger {
        display: flex;
        position: relative;
        z-index: 1002;
        flex-direction: column;
        cursor: pointer;
        padding: 10px;
    }
    
    .hamburger span {
        width: 25px;
        height: 3px;
        background-color: #333;
        margin: 3px 0;
        transition: 0.3s;
        border-radius: 3px;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-7px, 7px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(45deg) translate(-7px, -5px);
    }
    
    /* Mobile Navigation Menu */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 300px;
        height: 100vh;
        background: white !important;
        background-color: #ffffff !important;
        flex-direction: column;
        padding: 80px 25px 25px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 1000;
        gap: 20px;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    .nav-menu li {
        margin: 0;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 10px;
    }
    
    .nav-link {
        font-size: 18px;
        padding: 12px 0;
        display: block;
        width: 100%;
    }
    
    /* Dropdown Menu for Mobile */
    .dropdown-menu {
        position: static;
        display: none;
        background: #f8f8f8;
        padding: 10px 0 10px 20px;
        box-shadow: none;
        margin-top: 5px;
        opacity: 1;
        visibility: visible;
        transform: none;
        border-radius: 8px;
        min-width: 100%;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-menu li {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .dropdown-menu a {
        padding: 10px 15px;
        font-size: 16px;
    }
    
    /* ============================================
       SECTIONS
       ============================================ */
    
    .section {
        padding: 60px 20px;
        min-height: auto;
    }
    
    .content-wrapper {
        max-width: 100%;
        padding: 0;
    }
    
    /* ============================================
       TYPOGRAPHY
       ============================================ */
    
    h1 {
        font-size: 32px;
        line-height: 1.3;
        margin-bottom: 15px;
    }
    
    h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    /* ============================================
       HERO SECTION
       ============================================ */
    
    .hero {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: 75vh;
    position: relative;
    z-index: 1;
    }
    
    .hero .content-wrapper {
    position: relative;
    z-index: 2;
}

.main-title, .subtitle {
    position: relative;
    z-index: 2;
}
    .main-title {
    font-size: 26px;
}

.subtitle {
    font-size: 16px;
}

/* Make the h1 "Dandelion Creative Touch" larger */
.hero h1 {
    font-size: 42px;
}
    
   /* Show dandelion background on mobile but scaled down */
.dandelion-background {
    display: flex !important;
    position: fixed;
    inset: 0;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
    z-index: -1;
    pointer-events: none;
}

.dandelion-svg {
    width: 700px !important;
    height: 700px !important;
    opacity: 0.6;
}
    
    .scroll-indicator {
        bottom: 20px;
    }
    
    /* ============================================
       ABOUT SECTION
       ============================================ */
    
    .split-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .text-content p {
        font-size: 16px;
        line-height: 1.7;
    }
    
    .square-graphic {
        max-width: 280px;
        height: auto;
        aspect-ratio: 1;
        margin: 0 auto;
        position: static;
        transform: none;
    }
    
    .square-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    /* ============================================
       SERVICES SECTION
       ============================================ */
    
    .services {
        padding: 60px 20px;
    }
    
    .services h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 40px;
    }
    
    .service-card-link {
        display: block;
        width: 100%;
    }
    
    .service-card {
        padding: 35px 25px;
        width: 100%;
    }
    
    .service-icon h2 {
        font-size: 48px;
        margin-bottom: 15px;
    }
    
    /* ============================================
       OBJECTIVES SECTION
       ============================================ */
    
    .objectives {
        padding: 60px 20px;
    }
    
    .objectives h2 {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .objectives-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 40px;
    }
    
    .objective-card {
        padding: 35px 25px;
        width: 100%;
    }
    
    .objective-icon {
        font-size: 48px;
        margin-bottom: 15px;
    }
    
    .objective-card p {
        font-size: 14px;
    }
    
    /* ============================================
       PORTFOLIO SECTION - CRITICAL FIX
       ============================================ */
    
    .portfolio {
        padding: 60px 20px 120px 20px;
        background: transparent;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .portfolio h2 {
        margin-bottom: 40px;
        text-align: center;
        font-size: 28px;
        display: block !important;
        visibility: visible !important;
    }
    
    .portfolio-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 25px;
        width: 100%;
        visibility: visible !important;
    }
    
    .portfolio-item {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        text-align: center;
        cursor: pointer;
        width: 100%;
    }
    
    .portfolio-graphic {
        width: 100% !important;
        height: 250px !important;
        background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
        border-radius: 20px;
        margin-bottom: 20px;
        overflow: hidden;
        position: relative;
        display: block !important;
        visibility: visible !important;
    }
    
    .portfolio-image {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .portfolio-item p {
        font-size: 16px;
        font-weight: 600;
        color: var(--text-dark);
        margin-top: 10px;
        display: block !important;
        visibility: visible !important;
    }
    
    /* Portfolio Modal */
    .portfolio-modal {
        display: flex !important;
    }
    
    .portfolio-modal.active {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .modal-content {
        width: 95vw !important;
        max-width: 95vw !important;
        padding: 30px 20px;
        border-radius: 20px;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-image {
        width: 100% !important;
        height: auto !important;
        max-height: 60vh !important;
        object-fit: contain !important;
        display: block !important;
    }
    
    .modal-close {
        width: 40px;
        height: 40px;
        font-size: 24px;
        top: 15px;
        right: 15px;
    }
    
    .modal-caption {
        font-size: 18px;
        margin-top: 15px;
    }
    
    /* ============================================
       TESTIMONIALS SECTION
       ============================================ */
    
    .testimonials {
        padding: 120px 20px 50px 20px !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .testimonials-header-wrapper {
        position: relative !important;
        margin-bottom: 30px !important;
        order: 1 !important;
    }
    
    .testimonials-bg-image {
        display: none !important;
    }
    
    .testimonials h2 {
        padding: 100px 20px 40px 20px !important;
        font-size: 38px !important;
        position: relative !important;
        z-index: 2 !important;
        background-image: url('smiley-face-stock-image-popular-trending-adobe-stock-seller.png') !important;
        background-size: cover !important;
        background-position: center !important;
        margin-bottom: 20px;
    }
    
    .testimonials-subtitle {
        order: 2 !important;
        margin-bottom: 30px !important;
        font-size: 16px;
        text-align: center;
    }
    
    .testimonials-carousel-container {
        padding: 0 50px !important;
        width: 100% !important;
        max-width: 100% !important;
        order: 3 !important;
        position: relative;
    }
    
    .testimonials-carousel {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .testimonials-track {
        display: flex;
        width: 100%;
    }
    
    .testimonial-box {
        flex-shrink: 0;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        padding: 30px 20px;
        margin: 0;
    }
    
    .carousel-arrow {
        width: 45px;
        height: 45px;
        flex-shrink: 0;
    }
    
    .arrow-left {
        left: 5px;
    }
    
    .arrow-right {
        right: 5px;
    }
    
    .client-logo-img {
        width: 150px;
        height: 150px;
        object-fit: contain;
        margin: 0 auto 20px;
        display: block;
    }
    
    .testimonial-text {
        font-size: 14px;
        min-height: auto;
        line-height: 1.6;
        margin-bottom: 15px;
    }
    
    .client-name {
        font-size: 13px;
    }
    
    /* ============================================
       CONTACT FORM SECTION
       ============================================ */
    
    .contact-form-section {
        padding: 60px 20px;
    }
    
    .contact-form-section h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .form-subtitle {
        margin-bottom: 40px;
        font-size: 16px;
    }
    
    .form-subtitle h3 {
        font-size: 16px;
    }
    
    .contact-form {
        padding: 35px 25px;
        border-radius: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 20px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 15px;
        font-size: 16px !important; /* Prevents zoom on iOS */
        border-radius: 12px;
    }
    
    .form-group textarea {
        min-height: 120px;
    }
    
    .submit-btn {
        padding: 16px 35px;
        font-size: 16px;
        width: 100%;
    }
    
    /* ============================================
       CONTACT SECTION
       ============================================ */
    
    .contact {
        padding: 60px 20px;
        text-align: center;
    }
    
    .contact h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }
    
    .contact-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }
    
    .contact-link {
        font-size: 18px;
        word-break: break-all;
        margin-bottom: 30px;
        display: inline-block;
    }
    
    .contact-number,
    .contact-address {
        font-size: 15px;
        line-height: 1.6;
        margin: 20px 0;
    }
    
    .contact-number h3 {
        font-size: 16px;
        font-weight: 700;
    }
    
    .social-links {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        margin-top: 30px;
    }
    
    .social-link {
        padding: 12px 30px;
        width: 100%;
        max-width: 250px;
        text-align: center;
        margin: 0 auto;
        font-size: 16px;
    }
    
    /* ============================================
       DECORATIVE ELEMENTS
       ============================================ */
    
    .triangle-graphic {
        display: none;
    }
    
    .graphic-element {
        display: none;
    }
    
    /* ============================================
       TOUCH DEVICE OPTIMIZATIONS
       ============================================ */
    
    .service-card:hover,
    .objective-card:hover,
    .portfolio-item:hover .portfolio-graphic {
        transform: none;
    }
    
    .service-card:active,
    .objective-card:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
    
    .nav-link:active,
    .social-link:active,
    .submit-btn:active {
        opacity: 0.7;
    }
}

/* ============================================
   EXTRA SMALL MOBILE (480px and below)
   ============================================ */

@media (max-width: 480px) {
    body {
        padding-top: 65px;
    }
    
    #navbar {
        padding: 12px 15px;
    }
    
    .logo-image {
        height: 45px;
    }
    
    .section {
        padding: 50px 15px;
    }
    
    .hero {
        padding-top: 80px;
        padding-bottom: 50px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 24px;
        margin-bottom: 25px;
    }
    
    h3 {
        font-size: 18px;
    }
    
    .service-card,
    .objective-card {
        padding: 30px 20px;
    }
    
    .portfolio-graphic {
        height: 200px !important;
    }
    
    .testimonials-carousel-container {
        padding: 0 40px !important;
    }
    
    .carousel-arrow {
        width: 40px;
        height: 40px;
    }
    
    .testimonial-box {
        padding: 25px 15px;
    }
    
    .client-logo-img {
        width: 120px;
        height: 120px;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 12px;
    }
    
    .submit-btn {
        padding: 14px 30px;
    }
}

/* ============================================
   LANDSCAPE ORIENTATION
   ============================================ */

@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding-top: 50px;
        padding-bottom: 50px;
        min-height: auto;
    }
    
    .section {
        min-height: auto;
        padding: 50px 20px;
    }
    
    .nav-menu {
        max-height: 100vh;
        overflow-y: auto;
    }
}

/* ============================================
   iOS SAFARI FIXES
   ============================================ */

@supports (-webkit-touch-callout: none) {
    .section {
        min-height: -webkit-fill-available;
    }
}

/* Prevent text zoom on iOS */
@media (max-width: 768px) {
    input, textarea, select {
        font-size: 16px !important;
    }
}

/* Smooth scrolling for touch devices */
@media (hover: none) and (pointer: coarse) {
    html {
        -webkit-overflow-scrolling: touch;
    }
}