/* CSS Variables - Light Theme from prompt3.md */
:root {
    --primary: #0B1F3A;
    --primary-light: #153259;
    --accent: #3B82F6;
    --accent-hover: #2563EB;
    --accent-light: rgba(59, 130, 246, 0.1);
    --bg-main: #FFFFFF;
    --bg-light: #F8FAFC;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;

    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --transition: 0.2s ease;
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Trust Line */
.trust-line {
    text-align: center;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-sub {
    font-size: 1rem;
    color: #6b7280;
    max-width: 90%;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 1.75rem;
    }

    .section-sub {
        max-width: 500px;
    }
}

/* Filter Bar - Premium Tabs */
.filter-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0 0.25rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: flex-start;
}

.filter-bar::-webkit-scrollbar {
    display: none;
}

.filter-btn {
    border: none;
    padding: 8px 16px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 40px;
    white-space: nowrap;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.filter-btn:hover {
    background: #e5e7eb;
}

.filter-btn.active {
    background: #2563EB;
    color: #fff;
}

/* Sticky WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #20b858;
}

@media (min-width: 768px) {
    .whatsapp-float {
        bottom: 30px;
        right: 30px;
        width: 60px;
        height: 60px;
    }
}
@media (min-width: 768px) {
    .filter-bar {
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
        margin-bottom: 2rem;
    }
}

/* Project Grid - Premium Spacing */
.projects {
    padding: 1rem 0 3rem;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 640px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .project-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

/* CTA Box */
.cta-box {
    margin-top: 40px;
    padding: 32px 24px;
    border-radius: 16px;
    background: #111827;
    color: #fff;
    text-align: center;
}

.cta-box h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cta-box p {
    font-size: 0.9375rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.cta-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #25d366;
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cta-btn:hover {
    background: #1fad53;
    transform: translateY(-2px);
}

/* Project Card - Premium Glass Look */
.project-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.project-screenshot {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.project-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-screenshot .fallback-initial {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    opacity: 0.4;
}

/* Image Slider Styles */
.image-slider {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slides-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: auto;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #fff;
    width: 16px;
    border-radius: 3px;
}

.project-info {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.project-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.3;
    flex: 1;
}

@media (min-width: 768px) {
    .project-name {
        font-size: 1.125rem;
    }
}

/* Modern Pill Tag */
.project-tag {
    background: #eef2ff;
    color: #4f46e5;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Premium Coming Soon Badge */
.coming-badge {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.project-desc {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.75rem;
    flex: 1;
    line-height: 1.5;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
    padding: 0.5rem 0;
    margin: -0.5rem 0;
    -webkit-tap-highlight-color: transparent;
}

.project-link:hover {
    color: #4338ca;
}

.project-link svg {
    width: 14px;
    height: 14px;
}

/* Coming Soon Card Styling */
.project-card.coming-soon {
    opacity: 0.85;
}

.project-card.coming-soon .project-screenshot {
    background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
}

.project-card.coming-soon .project-screenshot img {
    filter: grayscale(100%);
    opacity: 0.5;
}

.project-link.disabled {
    background: #e5e7eb;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
    cursor: not-allowed;
    margin: 0;
}

/* About - Mobile optimized */
.about {
    padding: 2.5rem 1.25rem 3rem;
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.about-text {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 100%;
    margin: 0 auto 0.5rem;
    line-height: 1.6;
}

.about-credit {
    font-size: 0.875rem;
    color: var(--accent);
    font-weight: 600;
}

@media (min-width: 768px) {
    .about {
        padding: 3rem 0 4rem;
    }

    .about-text {
        font-size: 1.125rem;
        max-width: 480px;
    }
}

/* Footer - Mobile optimized */
.footer {
    padding: 1.25rem 0;
    background-color: var(--primary);
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

.footer p {
    font-size: 0.875rem;
    color: #9CA3AF;
}

.footer-link {
    font-size: 0.875rem;
    color: #E2E8F0;
    text-decoration: none;
    padding: 0.25rem 0;
}

@media (min-width: 768px) {
    .footer .container {
        flex-direction: row;
        justify-content: space-between;
        gap: 1rem;
    }
}

/* Responsive - Already mobile-first, desktop enhancements */
@media (min-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}
