/* Modern Design System for TriArch Stav */
:root {
    --primary-color: #1a1a1a;
    --secondary-color: #f4f4f4;
    --accent-color: #d4af37;
    /* Metallic Gold for a premium construction feel */
    --text-color: #333333;
    --light-text: #666666;
    --white: #ffffff;
    --max-width: 1200px;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography Utilities */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--primary-color);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5)), url('img/hero.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding-top: 80px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.hero-logo {
    width: auto;
    height: 180px;
    margin: 0 auto 1.5rem auto;
    display: block;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.hero-content p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--accent-color);
    color: var(--white);
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.btn:hover {
    background-color: #bfa13d;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.6);
}

/* About Section */
#about {
    padding: 6rem 0;
    background-color: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    border-radius: 10px;
    box-shadow: 20px 20px 0 var(--secondary-color);
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
}

.feature h3 {
    font-size: 2rem;
    color: var(--accent-color);
}

.feature span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* About Cards - for expertise breakdown */
.about-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    color: var(--light-text);
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-card {
    background: var(--secondary-color);
    padding: 2rem;
    border-radius: 10px;
    border-top: 4px solid var(--accent-color);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.about-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.about-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.about-card p {
    font-size: 0.95rem;
    color: var(--light-text);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .about-cards {
        grid-template-columns: 1fr;
    }
}

/* Services Section */
#services {
    padding: 6rem 0;
    background-color: var(--secondary-color);
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    display: none;
    /* hidden until more references are available */
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--secondary-color);
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.filter-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--white);
}

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

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card ul {
    color: var(--light-text);
    padding-left: 1rem;
    list-style-type: disc;
}

.service-card li {
    margin-bottom: 0.5rem;
}

/* References Section */
#references {
    padding: 6rem 0;
}

/* References grid - Flexbox to center incomplete rows */
.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* <— centers rows with 1,2,5… items */
    gap: 1.5rem;
}

/* Ensure the loading paragraph spans full row when present */
.gallery-grid>p {
    flex: 0 0 100%;
    text-align: center;
}

/* Reference card sizing */
.gallery-item {
    flex: 0 1 280px;
    /* min “card” width */
    max-width: 360px;
    /* optional: keeps nice card width on large screens */
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    height: 250px;
    cursor: pointer;
}

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

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

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.page-btn {
    padding: 0.75rem 1.5rem;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.page-btn .btn-icon {
    line-height: 1;
    font-size: 1.05em;
}

.page-btn:hover:not(:disabled) {
    background: #bfa13d;
    transform: translateY(-2px);
}

.page-btn:disabled {
    background: var(--secondary-color);
    color: var(--light-text);
    cursor: not-allowed;
}

.page-info {
    display: none;
    /* Hide old info if still present */
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page-number {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 1px solid var(--secondary-color);
    background: var(--white);
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.page-number:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.page-number.active {
    background: var(--accent-color);
    color: var(--white);
    border-color: var(--accent-color);
}

.page-number.dots {
    border: none;
    background: transparent;
    cursor: default;
    width: 30px;
}

/* Gallery overlay caption */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
    padding: 1.5rem 1rem 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
}

.ref-meta {
    margin: 0.5rem 0 0 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: var(--white);
    margin: 2% auto;
    border-radius: 10px;
    /* Consistent radius */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    width: 95%;
    max-width: 1000px;
    position: relative;
    height: 90vh;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-close {
    color: var(--light-text);
    font-size: 2rem;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 25px;
    cursor: pointer;
    z-index: 1010;
    line-height: 1;
    transition: var(--transition);
}

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

/* Modal Internal Layout */
.modal-body {
    display: flex;
    flex: 1;
    overflow: hidden;
    padding: 3rem 2rem 2rem 2rem;
}

/* Main Content Area */
.modal-main-content {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Views (Text vs Image) */
.modal-view {
    display: none;
    width: 100%;
    height: 100%;
}

.modal-view.active {
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.3s ease;
}

/* Text View Styling */
#modalTextView {
    overflow-y: auto;
    padding-right: 1.5rem;
}

/* Scrollbar for text view */
#modalTextView::-webkit-scrollbar {
    width: 6px;
}

#modalTextView::-webkit-scrollbar-track {
    background: var(--secondary-color);
    border-radius: 10px;
}

#modalTextView::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

#modalTextView::-webkit-scrollbar-thumb:hover {
    background: #bfa13d;
    /* Darker gold */
}

.modal-meta {
    color: var(--light-text);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}

.modal-client {
    font-weight: 600;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    /*border-left: 3px solid var(--accent-color);
    padding-left: 1rem;*/
}

#modalTitle {
    margin-bottom: 0.75rem;
    padding-right: 2rem;
    font-size: 1.8rem;
    color: var(--primary-color);
}

#modalDescription {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.modal-services {
    margin-top: 1rem;
    background-color: var(--secondary-color);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-services h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-services ul {
    list-style: none;
}

.modal-services li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.75rem;
    color: var(--text-color);
}

.modal-services li::before {
    content: "✓";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: 800;
}

/* Image View Styling */
#modalImageView {
    justify-content: center;
    align-items: center;
    background-color: transparent;
    /* Removed gray background */
    border-radius: 10px;
    padding: 0;
    /* Remove padding to maximize space if needed */
}

#modalMainImage {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Sidebar Styling */
.modal-sidebar {
    width: 90px;
    min-width: 90px;
    background-color: var(--white);
    border-left: 1px solid var(--secondary-color);
    margin-left: 1.5rem;
    padding: 1rem 0.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.sidebar-item {
    width: 64px;
    height: 64px;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
    flex-shrink: 0;
    background-color: var(--secondary-color);
}

.sidebar-item img,
.sidebar-item svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sidebar-item.sidebar-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--secondary-color);
}

.sidebar-item.sidebar-icon svg {
    width: 28px;
    height: 28px;
    color: var(--light-text);
    transition: var(--transition);
}

.sidebar-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.sidebar-item.active {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.sidebar-item.active.sidebar-icon svg {
    color: var(--accent-color);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        height: 85vh;
        width: 98%;
        max-height: none;
        margin: 1rem auto;
    }

    .modal-body {
        flex-direction: column;
        /* Stack: Main content top, Sidebar bottom */
        padding: 3rem 1rem 1rem 1rem;
    }

    .modal-sidebar {
        width: 100%;
        height: auto;
        min-height: auto;
        flex-direction: row;
        /* Horizontal strip */
        border-left: none;
        border-top: 1px solid var(--secondary-color);
        margin-left: 0;
        margin-top: 1rem;
        padding: 1rem 0 0.5rem 0;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 0.75rem;
        align-items: center;
        justify-content: flex-start;
        /* items start from left */
    }

    .sidebar-item {
        width: 54px;
        height: 54px;
        margin-right: 0;
    }

    .modal-close {
        top: 10px;
        right: 15px;
    }
}

/* Success Modal specific overrides */
.success-modal-content {
    background-color: var(--white);
    margin: 10vh auto;
    border-radius: 10px;
    position: relative;
    animation: slideDown 0.3s ease;

    width: 90%;
    text-align: center;
    padding: 3rem;
    max-width: 450px;
    max-height: fit-content;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    margin: 0 auto 1.5rem auto;
    animation: successPop 0.5s ease-out;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.success-modal-content p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.success-modal-content .btn-primary {
    padding: 0.75rem 2rem;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.success-modal-content .btn-primary:hover {
    background: #bfa13d;
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Contact Section */
#contact {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text-color);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.contact-info p {
    color: var(--light-text);
}

.contact-highlight {
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.1rem;
}

.contact-details {
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

/* Contact Details - Compact Layout */
.contact-details-compact {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-row {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e9ecef;
}

.contact-row:last-child {
    border-bottom: none;
}

.contact-label {
    color: var(--accent-color);
    font-weight: 600;
    min-width: 180px;
    flex-shrink: 0;
}

.contact-row span,
.contact-row a {
    color: var(--text-color);
}

.contact-row a {
    text-decoration: none;
    transition: var(--transition);
}

.contact-row a:hover {
    color: var(--accent-color);
}

/* Team Compact */
.team-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.team-item {
    background: var(--white);
    padding: 1rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.team-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.team-item strong {
    color: var(--primary-color);
    font-size: 0.95rem;
}

.team-item a {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.team-item a:hover {
    color: #bfa13d;
}

.team-role {
    font-size: 0.75rem;
    font-style: italic;
    color: var(--light-text);
}

@media (max-width: 768px) {
    .contact-row {
        flex-direction: column;
        gap: 0.25rem;
    }

    .contact-label {
        min-width: auto;
    }
}

.team-list {
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 2px solid var(--accent-color);
}

.team-member {
    margin-bottom: 0.5rem;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent-color);
    color: var(--text-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.contact-form h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    font-family: inherit;
    color: var(--text-color);
    transition: var(--transition);
}

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

.form-group label {
    color: var(--text-color);
}

.required-star {
    color: #e74c3c;
    font-weight: bold;
}

.form-note {
    text-align: center;
    color: var(--light-text);
    font-size: 0.9rem;
    margin-top: 1rem;
    font-style: italic;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background-color: #bfa13d;
    transform: translateY(-2px);
}

/* Map */
.map-section {
    height: 400px;
    width: 100%;
    margin-top: -5px;
    /* Remove gap */
    filter: grayscale(100%);
    transition: var(--transition);
}

.map-section:hover {
    filter: grayscale(0%);
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #3a3a3a 0%, #2d2d2d 100%);
    color: rgba(255, 255, 255, 0.85);
    padding: 2.5rem 0;
    text-align: center;
    border-top: 3px solid var(--accent-color);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
}

footer p {
    margin: 0;
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 900px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-grid,
    .contact-container {
        grid-template-columns: 1fr;
    }

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

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transform: translateY(-150%);
        transition: var(--transition);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.2rem;
    }


    /* Přeházení pořadí v headeru na mobilu:
        logo vlevo, (nav "uprostřed" ale je bez šířky), hamburger úplně vpravo */
    .logo {
        order: 1;
    }

    nav {
        order: 2;
    }

    .mobile-menu-btn {
        order: 3;
        margin-left: auto;
        /* jistota, že se natlačí doprava */
    }
}

@media (max-width: 480px) {
    .pagination {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .page-info {
        order: 3;
        width: 100%;
        text-align: center;
    }

    .page-btn {
        flex: 1;
        padding: 0.75rem 1rem;
        /* trochu menší než desktop */
    }
}