/* Mobile and Tablet Styles */

/* Global mobile overflow prevention */
@media (max-width: 900px) {
    *, *::before, *::after {
        box-sizing: border-box;
    }
    
    html {
        overflow-x: hidden;
        width: 100%;
    }
    
    body {
        overflow-x: hidden;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    .container {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
}

/* Prevent horizontal scrolling on mobile */
@media (max-width: 900px) {
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    * {
        box-sizing: border-box;
    }
    
    .hero {
        overflow-x: hidden;
        position: relative;
        width: 100%;
        max-width: 100vw;
    }
    
    .hero-text--left, .hero-text--right {
        max-width: calc(100vw - 40px);
    }
    
    /* Ensure all positioned elements stay within viewport */
    .hero__services,
    .hero__badge,
    .hero__works,
    .nav__controls {
        max-width: calc(100vw - 20px);
    }
}

/* Mobile Footer Responsive Adjustments */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 !important;
    }
    
    .footer__wrapper {
        padding: 0 16px !important;
    }
    
    .footer__widget-title {
        font-size: 1.1rem !important;
        margin-bottom: 10px !important;
    }
    
    .footer__nav-link, .footer__nav-text {
        font-size: 0.95rem !important;
    }
    
    .footer__nav-widgets {
        gap: 20px !important;
    }
    
    .footer__mobile-star {
        width: 35px;
        height: 35px;
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 0 !important;
    }
    
    .footer__wrapper {
        padding: 0 12px !important;
    }
    
    .footer__widget-title {
        font-size: 1rem !important;
        margin-bottom: 8px !important;
    }
    
    .footer__nav-link, .footer__nav-text {
        font-size: 0.9rem !important;
    }
    
    .footer__nav-widgets {
        gap: 15px !important;
    }
    
    .footer__mobile-star {
        width: 30px;
        height: 30px;
        top: 10px;
        right: 10px;
    }
    
    .footer__copyright {
        font-size: 0.8rem !important;
    }
}

/* Tablet and Mobile Navigation */
@media (max-width: 1300px) {
    .header {
        padding: 20px 24px;
        position: relative;
        z-index: 1002;
    }

    .logo {
        height: 35px;
    }

    .nav__container {
        background: transparent;
        width: auto;
        height: auto;
        position: static;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 300px;
        height: 100vh;
        padding: 80px 30px 40px;
        background-color: #000;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        z-index: 1000;
    }

    .nav__container.active .nav__menu {
        transform: translateX(0);
    }

    .nav__list {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        width: 100%;
        margin-top: 0;
        padding-left: 0;
    }

    /* Mobile Dropdown Navigation Styles */
    .nav__item--dropdown .nav__dropdown {
        position: static;
        background: rgba(0, 0, 0, 0.8);
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        margin-left: 20px;
        margin-top: 10px;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }

    .nav__dropdown-link {
        color: rgba(255, 255, 255, 0.8);
        font-size: 1rem;
        padding: 8px 0;
        border-left: 2px solid transparent;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav__dropdown-link:hover {
        color: var(--primary-color);
        background: none;
        border-left-color: var(--primary-color);
    }

    .nav__link {
        color: white;
        font-size: 1.2rem;
        padding: 8px 0;
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-family: 'Syne', sans-serif;
    }

    .nav__link:hover {
        color: var(--primary-color);
    }

    .nav__controls {
        position: absolute;
        top: 50%;
        right: -80px !important;
        transform: translateY(-50%);
        z-index: 1001;
        gap: 20px;
        padding: 0;
    }

    .nav__toggle {
        width: 35px;
        height: 35px;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        padding: 8px;
        z-index: 1002;
    }

    .nav__toggle span {
        background-color: white;
        width: 18px;
        height: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .nav__container.active .nav__toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    .nav__container.active .nav__toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav__cta {
        display: none;
    }

    .nav__container.active::before {
        display: none;
    }

    /* Hero Section - Tablet */
    .hero {
        min-height: 65vh;
        padding: 80px 24px 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .hero__image {
        max-width: 800px;
        margin: 0 auto;
    }

    .hero-text {
        font-family: 'Syne', sans-serif;
        font-size: 5rem;
    }

    .hero-text--top {
        top: -75px;
        font-size: 5rem;
    }

    .hero-text--left {
        top: 50%;
        left: -40px;
        transform: translateY(-50%);
    }

    .hero-text--right {
        top: 50%;
        right: -40px;;
        transform: translateY(-50%);
    }

    img.hero__star {
        left: -5%;
        top: 0%;
        width: 190px;
        height: auto;
        
    }

    .hero__badge {
        right: 5%;
        top: 15%;
        transform: scale(0.9);
    }

    .badge__circle {
        width: 80px;
        height: 80px;
    }

    .badge__text svg text {
        font-size: 10px;
        font-family: 'Inter', sans-serif;
    }

    .badge__icon svg {
        width: 20px;
        height: 20px;
    }

    .hero__works {
        right: -5%;
        top: 15%;
        transform: scale(0.9);
    }

    .works__circle {
        width: 80px;
        height: 80px;
    }

    .works__text {
        font-size: 0.7rem;
        margin-bottom: 3px;
        font-family: 'Syne', sans-serif;
    }

    /* Hero Services - Tablet */
    .hero__services {
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        padding: 0;
        width: calc(100% - 48px);
        max-width: calc(100vw - 48px);
        z-index: 4;
    }

    .services__grid-hero {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        width: 100%;
        padding: 0 10px;
    }

    .service-feature {
        gap: 8px;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 80px;
    }

    .service-feature__icon {
        width: 45px;
        height: 45px;
    }

    .service-feature__icon svg {
        width: 20px;
        height: 20px;
    }

    .service-feature__text {
        font-size: 0.75rem;
    }

    /* About Section - Tablet */
    .about {
        padding: 60px 0;
    }

    .about__wrapper {
        padding: 0 16px;
    }

    .about__title {
        font-size: 2.2rem;
        font-family: 'Syne', sans-serif;
    }

    .title-icons {
        height: 45px;
    }

    .title-icon {
        width: 40px;
        height: 40px;
        margin-left: -12px;
    }

    .title-icon--star {
        width: 40px;
        height: 40px;
        margin-left: -12px;
    }

    .about__content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    /* Trust Badges - Tablet */
    .trust-badges {
        gap: 15px;
        margin-top: 40px;
    }

    .trust-badge {
        gap: 10px;
        padding: 12px 18px;
        border-radius: 40px;
    }

    .trust-badge__icon {
        width: 35px;
        height: 35px;
    }

    .trust-badge__text {
        font-size: 0.85rem;
    }

    .stat__number {
        font-size: 3rem;
        font-family: 'Syne', sans-serif;
    }

    /* Services Section - Tablet */
    .services__grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .service-card {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 900px) {
    .hero {
        min-height: 75vh;
        padding: 60px 20px 50px;
    }

    .hero__image {
        max-width: 95%;
    }

    .hero-text {
        font-family: 'Syne', sans-serif;
        font-size: 3.5rem;
       
    }

    .hero-text--top {
        top: -55px;
        font-size: 3.5rem;
    }

    .hero-text--left {
        left: 10px;
        z-index: 4;
    }

    .hero-text--right {
        right: 10px;
        z-index: 4;
    }

    img.hero__star {
        left: 2%;
        top: 5%;
        width: 100px;
    }

    .hero__badge {
        right: 5%;
        top: 10%;
        transform: scale(0.7);
    }

    .hero__works {
        right: -10%;
        top: 10%;
        transform: scale(0.7);
    }

    /* Hero Services - Mobile Large */
    .hero__services {
        bottom: 15px;
        padding: 0;
        width: calc(100% - 32px);
        max-width: calc(100vw - 32px);
    }

    .services__grid-hero {
        justify-content: space-between;
        flex-wrap: wrap;
        width: 100%;
        padding: 0 8px;
    }

    .service-feature {
        gap: 6px;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 70px;
    }

    .service-feature__icon {
        width: 40px;
        height: 40px;
    }

    .service-feature__icon svg {
        width: 18px;
        height: 18px;
    }

    .service-feature__text {
        font-size: 0.7rem;
    }

    .nav__controls {
        
        top: 50%;
        right: 20px;
        
    }

    .about__title {
        font-size: 1.6rem;
        font-family: 'Syne', sans-serif;
    }

    .title-icons {
        height: 40px;
    }

    .title-icon {
        width: 35px;
        height: 35px;
        margin-left: -10px;
    }

    .title-icon--star {
        width: 35px;
        height: 35px;
        margin-left: -10px;
    }

    .about__description {
        font-size: 0.9rem;
    }

    /* Trust Badges - Mobile Large */
    .trust-badges {
        gap: 12px;
        margin-top: 30px;
        justify-content: center;
    }

    .trust-badge {
        gap: 8px;
        padding: 10px 15px;
        border-radius: 35px;
    }

    .trust-badge__icon {
        width: 30px;
        height: 30px;
    }

    .trust-badge__text {
        font-size: 0.75rem;
    }

    .stat__number {
        font-size: 2.5rem;
    }

    .stat {
        padding: 1rem;
        letter-spacing: 0.1em;
        margin-bottom: 1rem;
    }

    .companies__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }

    .scrolling-text__item {
        font-size: 3rem;
        padding: 0 1rem;
    }

    .scrolling-text__logo {
        height: 2.5rem;
    }

    .scrolling-text__track {
        animation: scroll-right-to-left 25s linear infinite;
    }

    .hover-circle {
        width: 160px;
        height: 160px;
    }

    .hover-circle__icon svg {
        width: 45px;
        height: 45px;
    }

    .hover-circle__text textPath {
        font-size: 14px;
    }

    /* Services Section - Mobile Large */
    .services__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        max-width: 450px;
        margin: 0 auto;
        padding: 30px;
    }

    /* Testimonials Section - Mobile Large */
    .testimonials {
        padding: 80px 16px;
    }

    .testimonials__wrapper {
        max-width: 100%;
        padding: 0 16px;
    }

    .testimonials__title {
        font-size: 2rem;
    }

    .testimonials__subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .testimonials__logos {
        gap: 30px;
        flex-wrap: wrap;
    }

    .testimonials__logo {
        height: 30px;
        max-width: 120px;
    }

    .testimonials__cards {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
        margin-bottom: 40px;
    }

    .testimonial-card {
        padding: 20px;
    }

    .testimonial-card__text {
        font-size: 0.9rem;
        margin-bottom: 20px;
    }

    .testimonial-card__name {
        font-size: 1rem;
    }

    .testimonial-card__position {
        font-size: 0.8rem;
    }

    /* Hide floating cards on mobile */
    .testimonial-card--floating {
        display: none;
    }

    .testimonials__bg-img--star {
        width: 120px;
        bottom: -50%;
        right: 5%;
    }

    .testimonials__chat-icon {
        width: 32px;
        height: 32px;
        top: -60px;
        right: 30px;
    }

    /* Works Section - Mobile Large */
    .works {
        padding: 0 16px 60px;
    }

    .works__header {
        flex-direction: column;
        gap: 20px;
        text-align: left;
        align-items: flex-start;
    }

    .works__title-container {
        gap: 5px;
    }

    .works__star {
        width: 10px;
        height: 10px;
    }

    .works__title {
        font-size: 2rem;
    }

    .works__description {
        font-size: 1.1rem;
        text-align: left;
        max-width: 100%;
    }

    .works__grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }

    .portfolio-card__image {
        height: 350px;
        object-fit: cover;
    }

    .portfolio-card__title {
        font-size: 1.2rem;
    }

    /* Blog Section - Mobile Large */
    .blog {
        padding: 60px 0;
    }

    .blog__wrapper {
        padding: 0 24px;
    }

    .blog__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 40px;
    }

    .blog__title-container {
        gap: 10px;
    }

    .blog__title-icon {
        width: 20px;
        height: 20px;
    }

    .blog__title {
        font-size: 2rem;
    }

    .blog__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .blog-card__title {
        font-size: 1.1rem;
    }

    .blog__header .works__cta-button {
        padding: 8px 16px;
        font-size: 0.85rem;
        border-radius: 8px;
    }

    .blog__header .works__cta-icon {
        width: 14px;
        height: 14px;
    }

    /* CTA Section - Mobile Large */
    .cta {
        padding: 200px 0;
    }

    .cta__bg-image {
        object-position: left center;
    }

    .cta__wrapper {
        transform: translateY(-100px);
    }

    .cta__content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px;
    }

    .cta__title-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .cta__title-icon {
        width: 25px;
        height: 25px;
    }

    .cta__title {
        font-size: 2.8rem;
    }
}

/* Mobile Styles */
@media (max-width: 432px) {
    /* Hero Section Centering Fix for iPhone sizes (390x844) */
    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center !important;
        justify-items: center !important;
    }
    
    .hero-content {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .hero-content h1 {
        text-align: center !important;
        width: 100% !important;
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-content p {
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    
    /* Hero buttons and stats centering */
    .hero-content div[style*="display: flex"][style*="gap: 1rem"] {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
    }
    
    .hero-content div[style*="display: flex"][style*="gap: 2.5rem"] {
        display: flex !important;
        gap: 1.5rem !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
        flex-wrap: wrap !important;
    }

    .hero {
        min-height: 45vh;
        padding: 40px 16px 35px;
    }

    .hero__image {
        max-width: 95%;
    }

    .logo img {
        height: 80%;
        width: auto;
    }

    .hero-text {
        font-family: 'Syne', sans-serif;
        font-size: 2rem;
       
    }

    .hero-text--top {
        top: -30px;
        font-size: 2rem;
    }

    .hero-text--left {
        left: 5px;
        z-index: 4;
    }

    .hero-text--right {
        right: 5px;
        z-index: 4;
    }

    img.hero__star {
        left: 2%;
        top: 5%;
        width: 60px;
    }

    .hero__badge {
        right: 5%;
        top: 10%;
        transform: scale(0.5);
    }

    .hero__works {
        right: -15px;
        top: 10%;
        transform: scale(0.5);
    }

    /* Hero Services - Mobile Small */
    .hero__services {
        bottom: 10px;
        padding: 0;
        width: calc(100% - 24px);
        max-width: calc(100vw - 24px);
    }

    .services__grid-hero {
        justify-content: space-between;
        flex-wrap: nowrap;
        width: 100%;
        padding: 0 2px;
    }

    .service-feature {
        gap: 3px;
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 50px;
    }

    .service-feature__icon {
        width: 32px;
        height: 32px;
    }

    .service-feature__icon svg {
        width: 14px;
        height: 14px;
    }

    .service-feature__text {
        font-size: 0.55rem;
        white-space: nowrap;
    }

    .nav__controls {
        
        top: 50%;
        right: 16px;
        
    }

    .about__title {
        font-size: 1.6rem;
        font-family: 'Syne', sans-serif;
    }

    .title-icons {
        height: 35px;
    }

    .title-icon {
        width: 30px;
        height: 30px;
        margin-left: -8px;
    }

    .title-icon--star {
        width: 30px;
        height: 30px;
        margin-left: -8px;
    }

    .about__description {
        font-size: 0.9rem;
    }

    /* Trust Badges - Mobile Small */
    .trust-badges {
        gap: 8px;
        margin-top: 25px;
        justify-content: center;
        flex-wrap: wrap;
    }

    .trust-badge {
        gap: 6px;
        padding: 8px 12px;
        border-radius: 30px;
        flex: 0 0 auto;
        min-width: fit-content;
    }

    .trust-badge__icon {
        width: 25px;
        height: 25px;
    }

    .trust-badge__text {
        font-size: 0.65rem;
        white-space: nowrap;
    }

    .stat__number {
        font-size: 2.5rem;
    }

    .stat {
        padding: 1rem;
        letter-spacing: 0.1em;
        margin-bottom: 1rem;
    }

    .companies__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }

    .scrolling-text__item {
        font-size: 2.5rem;
    }

    .scrolling-text__logo {
        height: 2rem;
    }

    .scrolling-text__track {
        animation: scroll-right-to-left 20s linear infinite;
    }

    .hover-circle {
        width: 100px;
        height: 100px;
    }

    .hover-circle__icon svg {
        width: 35px;
        height: 35px;
    }

    .hover-circle__text textPath {
        font-size: 12px;
    }

    /* Services Section - Mobile Small */
    .services__grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .service-card {
        max-width: 100%;
        margin: 0 auto;
        padding: 25px;
    }

    .service-card__title {
        font-size: 1.4rem;
    }

    .service-card__price {
        font-size: 1.2rem;
    }

    /* Testimonials Section - Mobile Small */
    .testimonials {
        padding: 60px 16px;
    }

    .testimonials__wrapper {
        max-width: 100%;
        padding: 0 12px;
    }

    .testimonials__title {
        font-size: 1.8rem;
    }

    .testimonials__subtitle {
        font-size: 0.9rem;
        margin-bottom: 25px;
    }

    /* Fix for testimonials star and title centering on small mobile */
    .testimonials div[style*="text-align: center"] {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .testimonials div[style*="display: flex"][style*="align-items: center"][style*="justify-content: center"] {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: row !important;
        gap: 0.8rem !important;
        margin-bottom: 1rem !important;
    }
    
    .testimonials img[style*="animation: rotate"] {
        width: 18px !important;
        height: 18px !important;
    }
    
    .testimonials h2[style*="font-size: 2.5rem"] {
        font-size: 1.8rem !important;
        text-align: center !important;
        margin: 0 !important;
    }

    .testimonials__logos {
        gap: 20px;
        flex-wrap: wrap;
    }

    .testimonials__logo {
        height: 25px;
        max-width: 100px;
    }

    .testimonials__cards {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 25px;
        margin-bottom: 30px;
    }

    .testimonial-card {
        padding: 16px;
    }

    .testimonial-card__text {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }

    .testimonial-card__name {
        font-size: 0.9rem;
    }

    .testimonial-card__position {
        font-size: 0.75rem;
    }

    .testimonials__bg-img--star {
        width: 90px;
        bottom: -40%;
        right: 2%;
    }

    .testimonials__chat-icon {
        width: 28px;
        height: 28px;
        top: -50px;
        right: 25px;
    }

    /* Works Section - Mobile Small */
    .works {
        padding: 0 16px 50px;
    }

    .works__header {
        flex-direction: column;
        gap: 15px;
        text-align: left;
        align-items: flex-start;
    }

    .works__title-container {
        gap: 4px;
    }

    .works__star {
        width: 8px;
        height: 8px;
    }

    .works__title {
        font-size: 1.8rem;
    }

    .works__description {
        font-size: 1rem;
        text-align: left;
        max-width: 100%;
    }

    .works__grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 25px;
    }

    .portfolio-card__image {
        height: 300px;
        object-fit: cover;
    }

    .portfolio-card__title {
        font-size: 1.1rem;
    }

    /* Blog Section - Mobile Small */
    .blog {
        padding: 40px 0;
    }

    .blog__wrapper {
        padding: 0 16px;
    }

    .blog__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 30px;
    }

    .blog__title-container {
        gap: 8px;
    }

    .blog__title-icon {
        width: 18px;
        height: 18px;
    }

    .blog__title {
        font-size: 1.8rem;
    }

    .blog__grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .blog-card__title {
        font-size: 1rem;
    }

    .blog-card__meta {
        font-size: 0.8rem;
    }

    .blog__header .works__cta-button {
        padding: 6px 12px;
        font-size: 0.8rem;
        border-radius: 6px;
    }

    .blog__header .works__cta-icon {
        width: 12px;
        height: 12px;
    }

    /* CTA Section - Mobile Small */
    .cta {
        padding: 150px 0;
    }

    .cta__bg-image {
        object-position: left center;
    }

    .cta__wrapper {
        transform: translateY(-80px);
    }

    .cta__content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 25px;
    }

    .cta__title-container {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .cta__title-icon {
        width: 20px;
        height: 20px;
    }

    .cta__title {
        font-size: 2.2rem;
    }

    .cta__button {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    /* Fix for CTA "Pasikalbėkime!" section centering on small mobile */
    .cta-container {
        padding: 2rem 1rem !important;
        margin: 0 auto !important;
        text-align: center !important;
        width: calc(100% - 2rem) !important;
        max-width: calc(100vw - 2rem) !important;
        box-sizing: border-box !important;
    }
    
    .cta-title {
        font-size: 1.8rem !important;
        text-align: center !important;
        margin-bottom: 1rem !important;
        width: 100% !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .cta-description {
        font-size: 1rem !important;
        text-align: center !important;
        margin: 0 auto 1.5rem auto !important;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
    }
    
    .cta-buttons {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
    }
    
    .cta-button {
        width: 100% !important;
        max-width: 280px !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }

    /* Footer Section - Mobile */
    .footer {
        padding: 60px 0 40px !important;
    }

    .footer__floating-star {
        display: none !important;
    }

    .footer__wrapper {
        padding: 0 20px !important;
    }

    .footer__top {
        flex-direction: column !important;
        gap: 40px !important;
    }

    .footer__logo {
        width: 140px !important;
        padding: 20px !important;
        margin-bottom: 20px !important;
        align-self: center !important;
    }

    .footer__nav-widgets {
        flex-direction: column !important;
        gap: 30px !important;
    }

    .footer__widget-title {
        font-size: 1.1rem !important;
        margin-bottom: 15px !important;
    }

    .footer__widget-title::after {
        width: 30px !important;
        height: 2px !important;
    }

    .footer__nav-link, .footer__nav-text {
        font-size: 0.95rem !important;
        padding-left: 15px !important;
    }

    .footer__nav-link::before {
        font-size: 0.8rem !important;
    }

    .footer__nav-list {
        gap: 12px !important;
    }

    .footer__bottom-content {
        flex-direction: column !important;
        gap: 25px !important;
        text-align: center !important;
    }

    .footer__social-links {
        justify-content: center !important;
        gap: 15px !important;
    }

    .footer__social-link {
        width: 40px !important;
        height: 40px !important;
    }

    .footer__cta-badge {
        align-self: center !important;
        padding: 10px 20px !important;
        font-size: 0.9rem !important;
    }

    .footer__copyright {
        font-size: 0.85rem !important;
        text-align: center !important;
    }
}

/* Specific fixes for iPhone screen sizes like 390x844 */
@media (max-width: 414px) and (min-width: 375px) {
    /* Hero section complete centering */
    section[style*="background: linear-gradient(135deg, #f093fb"] {
        padding: 6rem 1rem 3rem !important;
    }
    
    .hero-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        text-align: center !important;
        justify-items: center !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .hero-content {
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Testimonials section fixes */
    section[style*="background: linear-gradient(135deg, #667eea"] {
        padding: 3rem 1rem !important;
    }
    
    section[style*="background: linear-gradient(135deg, #667eea"] div[style*="max-width: 1200px"] {
        padding: 0 1rem !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* CTA section positioning */
    section[style*="background: linear-gradient(135deg, #4facfe"] {
        padding: 3rem 1rem !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    section[style*="background: linear-gradient(135deg, #4facfe"] div[style*="max-width: 1200px"] {
        padding: 0 1rem !important;
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
}