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

/* Accessibility: Skip Links */
.skip-link {
    position: absolute;
    top: -1000px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 4px;
    font-weight: 600;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 6px;
}

/* Screen Reader Only Content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus Management */
*:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-cta, .contact-button {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-background {
        animation: none;
    }
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#main-content,
#process,
#about,
#services,
#contact,
#navigation {
    scroll-margin-top: var(--nav-scroll-offset, 132px);
}

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

/* Navigation bar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: #1e293b;
    text-decoration: none;
}

.logo-text {
    color: #000000;
}

.logo-text span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #1e293b;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent);
}

.contact-button {
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: 8px;
    text-decoration: none;
}

.nav-links a.contact-button:hover {
    transform: translateY(-2px);
}

/* Hero section */
.hero {
    position: relative;
    color: white;
    padding: 180px 0 120px;
    overflow: hidden;
    background-color: #1e293b; /* Fallback */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    height: 120%;
    background-image: linear-gradient(rgba(30, 41, 59, 0.7), rgba(30, 41, 59, 0.7)), url('hero.jpg');
    background-size: cover;
    background-position: center;
    animation: panBackground 25s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes panBackground {
    0% {
        transform: translate(0, 0) scale(1.05);
    }
    100% {
        transform: translate(-5%, -5%) scale(1.1);
    }
}

.hero-content {
    max-width: 820px;
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 2rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero h1 span {
    color: var(--accent-soft);
}

.hero p {
    font-size: 1.375rem;
    margin-bottom: 2.5rem;
    color: #e2e8f0;
    line-height: 1.7;
    max-width: 750px;
}

.hero-cta {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.hero-cta:hover {
    transform: translateY(-2px);
}

/* Process section */
.process {
    padding: 120px 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.process::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background-color: rgba(53, 168, 216, 0.08);
    border-radius: 50%;
    z-index: 0;
}

.section-title {
    text-align: center;
    font-size: 2.75rem;
    margin-bottom: 4rem;
    color: #1e293b;
    font-weight: 700;
    letter-spacing: -0.01em;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--accent-soft);
    border-radius: 2px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.step-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid transparent;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid #e6f1f6;
}

.step-number {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    background-color: #e6f1f6;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    margin-bottom: 1.25rem;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
    font-weight: 600;
}

.step-card p {
    color: #64748b;
    font-size: 1.125rem;
}

/* About section */
.section {
    padding: 100px 0;
    position: relative;
}

.section-light {
    background-color: white;
}

.section-dark {
    background-color: #f8f9fa;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #1e293b;
    font-weight: 700;
}

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

.about-image {
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.about-content p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: #475569;
}

.about-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.about-content li {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: #475569;
}

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

.service-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #e6f1f6;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #1e293b;
}

.service-card p {
    color: #64748b;
    font-size: 1.125rem;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: rgba(53, 168, 216, 0.12);
    border-radius: 50%;
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 30px;
    height: 30px;
    color: var(--accent);
}

.expertise-block {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.expertise-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(53, 168, 216, 0.12);
    border-radius: 50%;
    margin-right: 1.5rem;
}

.expertise-icon svg {
    width: 25px;
    height: 25px;
    color: var(--accent);
}

.expertise-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #1e293b;
}

.expertise-content p {
    color: #64748b;
    font-size: 1.125rem;
    margin-bottom: 0;
}

/* CTA section */
.cta-section {
    text-align: center;
    background-color: #1e293b;
    color: white;
    padding: 80px 0;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #cbd5e1;
}

/* Footer */
.footer {
    background-color: #1e293b;
    color: #cbd5e1;
    padding: 2rem 0;
    text-align: center;
    font-size: 1.125rem;
}

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

.footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

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

.footer-links a:hover,
.footer-links a:focus {
    color: var(--accent);
    text-decoration: underline;
}

.footer-separator {
    color: #64748b;
}

@media (max-width: 768px) {
    .footer-content {
        gap: 0.75rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-separator {
        display: none;
    }
}

#contact {
    text-align: center;
    padding: 0 0 2rem;
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form-shell {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 10px 30px rgba(14, 39, 66, 0.08);
}

.contact-form-shell iframe {
    display: block;
    width: 100%;
    height: 860px;
    border: 0;
}

.location-section {
    padding-top: 1rem;
}

.location-grid {
    display: grid;
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.location-card,
.location-map-shell {
    background: #ffffff;
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(14, 39, 66, 0.08);
}

.location-card {
    padding: 2rem;
}

.location-card h3 {
    font-size: 1.65rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.location-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.location-card .hero-cta {
    margin-top: 0.5rem;
}

.location-eyebrow {
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.location-map-shell {
    overflow: hidden;
    min-height: 420px;
}

.location-map-shell iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
}

#contact-us {
    color: var(--accent);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero p {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
    }

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

    .hero-cta-group {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .hero-cta {
        width: 100%;
        text-align: center;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .contact-form-shell {
        max-width: 680px;
    }

    .contact-form-shell iframe {
        height: 900px;
    }
}

@media (max-width: 768px) {
    .contact-form-shell {
        max-width: 100%;
    }

    .contact-form-shell iframe {
        height: 980px;
    }

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

    .location-card {
        padding: 1.5rem;
    }

    .location-map-shell,
    .location-map-shell iframe {
        min-height: 320px;
    }
}

@media (max-width: 480px) {
    .contact-form-shell iframe {
        height: 1060px;
    }
}

/* Mobile Navigation */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    position: relative;
    z-index: 1001;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.mobile-menu-button:hover {
    background-color: rgba(53, 168, 216, 0.12);
}

.mobile-menu-button:focus {
    background-color: rgba(53, 168, 216, 0.2);
}

.mobile-menu-button svg {
    width: 24px;
    height: 24px;
    color: #1e293b;
    stroke-width: 2;
    pointer-events: none;
}

@media (max-width: 1100px) {
    .mobile-menu-button {
        display: flex;
        align-items: center;
        justify-content: center;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        padding: 24px;
        flex-direction: column;
        gap: 16px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 12px;
        -webkit-tap-highlight-color: transparent;
    }

    .contact-button {
        order: -1;
        margin: 8px 0;
    }
}

/* Additional Accessibility Improvements */

/* Ensure minimum touch target size for mobile */
@media (max-width: 1100px) {
    .nav-links a {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Improve color contrast for better accessibility */
.hero p {
    color: #e2e8f0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Ensure sufficient color contrast for links */
.nav-links a:focus,
.nav-links a:hover {
    color: var(--accent);
}

/* Special hover effect for non-button nav links */
.nav-links a:not(.contact-button):focus,
.nav-links a:not(.contact-button):hover {
    background-color: rgba(53, 168, 216, 0.12);
    border-radius: 8px;
}

/* Improve form accessibility */
iframe[title*="Contact form"] {
    width: 100%;
    border: 0;
    border-radius: 0;
}

/* Better focus indicators for interactive elements */
button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(53, 168, 216, 0.2);
}

/* Ensure text is readable in all contexts */
.step-card p,
.service-card p,
.expertise-content p {
    line-height: 1.7;
}

/* Improve button accessibility */
.hero-cta,
.contact-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

/* Ensure proper spacing for screen readers */
.section-title {
    margin-bottom: 2rem;
}

/* Improve mobile menu accessibility */
@media (max-width: 1100px) {
    .nav-links.active {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .nav-links a {
        padding: 16px;
        border-radius: 8px;
        transition: all 0.2s ease;
    }
    
    .nav-links a:focus,
    .nav-links a:hover {
        background-color: rgba(53, 168, 216, 0.12);
        transform: none;
    }
}

/* Premium light theme refresh */
:root {
    --bg-page: #f8fbff;
    --bg-card: #ffffff;
    --text-primary: #17314f;
    --text-secondary: #61748c;
    --accent: #35a8d8;
    --accent-soft: #66c6f2;
    --border-soft: #e3ecf5;
    --button-bg: #55bfe9;
    --button-hover-bg: #69c9ef;
    --button-border: #8ad3f4;
    --button-shadow: 0 8px 18px rgba(65, 180, 230, 0.22);
    --button-shadow-hover: 0 10px 22px rgba(65, 180, 230, 0.3);
    --nav-scroll-offset: 124px;
}

body {
    background: linear-gradient(180deg, #fbfdff 0%, var(--bg-page) 100%);
    color: var(--text-primary);
}

.navbar {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 6px 24px rgba(15, 39, 65, 0.08);
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    white-space: nowrap;
    flex: 0 1 auto;
    min-width: 0;
    max-width: min(100%, 60%);
}

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

.logo-text {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    white-space: nowrap;
    color: #000000;
}

.logo-text span {
    color: var(--accent);
}

.nav-links a,
.mobile-menu-button svg {
    color: var(--text-primary);
}

.nav-container {
    gap: 12px;
    min-width: 0;
    flex-wrap: nowrap;
    align-items: center;
}

.nav-links {
    gap: 14px;
    flex-wrap: nowrap;
    flex: 0 0 auto;
    justify-content: flex-end;
}

@media (min-width: 1101px) and (max-width: 1320px) {
    .nav-links {
        gap: clamp(8px, 1.1vw, 18px);
    }

    .nav-links a {
        font-size: clamp(0.78rem, 1vw, 0.94rem);
    }

    .nav-links a.contact-button {
        padding-left: clamp(10px, 1.2vw, 24px);
        padding-right: clamp(10px, 1.2vw, 24px);
    }
}

.nav-links a {
    white-space: nowrap;
    font-size: 0.94rem;
    line-height: 1.1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 10px 8px;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus {
    color: var(--accent);
}

.contact-button,
.hero-cta {
    background-color: var(--button-bg);
    background-image: none;
    box-shadow: var(--button-shadow);
    border: 1px solid var(--button-border);
    color: #ffffff;
}

.nav-links a.contact-button,
.hero-cta {
    background-color: var(--button-bg);
    color: #ffffff;
    border: 1px solid var(--button-border);
    box-shadow: var(--button-shadow);
}

.nav-links a.contact-button {
    padding: 10px 24px;
}

.nav-links a.contact-button:hover,
.hero-cta:hover {
    background-color: var(--button-hover-bg);
    background-image: none;
    box-shadow: var(--button-shadow-hover);
    color: #ffffff;
    transform: translateY(-2px);
}

.hero {
    color: #ffffff;
    padding: 164px 0 116px;
    min-height: 74vh;
    display: flex;
    align-items: center;
}

.hero-background {
    background-image: linear-gradient(rgba(15, 39, 65, 0.2), rgba(15, 39, 65, 0.14)), url('hero.jpg');
}

.hero h1 span {
    color: #8fe2ff;
}

.hero-content {
    max-width: 840px;
    margin: 0 auto;
    text-align: center;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
}

.hero h1 {
    font-size: clamp(2rem, 3.5vw, 2.95rem);
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}

.hero p {
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto 1.55rem;
    color: #ecf5ff;
}

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

.process,
.section-dark {
    background-color: #f3f8fd;
}

.section-light {
    background-color: #ffffff;
}

.step-card,
.service-card,
.timeline-card,
.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    box-shadow: 0 14px 30px rgba(14, 39, 66, 0.08);
}

.step-number,
.service-icon,
.expertise-icon {
    background: rgba(31, 156, 196, 0.14);
}

.step-number {
    color: var(--text-primary);
}

.service-icon svg,
.expertise-icon svg {
    color: var(--accent);
}

.section-title::after {
    background-color: var(--accent-soft);
}

.cta-section {
    background: linear-gradient(90deg, #edf8ff 0%, #f4fbff 100%);
    color: var(--text-primary);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

.cta-section h2,
.cta-section p {
    color: var(--text-primary);
}

.footer {
    background-color: #f0f6fc;
    color: #4e6075;
    border-top: 1px solid var(--border-soft);
}

.footer-links a {
    color: #3c5570;
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--accent);
}

/* Recent projects page */
.projects-gallery-page {
    padding: 138px 0 90px;
    background-color: #f8fbff;
}

.projects-gallery-title {
    font-family: 'Playball', cursive;
    font-size: clamp(2.7rem, 4.2vw, 4rem);
    font-weight: 400;
    color: var(--text-primary);
    text-align: center;
    letter-spacing: 0.01em;
    line-height: 1.1;
    margin: 0 auto 2.25rem;
    max-width: 16ch;
    position: relative;
    text-transform: none;
    text-shadow: 0 10px 28px rgba(23, 49, 79, 0.08);
}

.projects-gallery-title::after {
    content: '';
    display: block;
    width: 84px;
    height: 4px;
    margin: 0.9rem auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-soft) 0%, var(--accent) 100%);
    box-shadow: 0 8px 18px rgba(53, 168, 216, 0.18);
}

.projects-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.35rem;
}

.project-photo-item {
    border: none;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    padding: 0;
    cursor: pointer;
    border: 1px solid var(--border-soft);
    box-shadow: 0 8px 20px rgba(14, 39, 66, 0.07);
}

.project-photo-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.project-photo-item span {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: #3f5166;
    padding: 0.6rem 0.75rem 0.7rem;
    line-height: 1.2;
}

.project-photo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(14, 39, 66, 0.12);
}

.project-photo-item:focus,
.project-photo-item:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(14, 39, 66, 0.12);
}

.project-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(23, 49, 79, 0.38);
    backdrop-filter: blur(8px);
    z-index: 1200;
    padding: 1.5rem;
    overflow-y: auto;
}

.project-modal.open {
    display: flex;
}

.project-modal-dialog {
    position: relative;
    width: min(92vw, 1150px);
    max-height: min(92vh, 920px);
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(23, 49, 79, 0.18);
    padding: 1rem 4rem 1.25rem;
    overflow-y: auto;
}

.project-modal-header {
    text-align: center;
    margin-bottom: 0.6rem;
}

.project-modal-header h2 {
    margin: 0;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--text-primary);
}

.project-modal-figure {
    margin: 0;
    display: flex;
    justify-content: center;
}

.project-modal-figure img {
    max-width: 100%;
    width: auto;
    max-height: min(66vh, 700px);
    display: block;
    border-radius: 14px;
    box-shadow: 0 18px 38px rgba(23, 49, 79, 0.12);
}

.project-modal-counter {
    color: var(--text-secondary);
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.project-modal-thumbnails {
    margin-top: 1rem;
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    padding-bottom: 0.25rem;
}

.project-modal-thumbnail {
    border: 2px solid var(--border-soft);
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    width: 84px;
    height: 84px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(23, 49, 79, 0.08);
}

.project-modal-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-modal-thumbnail.is-active {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(53, 168, 216, 0.14);
}

.project-modal-thumbnail:focus,
.project-modal-thumbnail:focus-visible {
    border-color: var(--accent);
}

.project-modal-close,
.project-modal-nav {
    position: absolute;
    border: none;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 999px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-soft);
    box-shadow: 0 10px 24px rgba(23, 49, 79, 0.12);
}

.project-modal-close:disabled,
.project-modal-nav:disabled {
    opacity: 0.45;
    cursor: default;
}

.project-modal-close {
    top: 16px;
    right: 16px;
    font-size: 1.6rem;
}

.project-modal-nav.prev {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.project-modal-nav.next {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

@media (max-width: 1100px) {
    .logo img {
        width: 56px;
        height: 56px;
    }

    .logo {
        font-size: clamp(0.8rem, 2.2vw, 1.1rem);
        gap: 10px;
    }

    .logo-text {
        white-space: normal;
        max-width: min(100%, 52vw);
        line-height: 1.15;
    }
}

@media (max-width: 768px) {
    .logo img {
        width: 48px;
        height: 48px;
    }

    .logo {
        gap: 8px;
        font-size: clamp(0.72rem, 3.4vw, 0.95rem);
    }

    .logo-text {
        font-size: inherit;
        line-height: 1.15;
        max-width: min(100%, 58vw);
    }

    .projects-gallery-page {
        padding: 110px 0 56px;
    }

    .projects-gallery-title {
        font-size: clamp(2.3rem, 10vw, 3.1rem);
        margin-bottom: 1.8rem;
    }

    .project-photo-item img {
        height: 220px;
    }

    .project-modal-dialog {
        width: min(94vw, 680px);
        max-height: 88vh;
        padding: 4rem 0.85rem 1rem;
    }

    .project-modal-figure img {
        max-height: 56vh;
    }

    .project-modal-nav.prev {
        left: 10px;
    }

    .project-modal-nav.next {
        right: 10px;
    }

    .project-modal-thumbnail {
        width: 72px;
        height: 72px;
    }

    .hero-content {
        padding: 0;
    }

    .hero h1 {
        font-size: clamp(1.7rem, 7vw, 2.25rem);
    }
}

@media (max-width: 380px) {
    .logo img {
        width: 40px;
        height: 40px;
    }

    .logo {
        font-size: clamp(0.65rem, 3.2vw, 0.82rem);
    }
}

/* Theme consistency overrides for interactive states */
*:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(53, 168, 216, 0.2);
}

.nav-links a:focus,
.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:not(.contact-button):focus,
.nav-links a:not(.contact-button):hover {
    background-color: rgba(53, 168, 216, 0.12);
}

.mobile-menu-button:hover {
    background-color: rgba(53, 168, 216, 0.12);
}

.mobile-menu-button:focus {
    background-color: rgba(53, 168, 216, 0.2);
}

#contact-us {
    color: var(--accent);
}
