/* assets/css/style.css */
@import url('https://googleapis.com');

:root {
    --bg-main: #0B0F19;
    --bg-card: rgba(23, 28, 41, 0.4);
    --border-color: rgba(255, 255, 255, 0.08);
    --text-primary: #F3F4F6;
    --text-secondary: #9CA3AF;
    --primary-glow: linear-gradient(135deg, #6366F1 0%, #A855F7 100%);
    --accent-cyan: #06B6D4;
    --accent-green: #10B981;
    --font-sans: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-sans);
    background-color: var(--bg-main);
    color: var(--text-primary);
}

body {
    overflow-x: hidden;
    padding-top: 80px; /* Prevents hero section content from sliding under the fixed header */
}

/* Reusable Components */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--primary-glow);
    color: #FFF;
    border: none;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
}

.badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-free { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.badge-premium { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); }

/* Layout Structure */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    background: var(--primary-glow);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
    position: relative;
}

.hero h1, .hero p, .hero-actions {
    position: relative;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    top: 10%;
    left: 15%;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.hero h1 span {
    background: linear-gradient(to right, #6366F1, #06B6D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Missing Agency Layout Framework Definitions */
.agency-section {
    padding: 8rem 5%;
    border-bottom: 1px solid var(--border-color);
}

.agency-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.agency-grid.reverse {
    direction: rtl; /* Inverts column render ordering */
}

.agency-grid.reverse .agency-content,
.agency-grid.reverse .agency-visual {
    direction: ltr; /* Restores default text alignment layout */
}

.agency-content h2 {
    font-size: 2.75rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.agency-content h2 span {
    background: linear-gradient(to right, #6366F1, #A855F7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.agency-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.agency-visual img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Gallery Section */
.gallery-section {
    padding: 8rem 5%;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3.5rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.component-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.component-card:hover {
    transform: translateY(-6px);
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

.card-preview {
    height: 200px;
    background: #111827;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-info {
    padding: 1.5rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.card-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.card-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
}

/* Footer & Payments */
footer {
    border-top: 1px solid var(--border-color);
    padding: 4rem 5% 2rem;
    background: #070A12;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr repeat(2, 1fr);
    gap: 4rem;
    margin-bottom: 4rem;
    max-width: 1200px;
    margin: 0 auto 4rem auto;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 320px;
}

.footer-links h4 {
    margin-bottom: 1.2rem;
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.payment-methods {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.payment-badge {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

/* Responsive Scaling Overrides */
@media(max-width: 768px) {
    .agency-grid, .agency-grid.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr;
    }
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
}





/* ==========================================================================
   MOBILE RESPONSIVENESS AND FLUID DESIGN SYSTEM OVERRIDES
   ========================================================================== */

/* 1. Global Viewport Overflow Protections */
html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
    position: relative;
    box-sizing: border-box;
}

/* 2. Fluid Typography Layout Scaling rules */
h1 {
    /* Clamps scaling dynamically between a minimum of 2.2rem and maximum of 4rem based on screen width */
    font-size: clamp(2.2rem, 8vw + 0.5rem, 4rem) !important;
    line-height: 1.15 !important;
    letter-spacing: -0.04em !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    /* Premium, Fun, Modern system font architecture stack */
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

/* 3. Header & Navigation Menu Refactor */
header {
    box-sizing: border-box;
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    padding: 1rem 4% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

header .hero-actions {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
    gap: 0.5rem !important;
    max-width: 70%;
}

/* Compact Mobile Scale Optimization Modifiers */
header .btn {
    padding: 0.5rem 0.85rem !important;
    font-size: clamp(0.75rem, 2vw + 0.1rem, 0.9rem) !important;
    white-space: nowrap !important;
    border-radius: 6px !important;
    gap: 0.25rem !important;
}

/* 4. Hero Section Core Padding Adjustments */
.hero {
    box-sizing: border-box;
    padding: 120px 1.25rem 4rem !important; /* Forces layout safely below floating headers */
    min-height: auto !important;
    height: auto !important;
}

.hero p {
    font-size: clamp(1rem, 2.5vw + 0.2rem, 1.25rem) !important;
    padding: 0 0.5rem;
    line-height: 1.5;
}

/* Lower CTA Button Container Adjustments */
.hero .hero-actions {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 500px;
    gap: 0.75rem !important;
    margin-top: 1rem;
}

.hero .hero-actions .btn {
    flex: 1 1 160px !important; /* Allows items to fill out space or wrap neatly into stack grids */
    justify-content: center !important;
    padding: 0.75rem 1.25rem !important;
    font-size: 0.95rem !important;
}

/* 5. Structural Layout Limits for Lower Sections (Bypasses 586px collapses) */
.agency-section, .gallery-section {
    padding: 5rem 4% !important;
    box-sizing: border-box;
    width: 100% !important;
    overflow: hidden;
}

.grid-container {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important; /* Lowers threshold boundary to fit small mobile cards */
    gap: 1.5rem !important;
}

/* 6. Footer Layout Protection */
footer {
    box-sizing: border-box;
    width: 100% !important;
    padding: 4rem 4% 2rem !important;
    overflow: hidden !important;
}

.footer-main {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important; /* Forces responsive structural layout wrap points */
    gap: 2.5rem !important;
}

.footer-bottom {
    flex-direction: column !important;
    gap: 1.5rem !important;
    text-align: center !important;
}

.payment-methods {
    justify-content: center !important;
    flex-wrap: wrap !important;
}

/* 7. Floating UI Context Elements Layer Adjustments */
.chat-floating-container {
    bottom: 1.5rem !important;
    right: 1.5rem !important;
    max-width: 90vw !important;
}

#chatWorkspaceWindow {
    width: calc(100vw - 2rem) !important;
    max-width: 360px !important;
    right: 1rem !important;
}

/* Micro break rule adjustment for extreme small viewports (iPhone SE / Fold profiles) */
@media (max-width: 400px) {
    header {
        padding: 0.75rem 3% !important;
    }
    header .logo {
        font-size: 1rem !important;
    }
    header .hero-actions {
        max-width: 75%;
        gap: 0.35rem !important;
    }
    header .btn {
        padding: 0.4rem 0.6rem !important;
    }
}
