/* Shared styles for Kayn Agency website */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark theme (default) */
    --bg-primary: #0F0F0F;
    --text-primary: #F0EBDD;
    --text-secondary: #B0A999;
    --accent: #EFE9DC;
    --accent-hover: #E8E1D3;
    --card-bg: #1A1A1A;
    --border: #2A2A2A;
    --border-color: #2A2A2A;
    --header-bg: rgba(15, 15, 15, 0.95);
    --logo-primary: #F0EBDD;
    --logo-secondary: #EFE9DC;
    --accent-rgb: 239, 233, 220;
}

[data-theme="light"] {
    /* Light theme */
    --bg-primary: #EFE9DC;
    --text-primary: #1B1B1B;
    --text-secondary: #666666;
    --accent: #1B1B1B;
    --accent-hover: #333333;
    --card-bg: #F5F0E3;
    --border: #D5CFC2;
    --border-color: #D5CFC2;
    --header-bg: rgba(239, 233, 220, 0.95);
    --logo-primary: #1B1B1B;
    --logo-secondary: #333333;
    --accent-rgb: 27, 27, 27;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 70px;
    width: auto;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 3.5rem;
    line-height: 1.1;
}

.logo:hover {
    opacity: 0.8;
}

/* Navigation Links */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

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

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a.active {
    color: var(--accent);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:hover {
    background: rgba(var(--accent-rgb), 0.1);
}

.mobile-menu-btn.active {
    transform: rotate(90deg);
}

/* Mobile Navigation Drawer */
.mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    z-index: 999;
}

[data-theme="light"] .mobile-nav {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-content {
    padding: 2rem 2rem 1.5rem;
    border-top: 1px solid var(--border);
}

.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-nav li {
    margin: 0;
}

.mobile-nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.mobile-nav a:hover {
    background: var(--accent);
    color: var(--bg-primary);
    transform: translateX(8px);
}

.mobile-nav a.active {
    background: rgba(var(--accent-rgb), 0.1);
    color: var(--accent);
}

.mobile-nav a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--accent);
    border-radius: 2px;
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: 2px solid var(--accent);
    border-radius: 50px;
    width: 50px;
    height: 28px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.theme-toggle:hover {
    border-color: var(--accent-hover);
    transform: scale(1.05);
}

.theme-toggle::before {
    content: '🌙';
    transition: all 0.3s ease;
}

[data-theme="light"] .theme-toggle::before {
    content: '☀️';
}

/* CTA Button */
.nav-cta {
    background: var(--accent);
    color: var(--bg-primary);
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.nav-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Common Button Styles */
.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: 0 8px 32px rgba(239, 233, 220, 0.3);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(239, 233, 220, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

/* Card Styles */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
}

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

/* Page Layout */
.page-content {
    padding-top: 120px;
    min-height: 100vh;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.page-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.page-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

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

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

.animate-in {
    animation: fadeInUp 0.6s ease-out;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 998;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .nav-left {
        gap: 1rem;
        flex: 1;
    }

    .nav-right {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        flex-shrink: 0;
    }

    .page-content {
        padding-top: 100px;
    }

    .container {
        padding: 0 15px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
    }

    /* Ensure theme toggle and nav CTA stay properly sized */
    .theme-toggle {
        width: 44px;
        height: 26px;
        font-size: 13px;
        flex-shrink: 0;
    }

    .nav-cta {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0.8rem 1rem;
    }

    .nav-right {
        gap: 8px;
    }

    .theme-toggle {
        width: 40px;
        height: 24px;
        font-size: 12px;
    }

    .nav-cta {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .mobile-nav-content {
        padding: 1.5rem 1.5rem 1rem;
    }

    .mobile-nav a {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
}

.service-icon svg {
    text-align: center;
}

/* ===== PROCESS JOURNEY (How It Works) ===== */
.process-journey {
    max-width: 1000px;
    margin: 4rem auto 0;
    padding: 2rem 0;
}

.process-step-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 2rem;
    position: relative;
}

.step-left {
    flex-direction: row;
}

.step-right {
    flex-direction: row-reverse;
}

.step-visual {
    flex: 1;
    max-width: 400px;
    position: relative;
}

.step-number-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--accent);
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 25px;
    z-index: 10;
    min-width: 50px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.visual-placeholder {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-placeholder:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
    border-color: var(--accent);
}

.mockup-content {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Visual mockup styles */
.persona-preview {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.avatar-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), rgba(var(--accent-rgb), 0.7));
}

.brand-elements {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.brand-line {
    height: 8px;
    width: 80px;
    background: rgba(var(--accent-rgb), 0.6);
    border-radius: 4px;
}

.brand-line.short {
    width: 60px;
}

.calendar-preview {
    width: 100%;
}

.calendar-header {
    height: 12px;
    width: 100%;
    background: rgba(var(--accent-rgb), 0.4);
    border-radius: 6px;
    margin-bottom: 1rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.calendar-item {
    height: 30px;
    background: rgba(var(--accent-rgb), 0.3);
    border-radius: 8px;
}

.calendar-item.active {
    background: var(--accent);
}

.social-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
}

.social-icon.reddit {
    background: #FF4500;
}

.social-icon.tiktok {
    background: #000000;
}

.social-icon.twitter {
    background: #1DA1F2;
}

.growth-arrow {
    font-size: 2rem;
    color: var(--accent);
}

.chat-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.chat-bubbles {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.chat-bubble {
    height: 20px;
    background: rgba(var(--accent-rgb), 0.4);
    border-radius: 15px;
    width: 80px;
}

.chat-bubble.sent {
    background: var(--accent);
    width: 60px;
    align-self: flex-end;
}

.revenue-indicator {
    font-size: 2rem;
}

.optimization-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.ab-test {
    display: flex;
    gap: 1rem;
}

.test-variant {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--bg-primary);
}

.test-variant.a {
    background: rgba(var(--accent-rgb), 0.7);
}

.test-variant.b {
    background: var(--accent);
}

.performance-chart {
    display: flex;
    align-items: end;
    gap: 0.5rem;
}

.chart-bar {
    width: 12px;
    background: rgba(var(--accent-rgb), 0.6);
    border-radius: 6px 6px 0 0;
    height: 30px;
}

.chart-bar.tall {
    height: 45px;
    background: var(--accent);
}

.analytics-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.metric-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.metric-value {
    height: 16px;
    width: 40px;
    background: var(--accent);
    border-radius: 8px;
}

.metric-label {
    height: 8px;
    width: 30px;
    background: rgba(var(--accent-rgb), 0.4);
    border-radius: 4px;
}

.trend-line {
    font-size: 2rem;
    color: var(--accent);
}

.step-content {
    flex: 1;
    max-width: 450px;
}

.step-info {
    padding: 2rem 0;
}

.step-label {
    color: var(--accent);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.step-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.step-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.step-cta {
    display: inline-flex;
    align-items: center;
    padding: 0.875rem 2rem;
    background: var(--accent);
    color: var(--bg-primary);
    text-decoration: none;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.step-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--accent-rgb), 0.3);
}

.dotted-path {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
    height: 80px;
}

.path-svg {
    width: 200px;
    height: 80px;
}

/* ===== RESPONSIVE DESIGN FOR PROCESS JOURNEY ===== */
@media (max-width: 768px) {
    .process-step-container {
        flex-direction: column !important;
        gap: 2rem;
        text-align: center;
    }
    
    .step-right {
        flex-direction: column !important;
    }
    
    .step-visual,
    .step-content {
        max-width: 100%;
    }
    
    .step-number-badge {
        top: -10px;
        right: 50%;
        transform: translateX(50%);
    }
    
    .visual-placeholder {
        padding: 2rem;
        min-height: 150px;
    }
    
    .step-title {
        font-size: 1.5rem;
    }
    
    .step-description {
        font-size: 1rem;
    }
    
    .dotted-path {
        margin: 2rem 0;
        height: 60px;
    }
    
    .path-svg {
        width: 150px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .process-journey {
        margin-top: 2rem;
        padding: 1rem 0;
    }
    
    .process-step-container {
        gap: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .step-info {
        padding: 1rem 0;
    }
    
    .step-title {
        font-size: 1.25rem;
    }
    
    .visual-placeholder {
        padding: 1.5rem;
        min-height: 120px;
    }
    
    .mockup-content {
        height: 80px;
    }
}