/* Language Switcher Styles */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: 1.5rem;
}
.lang-btn {
    background: #183153;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 0.3em 0.7em;
    font-size: 0.95em;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    outline: none;
}
.lang-btn.active,
.lang-btn:hover {
    background: #366abd;
    color: #fff;
}
/* Portfolio Modal Styles */
.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    transition: opacity 0.3s;
}
.portfolio-modal-content {
    background: #fff;
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    padding: 1rem 1rem 1.5rem 1rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.portfolio-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #eee;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.5rem;
    color: #333;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10;
}
.portfolio-modal-close:hover {
    background: #1e3f73;
    color: #fff;
}
.portfolio-modal img {
    max-width: 98vw;
    max-height: 85vh;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}
#modal-text {
    color: #222;
    text-align: center;
    font-size: 1.1rem;
    margin-top: 0;
}

@media (max-width: 1023px) {
    .portfolio-modal-content {
        padding: 0.3rem 0.1rem 1.2rem 0.1rem;
        border-radius: 12px;
        max-width: 100vw;
        max-height: 99vh;
    }
    .portfolio-modal img {
        max-width: 100vw;
        max-height: 60vh;
    }
}
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #fff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

h2 {
    font-size: 1.6rem;
}

h3 {
    font-size: 1.35rem;
}

h4 {
    font-size: 1.15rem;
}

p {
    margin-bottom: 1rem;
    color: #444;
    font-size: 0.95rem;
}

/* Non-hero sections have smaller text on mobile */
.about h2,
.portfolio h2,
.reviews h2,
.contact h2 {
    font-size: 1.4rem;
}

.about h3,
.portfolio h3,
.reviews h3,
.contact h3 {
    font-size: 1.2rem;
}

.about h4,
.portfolio h4,
.reviews h4,
.contact h4 {
    font-size: 1rem;
}

.about p,
.portfolio p,
.reviews p,
.contact p {
    font-size: 0.85rem;
}

.about p {
    font-size: 1rem;
}

.contact p {
    font-size: 0.9rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-primary {
    background-color: #1e3f73;
    color: white;
}

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

.btn-secondary {
    background-color: transparent;
    color: #1e3f73;
    border: 2px solid #1e3f73;
}

.btn-secondary:hover {
    background-color: #1e3f73;
    color: white;
}

.btn-full {
    width: 100%;
}

/* Navigation */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

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

.nav-logo {
    order: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-controls {
    order: 2;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-toggle {
    order: 3;
}

.nav-logo h2 {
    color: #1e3f73;
    margin: 0;
    font-size: 1.3rem;
}

.nav-menu {
    display: none;
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    padding: 1rem 0;
    order: 4;
}

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

/* Mobile adjustments for nav controls */
@media (max-width: 480px) {
    .nav-controls {
        gap: 0.5rem;
    }
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    color: #222;
    text-decoration: none;
    padding: 12px 20px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #1e3f73;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #222;
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    margin-top: 65px;
    padding: 2rem 20px;
    display: flex;
    flex-direction: column;
    min-height: 68vh; /* more compact height on mobile */
    align-items: center;
    text-align: center;
    position: relative; /* needed for overlay and absolute image */
    overflow: hidden;
}

/* Vertically center hero content on mobile/tablet */
@media (max-width: 1023px) {
    .hero {
        justify-content: center;
    }
}

.hero-content {
    margin-bottom: 2rem;
    position: relative;
    z-index: 2; /* keep text above overlay and image */
}

.hero h1 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.55), 0 2px 4px rgba(0, 0, 0, 0.35);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.14),
        0 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-direction: row;
    justify-content: center;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    z-index: 0;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
    box-shadow: none;
}

/* Mobile vertical overlay for text readability (does not dull entire image) */
.hero::before {
    content: "";
    position: absolute;
    inset: 0; /* reset to cover entire hero like earlier */
    z-index: 1; /* above image, below text */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.25) 28%,
        rgba(0, 0, 0, 0.12) 55%,
        rgba(0, 0, 0, 0.04) 78%,
        rgba(0, 0, 0, 0) 100%
    );
    pointer-events: none;
}

/* Make the mobile overlay a bit lighter */
@media (max-width: 767px) {
    .hero::before {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.28) 0%,
            rgba(0, 0, 0, 0.18) 28%,
            rgba(0, 0, 0, 0.08) 55%,
            rgba(0, 0, 0, 0.02) 78%,
            rgba(0, 0, 0, 0) 100%
        );
    }
}

/* Improve contrast of secondary button on dark overlay within hero */
.hero .btn-secondary {
    color: #fff;
    border-color: #fff; /* restore white outline */
    background: rgba(14, 41, 84, 0.7) !important; /* half opacity of #1e3f73 */
    position: relative; /* ensure it can have its own stacking */
    z-index: 2; /* above hero overlay */
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* Ensure stronger state colors inside hero */
.hero .btn-secondary:hover,
.hero .btn-secondary:active {
    background-color: #173b74 !important;
    color: #fff;
    border-color: #fff; /* keep white border on interaction */
}

/* Hero primary button: default to half opacity of its pressed color */
.hero .btn-primary {
    background-color: rgba(21, 48, 85, 0.5); /* #153055 at 50% */
    color: #fff;
}

/* In hero, make hover/active the solid pressed color for clarity */
.hero .btn-primary:hover,
.hero .btn-primary:active {
    background-color: #153055;
}

/* Define global click color for primary button (pressed state) */
.btn-primary:active {
    background-color: #153055;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    color: #222;
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 3rem 0;
    background-color: #f2f2f0;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.services-list {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.service-item {
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #1e3f73;
}

.service-item h4 {
    color: #1e3f73;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.service-item p {
    color: #555;
    margin: 0;
    line-height: 1.5;
}

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

.stat {
    text-align: center;
    padding: 1rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat h4 {
    color: #1e3f73;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat p {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
}

.about-image {
    width: 100%;
    display: flex;
    flex-direction: column; /* stack image and name vertically */
    align-items: center;
    justify-content: center; /* center avatar on mobile */
    margin-bottom: -10px;
}

.about-image img {
    width: 160px;
    height: 160px;
    object-fit: cover; /* zoom in, fill the circle */
    object-position: center; /* keep crop centered */
    background-color: #ffffff;
    border-radius: 50%;
    /* white inner ring + branded outer ring */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15), 0 0 0 4px #ffffff,
        0 0 0 8px rgba(30, 63, 115, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Name under profile picture */
.about-image p {
    margin-top: 0.8rem;
    color: #222;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}

@media (hover: hover) {
    .about-image img:hover {
        transform: translateY(-2px) scale(1.02);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18), 0 0 0 4px #ffffff,
            0 0 0 10px rgba(30, 63, 115, 0.24);
    }
}

/* Services Section */
.services {
    padding: 3rem 0;
}

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

.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background-color: #1e3f73;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-card h3 {
    color: #222;
    margin-bottom: 1rem;
}

.service-card p {
    color: #555;
    line-height: 1.6;
}

/* Portfolio Section */
.portfolio {
    padding: 3rem 0;
}

.service-category {
    margin-bottom: 4rem;
}

.service-category:last-child {
    margin-bottom: 0;
}

.service-category-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.service-category h3 {
    color: #1e3f73;
    margin-bottom: 0;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.service-category p {
    color: #555;
    margin: 0;
    font-size: 1.1rem;
    flex: 1;
    min-width: 300px;
}

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

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    padding: 0;
    margin: 0;
}

.portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.portfolio-overlay h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.portfolio-overlay p {
    margin: 0;
    color: #ccc;
}

/* Reviews Section */
.reviews {
    padding: 3rem 0;
}

/* Reviews list */
.reviews-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    margin-top: 2.5rem;
    margin-bottom: 3.5rem;
}

.review-card {
    background-color: #f2f2f0;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.17);
    text-align: left; /* left align content */
}

.review-card p {
    margin: 0.75rem 0;
    font-size: 0.95rem;
    line-height: 1.55;
    max-width: none;
    width: 100%;
    box-sizing: border-box;
}

.reviewer h4 {
    color: #222;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
    text-align: center;
    font-style: italic;
}

/* Contact Section */
.contact {
    padding: 3rem 0;
    background-color: #f2f2f0;
}

.contact .section-header p {
    width: 100%;
    text-align: center;
    max-width: none;
    margin: 0;
    font-size: 1rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
    flex-direction: row;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: #1e3f73;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.2rem;
}

.contact-details h3 {
    color: #222;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-details p {
    color: #555;
    margin: 0.25rem 0;
}

.contact-details a {
    color: #1e3f73;
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #2d5aa0;
}

/* Contact Form */
.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-family: "Inter", sans-serif;
    transition: border-color 0.3s ease;
    color: #222;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1e3f73;
}

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

.confirmation-message {
    margin-top: 1rem;
    text-align: center;
    display: none;
}

/* Footer */
.footer {
    background-color: #333;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: #2781e8;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #bbb;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-section p a {
    color: #bbb;
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer-section p a:hover {
    color: #1e3f73;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #1e3f73;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background-color: #1e3f73;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: #153055;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #444;
    color: #bbb;
    font-size: 0.9rem;
}

@media (max-width: 504px) {
    .service-category p {
        margin: -18px 0 0;
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 14px;
        padding: 10px 14px;
    }

    .lang-switcher {
        gap: 0.28rem;
        justify-content: flex-start;
        display: flex;
        margin: 0;
    }
    .lang-btn {
        font-size: 0.89em;
        padding: 0.16em 0.48em;
        border-radius: 3px;
    }
}

/* Responsive Design - Tablet */
@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
    .portfolio .container {
        max-width: 1600px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.85rem;
    }

    h3 {
        font-size: 1.6rem;
    }

    h4 {
        font-size: 1.3rem;
    }

    p {
        font-size: 1rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 15px;
    }

    /* Reset section-specific styles for tablet+ */
    .about h2,
    .portfolio h2,
    .reviews h2,
    .contact h2 {
        font-size: 1.85rem;
    }

    .about h3,
    .portfolio h3,
    .reviews h3,
    .contact h3 {
        font-size: 1.6rem;
    }

    .about h4,
    .portfolio h4,
    .reviews h4,
    .contact h4 {
        font-size: 1.3rem;
    }

    .about p,
    .portfolio p,
    .reviews p,
    .contact p {
        font-size: 1rem;
    }

    /* Navigation */
    .mobile-menu-toggle {
        display: none;
    }

    .nav-container {
        flex-wrap: nowrap;
        padding: 1rem 20px;
    }

    .nav-logo {
        order: 1;
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .nav-logo h2 {
        font-size: 1.5rem;
    }

    .nav-menu {
        order: 2;
        display: flex;
        position: static;
        flex-direction: row;
        width: auto;
        background-color: transparent;
        box-shadow: none;
        padding: 0;
        margin: 0 2rem;
    }

    .mobile-menu-toggle {
        order: 3;
    }
    .nav-menu li {
        margin-left: 2rem;
    }

    .nav-menu a {
        padding: 0;
    }

    /* Responsive Design - Tablet only (768px to 1023px) */
    @media (min-width: 768px) and (max-width: 1023px) {
        /* Hero */
        .hero {
            text-align: center;
        }
    }

    /* About - Services List */
    .services-list {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Portfolio Grid */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Reviews list remains single column on tablet */
    .reviews-grid {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    /* Contact */
    .contact-content {
        grid-template-columns: 1fr;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .contact-details h3 {
        font-size: 1.1rem;
    }

    .contact-details p {
        font-size: 0.95rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive Design - Desktop */
@media (min-width: 1024px) {
    /* Typography */
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    h3 {
        font-size: 1.85rem;
    }

    h4 {
        font-size: 1.45rem;
    }

    p {
        font-size: 1.1rem;
    }

    .btn {
        padding: 14px 28px;
        font-size: 17px;
    }

    /* Reset section-specific styles for desktop */
    .about h2,
    .portfolio h2,
    .reviews h2,
    .contact h2 {
        font-size: 2.2rem;
    }

    .about h3,
    .portfolio h3,
    .reviews h3,
    .contact h3 {
        font-size: 1.85rem;
    }

    .about h4,
    .portfolio h4,
    .reviews h4,
    .contact h4 {
        font-size: 1.45rem;
    }

    .about p,
    .portfolio p,
    .reviews p,
    .contact p {
        font-size: 1.1rem;
    }

    .nav-container {
        max-width: none;
        margin: 0;
        padding: 1.3rem 20px 1.3rem 35px;
        width: 100%;
    }

    /* Hero */
    .hero {
        flex-direction: row;
        text-align: left;
        align-items: center;
        gap: 4rem;
        padding: 6rem 40px;
        position: relative; /* allow absolute-positioned image */
        overflow: hidden;
        min-height: 85vh; /* make section taller on desktop */
    }

    /* Soft left-to-right blend only over the text area, not the image */
    .hero::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 55%; /* only cover the left side */
        z-index: 1;
        background: linear-gradient(
            to right,
            rgba(0, 0, 0, 0.8) 0%,
            rgba(0, 0, 0, 0.62) 40%,
            rgba(0, 0, 0, 0.35) 70%,
            rgba(0, 0, 0, 0) 100%
        );
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .hero-content {
        flex: 1;
        margin-bottom: 0;
        position: relative;
        z-index: 2; /* above gradient */
        max-width: 720px;
    }

    .hero h1 {
        font-size: 3rem;
        text-shadow: 0 3px 12px rgba(0, 0, 0, 0.55),
            0 2px 4px rgba(0, 0, 0, 0.35);
    }

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

    .hero-buttons {
        justify-content: flex-start;
    }

    .hero-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: none; /* override mobile max-width */
        flex: none; /* no flex sizing when absolute */
        z-index: 0;
    }

    .hero-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        min-height: 100%;
        min-width: 100%;
        object-fit: cover;
        object-position: center 30%; /* bias down so more lower part shows */
        border-radius: 0;
        box-shadow: none;
        transition: opacity 0.5s ease;
        z-index: 0;
    }

    /* About */
    /* Make about section slightly wider on desktop */
    .about .container {
        max-width: 1400px;
    }

    .about-content {
        flex-direction: row;
        align-items: center;
        gap: 6rem;
        margin-left: 125px; /* shift content right for better centering */
    }

    .about-text {
        flex: 1;
    }

    .about-text p {
        flex: 1;
        font-size: 1.2rem;
    }

    .about-image {
        flex: 1;
        justify-content: flex-start; /* left align avatar on desktop */
        align-items: flex-start;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Larger avatar on desktop for stronger presence */
    .about-image img {
        width: 240px;
        height: 240px;
        object-fit: cover;
        object-position: center;
    }

    /* Center the name directly under the avatar on desktop */
    .about-image p {
        width: 240px; /* match avatar width */
        text-align: center;
        margin-left: 0;
    }

    /* Portfolio Grid */
    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .portfolio-item img {
        height: 28vw;
        max-height: 420px;
        min-height: 250px;
        object-fit: cover;
    }

    /* Reviews list remains single column on desktop */
    .reviews-grid {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
    }

    /* Contact */
    .contact-info {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-details h3 {
        font-size: 1.1rem;
    }

    .contact-details p {
        font-size: 0.95rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Animation and Transitions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.service-card,
.portfolio-item,
.review-card {
    animation: fadeInUp 0.8s ease-out;
}

/* Enhanced contrast for better readability */
.about {
    background-color: #f2f2f0;
}

.contact {
    background-color: #f2f2f0;
}

.service-card,
.contact-form,
.contact-item,
.stat {
    background-color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-item {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
}

.navbar {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

/* Smooth transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease,
        border-color 0.3s ease, box-shadow 0.3s ease;
}

.write-review-section {
    margin: 2rem auto;
    max-width: 500px;
    text-align: center;
}
#review-form {
    margin: 0 auto;
}
#review-form .form-group {
    text-align: left;
}
