/* ============================================
   GRAFICKÝ MANUÁL - JAKUB KYKAL STUNT RIDER
   ============================================ */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
video,
iframe {
    max-width: 100%;
    height: auto;
}

/* Prevent horizontal overflow */
section,
div,
article,
aside,
header,
footer,
main {
    max-width: 100%;
    overflow-x: hidden;
}

/* Ensure all elements respect container width */
[style*="max-width"] {
    box-sizing: border-box;
}

/* Global fix for mobile overflow */
@media (max-width: 480px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        position: relative;
    }
    
    * {
        max-width: 100vw;
    }
    
    body > * {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* Fix for any element that might cause horizontal scroll */
    img, video, iframe, embed, object {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Ensure text doesn't cause overflow - but keep headings intact */
    h1, h2, h3, h4, h5, h6 {
        word-break: normal !important;
        overflow-wrap: normal !important;
        word-wrap: normal !important;
        hyphens: none !important;
        white-space: normal !important;
        max-width: 100% !important;
    }
    
    p, span, a, li, div {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto;
        max-width: 100% !important;
    }
    
    /* Prevent any element from causing horizontal scroll */
    * {
        box-sizing: border-box !important;
    }
}

:root {
    /* Color Palette */
    --primary-dark: #111111;
    --secondary-dark: #222222;
    --accent-blue: #00C3FF;
    --text-primary: #FFFFFF;
    --text-secondary: #CCCCCC;
    
    /* Typography */
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-dark);
    color: var(--text-secondary);
    line-height: 1.6;
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    padding-top: 70px !important;
}

/* ============================================
   NAVIGATION
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--primary-dark);
    border-bottom: 2px solid var(--accent-blue);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 195, 255, 0.1);
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
}

.navbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.logo {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    color: var(--accent-blue);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.logo:hover {
    text-shadow: 0 0 10px var(--accent-blue);
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.5rem;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent-blue);
}

.nav-menu a.active::after,
.nav-menu a:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--accent-blue);
    transition: all 0.3s ease;
}

/* ============================================
   FLASH MESSAGES
   ============================================ */

.flash-messages {
    position: fixed;
    top: 80px;
    right: 2rem;
    z-index: 999;
    max-width: 400px;
}

.flash-message {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid;
    background-color: var(--secondary-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease;
}

.flash-success {
    border-color: #00ff00;
    color: #00ff00;
}

.flash-error {
    border-color: #ff0000;
    color: #ff0000;
}

.flash-info {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.flash-close {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 1rem;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.flash-close:hover {
    opacity: 1;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ============================================
   CONTAINER & SECTIONS
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

section {
    padding: 4rem 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 2rem;
    letter-spacing: 2px;
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background-color: var(--accent-blue);
    margin: 1rem auto;
    box-shadow: 0 0 10px var(--accent-blue);
}

.section-subtitle {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-blue);
    text-transform: uppercase;
    margin-bottom: 1rem;
    word-break: normal;
    overflow-wrap: normal;
    word-wrap: normal;
    hyphens: none;
    white-space: normal;
}

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

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-align: center;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    box-sizing: border-box;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.btn-primary {
    background-color: var(--accent-blue);
    color: var(--primary-dark);
    box-shadow: 0 0 20px rgba(0, 195, 255, 0.5);
}

.btn-primary:hover {
    background-color: #00B0E0;
    box-shadow: 0 0 30px rgba(0, 195, 255, 0.8);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-blue);
    border: 2px solid var(--accent-blue);
    box-shadow: 0 0 10px rgba(0, 195, 255, 0.3);
}

.btn-outline:hover {
    background-color: var(--accent-blue);
    color: var(--primary-dark);
    box-shadow: 0 0 30px rgba(0, 195, 255, 0.8);
}

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

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--secondary-dark) 100%);
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="%2300C3FF" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: 3px;
    text-shadow: 0 0 30px rgba(0, 195, 255, 0.5);
    line-height: 1.2;
    word-break: normal;
    overflow-wrap: normal;
    word-wrap: normal;
    hyphens: none;
    white-space: normal;
    max-width: 100%;
    box-sizing: border-box;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--accent-blue);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    word-break: normal;
    overflow-wrap: normal;
    word-wrap: normal;
    hyphens: none;
    white-space: normal;
    max-width: 100%;
    box-sizing: border-box;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 1rem;
}

/* ============================================
   CARDS
   ============================================ */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.card {
    background-color: var(--secondary-dark);
    padding: 2rem;
    border: 1px solid rgba(0, 195, 255, 0.2);
    transition: all 0.3s ease;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 0 30px rgba(0, 195, 255, 0.3);
    transform: translateY(-5px);
}

.card:hover .card-image img {
    transform: scale(1.1);
}

@media (max-width: 480px) {
    .card:hover .card-image img {
        transform: scale(1.05);
    }
}

.card-image {
    width: 100%;
    max-width: 100%;
    height: 200px;
    margin-bottom: 1.5rem;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 100%;
    display: block;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-blue);
    text-transform: uppercase;
    margin-bottom: 1rem;
    word-break: normal;
    overflow-wrap: normal;
    word-wrap: normal;
    hyphens: none;
    white-space: normal;
}

.card-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

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

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

.form-label {
    display: block;
    color: var(--text-primary);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 1rem;
    background-color: var(--secondary-dark);
    border: 2px solid rgba(0, 195, 255, 0.3);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s ease;
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(0, 195, 255, 0.3);
}

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

/* ============================================
   GALLERY
   ============================================ */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 195, 255, 0.5);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item img {
    border: 1px solid rgba(0, 195, 255, 0.3);
}

/* Gallery grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    width: 100%;
    box-sizing: border-box;
}

/* Hero background image */
.hero-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(17, 17, 17, 0.85) 0%, rgba(34, 34, 34, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Content sections */
.content-section {
    max-width: 800px;
    margin: 0 auto 4rem;
    width: 100%;
    box-sizing: border-box;
}

.content-box {
    background-color: var(--secondary-dark);
    padding: 3rem;
    margin: 4rem 0;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
    width: 100%;
    box-sizing: border-box;
}

.content-box-sm {
    background-color: var(--secondary-dark);
    padding: 2rem;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
    width: 100%;
    box-sizing: border-box;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: calc(100vw - 4rem);
    max-height: calc(100vh - 4rem);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.lightbox-content img {
    max-width: 100%;
    max-height: calc(100vh - 4rem);
    width: auto;
    height: auto;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--accent-blue);
    font-size: 3rem;
    cursor: pointer;
    z-index: 2001;
    transition: transform 0.3s;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

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

.footer {
    background-color: var(--secondary-dark);
    border-top: 2px solid var(--accent-blue);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    font-family: var(--font-heading);
    color: var(--accent-blue);
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    word-break: normal;
    overflow-wrap: normal;
    word-wrap: normal;
    hyphens: none;
    white-space: normal;
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

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

.social-link {
    color: var(--accent-blue);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-blue);
    transition: all 0.3s ease;
    clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
}

.social-link:hover {
    background-color: var(--accent-blue);
    color: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 195, 255, 0.2);
    color: var(--text-secondary);
}

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

/* Mobile First - Base styles for mobile */
/* Mobile First - Base styles for mobile */
@media (max-width: 480px) {
    .navbar .container {
        padding: 0 0.75rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .container {
        padding: 0 0.75rem;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .navbar .container {
        padding: 0 0.75rem;
    }
    
    .content-section {
        margin: 0 auto 2rem;
        padding: 0 1rem;
    }
    
    .content-box {
        padding: 1.5rem;
        margin: 2rem 0;
        clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    }
    
    .content-box-sm {
        padding: 1.5rem;
        clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    }
    
    .logo-text {
        font-size: 1.2rem;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .logo-subtitle {
        font-size: 0.7rem;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .logo {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .lightbox {
        padding: 1rem;
    }
    
    .lightbox-content {
        max-width: calc(100vw - 2rem);
        max-height: calc(100vh - 2rem);
    }
    
    .lightbox-content img {
        max-height: calc(100vh - 2rem);
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.5rem 0;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin: 2rem 0;
        padding: 0 1rem;
    }
    
    .card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 1.5rem;
    }
    
    .card-image {
        width: 100%;
        max-width: 100%;
        height: 150px;
    }
    
    .card-image img {
        max-width: 100%;
        width: 100%;
    }
    
    .section-title {
        font-size: 1.8rem;
        padding: 0 1rem;
        word-break: normal !important;
        overflow-wrap: normal !important;
        word-wrap: normal !important;
        hyphens: none !important;
        white-space: normal !important;
    }
    
    .section-subtitle {
        font-size: 1.5rem;
        word-break: normal !important;
        overflow-wrap: normal !important;
        word-wrap: normal !important;
        hyphens: none !important;
        white-space: normal !important;
    }
    
    .hero {
        min-height: 70vh !important;
        padding: 1rem 0.5rem !important;
        width: 100% !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow-x: hidden !important;
    }
    
    .hero-content {
        padding: 1rem 0.5rem !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        overflow-x: hidden !important;
    }
    
    .hero h1 {
        font-size: 1.8rem !important;
        letter-spacing: 0px !important;
        padding: 0 0.5rem !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        word-wrap: normal !important;
        hyphens: none !important;
        white-space: normal !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: center !important;
    }
    
    .hero .subtitle {
        font-size: 1rem !important;
        letter-spacing: 0px !important;
        padding: 0 0.5rem !important;
        word-break: normal !important;
        overflow-wrap: normal !important;
        word-wrap: normal !important;
        hyphens: none !important;
        white-space: normal !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        text-align: center !important;
    }
    
    .hero-buttons {
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 0.5rem !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .btn,
    .btn-primary,
    .btn-outline {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    [style*="width: 100%"].btn {
        width: 100% !important;
    }
    
    /* Fix for grid layouts on mobile */
    [style*="grid-template-columns: 1fr 1fr"],
    [style*="grid-template-columns: 1fr 2fr"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    [style*="grid-template-columns: repeat(2"] {
        grid-template-columns: 1fr !important;
    }
    
    [style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }
    
    [style*="display: grid"][style*="grid-template-columns"] {
        gap: 1rem !important;
    }
    
    /* Fix for any fixed widths - but not for 100% */
    [style*="width:"][style*="width: 100%"] {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Fix for aspect-ratio elements */
    [style*="aspect-ratio"] {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Fix for elements with transform scale */
    [style*="transform: scale"] {
        max-width: 100% !important;
    }
    
    /* Fix for elements that might overflow */
    [style*="max-width: 800px"],
    [style*="max-width: 900px"],
    [style*="max-width: 1000px"] {
        max-width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        box-sizing: border-box !important;
    }
    
    /* Ensure all sections fit within viewport */
    section {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    div[style*="margin: 4rem"] {
        margin-left: 0.5rem !important;
        margin-right: 0.5rem !important;
    }
    
    [style*="padding: 4rem"] {
        padding: 2rem 0.5rem !important;
    }
    
    /* Fix for inline styles with large values */
    [style*="gap: 4rem"] {
        gap: 2rem !important;
    }
    
    [style*="gap: 1.5rem"] {
        gap: 1rem !important;
    }
    
    /* Force all elements to respect viewport width */
    * {
        max-width: 100vw !important;
    }
    
    /* Fix for any element with padding that might cause overflow */
    [style*="padding"] {
        box-sizing: border-box !important;
    }
    
    /* Aggressive fix for hero section */
    .hero * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Prevent text from causing overflow - but keep words intact */
    .hero h1,
    .hero .subtitle {
        word-break: normal !important;
        overflow-wrap: normal !important;
        word-wrap: normal !important;
        hyphens: none !important;
        white-space: normal !important;
        max-width: 100% !important;
    }
    
    .hero p {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        max-width: 100% !important;
    }
    
    /* Fix for buttons in hero */
    .hero-buttons .btn {
        width: calc(100% - 1rem) !important;
        max-width: calc(100% - 1rem) !important;
        box-sizing: border-box !important;
        margin: 0 auto !important;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: var(--primary-dark);
        width: 100%;
        padding: 2rem;
        transition: left 0.3s ease;
        border-bottom: 2px solid var(--accent-blue);
        box-sizing: border-box;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .navbar .container {
        padding: 0 1.5rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .content-section {
        margin: 0 auto 2rem;
    }
    
    .content-box {
        padding: 2rem;
        margin: 2rem 0;
    }
    
    .content-box-sm {
        padding: 1.5rem;
    }
    
    .hero {
        min-height: 80vh;
        padding: 1.5rem;
    }
    
    .hero-content {
        padding: 1.5rem;
    }
    
    .hero h1 {
        font-size: 3rem;
        letter-spacing: 2px;
        padding: 0 1rem;
        word-break: normal;
        overflow-wrap: normal;
        word-wrap: normal;
        hyphens: none;
        white-space: normal;
    }
    
    .hero .subtitle {
        font-size: 1.3rem;
        padding: 0 1rem;
        word-break: normal;
        overflow-wrap: normal;
        word-wrap: normal;
        hyphens: none;
        white-space: normal;
    }
    
    .hero-buttons {
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        margin: 2rem 0;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .lightbox-content {
        max-width: calc(100vw - 3rem);
        max-height: calc(100vh - 3rem);
    }
    
    .lightbox-content img {
        max-height: calc(100vh - 3rem);
    }
    
    /* Fix for inline styles on mobile */
    [style*="margin: 4rem"] {
        margin: 2rem 0 !important;
    }
    
    [style*="padding: 3rem"] {
        padding: 2rem !important;
    }
    
    /* Fix for grid layouts on tablet */
    [style*="grid-template-columns: 1fr 1fr"] {
        gap: 2rem !important;
    }
    
    /* Ensure all sections fit within viewport */
    section {
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }
}

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

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.divider {
    width: 100px;
    height: 4px;
    background-color: var(--accent-blue);
    margin: 2rem auto;
    box-shadow: 0 0 10px var(--accent-blue);
}

