/**
 * Future Gen Construction Website - Professional renovation theme
 */

:root {
    --primary-color: #0b1830;
    --secondary-color: #0078c8;
    --accent-color: #00a6d6;
    --steel-color: #707780;
    --warm-accent: #d8a240;
    --dark-bg: #09101f;
    --panel-bg: #f3f7fa;
    --light-bg: #f8fafc;
    --surface: #ffffff;
    --text-dark: #162235;
    --text-light: #5b6775;
    --border-color: #dce5ec;
    --brand-gradient: linear-gradient(135deg, #00a6d6 0%, #0078c8 48%, #0b4ea2 100%);
    --shadow: 0 12px 30px rgba(11, 24, 48, 0.10);
    --shadow-lg: 0 22px 50px rgba(11, 24, 48, 0.16);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background:
        linear-gradient(90deg, rgba(0, 120, 200, 0.035) 1px, transparent 1px),
        linear-gradient(rgba(0, 120, 200, 0.035) 1px, transparent 1px),
        var(--light-bg);
    background-size: 34px 34px;
}

.navbar {
    background: rgba(255, 255, 255, 0.96);
    color: var(--text-dark);
    padding: 0.65rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 22px rgba(17, 24, 32, 0.08);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.navbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--brand-gradient);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 86px;
    height: 62px;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 24px rgba(0, 120, 200, 0.14);
    flex: 0 0 auto;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
    color: var(--primary-color);
}

.logo-text p {
    font-size: 0.72rem;
    color: var(--secondary-color);
    margin: 0.15rem 0 0;
    font-weight: 800;
    text-transform: uppercase;
}

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

.nav-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    min-height: 38px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color);
}

.nav-link.active {
    text-decoration: underline;
    text-decoration-color: var(--accent-color);
    text-decoration-thickness: 3px;
    text-underline-offset: 0.45rem;
}

.search-icon {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 0.35rem;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.main-content {
    min-height: calc(100vh - 70px - 190px);
    padding: 1.5rem 0 0;
}

#pageContainer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    margin-bottom: 4rem;
}

h1,
h2,
h3 {
    color: var(--primary-color);
    line-height: 1.15;
}

h1 {
    font-size: 2.6rem;
    margin-bottom: 1rem;
    font-weight: 850;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.3rem;
    font-weight: 800;
}

h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.75;
}

#pageContainer h1,
#pageContainer h2,
.category-header h2,
.hero-content h1 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.section-description {
    font-size: 1.08rem;
    max-width: 760px;
    color: var(--text-light);
    margin: 0 auto 2rem;
    text-align: center;
}

.hero-section {
    background-size: cover;
    background-position: center;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 4rem;
    box-shadow: var(--shadow-lg);
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(9, 16, 31, 0.90), rgba(11, 78, 162, 0.62), rgba(0, 166, 214, 0.18)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.18));
    width: 100%;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-content {
    color: white;
    max-width: 720px;
    padding: 4rem;
    text-align: left;
}

.hero-content h1 {
    color: white;
    font-size: 3.4rem;
    text-align: left;
    margin-bottom: 1rem;
}

#pageContainer .hero-content h1 {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
}

.hero-content p {
    color: #f2eee7;
    font-size: 1.25rem;
    max-width: 620px;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-gradient);
    color: #ffffff;
    min-height: 46px;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 850;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    box-shadow: 0 10px 24px rgba(0, 120, 200, 0.28);
}

.cta-button:hover {
    background: linear-gradient(135deg, #15b9e6 0%, #0078c8 46%, #073f86 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.cta-button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.features-section,
.narrative-full,
.contact-form-container,
.contact-info-container,
.team-member {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.features-section {
    padding: 3rem;
}

.features-grid,
.testimonials-grid,
.projects-grid,
.team-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.feature-card,
.testimonial-card,
.project-card,
.timeline-content {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.feature-card {
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-top: 4px solid var(--secondary-color);
}

.feature-card:hover,
.project-card:hover,
.team-member:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.feature-icon,
.info-icon,
.member-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 34px;
    padding: 0 0.65rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    background: var(--brand-gradient);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 850;
    text-transform: uppercase;
}

.testimonials-section {
    padding: 1rem 0;
}

.testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.testimonial-card {
    padding: 1.6rem;
    border-top: 4px solid var(--accent-color);
}

.stars {
    color: var(--warm-accent);
    font-size: 1.05rem;
    margin-bottom: 0.8rem;
}

.testimonial-text {
    color: var(--text-dark);
    font-style: italic;
}

.testimonial-author {
    color: var(--primary-color);
    font-weight: 800;
}

.testimonial-role {
    color: var(--accent-color);
    font-size: 0.92rem;
    font-weight: 700;
}

.gallery-section {
    padding: 2rem 0;
}

.gallery-tabs {
    display: flex;
    gap: 0.8rem;
    margin: 2rem 0;
    justify-content: center;
    flex-wrap: wrap;
}

.gallery-tab {
    min-height: 42px;
    padding: 0.65rem 1.1rem;
    border: 1px solid var(--border-color);
    background: var(--surface);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 800;
    color: var(--primary-color);
}

.gallery-tab:hover,
.gallery-tab.active {
    background: var(--brand-gradient);
    color: #ffffff;
    border-color: var(--secondary-color);
}

.category-header {
    text-align: center;
    margin: 2rem auto;
    max-width: 780px;
}

.projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.project-card {
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.team-member,
.contact-form-container,
.contact-info-container,
.narrative-full {
    position: relative;
    overflow: hidden;
}

.project-card::before,
.team-member::before,
.contact-form-container::before,
.contact-info-container::before,
.narrative-full::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--brand-gradient);
}

.project-image {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(9, 16, 31, 0.62);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.view-details-btn {
    background: var(--brand-gradient);
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 850;
}

.project-info {
    padding: 1.4rem;
}

.project-features {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.feature-tag {
    background: #eef8fc;
    color: var(--secondary-color);
    border: 1px solid #cceaf5;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.modal {
    display: flex;
    position: fixed;
    z-index: 2000;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 32, 0.82);
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 620px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.25s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 0.8rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.modal-content ul {
    list-style: none;
    margin: 1rem 0;
}

.modal-content li {
    padding: 0.45rem 0;
    color: var(--text-light);
}

.portfolio-section {
    padding: 2rem 0;
}

.portfolio-category {
    margin: 3rem 0 4rem;
}

.portfolio-category-header {
    max-width: 780px;
    margin: 0 auto 1.5rem;
    text-align: center;
}

.portfolio-category-header h2 {
    margin-bottom: 0.6rem;
}

.portfolio-category-header p {
    margin-bottom: 0;
}

.portfolio-carousel {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.portfolio-carousel-viewport {
    overflow: hidden;
    background: var(--panel-bg);
    aspect-ratio: 16 / 9;
    width: 100%;
}

.portfolio-carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.35s ease;
}

.portfolio-slide {
    flex: 0 0 100%;
    margin: 0;
    height: 100%;
    background: var(--panel-bg);
}

.portfolio-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.portfolio-carousel-controls {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
}

.portfolio-carousel-button {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--surface);
    color: var(--primary-color);
    font-size: 1.35rem;
    font-weight: 850;
    cursor: pointer;
    transition: all 0.2s ease;
}

.portfolio-carousel-button:hover {
    background: var(--brand-gradient);
    color: #ffffff;
    border-color: var(--secondary-color);
}

.portfolio-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.55rem;
}

.portfolio-carousel-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: #b7c7d4;
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.portfolio-carousel-dot.active {
    width: 28px;
    background: var(--secondary-color);
}

.chat-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 2rem;
    margin-top: 2rem;
}

.contact-form-container,
.contact-info-container {
    padding: 2rem;
}

.contact-form-container h2,
.contact-info-container h2 {
    margin-top: 0.75rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.form-subtitle {
    color: var(--text-dark);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 800;
    margin-bottom: 0.45rem;
    color: var(--text-dark);
}

.required {
    color: var(--secondary-color);
    margin-left: 0.2rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 0.78rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    background: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 166, 214, 0.14);
}

.success-message {
    background: #e5f5ec;
    border: 1px solid #7cc799;
    color: #1f6d3b;
    padding: 1.2rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.success-message h3,
.success-message p {
    color: #1f6d3b;
}

.error-message {
    background: #fff3e8;
    border: 1px solid #e0a45f;
    color: #7a3f00;
    padding: 1.2rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.error-message h3,
.error-message p {
    color: #7a3f00;
}

.error-message a {
    color: var(--primary-color);
    font-weight: 800;
}

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

.info-item {
    padding: 0;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.info-item-link,
.info-item-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    width: 100%;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    background: #ffffff;
}

.info-item-link:hover {
    background: var(--panel-bg);
    transform: translateX(4px);
}

.info-item-link .info-icon,
.info-item-content .info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    min-width: 52px;
    width: 52px;
    height: 52px;
    padding: 0;
    background: #e9f7fc;
    border: 1px solid #c4e8f4;
    color: var(--secondary-color);
}

.info-item-link .info-icon svg,
.info-item-content .info-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: fill 0.3s ease;
}

.info-item-link:hover .info-icon {
    background: var(--brand-gradient);
    border-color: var(--secondary-color);
    color: #ffffff;
}

.info-item-link:hover .info-icon svg {
    fill: currentColor;
}

.info-item-link .info-details,
.info-item-content .info-details {
    flex: 1;
    min-width: 0;
}

.info-details p {
    overflow-wrap: anywhere;
    margin-bottom: 0;
}

.info-details h4 {
    color: var(--primary-color);
    margin-bottom: 0.15rem;
}

.narrative-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
    background: var(--panel-bg);
    padding: 2rem;
    border-radius: 8px;
}

.narrative-image {
    width: 100%;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
}

.narrative-full {
    width: 100%;
    padding: 3rem 0;
    margin-bottom: 3rem;
}

.narrative-full-content {
    max-width: 880px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.narrative-full-content h2 {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.story-text {
    max-width: 760px;
    margin: 1.4rem auto 0;
    text-align: left;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.story-text p {
    line-height: 1.85;
    margin-bottom: 1.15rem;
    color: var(--text-dark);
}

.story-text p:last-child {
    margin-bottom: 0;
}

.story-cta-wrap {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.timeline-section {
    margin: 3rem 0;
    padding: 2rem 0;
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--brand-gradient);
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
}

.timeline-item.left .timeline-content {
    margin-left: 0;
    margin-right: auto;
    width: 45%;
    text-align: left;
}

.timeline-item:not(.left) .timeline-content {
    margin-left: auto;
    margin-right: 0;
    width: 45%;
    text-align: left;
}

.timeline-content {
    padding: 1.4rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 1.5rem;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border: 3px solid var(--light-bg);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.team-section {
    margin: 3rem 0;
}

.team-description {
    text-align: center;
    font-size: 1.08rem;
    max-width: 760px;
    margin: 0 auto 2rem;
}

.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.team-member {
    padding: 1.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-icon {
    min-width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--brand-gradient);
    color: #ffffff;
    font-size: 1rem;
}

.member-position {
    color: var(--accent-color);
    font-weight: 800;
}

.member-bio {
    font-size: 0.95rem;
}

.footer {
    background: var(--dark-bg);
    color: white;
    padding: 2rem;
    margin-top: 4rem;
    border-top: 4px solid var(--secondary-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-content p {
    color: #d7d0c2;
    margin-bottom: 0;
}

.social-media {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: white;
}

.social-link svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.social-link:hover {
    background: var(--brand-gradient);
    color: #ffffff;
    transform: translateY(-2px);
}

.social-divider {
    text-align: center;
    padding: 1.5rem 0 1rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
}

.social-divider p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 0;
    font-weight: 500;
}

.social-links-chat {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 1rem 0 0 0;
    flex-wrap: wrap;
}

.social-link-chat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--panel-bg);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--primary-color);
}

.social-link-chat svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.social-link-chat:hover {
    background: var(--brand-gradient);
    color: #ffffff;
    border-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 120, 200, 0.25);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.footer-links a {
    color: #d7d0c2;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

@media (max-width: 1024px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .chat-content-grid,
    .narrative-section {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item.left .timeline-content,
    .timeline-item:not(.left) .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px;
        text-align: left;
    }

    .timeline-item::before {
        left: 30px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }

    .logo-link {
        width: 56px;
        height: 56px;
    }

    .logo-text h1 {
        font-size: 0.9rem;
    }

    .logo-text p {
        font-size: 0.62rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--dark-bg);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        gap: 0;
        padding: 1.5rem 0;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        padding: 0.2rem 1rem;
    }

    .nav-link {
        color: white;
        justify-content: center;
        padding: 0.8rem;
    }

    .hamburger {
        display: flex;
    }

    #pageContainer {
        padding: 0 1rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    .hero-section,
    .hero-overlay {
        min-height: 430px;
    }

    .hero-content {
        padding: 2rem;
    }

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

    .hero-content p {
        font-size: 1.05rem;
    }

    .features-section,
    .contact-form-container,
    .contact-info-container {
        padding: 1.4rem;
    }

    .narrative-full {
        padding: 2rem 0;
    }

    .narrative-full-content {
        padding: 0 1.15rem;
    }

    .story-text {
        font-size: 1rem;
        margin-top: 1.1rem;
    }

    .features-grid,
    .testimonials-grid,
    .projects-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }

    .gallery-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .gallery-tab {
        width: 100%;
    }

    .portfolio-category {
        margin: 2.5rem 0 3rem;
    }

    .portfolio-carousel-controls {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 0.7rem;
        padding: 0.85rem;
    }

    .portfolio-carousel-button {
        width: 40px;
        height: 40px;
    }

    .info-item {
        flex-direction: column;
    }

    .footer-top {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .main-content {
        padding-top: 1rem;
    }

    h1 {
        font-size: 1.55rem;
    }

    .section-description {
        font-size: 1rem;
    }

    .hero-section,
    .hero-overlay {
        min-height: 390px;
    }

    .hero-content {
        padding: 1.25rem;
    }

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

    .cta-button {
        width: 100%;
    }

    .project-image,
    .modal-image {
        height: 240px;
    }

    .modal-content {
        padding: 1.25rem;
    }
}
