@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

body { 
    font-family: 'Inter', sans-serif; 
}

h1, h2, h3, h4, h5, h6 { 
    font-family: 'Poppins', sans-serif; 
}

/* Animated Background Blobs */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}


/* Project Modal Styles */
.project-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow-y: auto;
}

.project-modal.active {
    display: block;
}

.modal-content {
    position: relative;
    max-width: 1200px;
    margin: 2rem auto;
    background-color: white;
    border-radius: 1rem;
    padding: 2rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #6b7280;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background-color: #f3f4f6;
    color: #111827;
}

.modal-images {
    margin-bottom: 2rem;
}

.modal-image-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(to bottom right, #ccfbf1, #99f6e4);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.modal-details {
    padding: 1rem 0;
}

.modal-details h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #111827;
    margin-bottom: 1rem;
}

.modal-details p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Pricing Carousel Styles */
.pricing-carousel-wrapper {
    position: relative;
}

.pricing-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.pricing-card {
    min-width: 100%;
    transition: all 0.3s ease;
}

/* Desktop: Show 3 cards at once */
@media (min-width: 768px) {
    .pricing-card {
        min-width: calc(100% / 3);
    }
    
    /* Hide dots on desktop */
    .carousel-dot {
        display: none;
    }
}

/* Mobile: Show 1 card at a time */
@media (max-width: 767px) {
    .pricing-card {
        min-width: 100%;
    }
}

.carousel-prev,
.carousel-next {
    cursor: pointer;
    user-select: none;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: #f9fafb;
}

.carousel-dot {
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: #0d9488;
    width: 1rem;
}

/* FAQ Styles */
.faq-question {
    cursor: pointer;
    user-select: none;
}

.faq-question:hover {
    background-color: #f9fafb;
}

.faq-answer {
    transition: max-height 0.3s ease, padding 0.3s ease;
    line-height: 1.6;
}

.faq-answer.hidden {
    display: none;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

/* Scrollable Screenshot Styles with Navigation */
.screenshot-with-nav {
    display: flex;
    max-height: 70vh;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
}

/* Mobile responsive desktop view */
@media (max-width: 640px) {
    .screenshot-with-nav {
        flex-direction: column;
        max-height: none;
        padding: 1rem;
    }

    .screenshot-main-container {
        order: 2;
        max-height: 60vh;
        overflow-y: auto;
        margin-top: 1rem;
    }

    .screenshot-nav {
        order: 1;
        width: 100%;
        border-left: none;
        border-bottom: 1px solid #e2e8f0;
        padding: 1rem;
        display: flex;
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .nav-section {
        width: 100px;
        height: 75px;
        border-radius: 0.5rem;
    }

    .nav-thumbnail {
        width: 100%;
        height: 60px;
        border-radius: 0.375rem;
    }

    .nav-label {
        font-size: 0.875rem;
        padding: 0.375rem 0.25rem;
    }
}


.screenshot-main-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}


.screenshot-nav {
    width: 120px;
    background-color: #f1f5f9;
    border-left: 1px solid #e2e8f0;
    padding: 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}


.nav-section {
    cursor: pointer;
    border-radius: 0.375rem;
    overflow: hidden;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.nav-section:hover {
    border-color: #0d9488;
    transform: scale(1.05);
}

.nav-section-mobile {
    cursor: pointer;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-section-mobile:hover {
    border-color: #0d9488;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.2);
}

.nav-thumbnail {
    width: 100%;
    height: 60px;
    object-fit: cover;
    display: block;
}

.nav-thumbnail-mobile {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
    border-radius: 0.5rem;
}

.nav-label {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: #374151;
    padding: 0.25rem;
    background-color: rgba(255, 255, 255, 0.8);
}

.nav-label-mobile {
    display: block;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1f2937;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 0.25rem;
    margin-top: 0.25rem;
    border: 1px solid #e5e7eb;
}

/* Custom scrollbar for screenshot containers */
.screenshot-main-container::-webkit-scrollbar,
.screenshot-main-container-mobile::-webkit-scrollbar {
    width: 8px;
}

.screenshot-main-container::-webkit-scrollbar-track,
.screenshot-main-container-mobile::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.screenshot-main-container::-webkit-scrollbar-thumb,
.screenshot-main-container-mobile::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.screenshot-main-container::-webkit-scrollbar-thumb:hover,
.screenshot-main-container-mobile::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Mobile responsiveness for screenshot containers */
@media (max-width: 768px) {
    .screenshot-with-nav {
        max-height: 60vh;
    }

    .screenshot-nav {
        width: 100px;
    }

    .iphone-frame {
        width: 320px;
        height: 650px;
    }
}

/* Mobile-friendly modal tabs */
.tab-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

@media (max-width: 480px) {
    .tab-buttons-container {
        flex-direction: column;
        border: none;
        background: #f9fafb;
        border-radius: 0.5rem;
        padding: 0.25rem;
        margin-bottom: 1rem;
    }

    .tab-button {
        flex: 1;
        border-radius: 0.375rem !important;
        margin: 0.125rem;
        border: none !important;
        background: white;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    .tab-button.active {
        background: #0d9488;
        color: white;
        box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
    }

    .tab-button:not(.active) {
        color: #374151;
    }
}

.clickable-screenshot {
    cursor: pointer;
    transition: opacity 0.2s ease;
}

/* Mobile phone screenshot styling */
.phone-screen .clickable-screenshot {
    width: 100%;
    border-radius: 2rem; /* Match the phone screen border radius */
    display: block;
}

.clickable-screenshot:hover {
    opacity: 0.9;
}

/* iPhone X/XS Frame Styles - Minimalistic */
.iphone-frame {
    position: relative;
    width: 390px;
    height: 790px;
    background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
    border-radius: 40px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    padding: 20px;
    box-sizing: border-box;
}

.iphone-notch {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 25px;
    background: #1a1a1a;
    border-radius: 0 0 16px 16px;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.iphone-screen {
    position: relative;
    width: 100%;
    height: calc(100% - 40px);
    margin-top: 40px;
    background: #000;
    border-radius: 28px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #333;
}

.iphone-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.iphone-screenshot:hover {
    opacity: 0.9;
}

.iphone-home-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: #333;
    border-radius: 2px;
    z-index: 2;
}

/* Mobile Phone Scrolling and Navigation */
.phone-screen {
    max-height: 100%;
}

/* Responsive phone frame sizing */
.phone-frame-container {
    width: 280px;
    max-width: 90vw;
}

@media (min-width: 640px) {
    .phone-frame-container {
        width: 320px;
    }
}

@media (min-width: 768px) {
    .phone-frame-container {
        width: 375px;
    }
}

/* Phone screen aspect ratio adjustments */
@media (max-width: 480px) {
    .phone-screen {
        max-height: 70vh;
        aspect-ratio: 9/19.5; /* Taller aspect ratio for better mobile viewing */
    }
}

@media (min-width: 481px) and (max-width: 767px) {
    .phone-screen {
        max-height: 65vh;
        aspect-ratio: 9/18; /* Slightly taller for tablets */
    }
}

@media (min-width: 768px) {
    .phone-screen {
        aspect-ratio: 375/812; /* Original desktop aspect ratio */
    }
}

.phone-screen::-webkit-scrollbar {
    width: 8px;
}

.phone-screen::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.phone-screen::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
}

.phone-screen::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.6);
}

.mobile-nav-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background-color: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

@media (max-width: 640px) {
    .mobile-nav-sidebar {
        gap: 1.25rem;
        padding: 1.25rem;
    }

    .nav-section-mobile {
        width: 90px;
        height: 90px;
    }

    .nav-thumbnail-mobile {
        width: 100%;
        height: 70px;
    }

    .nav-label-mobile {
        font-size: 0.75rem;
        padding: 0.5rem 0.25rem;
    }
}


/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    .modal-content {
        margin: 0.5rem;
        padding: 1rem;
        max-width: 95vw;
    }

    .modal-details h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 0.25rem;
        padding: 0.75rem;
        max-width: 98vw;
    }
}
