/**
 * VibeCMD Redesign - Unified Stylesheet
 * Style: Black & Teal - Matches business cards & logo
 * Focus: DIY Web Hosting & Website Build Services
 */

/* ===== CSS Variables ===== */
:root {
    /* Brand Colors - Black & Teal Theme */
    --vibe-cyan: #00FFE0;
    --vibe-teal: #00D4AA;
    --vibe-teal-dark: #00B894;
    --vibe-teal-light: #55EFC4;
    --vibe-gold: #FFD700;

    /* Background Colors - Pure Black */
    --bg-dark: #000000;
    --bg-card: rgba(0, 255, 224, 0.03);
    --bg-card-hover: rgba(0, 255, 224, 0.08);

    /* Text Colors */
    --text-white: #ffffff;
    --text-light: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.6);

    /* Border Colors */
    --border-subtle: rgba(0, 255, 224, 0.1);
    --border-hover: rgba(0, 255, 224, 0.4);

    /* Gradients - All Teal Based */
    --gradient-primary: linear-gradient(135deg, #00FFE0 0%, #00D4AA 100%);
    --gradient-secondary: linear-gradient(135deg, #00D4AA 0%, #00B894 100%);
    --gradient-accent: linear-gradient(135deg, #00FFE0 0%, #55EFC4 100%);
    --gradient-card: linear-gradient(135deg, rgba(0, 255, 224, 0.05) 0%, rgba(0, 212, 170, 0.02) 100%);
    
    /* Legacy aliases for compatibility */
    --vibe-green: #00D4AA;
    --vibe-pink: #00FFE0;
    --vibe-purple: #00D4AA;
    --gradient-purple: var(--gradient-secondary);
    --gradient-pink: var(--gradient-accent);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== Background Effects ===== */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 224, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 224, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -2;
}

.bg-glow {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 212, 170, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(0, 255, 224, 0.12) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* ===== Container ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.6rem;
    font-weight: 800;
}

.nav-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.nav-logo span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-white);
    background: var(--bg-card);
}

.nav-link.nav-cta {
    background: var(--gradient-purple);
    color: white;
    font-weight: 600;
}

.nav-link.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.3);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
}

/* Mobile Navigation */
@media (max-width: 968px) {
    .nav {
        padding: 12px 0;
    }

    .nav-toggle {
        display: block;
        z-index: 1001;
        position: relative;
        font-size: 2rem;
        padding: 6px;
    }

    .nav-logo {
        gap: 12px;
        font-size: 1.65rem;
    }

    .nav-logo img {
        width: 50px;
        height: 50px;
    }

    .nav-links {
        position: fixed;
        top: 76px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px 20px;
        gap: 10px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-bottom: 1px solid var(--border-subtle);
        z-index: 999;
    }

    .nav-links.active {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 16px;
        font-size: 1.05rem;
    }
}

/* Smaller mobile screens - even bigger touch targets */
@media (max-width: 480px) {
    .nav {
        padding: 10px 0;
    }

    .nav-container {
        padding: 0 16px;
    }

    .nav-toggle {
        font-size: 2.1rem;
        padding: 4px;
    }

    .nav-logo {
        gap: 10px;
        font-size: 1.55rem;
    }

    .nav-logo img {
        width: 48px;
        height: 48px;
    }

    .nav-links {
        top: 72px;
        padding: 20px 16px;
    }

    .nav-link {
        padding: 18px;
        font-size: 1.1rem;
    }
}

/* Mobile Hero Improvements */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 100px 20px 24px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-badge {
        padding: 8px 16px;
        font-size: 0.8rem;
        margin-bottom: 24px;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 20px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.8;
        margin-bottom: 32px;
        padding: 0 8px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    /* Sections spacing on mobile */
    .section {
        padding: 32px 0;
    }

    /* First section after hero - reduce top gap */
    .hero + .section,
    .section.section-first {
        padding-top: 8px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .section-subtitle {
        font-size: 0.95rem;
        padding: 0 8px;
    }

    /* Cards on mobile */
    .card {
        padding: 24px;
    }

    .card h3 {
        font-size: 1.1rem;
    }

    .card p {
        font-size: 0.9rem;
    }

    .card-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }

    /* Container padding on mobile */
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 90px 16px 16px;
    }

    .hero h1 {
        font-size: 1.85rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section {
        padding: 24px 0;
    }

    .hero + .section,
    .section.section-first {
        padding-top: 0;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    position: relative;
}

.hero-content {
    max-width: 900px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.4);
    border-radius: 100px;
    font-size: 0.9rem;
    color: #00D4FF;
    margin-bottom: 32px;
}

.hero-badge svg {
    width: 18px;
    height: 18px;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero h1 .highlight {
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient-purple);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 212, 170, 0.3);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-white);
    border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

/* ===== Sections ===== */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--vibe-purple);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== Grid Layouts ===== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ===== Cards ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s ease;
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ===== Service Cards ===== */
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 32px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.service-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 20px 0 12px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* Featured Card - Purple */
.featured-card-purple {
    position: relative;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(167, 139, 250, 0.05) 100%);
    border: 2px solid rgba(139, 92, 246, 0.4);
}

.featured-card-purple:hover {
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 20px 60px rgba(139, 92, 246, 0.2);
}

/* Featured Card - Green (IT Support) */
.featured-card-green {
    position: relative;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(52, 211, 153, 0.05) 100%);
    border: 2px solid rgba(16, 185, 129, 0.4);
}

.featured-card-green:hover {
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.2);
}

/* Service Banners */
.service-banner:hover {
    transform: translateY(-4px);
}

/* Quick Fix Buttons */
.quick-fix-btn:hover {
    transform: translateY(-2px);
    background: rgba(0, 255, 224, 0.15) !important;
    border-color: var(--vibe-cyan) !important;
}

/* Featured Grid Layout */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 900px) {
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .featured-grid {
        gap: 24px;
    }
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 32px;
    background: var(--gradient-purple);
    color: white;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* ===== Stats Section ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    text-align: center;
}

.stat-item h3 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ===== Testimonials ===== */
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 32px;
}

.testimonial-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-info h4 {
    font-weight: 600;
    margin-bottom: 4px;
}

.testimonial-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.testimonial-stars {
    color: var(--vibe-gold);
    font-size: 1rem;
    margin-bottom: 16px;
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(180deg, var(--bg-dark) 0%, #050508 100%);
    border-top: 1px solid var(--border-subtle);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 20px;
    line-height: 1.7;
}

.footer-brand .nav-logo {
    font-size: 1.5rem;
}

.footer-brand .nav-logo img {
    width: 44px;
    height: 44px;
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--vibe-purple);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--gradient-purple);
    color: white;
}

@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .footer {
        padding: 40px 0 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px 16px;
        margin-bottom: 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
    }

    .footer-brand p {
        margin-top: 12px;
    }

    .footer-grid > div:not(.footer-brand) {
        text-align: center;
    }

    .footer-grid h4 {
        font-size: 0.9rem;
        margin-bottom: 12px;
    }

    .footer-links li {
        margin-bottom: 8px;
    }

    .footer-links a {
        font-size: 0.85rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding-top: 24px;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* ===== Utility Classes ===== */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-5 {
    margin-bottom: 2rem;
}

/* ===== Availability Badge ===== */
.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(57, 255, 20, 0.1);
    border: 1px solid rgba(57, 255, 20, 0.3);
    border-radius: 100px;
    font-size: 0.85rem;
    color: var(--vibe-green);
}

.availability-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--vibe-green);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.7);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 8px rgba(57, 255, 20, 0);
    }
}

/* ===== Contact Section Styles ===== */
.contact-section {
    background: linear-gradient(180deg, #0c1018 0%, var(--bg-dark) 100%);
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 60px;
}

/* ===== Form Styles ===== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--vibe-purple);
    background: rgba(0, 212, 170, 0.05);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238A2BE2' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group select option {
    background: var(--bg-dark);
    color: #fff;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ===== FAQ Styles ===== */
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-card-hover);
}

.faq-question h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.faq-toggle svg {
    width: 20px;
    height: 20px;
    color: var(--vibe-purple);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 24px 20px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===== Tech Icons Grid ===== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.tech-item {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
}

.tech-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.tech-item img {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.tech-item span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== Global Mobile Fixes ===== */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* ===== Services Page Mobile Fixes ===== */
@media (max-width: 900px) {
    /* Featured card two-column grid - stack on mobile */
    .featured-card-purple > div[style*="grid-template-columns"] {
        display: block !important;
    }
    
    .featured-card-purple > div > div {
        margin-bottom: 32px;
    }
    
    .service-card {
        min-height: auto;
        padding: 24px;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    /* Featured service card */
    .featured-card-purple {
        padding: 24px;
    }
    
    .featured-card-purple h3 {
        font-size: 1.4rem !important;
    }
    
    .featured-card-purple p {
        font-size: 1rem !important;
    }
    
    .featured-card-purple ul li {
        font-size: 0.9rem;
        padding: 6px 0 !important;
    }
    
    .featured-badge {
        left: 16px;
        font-size: 0.7rem;
        padding: 5px 12px;
    }
    
    /* Card icon sizing */
    .featured-card-purple .card-icon {
        width: 56px !important;
        height: 56px !important;
    }
    
    .featured-card-purple .card-icon svg {
        width: 28px !important;
        height: 28px !important;
    }
    
    /* Pricing box inside featured card */
    .featured-card-purple > div > div:last-child > div {
        padding: 24px !important;
    }
    
    .featured-card-purple > div > div:last-child > div > div:first-child {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 480px) {
    .featured-card-purple {
        padding: 20px;
        padding-top: 32px;
    }
    
    .featured-card-purple h3 {
        font-size: 1.25rem !important;
        margin: 16px 0 12px !important;
    }
    
    .featured-card-purple ul {
        margin: 16px 0 !important;
    }
    
    .featured-card-purple ul li {
        flex-wrap: wrap;
        gap: 8px !important;
    }
    
    .service-card {
        padding: 20px;
    }
    
    .service-card ul li {
        font-size: 0.85rem;
    }
}

/* ===== Contact Page Mobile Fixes ===== */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
}

@media (max-width: 768px) {
    .contact-form-card,
    .contact-info-card {
        padding: 24px;
    }
    
    .payment-grid {
        grid-template-columns: 1fr !important;
    }
    
    .qr-section {
        grid-template-columns: 1fr !important;
    }
}

/* ===== Support Page Mobile Fixes ===== */
@media (max-width: 768px) {
    .support-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ===== Prevent horizontal scroll on all pages ===== */
.section,
.container,
.hero,
.hero-content {
    max-width: 100%;
    overflow-x: hidden;
}

/* Nav should NOT have overflow hidden - breaks mobile dropdown */
.nav {
    max-width: 100%;
}

/* Fix for inline style grids that don't have responsive handling */
@media (max-width: 768px) {
    [style*="grid-template-columns: 1fr 1fr"] {
        display: block !important;
    }
    
    [style*="grid-template-columns: repeat(2"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }
    
    /* Keep two column grids that should stay two columns on tablets */
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

/* ===== Blog Page Mobile Fixes ===== */
@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr !important;
    }
    
    .blog-card {
        padding: 20px;
    }
}

/* ===== Footer Mobile Fixes ===== */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 24px 16px;
        text-align: center;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 32px 16px 20px;
    }

    .footer-grid {
        gap: 20px 12px;
        margin-bottom: 24px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding-top: 20px;
    }
}

/* ===== Founder Story Section Mobile Optimization ===== */
@media (max-width: 768px) {
    .founder-story-section {
        padding: 60px 16px !important;
    }
    
    .founder-story-section .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }
    
    .founder-story-section img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .founder-story-section h2 {
        font-size: 2rem !important;
    }
    
    .founder-story-section h3 {
        font-size: 1.25rem !important;
    }
    
    /* What VibeCMD Proves card */
    .founder-story-section .card {
        padding: 24px !important;
    }
    
    .founder-story-section ul {
        padding-left: 20px !important;
    }
}

@media (max-width: 480px) {
    .founder-story-section {
        padding: 40px 12px !important;
    }
    
    .founder-story-section h2 {
        font-size: 1.75rem !important;
    }
    
    .founder-story-section p {
        font-size: 1rem !important;
    }
}
