/* VibeCare Website - Dual Theme System */
/* Light Mode (Default) + Dark Mode (Terminal Vibes) */

/* ============================================
   LIGHT MODE (DEFAULT)
   ============================================ */

:root {
    /* Light Mode Colors - Soft cream/off-white palette */
    --bg-primary: #F8F7F4;     /* Soft gray-cream */
    --bg-secondary: #FFF6EB;   /* Warm peachy-cream */
    --bg-tertiary: #F0EDE7;    /* Subtle beige */

    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-tertiary: #9CA3AF;

    --accent-primary: #007AFF;
    --accent-hover: #0051D5;
    --accent-light: #E5F0FF;

    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
    --font-mono: 'Fira Code', 'JetBrains Mono', 'SF Mono', 'Monaco', monospace;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   DARK MODE (TERMINAL VIBES)
   ============================================ */

body.dark-mode {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111111;
    --bg-tertiary: #1a1a1a;

    --text-primary: #ffffff;
    --text-secondary: #c0c0c0;
    --text-tertiary: #808080;

    /* Accent colors - bright green for text, brand, links, borders */
    --accent-primary: #00ff41;
    --accent-hover: #00cc33;
    --accent-light: rgba(0, 255, 65, 0.1);

    /* Button colors - softer green (can be overridden via Hugo config) */
    --button-primary: #5fd97a;
    --button-hover: #4fc768;

    --border-color: #00cc33;
    --shadow-sm: 0 0 10px rgba(0, 255, 65, 0.1);
    --shadow-md: 0 0 15px rgba(0, 255, 65, 0.15);
    --shadow-lg: 0 0 20px rgba(0, 255, 65, 0.2);
    --shadow-xl: 0 0 30px rgba(0, 255, 65, 0.25);

    /* Terminal fonts in dark mode */
    --font-primary: 'Fira Code', 'JetBrains Mono', 'Monaco', monospace;
    --font-body: 'Fira Code', 'JetBrains Mono', 'Monaco', monospace;
}

/* ============================================
   BASE STYLES
   ============================================ */

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

body {
    background: linear-gradient(35deg, #F8F7F4 0%, #FFF6EB 50%, #F8F7F4 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Dark mode - solid background, no gradient */
body.dark-mode {
    background: var(--bg-primary);
    background-attachment: scroll;
}

/* Scan-line effect only in dark mode */
body.dark-mode::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 9999;
    opacity: 0.3;
}

/* ============================================
   CONTAINER & LAYOUT
   ============================================ */

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

.content-wrapper {
    min-height: calc(100vh - 200px);
    /* padding: 2rem 0; */
}

/* ============================================
   ANNOUNCEMENT BANNER
   ============================================ */

.announcement-banner {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    color: white;
    padding: 0.75rem 0;
    position: relative;
    z-index: 101;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.announcement-banner.hidden {
    max-height: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
}

body.dark-mode .announcement-banner {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover));
    border-bottom: 1px solid var(--accent-primary);
}

.announcement-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
}

.announcement-text {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    flex: 1;
}

body.dark-mode .announcement-text {
    color: var(--bg-primary);
    font-weight: 600;
}

.announcement-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    font-weight: 300;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

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

body.dark-mode .announcement-close {
    background: rgba(0, 0, 0, 0.2);
    color: var(--bg-primary);
}

body.dark-mode .announcement-close:hover {
    background: rgba(0, 0, 0, 0.3);
}

@media (max-width: 640px) {
    .announcement-text {
        font-size: 0.875rem;
    }

    .announcement-content {
        gap: 1rem;
    }
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.site-header {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(248, 247, 244, 0.8);
}

body.dark-mode .site-header {
    background: rgba(10, 10, 10, 0.8);
}

.nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

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

.brand {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand:hover {
    opacity: 0.8;
}

body.dark-mode .brand:hover {
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
}

/* Terminal prompt in dark mode */
body.dark-mode .brand::before {
    content: '#';
    color: var(--accent-hover);
    margin-right: 0.25rem;
}

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

.nav-right {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

body.dark-mode .nav-link:hover {
    text-shadow: 0 0 15px rgba(0, 255, 65, 0.5);
}

.nav-link.active {
    color: var(--accent-primary);
}

/* Terminal style links in dark mode */
body.dark-mode .nav-link::before {
    content: '>';
    margin-right: 0.5rem;
    color: var(--accent-hover);
}

/* Social Media Icons */
.social-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.social-icon {
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    border-radius: 6px;
}

.social-icon:hover {
    color: var(--accent-primary);
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

body.dark-mode .social-icon:hover {
    background: rgba(0, 255, 65, 0.1);
    box-shadow: 0 0 15px rgba(0, 255, 65, 0.3);
}

.social-icon svg {
    display: block;
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.theme-toggle:hover {
    background: var(--bg-tertiary);
    transform: scale(1.1);
}

body.dark-mode .theme-toggle:hover {
    background: rgba(0, 255, 65, 0.1);
}

.theme-toggle-icon {
    display: block;
    line-height: 1;
}

/* Mobile Menu Toggle (Hamburger) */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 101;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--accent-primary);
    position: relative;
    transition: var(--transition);
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--accent-primary);
    transition: var(--transition);
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Hamburger animation when menu is open */
.mobile-menu-toggle.active .hamburger {
    background: transparent;
}

.mobile-menu-toggle.active .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.mobile-menu-toggle.active .hamburger::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    max-width: 100%;
    overflow-x: hidden;
}

body.dark-mode .hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

/* Hero Header: Centered title */
.hero-header {
    width: 100%;
    max-width: 1000px;
    margin-top: -1rem;
}

/* Hero Body: Centered vertical layout */
.hero-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    width: 100%;
}

/* Hero Body Center: Text content */
.hero-body-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 800px;
}

/* Hero Body Screenshot: Screenshot container */
.hero-body-screenshot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
}

.hero h1 {
    font-family: var(--font-primary);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0;
    color: var(--text-primary);
    white-space: nowrap;
    min-height: 4rem;
    overflow: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Typewriter effect */
.hero h1.typewriter {
    border-right: 3px solid var(--accent-primary);
    animation: blink-caret 0.75s step-end infinite;
    overflow: hidden;
}

.hero h1.typewriter-done {
    border-right: none;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent-primary); }
}

body.dark-mode .hero h1 {
    color: var(--accent-primary);
}

/* Rotating word with typewriter effect */
.rotating-word {
    display: inline-block;
    color: var(--accent-primary);
    font-weight: 700;
    white-space: nowrap;
    position: relative;
    min-width: 250px;
    text-align: left;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Typewriter cursor for rotating word */
.rotating-word.typewriter {
    border-right: 3px solid var(--accent-primary);
    padding-right: 2px;
    animation: blink-caret 0.75s step-end infinite;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    white-space: pre-line;
    text-align: center;
    max-width: 650px;
}

.hero-subtitle p {
    margin-bottom: 1rem;
}

.hero-subtitle p:last-child {
    margin-bottom: 0;
}

/* Secondary text below screenshot */
.hero-body-secondary {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 800px;
}

.hero-secondary-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
    text-align: center;
    margin: 0;
}

.hero-platform-info {
    font-size: 1rem;
    color: var(--text-tertiary);
    margin-top: 0;
}

/* Terminal comment style in dark mode */
body.dark-mode .hero-subtitle::before {
    content: '# ';
    color: #666;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.app-screenshot-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.25), 0 18px 36px -18px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
}

.app-screenshot-wrapper:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 40px 80px -12px rgba(0, 0, 0, 0.3), 0 25px 50px -18px rgba(0, 0, 0, 0.35);
}

body.dark-mode .app-screenshot-wrapper:hover {
    box-shadow: 0 40px 80px -12px rgba(0, 255, 65, 0.4), 0 25px 50px -18px rgba(0, 255, 65, 0.3);
}

/* Screenshot images - theme specific */
.screenshot {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Show light screenshot by default, hide dark */
.screenshot-light {
    opacity: 1;
}

.screenshot-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    object-fit: contain;
}

/* In dark mode, show dark screenshot, hide light */
body.dark-mode .screenshot-light {
    opacity: 0;
}

body.dark-mode .screenshot-dark {
    opacity: 1;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-body);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--accent-hover);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* Dark mode: Use softer button colors */
body.dark-mode .btn-primary {
    background: var(--button-primary);
}

body.dark-mode .btn-primary:hover {
    background: var(--button-hover);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3), 0 8px 32px rgba(0, 255, 65, 0.2);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-primary);
}

body.dark-mode .btn-secondary:hover {
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3), 0 8px 32px rgba(0, 255, 65, 0.2);
}

/* Terminal style buttons in dark mode */
body.dark-mode .btn-primary::before {
    content: '⌄';
    margin-right: 0.25rem;
}

body.dark-mode .btn-secondary::before {
    content: '>';
    margin-right: 0.25rem;
}

/* ============================================
   SECTIONS
   ============================================ */

section {
    padding: 4rem 0;
}

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

.section-header h2 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

body.dark-mode .section-header h2::before {
    content: '> ';
    color: var(--accent-primary);
}

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

body.dark-mode .section-header p::before {
    content: '# ';
    color: #666;
}

/* ============================================
   FEATURES GRID
   ============================================ */

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

.feature-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 0.5px solid rgba(210, 190, 170, 0.3);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-color: rgba(210, 190, 170, 0.5);
}

/* Dark Mode: Remove background from feature cards */
body.dark-mode .feature-card {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body.dark-mode .feature-card:hover {
    background: transparent !important;
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3), 0 8px 32px rgba(0, 255, 65, 0.2);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

body.dark-mode .feature-card h3::before {
    content: '// ';
    color: var(--accent-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   FORMS
   ============================================ */

.form-group {
    margin-bottom: 1.5rem;
}

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

body.dark-mode .form-group label::before {
    content: '~$ ';
    color: var(--accent-hover);
}

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

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-light);
}

body.dark-mode .form-group input,
body.dark-mode .form-group select {
    background: var(--bg-secondary);
    color: var(--accent-primary);
    font-family: var(--font-mono);
}

/* ============================================
   DISCORD WIDGET
   ============================================ */

.discord-widget-container {
    max-width: 400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.discord-widget-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

body.dark-mode .discord-widget-container:hover {
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
}

.discord-widget-link {
    display: block;
    cursor: pointer;
    text-decoration: none;
    position: relative;
}

.discord-widget-container iframe {
    border-radius: 12px;
    pointer-events: none;
    display: block;
}

@media (max-width: 640px) {
    .discord-widget-container {
        max-width: 100%;
    }

    .discord-widget-container iframe {
        width: 100% !important;
        height: 400px !important;
    }
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 0.5rem;
    text-align: center;
    color: var(--text-secondary);
}

.footer-content p {
    margin-bottom: 0.5rem;
}

/* ============================================
   PAGE CONTENT (for markdown pages)
   ============================================ */

.page-content {
    max-width: 800px;
    margin: 0 auto;
    /* padding: 2rem 0; */
}

.page-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.page-content h2 {
    font-size: 1.875rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

body.dark-mode .page-content h2 {
    color: var(--accent-primary);
}

.page-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary);
}

.page-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.page-content a {
    color: var(--accent-primary);
    text-decoration: underline;
}

.page-content a:hover {
    opacity: 0.8;
}

/* Remove underline from links with inline SVG icons */
.page-content a:has(svg) {
    text-decoration: none;
}

.page-content code {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.page-content pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1rem;
}

.page-content pre code {
    background: none;
    padding: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 968px) {
    .hero {
        padding: 3rem 0;
    }

    .hero-content {
        gap: 2rem;
    }

    .hero-body {
        gap: 2rem;
    }

    .hero-body-center {
        gap: 1.5rem;
    }

    .hero h1 {
        font-size: 3rem;
        min-height: 3.5rem;
        white-space: normal;
        max-width: 100%;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-secondary-text {
        font-size: 1.125rem;
    }

    /* Stabilize rotating word container on mobile */
    .rotating-word {
        display: inline-block;
        min-width: 150px;
        text-align: left;
    }

    /* Mobile screenshot adjustments */
    .app-screenshot-wrapper {
        position: relative;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        border-radius: 8px;
        overflow: hidden;
    }

    .screenshot {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain;
    }

    .screenshot-dark {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }

    /* Mobile header adjustments */
    .site-header {
        padding-top: 1rem;
        padding-bottom: 0rem;
    }

    /* Mobile Navigation - switch to flexbox */
    .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }

    /* Brand adjustments for mobile */
    .brand {
        font-size: 1.25rem;
    }

    /* Hide social icons on very small screens, show only brand */
    .nav-left {
        gap: 0.5rem;
        flex-shrink: 1;
        overflow: hidden;
    }

    /* Mobile Navigation - NO hamburger menu, always visible */
    .mobile-menu-toggle {
        display: none !important;
    }

    /* Make nav links always visible on mobile, centered below header */
    .nav-container {
        flex-wrap: wrap;
    }

    .nav-links {
        position: relative;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1rem;
        width: 100%;
        order: 3;
        /* margin-top: 1rem; */
        /* padding-top: 1rem; */
        border-top: 0.01px solid var(--border-color);
        justify-content: flex-end;
    }

    .nav-link {
        padding: 0.5rem 1rem;
        white-space: nowrap;
    }

    /* Left side stays visible on mobile */
    .nav-left {
        position: relative;
        order: 1;
    }

    /* Right side stays visible on mobile */
    .nav-right {
        position: relative;
        order: 2;
    }

    /* Theme toggle stays visible on mobile */
    .theme-toggle {
        position: relative;
        margin-top: 0;
        width: auto;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 2rem 0;
    }

    .hero-content {
        gap: 1.5rem;
    }

    .hero-body {
        gap: 1.5rem;
    }

    .hero-body-center {
        gap: 1.25rem;
    }

    .hero h1 {
        font-size: 2.5rem;
        min-height: 3rem;
        white-space: normal;
        max-width: 100%;
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.7;
    }

    .hero-secondary-text {
        font-size: 1rem;
    }

    /* Adjust rotating word min-width for smaller screens */
    .rotating-word {
        min-width: 120px;
    }

    /* Screenshot further adjustments for small screens */
    .app-screenshot-wrapper {
        border-radius: 6px;
        max-width: 100%;
        width: 100%;
        overflow: hidden;
    }

    .screenshot {
        border-radius: 6px;
        width: 100% !important;
        max-width: 100% !important;
        display: block;
    }

    .screenshot-dark {
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero-cta {
        flex-direction: column;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        width: 100%;
        max-width: none;
    }

    /* Further mobile adjustments for very small screens */
    .brand {
        font-size: 1.1rem;
    }

    /* Keep social icons visible but smaller */
    .social-icon {
        padding: 0.15rem;
    }

    .social-icon svg {
        width: 14px;
        height: 14px;
    }

    /* Adjust nav-right spacing */
    .nav-right {
        gap: 0.25rem;
    }

    /* Smaller theme toggle on mobile */
    .theme-toggle {
        font-size: 1.2rem;
        padding: 0.375rem;
    }
}

/* ============================================
   SCREENSHOT GALLERY MODAL
   ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

body.dark-mode .modal-overlay {
    background: rgba(0, 0, 0, 0.95);
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1001;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    padding: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1002;
}

.modal-close:hover {
    color: var(--accent-primary);
    transform: rotate(90deg);
}

.gallery-container {
    position: relative;
    width: 90vw;
    max-width: 1200px;
    height: auto;
}

.gallery-slides {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.gallery-slide {
    display: none;
    width: 100%;
    animation: fadeIn 0.5s ease;
}

.gallery-slide.active {
    display: block;
}

.gallery-slide img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.gallery-caption {
    text-align: center;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

body.dark-mode .gallery-caption {
    color: var(--accent-primary);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 1003;
}

.gallery-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    font-size: 3rem;
    font-weight: 300;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.gallery-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: scale(1.1);
}

body.dark-mode .gallery-btn {
    background: rgba(0, 255, 65, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

body.dark-mode .gallery-btn:hover {
    background: rgba(0, 255, 65, 0.2);
}

.gallery-prev {
    margin-left: -30px;
}

.gallery-next {
    margin-right: -30px;
}

.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.gallery-dot.active {
    background: white;
    transform: scale(1.3);
}

body.dark-mode .gallery-dot {
    background: rgba(0, 255, 65, 0.3);
}

body.dark-mode .gallery-dot.active {
    background: var(--accent-primary);
}

@media (max-width: 768px) {
    .gallery-btn {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .gallery-prev {
        margin-left: 10px;
    }

    .gallery-next {
        margin-right: 10px;
    }

    .modal-close {
        top: -40px;
        font-size: 2.5rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
