@import url('https://fonts.googleapis.com/css2?family=Epilogue:wght@400;600;800&family=Space+Mono:wght@400;700&display=swap');

:root {
    --bg-primary: #F4F4F4; /* Paper White */
    --bg-secondary: #E5E5E5; /* Concrete */
    --text-primary: #1C1B54; /* Deep Navy from Logo */
    --text-secondary: #5A5A6A; /* Graphite with a slight cool blue tint */
    --accent: #00A1E0; /* Cyan from Logo */
    --grid-line: #D8D8E5; /* Light grid line with a slight navy tint */
    
    --font-display: 'Epilogue', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scrollbar-gutter: stable;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-display);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Structural Grid */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--grid-line);
}

.grid-cell {
    padding: 4rem 5%;
}

.grid-cell.border-right {
    border-right: 1px solid var(--grid-line);
}

/* Technical Label */
.tech-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    display: block;
    margin-bottom: 1rem;
}

.tech-label::before {
    content: '[ ';
}

.tech-label::after {
    content: ' ]';
}

/* Navbar (New Design) */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s, backdrop-filter 0.3s, border-color 0.3s;
    background-color: transparent; /* Transparent initially if it's over hero */
}

/* We need it to be white normally, unless scrolled */
.navbar {
    background-color: var(--bg-primary); /* Keep it solid since hero is below it */
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background-color: rgba(244, 244, 244, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--grid-line);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1000px;
    height: 80px;
    padding: 0 5%;
}

.logo {
    font-weight: 800;
    font-size: 1.25rem;
    text-transform: uppercase;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s;
}

.logo:hover {
    background-color: var(--bg-secondary);
}

.nav-desktop-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px; /* Invisible hover bridge */
}

.dropdown-content {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--bg-primary);
    min-width: 260px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--grid-line);
    border-radius: 12px;
    padding: 0.5rem;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 5px;
    pointer-events: none;
}

.nav-dropdown:hover .dropdown-content {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.dropdown-item {
    display: block;
    padding: 0.8rem 1.2rem;
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s, color 0.2s;
    border-radius: 6px;
    margin-bottom: 2px;
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

.dropdown-item:hover {
    background-color: var(--bg-secondary);
    color: var(--accent);
}

.btn-ghost:hover {
    background-color: var(--bg-secondary);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    background-color: var(--text-primary);
    color: var(--bg-primary) !important;
    border: 1px solid var(--text-primary);
    transition: background-color 0.2s, transform 0.2s;
    cursor: pointer;
}

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

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    background-color: transparent;
    color: var(--text-primary) !important;
    border: 1px solid var(--grid-line);
    transition: background-color 0.2s, border-color 0.2s;
    cursor: pointer;
}

.btn-outline:hover {
    background-color: var(--bg-secondary);
    border-color: var(--text-primary);
}

.wordmark-icon {
    height: 1rem;
    width: auto;
    display: block;
}

/* Mobile Menu Button & SVG Icon */
.mobile-menu-btn {
    display: none;
    background: transparent;
    border: 1px solid var(--grid-line);
    border-radius: 6px;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--text-primary);
    transition: background-color 0.2s;
}

.mobile-menu-btn:hover {
    background-color: var(--bg-secondary);
}

.menu-toggle-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease-in-out;
}

.menu-toggle-icon.open {
    transform: rotate(-45deg);
}

.menu-toggle-path-1, .menu-toggle-path-2 {
    transition: stroke-dasharray 0.3s ease-in-out, stroke-dashoffset 0.3s ease-in-out;
}

.menu-toggle-path-1 {
    stroke-dasharray: 12 63;
}

.menu-toggle-icon.open .menu-toggle-path-1 {
    stroke-dasharray: 20 300;
    stroke-dashoffset: -32.42px;
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 80px;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    background-color: rgba(244, 244, 244, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.97);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0.3s ease-out;
    border-top: 1px solid var(--grid-line);
}

.mobile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.mobile-menu-content {
    padding: 1.5rem 5%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    height: 100%;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-links .btn-ghost {
    justify-content: flex-start;
    padding: 1rem;
    font-size: 1.1rem;
}

.mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.w-full {
    width: 100%;
}

/* Hero Section */
.hero {
    margin-top: 80px; /* navbar height */
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* crucial to clip the translated background */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 130%; /* taller to allow translation without revealing whitespace */
    background: url('images/hero.jpg') center/cover no-repeat;
    z-index: 0;
    will-change: transform;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-text-block {
    padding: 6rem 5%;
}

.hero h1.hero-title-light {
    font-size: clamp(3rem, 7vw, 7.5rem);
    max-width: 1300px;
    margin-bottom: 2rem;
    color: #FFFFFF;
}

.btn-light {
    background-color: transparent;
    color: #FFFFFF;
    border: 1px solid #FFFFFF;
}

.btn-light:hover {
    background-color: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.stat-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-box:last-child {
    border-right: none;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-desc-light {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

/* Content Sections */
.section {
    border-bottom: 1px solid var(--grid-line);
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 5rem);
    margin-bottom: 2rem;
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.body-text {
    color: var(--text-secondary);
    max-width: 800px;
    margin-bottom: 1.5rem;
}

/* Service Card (Industrial List Style) */
.service-list {
    display: flex;
    flex-direction: column;
}

.service-row {
    display: flex;
    border-bottom: 1px solid var(--grid-line);
    transition: background-color 0.3s;
}

.service-row:hover {
    background-color: var(--bg-secondary);
}

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

.service-number {
    width: 100px;
    padding: 2rem;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
    border-right: 1px solid var(--grid-line);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-info {
    flex: 1;
    padding: 3rem 2rem;
}

.service-info h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.service-image {
    width: 350px;
    border-left: 1px solid var(--grid-line);
}

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

/* Contact Grid Layout */
.contact-card-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    border: 1px solid var(--grid-line);
    background-color: var(--bg-secondary);
    text-align: center;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s;
    text-decoration: none;
    color: inherit;
}

.contact-card-main:hover {
    background-color: var(--grid-line);
}

.contact-card-main .contact-icon {
    width: 32px;
    height: 32px;
    color: var(--accent);
    margin-bottom: 1rem;
}

.contact-number {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: var(--font-display);
}

.contact-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.contact-card-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    border: 1px solid var(--grid-line);
    background-color: var(--bg-secondary);
    text-align: center;
}

.contact-icon-small {
    width: 24px;
    height: 24px;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .contact-grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Minimal Footer (React Translation) */
.footer-minimal {
    position: relative;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    padding: 4rem 5%;
}

.footer-minimal-wrapper {
    width: 100%;
    margin: 0 auto;
    position: relative;
    background: radial-gradient(35% 80% at 30% 0%, rgba(255,255,255,0.03), transparent);
}

.footer-divider {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.15);
    width: 100%;
}

.footer-grid-minimal {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    padding: 3rem 0;
}

.footer-col-main {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-logo-icon {
    display: inline-flex;
    color: var(--bg-primary);
    opacity: 0.5 !important;
}

.footer-desc {
    font-family: var(--font-mono);
    font-size: 0.875rem; /* text-sm */
    color: rgba(255, 255, 255, 0.6);
    max-width: 24rem; /* max-w-sm */
    line-height: 1.4;
}

.footer-socials {
    display: flex;
    gap: 0.5rem;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem; /* p-1.5 */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.375rem; /* rounded-md */
    color: var(--bg-primary);
    transition: background-color 0.2s;
}

.footer-socials a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-col-links {
    grid-column: span 3;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.footer-link-title {
    font-family: var(--font-display);
    font-size: 0.75rem; /* text-xs */
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 0.25rem; /* mb-1 */
    font-weight: 600;
}

.footer-link-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem; /* gap-1 */
}

.footer-link-list a {
    font-family: var(--font-mono);
    font-size: 0.875rem; /* text-sm */
    color: var(--bg-primary);
    padding: 0.25rem 0; /* py-1 */
    width: max-content;
    transition: text-decoration 0.2s;
}

.footer-link-list a:hover {
    text-decoration: underline;
}

.footer-bottom-minimal {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem; /* gap-2 */
    padding-top: 1.5rem; /* pt-2 */
    padding-bottom: 0; /* pb-5 */
}

.footer-bottom-minimal p {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.875rem; /* text-sm */
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-minimal a {
    color: var(--bg-primary);
    text-decoration: none;
}

@media (min-width: 768px) {
    .footer-col-main {
        grid-column: span 4;
    }
    .footer-col-links {
        grid-column: span 1;
    }
}

/* Utilities */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-family: var(--font-mono);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border: 1px solid var(--text-primary);
    transition: all 0.3s;
    cursor: pointer;
}

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

/* Testimonial Cards (Based on provided React Component) */
.review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 0 5% 4rem 5%;
}

.testimonial-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid rgba(28, 27, 84, 0.1);
    background-color: var(--bg-primary);
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    min-height: 250px;
}

.testimonial-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.testimonial-quote-mark {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: rgba(90, 90, 106, 0.15);
    line-height: 1;
}

.testimonial-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: space-between;
    height: 100%;
    position: relative;
    z-index: 2;
}

.testimonial-stars {
    display: flex;
    gap: 0.25rem;
}

.testimonial-stars svg {
    width: 16px;
    height: 16px;
    fill: #facc15;
    color: #facc15;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.2rem;
    overflow: hidden;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author-info {
    display: flex;
    flex-direction: column;
}

.testimonial-author-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    text-transform: none;
    letter-spacing: normal;
}

.testimonial-author-info p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* Bento Grid Layout */
.bento-section {
    padding: 0;
    border-bottom: 1px solid var(--grid-line);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0; 
}

.bento-item {
    position: relative;
    border-right: 1px solid var(--grid-line);
    border-bottom: 1px solid var(--grid-line);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--bg-primary);
    min-height: 450px;
}

/* Row 1 ends at Item 2. Row 2 ends at Item 5. */
.bento-item:nth-child(2),
.bento-item:nth-child(5) {
    border-right: none;
}

/* Row 2 is the last row, no bottom border */
.bento-item:nth-child(3),
.bento-item:nth-child(4),
.bento-item:nth-child(5) {
    border-bottom: none;
}

/* Make the first item span 2 columns */
.bento-item:nth-child(1) {
    grid-column: span 2;
}

.bento-item .bento-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bento-item .bento-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Increased visibility while keeping text readable */
    transition: opacity 0.5s ease, transform 0.8s ease;
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0) scale(1);
}

.bento-item:hover .bento-image img {
    opacity: 0.5; /* Increased hover visibility */
    transform: translateZ(0) scale(1.05);
}

.bento-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    /* Light gradient to match bg-primary (#F4F4F4) */
    background: linear-gradient(to top, rgba(244,244,244,1) 0%, rgba(244,244,244,0.9) 30%, transparent 100%);
}

.bento-number {
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--accent);
    font-weight: 700;
}

.bento-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
}

.bento-item:nth-child(1) .bento-content h3 {
    font-size: 2.5rem; /* Larger title for the wide item */
}

.bento-content .tech-label {
    margin-bottom: 1rem;
    display: inline-block;
}

.bento-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 95%;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
    .grid-container, .review-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-cell.border-right, .review-card {
        border-right: none;
        border-bottom: 1px solid var(--grid-line);
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-box {
        padding: 2rem;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .stat-box:last-child {
        border-bottom: none;
    }
    
    .service-row {
        flex-wrap: wrap;
    }
    
    .service-image {
        width: 100%;
        height: 300px;
        border-left: none;
        border-top: 1px solid var(--grid-line);
    }
    
    .service-number {
        border-bottom: 1px solid var(--grid-line);
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .bento-item:nth-child(1) {
        grid-column: span 2;
    }

    
    .bento-item:nth-child(3n) {
        border-right: 1px solid var(--grid-line); /* Reset */
    }
    
    .bento-item:nth-child(2n) {
        border-right: none;
    }
}

@media (max-width: 768px) {
    .logo span {
        font-size: 0.95rem;
    }
    .logo img {
        height: 36px !important;
    }
    .nav-desktop-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-text-block {
        padding: 4rem 5%;
    }
    
    .hero h1.hero-title-light {
        font-size: 2.2rem;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .section-title {
        font-size: 2rem;
        word-wrap: break-word;
    }
    
    .contact-number {
        font-size: 1.8rem;
        word-wrap: break-word;
    }
    
    .bento-content h3 {
        font-size: 1.4rem;
        word-wrap: break-word;
    }
    
    .bento-item:nth-child(1) .bento-content h3 {
        font-size: 1.8rem;
        word-wrap: break-word;
    }
    
    .bento-content {
        padding: 1.5rem;
    }
    
    .bento-number {
        top: 1.5rem;
        left: 1.5rem;
    }
    
    .modal-body h2 {
        font-size: 2rem;
        word-wrap: break-word;
    }
    
    .modal-body h3 {
        font-size: 1.5rem;
        word-wrap: break-word;
    }
    
    .modal-body {
        padding: 2rem 5% 3rem 5%;
    }
    
    .lead-text {
        font-size: 1.1rem;
    }
    
    .body-text, .bento-content p, .testimonial-text, .service-info p {
        font-size: 0.95rem;
    }
    
    .stat-box {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .review-text {
        font-size: 1.15rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .bento-item:nth-child(1) {
        grid-column: span 1;
    }
    
    .bento-item {
        border-right: none !important;
        min-height: 300px;
    }
    
    .footer-grid-minimal {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }
    
    h1, h2, h3, h4, p, a, span {
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Full Screen Service Modals */
.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-primary);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.service-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-header-image {
    width: 100%;
    height: 40vh;
    min-height: 300px;
    position: relative;
}

.modal-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.modal-header-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, var(--bg-primary) 100%);
}

.modal-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 5% 5rem 5%;
    position: relative;
    z-index: 2;
    margin-top: -30px;
}

.modal-grid-2 {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 3rem;
}

.modal-side-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.modal-side-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.modal-body h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.modal-body h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.modal-body p {
    font-size: 1.35rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.8rem;
}

.modal-full-text {
    max-width: 900px;
}

.modal-body ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
}

.modal-body ul li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.2rem;
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-body ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 1.4rem;
}

@media (max-width: 992px) {
    .modal-grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .modal-side-image {
        min-height: 300px;
    }
    .modal-body h2 {
        font-size: 2.8rem;
    }
    .modal-body h3 {
        font-size: 2rem;
    }
    .modal-body p, .modal-body ul li {
        font-size: 1.15rem;
    }
}

@media (max-width: 768px) {
    .modal-body h2 {
        font-size: 1.8rem;
        line-height: 1.2;
    }
    .modal-body h3 {
        font-size: 1.4rem;
    }
    .modal-body p, .modal-body ul li {
        font-size: 0.95rem;
    }
    .modal-body ul li {
        padding-left: 1.5rem;
        margin-bottom: 0.8rem;
    }
    .modal-body ul li::before {
        font-size: 1.1rem;
    }
}

.close-modal {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--grid-line);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2010;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    line-height: 1;
    padding-bottom: 4px;
}

@media (max-width: 768px) {
    .close-modal {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
}

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

/* Ensure body doesn't scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Make bento items clickable */
.bento-item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

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