/* ==========================================
   ROOT VARIABLES & RESET
   ========================================== */
:root {
    /* Colors */
    --primary-blue: #6366F1;
    --primary-purple: #8B5CF6;
    --primary-pink: #EC4899;
    --primary-orange: #F97316;
    --primary-green: #10B981;
    --primary-cyan: #06B6D4;
    
    /* Neutrals */
    --bg-dark: #0A0A0F;
    --bg-card: #13131C;
    --bg-card-hover: #1A1A28;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0B8;
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 120px;
    
    /* Effects */
    --blur-glass: blur(20px);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft JhengHei', 'PingFang TC', 'Heiti TC', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    backdrop-filter: var(--blur-glass);
    background: rgba(10, 10, 15, 0.85);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(10, 10, 15, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.highlight {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
    text-decoration: none;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary:hover {
    border-color: var(--primary-blue);
    background: rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    animation: float 25s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-blue), transparent);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-purple), transparent);
    top: 50%;
    right: -100px;
    animation-delay: 7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--primary-pink), transparent);
    bottom: -100px;
    left: 30%;
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.05);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-blue);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple), var(--primary-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
    background-size: 200% 200%;
}

@keyframes shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 680px;
    line-height: 1.75;
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   SERVICES SECTION
   ========================================== */
.services {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.8px;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.service-card {
    position: relative;
    padding: 2.5rem 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-purple));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.5);
    background: var(--bg-card-hover);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card:hover .service-overlay {
    opacity: 1;
}

.service-icon {
    margin-bottom: 2rem;
    display: inline-block;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.3px;
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.service-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.service-features li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 1.5rem;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-blue);
    font-weight: bold;
}

/* ==========================================
   TRUSTED BY SECTION
   ========================================== */
.trusted {
    padding: var(--section-padding) 0;
    background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.02), transparent);
}

.trusted-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem 3rem;
    padding: 2rem 0;
    max-width: 1100px;
    margin: 0 auto;
}

.logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 85px;
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.logo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(139, 92, 246, 0.05));
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(20%) contrast(0.95) brightness(0.95);
}

.logo-item:hover img {
    filter: grayscale(0%) contrast(1) brightness(1);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact {
    padding: var(--section-padding) 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: start;
}

.contact-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.75;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-method {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-method:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: rgba(255, 255, 255, 0.04);
    transform: translateX(6px);
}

.method-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.method-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.method-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23A0A0B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    padding-right: 3rem;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: var(--section-padding);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 968px) {
    :root {
        --section-padding: 80px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .service-features {
        grid-template-columns: 1fr;
    }
    
    .trusted-logos {
        gap: 2rem 1.5rem;
    }
    
    .logo-item {
        width: 160px;
        height: 80px;
        padding: 1rem 1.25rem;
    }
}



/* ==========================================
   SECTION 1: HERO & SERVICE CARDS
   ========================================== */

.hero-compact {
    min-height: auto;
    padding: 100px 0 40px;
    position: relative;
    overflow: hidden;
}

.hero-content-compact {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title-compact {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.services-interactive {
    padding: 60px 0 80px;
}

.services-grid-interactive {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.service-card-interactive {
    position: relative;
    cursor: pointer;
}

.card-front {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem 1.75rem;
    transition: all 0.3s ease;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.service-card-interactive:hover .card-front {
    transform: translateY(-4px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.15);
}

.service-icon-large {
    margin-bottom: 1.5rem;
}

.service-title-large {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #fff;
}

.service-desc-short {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.price-tag {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin: 1.5rem 0;
    padding: 0.75rem 1.5rem;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 8px;
}

.price-from { font-size: 0.9rem; color: var(--text-secondary); }
.price-amount { font-size: 1.75rem; font-weight: 700; color: #6366F1; }
.price-unit { font-size: 1rem; color: var(--text-secondary); }

.btn-details {
    margin-top: auto;
    padding: 0.75rem 1.5rem;
    background: #6366F1;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}


/* ==========================================
   SECTION 2: MODAL STRUCTURE
   ========================================== */

.detail-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.detail-modal.active { display: flex; }

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    background: var(--bg-primary);
    border: 2px solid rgba(99, 102, 241, 0.3);
    border-radius: 20px;
    max-width: 1400px;
    max-height: 88vh;
    width: 90%;
    overflow-y: auto;
    z-index: 10001;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
}

.modal-close {
    position: sticky;
    top: 1rem;
    right: 1rem;
    float: right;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10002;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body { padding: 3rem; }
.detail-header { text-align: center; margin-bottom: 3rem; }
.detail-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 0.75rem; }
.detail-subtitle { font-size: 1.15rem; color: #6366F1; margin-bottom: 1rem; font-weight: 600; }
.detail-description { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.6; }
.section-title-small { font-size: 1.75rem; font-weight: 700; margin: 3rem 0 2rem; }

.modal-content::-webkit-scrollbar { width: 8px; }
.modal-content::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.05); }
.modal-content::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.5); border-radius: 4px; }


/* ==========================================
   SECTION 3: CATEGORY SHOWCASE LAYOUT
   ========================================== */

.categories-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.category-showcase {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.category-showcase:hover {
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.1);
}

.category-theme-badge {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.15));
    padding: 1rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-icon { font-size: 1.25rem; }
.theme-text { font-size: 0.9rem; font-weight: 600; color: #fff; }

.category-info-redesign { padding: 2.25rem; }

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1.5rem;
}

.category-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.hot-badge {
    background: linear-gradient(135deg, #EC4899, #F97316);
    color: white;
    padding: 0.45rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.category-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1.75rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.info-box {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.35rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.box-label { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.65rem; }
.box-value { font-size: 1.55rem; font-weight: 700; color: #fff; white-space: nowrap; }
.price-value { color: #6366F1; }

.what-you-get {
    background: rgba(99, 102, 241, 0.05);
    padding: 1.75rem;
    border-radius: 12px;
    margin-bottom: 1.75rem;
}

.wyg-title { font-size: 1.05rem; font-weight: 700; color: #fff; margin-bottom: 1.15rem; }

.wyg-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.wyg-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.95rem;
}

.guarantee-note {
    display: flex;
    align-items: start;
    gap: 0.95rem;
    background: rgba(245, 158, 11, 0.08);
    padding: 1.25rem;
    border-radius: 10px;
    border-left: 3px solid #F59E0B;
    margin-top: 1.75rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.guarantee-note strong { color: #F59E0B; }

.cat-inquiry-btn {
    width: 100%;
    background: linear-gradient(135deg, #6366F1, #8B5CF6);
    color: white;
    padding: 1.15rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s;
}

.cat-inquiry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.45);
}

.mockup-label {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(99, 102, 241, 0.9);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 100;
}


/* ==========================================
   SECTION 4: BROWSER MOCKUP FRAMEWORK
   ========================================== */

.browser-mockup {
    background: #1f2937;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.browser-header {
    background: #374151;
    padding: 0.85rem 1.15rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.browser-dots { display: flex; gap: 0.5rem; }
.browser-dots span { width: 11px; height: 11px; border-radius: 50%; }
.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #ffbd2e; }
.browser-dots span:nth-child(3) { background: #28c840; }

.browser-url {
    flex: 1;
    background: rgba(0, 0, 0, 0.2);
    padding: 0.5rem 1.15rem;
    border-radius: 7px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    font-family: monospace;
}

.browser-content {
    background: #fff;
    overflow-y: auto;
    scroll-behavior: smooth;
}

.browser-content::-webkit-scrollbar { width: 5px; }
.browser-content::-webkit-scrollbar-track { background: #f1f5f9; }
.browser-content::-webkit-scrollbar-thumb { background: #c29958; border-radius: 3px; }


/* ==========================================


/* ==========================================
   RESPONSIVE: LAPTOP SIDE-BY-SIDE LAYOUT
   ========================================== */

@media (min-width: 1024px) {
    /* Side-by-side layout for ALL categories */
    .category-showcase {
        display: grid !important;
        grid-template-columns: 1.3fr 1fr !important;
        grid-template-rows: auto 1fr !important;
    }
    
    .category-theme-badge {
        grid-column: 1 / -1 !important;
    }
    
    .category-mockup-wrapper {
        grid-column: 1 !important;
        grid-row: 2 !important;
        padding: 24px !important;
        display: flex !important;
        flex-direction: column !important;
        min-height: 800px !important;
        max-height: 800px !important;
    }
    
    .category-info-redesign {
        grid-column: 2 !important;
        grid-row: 2 !important;
        padding: 28px !important;
        min-height: 800px !important;
        max-height: 800px !important;
        overflow-y: auto !important;
    }
    
    .browser-mockup {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .browser-content {
        flex: 1 !important;
        min-height: 0 !important;
    }
    
    /* 2-column features list */
    .wyg-list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px 16px !important;
    }
}

/* Tablet & Mobile */
@media (max-width: 1023px) {
    .wyg-list {
        display: flex !important;
        flex-direction: column !important;
    }
}

/* ==========================================
   FIX: MODAL BACKGROUND GLITCHES
   ========================================== */

/* Stop logo animations when modal is open */
.detail-modal.active ~ section .logo-item {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Disable parallax and animations during modal */
.detail-modal.active ~ * .gradient-orb {
    animation: none !important;
    transform: none !important;
}

/* Better modal backdrop to hide glitches */
.modal-overlay {
    background: rgba(0, 0, 0, 0.92) !important;
    backdrop-filter: blur(15px) !important;
}

/* Fix z-index stacking */
.detail-modal {
    z-index: 99999 !important;
}

.modal-content {
    z-index: 100000 !important;
}

/* ==========================================
   SIMPLIFIED CAPABILITIES & PROCESS
   ========================================== */

/* Capabilities - Clean Grid */
.capabilities-grid-simple {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.cap-item-simple {
    text-align: center;
    padding: 2rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.cap-item-simple:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
}

.cap-icon-lg {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cap-item-simple h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
}

.cap-item-simple p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Process - Vertical Timeline */
.process-timeline-vertical {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 800px;
    margin: 0 auto;
}

.process-item-clean {
    display: flex;
    gap: 2rem;
    padding: 2rem 0;
    position: relative;
}

.process-item-clean:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 25px;
    top: 80px;
    bottom: -32px;
    width: 2px;
    background: linear-gradient(180deg, #6366f1, rgba(99, 102, 241, 0.3));
}

.process-num-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 900;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

.process-content-clean {
    flex: 1;
}

.process-icon-clean {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.process-content-clean h5 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.process-content-clean p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.timeline-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2rem;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 12px;
    margin-top: 2rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.timeline-footer strong {
    color: #6366f1;
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .capabilities-grid-simple {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .process-item-clean {
        gap: 1.5rem;
    }
    
    .process-num-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .process-item-clean:not(:last-child)::after {
        left: 20px;
    }
}

/* ==========================================
   MOBILE MODAL FIXES
   ========================================== */

@media (max-width: 767px) {
    /* Simplify process on mobile */
    .process-timeline-vertical {
        gap: 0.5rem;
    }
    
    .process-item-clean {
        flex-direction: column;
        padding: 1.5rem;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 12px;
        gap: 1rem;
    }
    
    .process-item-clean:not(:last-child)::after {
        display: none;
    }
    
    .process-num-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .process-icon-clean {
        font-size: 2rem;
    }
    
    .process-content-clean h5 {
        font-size: 1.1rem;
    }
    
    .process-content-clean p {
        font-size: 0.9rem;
    }
    
    .timeline-footer {
        padding: 1.5rem;
        font-size: 0.95rem;
    }
    
    /* Fix contact button on mobile */
    .detail-cta {
        padding: 2rem 0 1rem;
    }
    
    .btn-contact-large {
        width: 100%;
        padding: 1.25rem;
        font-size: 1rem;
        justify-content: center;
    }
    
    /* Capabilities mobile */
    .cap-item-simple {
        padding: 1.5rem 1.25rem;
    }
    
    .cap-icon-lg {
        font-size: 2.5rem;
    }
}

/* ==========================================
   MOBILE RESPONSIVE - MAIN PAGE FIX
   ========================================== */

@media (max-width: 1024px) {
    /* Contact section single column */
    .contact-content {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
    
    /* Services grid single column on tablet/mobile */
    .services-grid-interactive {
        grid-template-columns: 1fr !important;
        padding: 0 1.5rem !important;
    }
}

@media (max-width: 767px) {
    /* Hero section */
    .hero-compact {
        padding: 80px 0 30px !important;
    }
    
    .hero-title-compact {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    /* Service cards */
    .card-front {
        padding: 1.75rem 1.5rem !important;
        min-height: 320px !important;
    }
    
    .service-title-large {
        font-size: 1.35rem !important;
    }
    
    .price-amount {
        font-size: 1.5rem !important;
    }
    
    /* Section titles more visible */
    .section-title {
        font-size: 1.75rem !important;
        color: #fff !important;
    }
    
    .section-badge {
        font-size: 0.8rem !important;
    }
    
    /* Contact section mobile */
    .contact {
        padding: 60px 0 !important;
    }
    
    .contact-content {
        gap: 2.5rem !important;
    }
    
    .contact-description {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
        color: rgba(255, 255, 255, 0.9) !important;
    }
    
    .contact-methods {
        gap: 1.5rem !important;
    }
    
    .contact-method {
        padding: 1.25rem !important;
    }
    
    /* Form wrapper */
    .contact-form-wrapper {
        padding: 2rem 1.5rem !important;
    }
    
    .contact-form {
        gap: 1.25rem !important;
    }
    
    /* Trusted logos */
    .trusted-logos {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
        padding: 0 1.5rem !important;
    }
    
    .logo-item {
        width: 100% !important;
        padding: 1rem !important;
    }
}

/* ==========================================
   CONTACT SECTION - BETTER FORMATTING
   ========================================== */

.contact .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact .section-badge {
    display: inline-block;
    margin-bottom: 1.25rem;
}

.contact .section-title {
    margin-bottom: 1.5rem;
}

.contact-description {
    line-height: 1.8 !important;
    font-size: 1.15rem !important;
}


/* ==========================================
   MODAL MOBILE FIXES - TEXT & MOCKUP
   ========================================== */

@media (max-width: 767px) {
    /* Modal sizing */
    .modal-content {
        width: 98% !important;
        max-height: 95vh !important;
        border-radius: 16px !important;
    }
    
    .modal-body {
        padding: 1.75rem 1.25rem !important;
    }
    
    /* Modal header */
    .detail-title {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
    }
    
    .detail-subtitle {
        font-size: 1rem !important;
    }
    
    .detail-description {
        font-size: 0.95rem !important;
    }
    
    .section-title-small {
        font-size: 1.35rem !important;
        margin: 2.5rem 0 1.5rem !important;
    }
    
    /* Category showcase mobile */
    .category-theme-badge {
        padding: 0.85rem 1.15rem !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.5rem !important;
    }
    
    .theme-text {
        font-size: 0.85rem !important;
    }
    
    .mockup-label {
        font-size: 0.65rem !important;
        padding: 0.35rem 0.85rem !important;
        top: 0.75rem !important;
        right: 0.75rem !important;
    }
    
    /* Browser mockup mobile */
    .browser-mockup {
        border-radius: 10px !important;
    }
    
    .browser-header {
        padding: 0.65rem 0.85rem !important;
    }
    
    .browser-dots span {
        width: 9px !important;
        height: 9px !important;
    }
    
    .browser-url {
        font-size: 0.7rem !important;
        padding: 0.4rem 0.85rem !important;
    }
    
    .browser-content {
        min-height: 280px !important;
        max-height: 320px !important;
        font-size: 11px !important;
    }
    
    /* Category info mobile */
    .category-info-redesign {
        padding: 1.75rem 1.35rem !important;
    }
    
    .category-title {
        font-size: 1.45rem !important;
    }
    
    .category-description {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .info-grid {
        gap: 1rem !important;
    }
    
    .box-label {
        font-size: 0.8rem !important;
    }
    
    .box-value {
        font-size: 1.35rem !important;
    }
    
    .wyg-title {
        font-size: 0.95rem !important;
    }
    
    .wyg-item {
        font-size: 0.88rem !important;
    }
    
    .guarantee-note {
        font-size: 0.85rem !important;
        padding: 1.15rem !important;
    }
    
    .cat-inquiry-btn {
        font-size: 0.95rem !important;
        padding: 1.05rem !important;
    }
    
    /* Capabilities mobile */
    .capabilities-grid-simple {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }
    
    .cap-item-simple {
        padding: 1.5rem !important;
    }
    
    .cap-icon-lg {
        font-size: 2.5rem !important;
    }
    
    .cap-item-simple h5 {
        font-size: 1rem !important;
    }
    
    .cap-item-simple p {
        font-size: 0.88rem !important;
    }
}

/* ==========================================
   COMPACT PROCESS GRID & BETTER CTA
   ========================================== */

/* Compact Process Grid (instead of vertical timeline) */
.process-grid-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.process-card-compact {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.process-card-compact:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-4px);
}

.process-num-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 900;
    color: white;
}

.process-icon-compact {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.process-card-compact h5 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #fff;
}

.process-card-compact p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Better Final CTA Section */
.final-cta-section {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 3rem;
}

.cta-content {
    margin-bottom: 2rem;
}

.cta-content h3 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
}

.cta-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.btn-contact-final {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border: none;
    padding: 1.25rem 3rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-contact-final:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.6);
}

/* Mobile Responsive */
@media (max-width: 1023px) {
    .process-grid-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 767px) {
    .process-grid-compact {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .process-card-compact {
        padding: 1.75rem 1.25rem;
    }
    
    .process-icon-compact {
        font-size: 2rem;
    }
    
    .final-cta-section {
        padding: 2rem 1.5rem;
        margin-top: 2rem;
    }
    
    .cta-content h3 {
        font-size: 1.4rem;
    }
    
    .cta-content p {
        font-size: 0.95rem;
    }
    
    .btn-contact-final {
        width: 100%;
        justify-content: center;
        padding: 1.15rem 2rem;
        font-size: 1rem;
    }
}
