/* Mobile Responsive Styles */

/* Mobile Large (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .container {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
        margin: 0 auto;
    }

    .header {
        top: 0px;
        padding: 15px 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        position: fixed;
        width: 100vw;
        left: 0;
        right: 0;
    }

    .header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }

    .navbar-collapse {
        transition: all 0.3s ease;
        overflow: hidden;
    }

    .navbar-nav {
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.4s ease;
        display: flex;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 8px;
        padding: 0 20px;
        margin-top: 10px;
        max-height: 0;
    }

    .navbar-collapse.show .navbar-nav {
        opacity: 1;
        transform: translateY(0);
        max-height: 400px;
        padding: 20px;
        animation: slideDown 0.4s ease forwards;
    }

    @keyframes slideDown {
        0% {
            opacity: 0;
            transform: translateY(-20px);
            max-height: 0;
        }
        50% {
            opacity: 0.5;
            transform: translateY(-5px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
            max-height: 400px;
        }
    }

    .navbar-collapse.show .navbar-nav .nav-link {
        padding: 12px 0;
        margin: 0;
        border-bottom: 1px solid rgba(28, 30, 31, 0.1);
        color: #1c1e1f;
        font-weight: 700;
        font-size: 16px;
        opacity: 0;
        transform: translateX(-20px);
        animation: slideInLeft 0.3s ease forwards;
    }

    .navbar-collapse.show .navbar-nav .nav-link:nth-child(1) {
        animation-delay: 0.1s;
    }
    .navbar-collapse.show .navbar-nav .nav-link:nth-child(2) {
        animation-delay: 0.2s;
    }
    .navbar-collapse.show .navbar-nav .nav-link:nth-child(3) {
        animation-delay: 0.3s;
    }
    .navbar-collapse.show .navbar-nav .nav-link:nth-child(4) {
        animation-delay: 0.4s;
    }

    @keyframes slideInLeft {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .navbar-collapse.show .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

    .contact-btn {
        opacity: 0 !important;
        transform: scale(0.8) !important;
        transition: none !important;
    }

    .navbar-collapse.show .contact-btn {
        margin-top: 15px;
        margin-left: 0;
        text-align: center;
        padding: 14px 28px;
        background: #1c1e1f;
        color: white;
        border-radius: 26px;
        text-decoration: none;
        font-weight: 700;
        font-size: 16px;
        opacity: 0;
        transform: scale(0.8);
        animation: scaleIn 0.4s ease forwards;
        animation-delay: 0.6s;
    }

    @keyframes scaleIn {
        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    .navbar-toggler {
        display: block !important;
        border: 2px solid #1c1e1f;
        padding: 6px;
        background: white;
        border-radius: 6px;
        width: 40px;
        height: 40px;
        position: relative;
        transition: all 0.3s ease;
    }

    .navbar-toggler:hover {
        background: #f8f9fa;
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(28, 30, 31, 0.25);
        outline: none;
    }

    .navbar-toggler:active {
        transform: scale(0.95);
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2828, 30, 31, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        width: 24px;
        height: 24px;
        display: block;
        transition: transform 0.3s ease;
    }

    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        transform: rotate(90deg);
    }

    .hero-section {
        padding-top: 100px;
        padding-bottom: 30px;
        text-align: center;
    }

    .hero-content {
        width: 100%;
    }

    .dashboard-image {
        height: 250px;
    }

    .hero-title {
        font-size: 28px;
        line-height: 28px;
    }

    .hero-description {
        font-size: 14px;
        line-height: 18px;
    }

    .services-section {
        padding: 40px 0;
    }

    .services-slider-container {
        width: 100vw;
        margin-left: -20px;
        padding: 0;
        overflow: hidden;
    }

    .services-slider {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .services-slider::-webkit-scrollbar {
        display: none;
    }

    .services-track {
        display: flex;
        gap: 0;
        width: max-content;
    }

    /* Mobile'da services navigation arrows */
    .services-nav {
        display: flex !important;
        justify-content: center;
        gap: 16px;
        margin-top: 30px;
        position: relative;
    }

    .services-arrow {
        width: 40px;
        height: 40px;
        border: none;
        border-radius: 50%;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .services-arrow:hover {
        background: rgba(28, 30, 31, 0.1);
        transform: scale(1.05);
    }

    .services-arrow img {
        width: 16px;
        height: 16px;
    }

    .services-indicators {
        display: none !important;
    }

    .service-slide {
        min-width: 100vw;
        max-width: 100vw;
        padding: 0 20px;
        padding-top: 40px;
        scroll-snap-align: start;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        flex: none;
    }

    .service-card-figma {
        width: 100%;
        max-width: 320px;
        height: 180px;
        padding: 24px;
        margin: 0 auto;
    }

    .service-icon-figma {
        width: 110px;
        height: 110px;
        top: -40px;
    }

    .service-title-figma {
        margin-top: 40px;
        font-size: 16px;
        margin-bottom: 12px;
    }

    .service-description-figma {
        font-size: 14px;
        line-height: 18px;
    }

    .projects-section {
        padding: 40px 0;
    }

    .projects-slider-container {
        width: 100vw;
        margin-left: -20px;
        padding: 0;
        overflow: hidden;
    }

    .projects-slider {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .projects-slider::-webkit-scrollbar {
        display: none;
    }

    .projects-track {
        display: flex;
        gap: 0;
        width: max-content;
        flex-direction: row;
    }

    .project-slide {
        min-width: 100vw;
        max-width: 100vw;
        padding: 0 20px;
        scroll-snap-align: start;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        flex: none;
    }

    .project-card-figma {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .projects-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 30px;
        padding: 0 20px;
    }

    .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #e0e0e0;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .dot.active {
        background: #8b5cf6;
        transform: scale(1.2);
    }

    .project-image-figma {
        height: 200px;
    }

    .project-img {
        height: 200px;
    }

    .project-date {
        top: 60px;
        left: -12px;
        width: 26px;
        height: 80px;
        font-size: 12px;
    }

    .project-title-figma {
        font-size: 16px;
        line-height: 20px;
    }

    .project-description-figma {
        font-size: 14px;
    }

    .about-section {
        padding: 40px 0;
        text-align: center;
    }

    .about-title {
        font-size: 60px;
        line-height: 20px;
        text-align: center;
        margin-bottom: 20px;
    }

    .about-description {
        text-align: center;
        margin-bottom: 20px;
    }

    .contact-section {
        padding: 40px 0;
    }

    /* Contact form spacing for mobile */
    .contact-form-figma {
        max-width: 100%;
    }

    .contact-form-figma .row {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        margin-bottom: 15px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .contact-form-figma .row > div {
        flex: 1 !important;
        margin-bottom: 0px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .contact-form-figma .mb-3 {
        margin-bottom: 0px !important;
    }

    .contact-form-figma .mb-4 {
        margin-bottom: 30px !important;
    }

    .contact-title {
        font-size: 32px;
        line-height: 32px;
    }

    .textarea-figma {
        height: 60px;
    }

    .contact-btn-figma {
        width: 150px;
        height: 44px;
        font-size: 14px;
    }

    .footer-main {
        padding: 40px 0;
    }

    .footer-bottom {
        padding: 20px 0;
    }

    .footer-legal-figma {
        gap: 16px;
        margin-top: 10px;
    }

    .global-bg-elements {
        max-width: 100vw;
        overflow: hidden;
    }

    .gradient-ellipse-purple {
        width: 300px !important;
        height: 300px !important;
        top: 40px !important;
        left: calc(50% - 350px) !important;
    }

    .gradient-ellipse-blue {
        width: 200px !important;
        height: 200px !important;
        right: calc(50% - 180px + 30px) !important;
        left: auto !important;
    }

    .gradient-ellipse-purple-about {
        width: 300px !important;
        height: 300px !important;
        top: 800px !important;
        right: calc(50% - 180px - 30px) !important;
        left: auto !important;
    }

    .gradient-ellipse-blue-about {
        width: 200px !important;
        height: 200px !important;
        top: 1000px !important;
        left: calc(50% - 300px) !important;
    }
}

/* Mobile Small (320px - 575px) */
@media (max-width: 575px) {
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
        margin: 0 auto;
    }

    .header {
        top: 0px;
        padding: 15px 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        position: fixed;
        width: 100vw;
        left: 0;
        right: 0;
    }

    .header .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    .navbar-brand img {
        height: 35px;
    }

    .navbar-collapse {
        transition: all 0.3s ease;
        overflow: hidden;
    }

    .navbar-nav {
        opacity: 0;
        transform: translateY(-20px);
        transition: all 0.4s ease;
        display: flex;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-radius: 8px;
        padding: 0 20px;
        margin-top: 10px;
        max-height: 0;
    }

    .navbar-collapse.show .navbar-nav {
        opacity: 1;
        transform: translateY(0);
        max-height: 350px;
        padding: 20px;
        animation: slideDown 0.4s ease forwards;
    }

    @keyframes slideDown {
        0% {
            opacity: 0;
            transform: translateY(-20px);
            max-height: 0;
        }
        50% {
            opacity: 0.5;
            transform: translateY(-5px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
            max-height: 350px;
        }
    }

    .navbar-collapse.show .navbar-nav .nav-link {
        padding: 10px 0;
        margin: 0;
        border-bottom: 1px solid rgba(28, 30, 31, 0.1);
        color: #1c1e1f;
        font-weight: 700;
        opacity: 0;
        transform: translateX(-20px);
        animation: slideInLeft 0.3s ease forwards;
    }

    .navbar-collapse.show .navbar-nav .nav-link:nth-child(1) {
        animation-delay: 0.1s;
    }
    .navbar-collapse.show .navbar-nav .nav-link:nth-child(2) {
        animation-delay: 0.2s;
    }
    .navbar-collapse.show .navbar-nav .nav-link:nth-child(3) {
        animation-delay: 0.3s;
    }
    .navbar-collapse.show .navbar-nav .nav-link:nth-child(4) {
        animation-delay: 0.4s;
    }

    @keyframes slideInLeft {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .navbar-collapse.show .navbar-nav .nav-link:last-child {
        border-bottom: none;
    }

    .navbar-collapse.show .contact-btn {
        margin-top: 15px;
        margin-left: 0;
        text-align: center;
        padding: 12px 24px;
        background: #1c1e1f;
        color: white;
        border-radius: 26px;
        text-decoration: none;
        font-weight: 700;
        font-size: 14px;
        opacity: 0;
        transform: scale(0.8);
        animation: scaleIn 0.4s ease forwards;
        animation-delay: 0.6s;
    }

    @keyframes scaleIn {
        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    .navbar-toggler {
        display: block !important;
        border: 2px solid #1c1e1f;
        padding: 5px;
        background: white;
        border-radius: 6px;
        width: 36px;
        height: 36px;
        position: relative;
        transition: all 0.3s ease;
    }

    .navbar-toggler:hover {
        background: #f8f9fa;
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .navbar-toggler:focus {
        box-shadow: 0 0 0 0.2rem rgba(28, 30, 31, 0.25);
        outline: none;
    }

    .navbar-toggler:active {
        transform: scale(0.95);
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2828, 30, 31, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='4' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
        width: 22px;
        height: 22px;
        display: block;
        transition: transform 0.3s ease;
    }

    .navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
        transform: rotate(90deg);
    }

    .hero-section {
        padding-top: 120px;
        padding-bottom: 40px;
        text-align: center;
    }

    .hero-content {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .dashboard-image {
        height: 200px;
    }

    .hero-title {
        font-size: 28px;
        line-height: 32px;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 16px;
        line-height: 20px;
        margin-bottom: 25px;
    }

    .hero-cta-link {
        font-size: 16px;
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }

    .hero-visual {
        margin-top: 40px;
        display: flex;
        justify-content: center;
    }

    .dashboard-preview {
        max-width: 100%;
        height: auto;
    }

    .services-section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 32px;
        line-height: 36px;
        margin-bottom: 20px;
    }

    .services-slider-container {
        width: 100vw;
        margin-left: -15px;
        padding: 0;
        overflow: hidden;
    }

    .services-slider {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .services-slider::-webkit-scrollbar {
        display: none;
    }

    .services-track {
        display: flex;
        gap: 0;
        width: max-content;
    }

    /* Mobile Small'da services navigation arrows */
    .services-nav {
        display: flex !important;
        justify-content: center;
        gap: 16px;
        margin-top: 30px;
        position: relative;
    }

    .services-arrow {
        width: 40px;
        height: 40px;
        border: none;
        border-radius: 50%;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .services-arrow:hover {
        background: rgba(28, 30, 31, 0.1);
        transform: scale(1.05);
    }

    .services-arrow img {
        width: 16px;
        height: 16px;
    }

    .services-indicators {
        display: none !important;
    }

    .service-slide {
        min-width: 100vw;
        max-width: 100vw;
        padding: 0 15px;
        padding-top: 50px;
        scroll-snap-align: start;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        flex: none;
    }

    .service-card-figma {
        width: 100%;
        max-width: 300px;
        height: 180px;
        padding: 20px;
        margin: 0 auto;
    }

    .service-icon-figma {
        width: 120px;
        height: 120px;
        top: -50px;
    }

    .service-title-figma {
        margin-top: 50px;
        font-size: 18px;
        margin-bottom: 12px;
    }

    .service-description-figma {
        font-size: 16px;
        line-height: 20px;
    }

    .projects-section {
        padding: 50px 0;
    }

    .projects-subtitle {
        margin-bottom: 40px;
        font-size: 16px;
    }

    .projects-slider-container {
        width: 100vw;
        margin-left: -15px;
        padding: 0;
        overflow: hidden;
    }

    .projects-slider {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .projects-slider::-webkit-scrollbar {
        display: none;
    }

    .projects-track {
        display: flex;
        gap: 0;
        width: max-content;
        flex-direction: row;
    }

    .project-slide {
        min-width: 100vw;
        max-width: 100vw;
        padding: 0 15px;
        scroll-snap-align: start;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        flex: none;
    }

    .project-image-figma {
        height: 160px;
    }

    .project-img {
        height: 160px;
    }

    .project-date {
        top: 50px;
        left: -8px;
        width: 22px;
        height: 60px;
        font-size: 10px;
        padding: 4px 2px;
    }

    .project-title-figma {
        font-size: 14px;
        line-height: 16px;
    }

    .project-description-figma {
        font-size: 12px;
        line-height: 16px;
    }

    .project-tag {
        font-size: 10px;
        padding: 4px 8px;
    }

    .project-card-figma {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .projects-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 30px;
        padding: 0 15px;
    }

    .dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #e0e0e0;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .dot.active {
        background: #8b5cf6;
        transform: scale(1.2);
    }

    .about-section {
        padding: 50px 0;
        text-align: center;
    }

    .about-title {
        font-size: 60px;
        line-height: 50px;
        text-align: center;
        margin-bottom: 20px;
    }

    .about-description {
        font-size: 16px;
        line-height: 22px;
        text-align: center;
        margin-bottom: 25px;
    }

    .about-image {
        margin-top: 30px;
        width: 100%;
        max-width: 100%;
    }

    .contact-section {
        padding: 50px 0;
    }

    /* Contact form spacing for mobile small */
    .contact-form-figma {
        max-width: 100%;
    }

    .contact-form-figma .row {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        margin-bottom: 30px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .contact-form-figma .row > div {
        flex: 1 !important;
        margin-bottom: 0px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .contact-form-figma .mb-3 {
        margin-bottom: 0px !important;
    }

    .contact-form-figma .mb-4 {
        margin-bottom: 25px !important;
    }

    .contact-title {
        font-size: 32px;
        line-height: 36px;
    }

    .contact-subtitle {
        margin-bottom: 40px;
        font-size: 16px;
    }

    .form-control-figma {
        height: 48px;
        font-size: 16px;
        padding: 0 16px;
    }

    .textarea-figma {
        height: 72px;
        padding: 16px;
    }

    .contact-btn-figma {
        width: 150px;
        height: 48px;
        font-size: 16px;
    }

    .footer-main {
        padding: 30px 0;
    }

    .footer-title-figma {
        font-size: 14px;
        margin-bottom: 16px;
    }

    .footer-description-figma {
        font-size: 14px;
    }

    .footer-links-figma a {
        font-size: 14px;
    }

    .footer-contact-figma p {
        font-size: 14px;
    }

    .footer-bottom {
        padding: 15px 0;
    }

    .footer-copyright-figma {
        font-size: 12px;
        text-align: center;
        margin-bottom: 10px;
    }

    .footer-legal-figma {
        justify-content: center;
        gap: 12px;
    }

    .footer-legal-figma a {
        font-size: 12px;
    }

    .global-bg-elements {
        max-width: 100vw;
        overflow: hidden;
    }

    .gradient-ellipse-purple {
        width: 250px !important;
        height: 250px !important;
        top: 30px !important;
        left: calc(50% - 320px) !important;
        opacity: 0.5;
    }

    .gradient-ellipse-blue {
        width: 180px !important;
        height: 180px !important;
        right: calc(50% - 160px + 20px) !important;
        left: auto !important;
        opacity: 0.3;
    }

    .gradient-ellipse-purple-about {
        width: 250px !important;
        height: 250px !important;
        top: 700px !important;
        right: calc(50% - 160px - 20px) !important;
        left: auto !important;
        opacity: 0.3;
    }

    .gradient-ellipse-blue-about {
        width: 180px !important;
        height: 180px !important;
        top: 900px !important;
        left: calc(50% - 250px) !important;
        opacity: 0.2;
    }
}
