﻿/* ===== TheBEEFKitchen Fire & Meat Theme ===== */

/* Import brutal fonts */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Russo+One&family=Caveat:wght@700&display=swap');

/* Prevent horizontal scroll on all devices */
html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    position: relative;
}

/* Override root variables with fire/meat theme */
:root {
    /* Dark fiery palette inspired by TheBEEFKitchen */
    --beef-bg: #0a0a0a;
    --beef-bg-secondary: #1a0f0a;
    --beef-text: #ffffff;
    --beef-text-secondary: #a8a8a8;
    --beef-accent: #8B1515;
    --beef-accent-dark: #5c0e0e;
    --beef-accent-light: #b81d1d;
    --beef-fire: #ff4500;
    --beef-ember: #d43d00;
    --beef-charcoal: #2a1a1a;
    --beef-smoke: rgba(255, 255, 255, 0.05);
    --beef-border: #3a2525;
    --beef-shadow: rgba(139, 21, 21, 0.3);
    --beef-shadow-lg: rgba(139, 21, 21, 0.5);

    /* Fonts */
    --font-display: 'Bebas Neue', sans-serif;
    --font-title: 'Russo One', sans-serif;
    --font-body: 'Arial', sans-serif;
}

/* Dark fiery background with noise texture */
body {
    background: linear-gradient(180deg, var(--beef-bg) 0%, var(--beef-bg-secondary) 100%);
    background-attachment: fixed;
    color: var(--beef-text);
    position: relative;
}

/* Noise texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><filter id="noiseFilter"><feTurbulence type="turbulence" baseFrequency="0.85" numOctaves="4" seed="2" /></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)" opacity="0.03"/></svg>');
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* Fiery header styling */
.project-header {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.95) 0%, rgba(26, 15, 10, 0.9) 100%);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--beef-shadow);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8), 0 0 20px var(--beef-shadow);
}

/* Back link with fire hover */
.back-link {
    color: var(--beef-text-secondary);
    transition: all 0.3s ease;
    font-family: var(--font-body);
    position: relative;
    z-index: 2;
}

.back-link:hover {
    color: var(--beef-accent);
    text-shadow: 0 0 10px var(--beef-fire);
    transform: translateX(-4px);
}

/* Hero video background - full width */
.project-header {
    position: relative;
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    margin-left: calc(-50vw + 50%);
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 10, 10, 0.85) 0%,
        rgba(26, 15, 10, 0.75) 50%,
        rgba(10, 10, 10, 0.85) 100%
    );
    z-index: 1;
}

.project-hero-content {
    position: relative;
    z-index: 2;
}

/* Hero title with brutal font */
.project-hero-title {
    font-family: var(--font-display);
    color: var(--beef-text);
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow:
        0 0 20px var(--beef-accent),
        0 0 40px var(--beef-shadow-lg),
        2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Category badge with fire effect */
.project-category {
    background: linear-gradient(135deg, rgba(139, 21, 21, 0.3), rgba(139, 21, 21, 0.1));
    color: var(--beef-accent-light);
    border: 1px solid var(--beef-accent);
    font-family: var(--font-title);
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 0 15px var(--beef-shadow);
}

/* Project Info Grid */
.project-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg,
        rgba(42, 26, 26, 0.6),
        rgba(26, 15, 10, 0.7)
    );
    border-radius: 15px;
    border: 1px solid var(--beef-border);
    backdrop-filter: blur(10px);
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-label {
    font-size: 0.75rem;
    color: var(--beef-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    font-family: var(--font-title);
}

.info-value {
    font-size: 1.1rem;
    color: var(--beef-accent-light);
    font-weight: 700;
    font-family: var(--font-title);
}

/* Hero Tech Stack */
.hero-tech-stack {
    margin: 30px 0;
}

.tech-stack-title {
    font-size: 0.875rem;
    color: var(--beef-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    font-family: var(--font-title);
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-badge {
    background: linear-gradient(135deg,
        rgba(139, 21, 21, 0.2),
        rgba(139, 21, 21, 0.1)
    );
    color: var(--beef-accent-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(139, 21, 21, 0.4);
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.tech-badge:hover {
    background: linear-gradient(135deg,
        var(--beef-accent),
        var(--beef-accent-dark)
    );
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 21, 21, 0.4);
}

/* Hero CTA Buttons */
.hero-cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-primary-beef,
.btn-secondary-beef {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: var(--font-title);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary-beef {
    background: linear-gradient(135deg,
        var(--beef-accent),
        var(--beef-accent-dark)
    );
    color: white;
    border: 2px solid var(--beef-accent);
    box-shadow: 0 4px 20px rgba(139, 21, 21, 0.4);
}

.btn-primary-beef:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 21, 21, 0.6);
    background: linear-gradient(135deg,
        var(--beef-accent-light),
        var(--beef-accent)
    );
}

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

.btn-secondary-beef:hover {
    background: rgba(139, 21, 21, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 21, 21, 0.3);
}

.btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn-primary-beef:hover .btn-icon,
.btn-secondary-beef:hover .btn-icon {
    transform: translateX(5px);
}

/* Mobile responsive for new elements */
@media (max-width: 768px) {
    .project-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 20px;
    }

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

    .btn-primary-beef,
    .btn-secondary-beef {
        width: 100%;
        justify-content: center;
    }
}

/* Section titles with handwritten brutal styling like real site */
.section-title {
    font-family: 'Caveat', cursive;
    color: var(--beef-text);
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    padding-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    font-size: 3.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg,
        transparent,
        var(--beef-fire),
        var(--beef-accent),
        var(--beef-fire),
        transparent
    );
    border-radius: 2px;
    box-shadow: 0 0 10px var(--beef-fire);
}

/* Feature cards with ember glow */
.feature-card,
.result-card {
    background: linear-gradient(135deg,
        rgba(42, 26, 26, 0.6),
        rgba(26, 15, 10, 0.8)
    );
    border: 1px solid var(--beef-border);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 var(--beef-smoke);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover,
.result-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 8px 30px var(--beef-shadow-lg),
        0 0 30px rgba(139, 21, 21, 0.2),
        inset 0 1px 0 var(--beef-smoke);
    border-color: var(--beef-accent);
}

/* Force text color override for all browsers */
.feature-card p,
.result-card p,
.card-content p,
.analytics-item p,
.analytics-item li,
.analytics-item ul li,
.problem-box li,
.solution-box li,
.project-hero-desc,
.hero-stat-label,
.section-desc,
.step-content p,
.comparison-theirs,
.comparison-theirs-header,
.comparison-side.theirs .side-value,
.project-cta p {
    color: var(--beef-text-secondary) !important;
}

.feature-card h3,
.result-card h3,
.card-content h3 {
    color: var(--beef-text) !important;
    font-family: var(--font-title);
}

/* Feature icons with fire gradient - 1.5x larger */
.feature-icon,
.result-icon {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--beef-accent) 0%, var(--beef-ember) 100%);
    box-shadow:
        0 4px 15px rgba(139, 21, 21, 0.4),
        0 0 20px rgba(255, 69, 0, 0.2);
}

/* Icon images inside feature-icon */
.feature-icon img,
.result-icon img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Workflow steps with charcoal border */
.workflow-step {
    background: linear-gradient(135deg,
        rgba(42, 26, 26, 0.5),
        rgba(26, 15, 10, 0.7)
    );
    border-left: 4px solid var(--beef-accent);
    backdrop-filter: blur(5px);
}

.step-number {
    background: linear-gradient(135deg, var(--beef-accent) 0%, var(--beef-accent-dark) 100%);
    color: white;
    box-shadow:
        0 4px 15px rgba(139, 21, 21, 0.5),
        0 0 20px rgba(139, 21, 21, 0.3);
    font-family: var(--font-display);
}

/* Analytics items with ember effect */
.analytics-item {
    background: linear-gradient(135deg,
        rgba(42, 26, 26, 0.5),
        rgba(26, 15, 10, 0.7)
    );
    border: 1px solid var(--beef-border);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.analytics-item:hover {
    background: linear-gradient(135deg,
        rgba(42, 26, 26, 0.7),
        rgba(26, 15, 10, 0.9)
    );
    border-color: var(--beef-accent);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.5),
        0 0 15px var(--beef-shadow);
}

.analytics-item strong {
    color: var(--beef-accent-light) !important;
    font-family: var(--font-title);
}

/* Comparison table - fire styling */
.comparison-ours-header {
    background: linear-gradient(135deg,
        rgba(139, 21, 21, 0.25),
        rgba(139, 21, 21, 0.1)
    );
    color: var(--beef-accent-light);
    border-left: 3px solid var(--beef-accent);
    font-family: var(--font-title);
}

.comparison-ours {
    color: var(--beef-accent-light);
    font-weight: 700;
    background: linear-gradient(135deg,
        rgba(139, 21, 21, 0.1),
        rgba(139, 21, 21, 0.05)
    );
}

.comparison-side.ours {
    background: linear-gradient(135deg,
        rgba(139, 21, 21, 0.2),
        rgba(139, 21, 21, 0.08)
    );
    border: 1px solid rgba(139, 21, 21, 0.4);
}

.comparison-side.ours .side-value {
    color: var(--beef-accent-light);
    font-family: var(--font-title);
}

/* VS divider with fire accent */
.vs-divider {
    color: var(--beef-fire);
    font-family: var(--font-display);
    text-shadow: 0 0 10px var(--beef-fire);
}

/* Tech stack badges with ember effect */
.tech-badge {
    background: linear-gradient(135deg,
        rgba(139, 21, 21, 0.15),
        rgba(139, 21, 21, 0.05)
    );
    color: var(--beef-accent-light);
    border: 1px solid var(--beef-accent);
    font-family: var(--font-body);
    font-weight: 600;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: linear-gradient(135deg, var(--beef-accent), var(--beef-accent-dark));
    color: white;
    transform: translateY(-3px);
    box-shadow:
        0 6px 20px rgba(139, 21, 21, 0.4),
        0 0 15px var(--beef-fire);
}

/* Device frames with fire shadow */
.device-iphone,
.device-android,
.device-tablet,
.device-browser {
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.6),
        0 0 30px var(--beef-shadow);
}

/* Contact cards with charcoal styling */
.contact-card {
    background: linear-gradient(135deg,
        rgba(42, 26, 26, 0.6),
        rgba(26, 15, 10, 0.8)
    );
    border: 2px solid var(--beef-border);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-card:hover {
    border-color: var(--beef-accent);
    box-shadow:
        0 8px 30px var(--beef-shadow-lg),
        0 0 25px rgba(139, 21, 21, 0.3);
    transform: translateY(-6px);
}

.contact-icon {
    background: linear-gradient(135deg, var(--beef-accent) 0%, var(--beef-accent-dark) 100%);
    box-shadow: 0 4px 15px rgba(139, 21, 21, 0.4);
}

/* Project section backgrounds */
.project-section {
    background: linear-gradient(135deg,
        rgba(42, 26, 26, 0.3),
        rgba(26, 15, 10, 0.4)
    );
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 60px 40px;
    margin-bottom: 40px;
    box-shadow:
        0 2px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 var(--beef-smoke);
    border: 1px solid rgba(139, 21, 21, 0.1);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .project-section {
        padding: 40px 20px;
    }
}

/* Buttons with fire effect */
.btn,
.btn-primary {
    background: linear-gradient(135deg, var(--beef-accent) 0%, var(--beef-accent-dark) 100%);
    color: white;
    border: none;
    box-shadow:
        0 4px 15px rgba(139, 21, 21, 0.4),
        0 0 20px rgba(139, 21, 21, 0.2);
    transition: all 0.3s ease;
    font-family: var(--font-title);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover,
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 8px 25px rgba(139, 21, 21, 0.5),
        0 0 30px var(--beef-fire);
    background: linear-gradient(135deg, var(--beef-accent-light) 0%, var(--beef-accent) 100%);
}

/* Scrollbar styling with ember effect */
::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: var(--beef-charcoal);
    border-left: 1px solid var(--beef-border);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,
        var(--beef-accent),
        var(--beef-accent-dark)
    );
    border-radius: 7px;
    border: 2px solid var(--beef-charcoal);
    box-shadow:
        0 0 10px rgba(139, 21, 21, 0.5),
        inset 0 0 5px rgba(255, 69, 0, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg,
        var(--beef-fire),
        var(--beef-accent)
    );
    box-shadow:
        0 0 15px var(--beef-fire),
        inset 0 0 8px rgba(255, 69, 0, 0.5);
}

/* Selection color with fire */
::selection {
    background: var(--beef-accent);
    color: white;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Fire glow animation for special elements */
@keyframes fireGlow {
    0%, 100% {
        box-shadow:
            0 4px 20px rgba(0, 0, 0, 0.5),
            0 0 15px rgba(139, 21, 21, 0.3);
    }
    50% {
        box-shadow:
            0 8px 30px rgba(139, 21, 21, 0.4),
            0 0 30px rgba(255, 69, 0, 0.4);
    }
}

/* ===== Browser Mockup Image Fit ===== */
.device-browser .device-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

/* ===== iPhone Gallery with Swipe ===== */
.device-gallery {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-user-drag: none;
}

.gallery-slide {
    min-width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.gallery-slide img,
.gallery-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

/* Swipe Indicator */
.swipe-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
    pointer-events: none;
}

/* Animated Hand Gesture - Swipe Left */
.swipe-hand {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    animation: swipeLeftMotion 2.5s ease-in-out infinite !important;
    will-change: transform, opacity;
}

.swipe-hand img {
    width: 100%;
    height: 100%;
    filter: brightness(0) invert(1) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8)) !important;
}

@keyframes swipeLeftMotion {
    0% {
        transform: translate(-50%, -50%) translateX(50px);
        opacity: 0;
    }
    15% {
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) translateX(-50px);
        opacity: 1;
    }
    65% {
        opacity: 1;
    }
    80% {
        transform: translate(-50%, -50%) translateX(-70px);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) translateX(50px);
        opacity: 0;
    }
}

/* Dots Indicator */
.swipe-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.swipe-dots .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.swipe-dots .dot.active {
    background: var(--beef-accent);
    width: 20px;
    border-radius: 3px;
    box-shadow: 0 0 10px rgba(139, 21, 21, 0.6);
}

/* Hide only hand animation after interaction, keep dots visible */
.device-gallery.interacted .swipe-hand {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* ===== CTA Section - Better Readability ===== */
.project-cta {
    background: linear-gradient(135deg,
        rgba(42, 26, 26, 0.95),
        rgba(26, 15, 10, 0.95)
    ) !important;
    border: 2px solid rgba(139, 21, 21, 0.5);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.project-cta h2 {
    color: var(--beef-text) !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.project-cta p {
    color: var(--beef-text-secondary) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* ===== Mobile Optimizations ===== */
@media (max-width: 768px) {
    /* Hide "Открыть сайт" button on mobile */
    .hide-on-mobile {
        display: none !important;
    }

    /* Burger navigation - show on mobile, smaller size */
    .burger-nav {
        display: flex !important;
        transform: translateY(-50%) scale(0.65);
        right: 5px;
        gap: 6px;
    }

    .burger-layer {
        gap: 12px;
    }

    .burger-piece {
        width: 30px !important;
        height: 12px !important;
    }

    .burger-piece.top-bun,
    .burger-piece.bottom-bun {
        height: 16px !important;
    }

    .burger-label {
        font-size: 0.55rem !important;
        padding: 3px 6px !important;
        white-space: nowrap;
    }

    /* Fix containers - prevent overflow */
    .container {
        max-width: 100% !important;
        padding: 0 20px !important;
        overflow: visible;
    }

    .project-header .container {
        padding: 0 20px !important;
    }

    /* Fix video background */
    .hero-video-wrapper {
        width: 100vw !important;
        left: 50% !important;
        transform: translateX(-50%);
        margin-left: 0 !important;
    }

    /* Center hero content */
    .project-hero-content {
        text-align: center;
        max-width: 100%;
        padding: 0;
    }

    .hero-cta-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    /* Fix device showcase */
    .devices-showcase {
        flex-direction: column;
        gap: 40px;
        padding: 20px 0;
    }

    .device-wrapper {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
    }

    /* Fix device frames - prevent overflow */
    .device-frame {
        transform: scale(0.95);
        margin: 20px auto;
    }

    .device-iphone {
        max-width: 100%;
    }

    /* Fix gallery - prevent touch conflicts */
    .device-gallery {
        touch-action: pan-y pinch-zoom;
        -webkit-overflow-scrolling: touch;
    }

    .gallery-track {
        touch-action: pan-x;
    }

    /* Fix gallery slides - same as CoffitoKitchen */
    .gallery-slide {
        padding: 0;
        display: block;
    }

    .gallery-slide img,
    .gallery-slide video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        max-width: none !important;
        max-height: none !important;
    }

    /* Reduce swipe indicator size */
    .swipe-hand {
        width: 45px;
        height: 45px;
    }

    .swipe-dots {
        bottom: 10px;
        padding: 6px 10px;
    }

    .swipe-dots .dot {
        width: 5px;
        height: 5px;
    }

    .swipe-dots .dot.active {
        width: 15px;
    }

    /* Tech badges - wrap on mobile */
    .tech-badges {
        justify-content: center;
    }

    /* Feature cards grid */
    .features-grid,
    .results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Fix section titles for narrow screens */
    .section-title {
        font-size: 2rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.2;
    }

    .project-hero-title {
        font-size: 2.5rem !important;
    }

    /* Fix section descriptions */
    .section-desc {
        font-size: 0.95rem !important;
    }
}

/* Extra fixes for very narrow screens (< 360px) */
@media (max-width: 360px) {
    .section-title {
        font-size: 1.75rem !important;
    }

    .project-hero-title {
        font-size: 2rem !important;
    }

    /* Scale down device even more on tiny screens */
    .device-frame {
        transform: scale(0.85) !important;
    }

    /* Ensure content scales with device */
    .device-iphone {
        width: 280px !important;
        height: 580px !important;
    }
}
