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

:root {
    --gold-start: #f8cf89;
    --gold-end: #d19e4a;
    --text-main: #ffffff;
    --text-muted: #d0d0d0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: #0a0e17;
    color: var(--text-main);
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-image: linear-gradient(
        to right, 
        rgba(10, 14, 23, 0.9) 0%,
        rgba(10, 14, 23, 0.6) 50%,
        rgba(10, 14, 23, 0.2) 100%
    ), url('images/roofing-hero-rooftop-upscaled.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to right,
        rgba(10, 14, 23, 0.9) 0%,
        rgba(10, 14, 23, 0.58) 50%,
        rgba(10, 14, 23, 0.18) 100%
    );
    pointer-events: none;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 4rem;
    width: 100%;
    border-bottom: 1px solid var(--glass-border);
    /* subtle gradient for nav */
    background: linear-gradient(to bottom, rgba(10, 14, 23, 0.8), rgba(10, 14, 23, 0.0));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    position: relative;
    z-index: 10;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-main);
    text-decoration: none;
}

.brand-logo {
    transition: color 0.3s ease, transform 0.3s ease;
}

.brand-logo:hover {
    color: var(--gold-start);
    transform: translateY(-1px);
}

.logo-mark {
    position: relative;
    display: inline-flex;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-start) 0%, var(--gold-end) 100%);
    box-shadow: 0 10px 24px rgba(240, 195, 106, 0.25);
}

.logo-mark::before {
    content: '';
    position: absolute;
    inset: 4px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 72 72'%3E%3Cpath d='M14 45L33 25L58 45' fill='none' stroke='%230a0e17' stroke-width='6.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M22 40L36 30L52 40' fill='none' stroke='%230a0e17' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

.logo-mark::after {
    content: '';
    display: none;
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--gold-start);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold-start);
    border-radius: 2px;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.menu-toggle:hover {
    border-color: rgba(248, 207, 137, 0.65);
    background: rgba(248, 207, 137, 0.12);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--text-main);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mobile-quote-link {
    display: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-quote-nav {
    background: linear-gradient(90deg, var(--gold-start) 0%, var(--gold-end) 100%);
    color: #111;
    font-size: 0.9rem;
    padding: 0.7rem 1.8rem;
    box-shadow: 0 4px 15px rgba(209, 158, 74, 0.2);
}

.btn-quote-nav:hover {
    box-shadow: 0 6px 20px rgba(209, 158, 74, 0.4);
    transform: translateY(-2px);
}

.btn-quote-main {
    background: linear-gradient(90deg, var(--gold-start) 0%, var(--gold-end) 100%);
    color: #111;
    font-size: 1.1rem;
    padding: 1.2rem 2.8rem;
    box-shadow: 0 8px 25px rgba(209, 158, 74, 0.25);
    border: none;
}

.btn-quote-main:hover {
    box-shadow: 0 10px 30px rgba(209, 158, 74, 0.4);
    transform: translateY(-2px);
}

.btn-portfolio {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-size: 1.1rem;
    padding: 1.2rem 2.8rem;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-portfolio:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Hero Content */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 4rem;
    max-width: 1200px;
    z-index: 5;
    margin-top: -5vh;
}

.tag-pill {
    display: inline-block;
    align-self: flex-start;
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--gold-start);
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero-heading {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 1.8rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.gradient-text {
    background: linear-gradient(90deg, var(--gold-start) 0%, var(--gold-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtext {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-heading {
        font-size: 4rem;
    }
    
    .nav-links {
        position: fixed;
        inset: 0;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0.35rem;
        padding: 7rem 2rem 2rem;
        border: 0;
        border-radius: 0;
        background: rgba(10, 14, 23, 0.98);
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-12px);
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
        z-index: 20;
    }

    .navbar.menu-open .nav-links {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links a {
        width: 100%;
        max-width: 420px;
        margin: 0 auto;
        padding: 1.05rem 1rem;
        border-radius: 6px;
        font-size: 1.15rem;
        text-align: center;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(248, 207, 137, 0.1);
    }

    .nav-links a.active::after {
        display: none;
    }

    .btn-quote-nav {
        display: none;
    }

    .mobile-quote-link {
        display: flex;
        justify-content: center;
        margin-top: 0.35rem;
        background: linear-gradient(90deg, var(--gold-start) 0%, var(--gold-end) 100%);
        color: #111 !important;
        font-weight: 800;
        text-align: center;
    }

    .menu-toggle {
        display: inline-flex;
        position: relative;
        z-index: 30;
    }

    .brand-logo {
        position: relative;
        z-index: 30;
    }

    .navbar.menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

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

    .navbar.menu-open .menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1.2rem 2rem;
    }

    .logo {
        font-size: 1.2rem;
        gap: 0.6rem;
    }

    .logo-mark {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }
    
    .hero-content {
        padding: 0 2rem;
        margin-top: 0;
    }
    
    .hero-heading {
        font-size: 3rem;
    }
    
    .hero-subtext {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
}

/* Services Section */
.services-section {
    padding: 8rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.services-header {
    text-align: center;
    margin-bottom: 6rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.services-hero-details {
    margin-top: 3rem;
}

.services-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 2rem;
}

.service-stat {
    padding: 1.35rem 1rem;
    background: rgba(10, 14, 23, 0.62);
}

.service-stat span {
    display: block;
    color: var(--gold-start);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.45rem;
}

.service-stat small {
    display: block;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.services-hero-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 8rem;
}

.service-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.service-item.reverse .service-image-wrapper {
    order: 2;
}

.service-item.reverse .service-content {
    order: 1;
}

.service-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--glass-border);
    box-shadow: 0 18px 36px rgba(0,0,0,0.32);
}

.service-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.service-image-wrapper:hover .service-image {
    transform: scale(1.05);
}

/* Bright service images */
.placeholder-img-1 { 
    background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=90'); 
    background-size: cover;
    background-position: center;
}
.placeholder-img-2 { 
    background-image: url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=90'); 
    background-size: cover;
    background-position: center;
}
.placeholder-img-3 { 
    background-image: url('https://images.unsplash.com/photo-1527018601619-a508a2be00cd?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=90'); 
    background-size: cover;
    background-position: center;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.fade-in {
    opacity: 0;
}
.fade-in.is-visible {
    opacity: 1;
}

.slide-in-left {
    transform: translateX(-50px);
}
.slide-in-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    transform: translateX(50px);
}
.slide-in-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-up {
    transform: translateY(50px);
}
.slide-in-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.service-image-wrapper.slide-in-left {
    transform: translateX(-90px) scale(0.96);
}

.service-image-wrapper.slide-in-right {
    transform: translateX(90px) scale(0.96);
}

.service-image-wrapper.is-visible {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.service-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-copy .service-title,
.service-copy .service-desc,
.service-copy .service-features,
.service-copy .btn-text {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.service-copy.is-visible .service-title,
.service-copy.is-visible .service-desc,
.service-copy.is-visible .service-features,
.service-copy.is-visible .btn-text {
    opacity: 1;
    transform: translateY(0);
}

.service-copy.is-visible .service-desc {
    transition-delay: 0.08s;
}

.service-copy.is-visible .service-features {
    transition-delay: 0.16s;
}

.service-copy.is-visible .btn-text {
    transition-delay: 0.24s;
}

.service-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.service-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.service-features {
    list-style: none;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    color: var(--text-main);
    font-weight: 500;
}

.service-features li::before {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: var(--gold-start);
}

.btn-text {
    color: var(--gold-start);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-text:hover {
    color: var(--gold-end);
    gap: 0.8rem;
}

@media (max-width: 992px) {
    .slide-in-left,
    .slide-in-right,
    .service-image-wrapper.slide-in-left,
    .service-image-wrapper.slide-in-right {
        transform: translateY(24px) scale(0.98);
    }

    .slide-in-left.is-visible,
    .slide-in-right.is-visible,
    .service-image-wrapper.is-visible {
        transform: translateY(0) scale(1);
    }

    .service-item, .service-item.reverse {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .service-item.reverse .service-image-wrapper {
        order: 1;
    }
    
    .service-item.reverse .service-content {
        order: 2;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .services-section {
        padding: 6rem 2rem;
    }

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

    .services-hero {
        min-height: 760px;
        padding: 10rem 2rem 5rem;
        background-position: 66% center;
    }
}

/* Future Project Section */
.future-project-section {
    padding: 8rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.project-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 4rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.project-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.project-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.project-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.project-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold-start);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 600;
}

.project-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/10;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.project-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 14, 23, 0.2) 0%, rgba(10, 14, 23, 0.6) 100%), url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?ixlib=rb-4.0.3&auto=format&fit=crop&w=1000&q=80');
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}

.project-container:hover .project-image {
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .project-container {
        grid-template-columns: 1fr;
        padding: 2rem;
        gap: 3rem;
    }
    
    .future-project-section {
        padding: 6rem 2rem;
    }
}

/* Reviews Section */
.reviews-section {
    padding: 8rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

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

.review-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    background: rgba(255, 255, 255, 0.05);
}

.stars {
    color: var(--gold-start);
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.review-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-style: italic;
    flex-grow: 1;
}

.reviewer {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.reviewer-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold-start);
}

.reviewer-info {
    display: flex;
    flex-direction: column;
}

.reviewer-name {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-main);
}

.reviewer-location {
    font-size: 0.85rem;
    color: var(--gold-end);
}

@media (max-width: 992px) {
    .reviews-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    .reviews-section {
        padding: 6rem 2rem;
    }
}

/* About Section */
.about-section {
    padding: 8rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

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

.about-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.about-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 14, 23, 0.05) 0%, rgba(10, 14, 23, 0.35) 100%), url('images/roofing-hero-rooftop-upscaled.png');
    background-size: cover;
    background-position: 64% center;
}

.experience-badge {
    position: absolute;
    bottom: -1px;
    right: -1px;
    background: linear-gradient(135deg, #0d0f18 0%, #05070a 100%);
    padding: 2rem;
    border-top-left-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    border-left: 1px solid var(--glass-border);
}

.exp-years {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    color: var(--gold-start);
    margin-bottom: 0.5rem;
}

.exp-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.about-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
}

@media (max-width: 992px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .about-image-wrapper {
        order: 2;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .about-content {
        order: 1;
    }
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: #0d0f18;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 3rem;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
}

.close-modal:hover {
    color: var(--text-main);
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

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

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.form-group input, .form-group select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 0.8rem 1rem;
    color: var(--text-main);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--gold-start);
    background: rgba(255, 255, 255, 0.08);
}

.form-group select option {
    background: #0d0f18;
    color: var(--text-main);
}

/* Portfolio Page */
.solid-nav {
    background: rgba(10, 14, 23, 0.95);
    border-bottom: 1px solid var(--glass-border);
}

.portfolio-header {
    padding: 10rem 4rem 4rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.services-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    max-width: none;
    min-height: 720px;
    margin: 0;
    padding: 12rem 4rem 5rem;
    text-align: left;
    overflow: hidden;
    background-image: url('images/services-roofer-hero.png');
    background-size: cover;
    background-position: center;
    isolation: isolate;
}

.services-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(8, 12, 20, 0.06) 0%, rgba(8, 12, 20, 0.03) 52%, rgba(8, 12, 20, 0) 100%),
        linear-gradient(180deg, rgba(8, 12, 20, 0.16) 0%, rgba(8, 12, 20, 0.02) 34%, rgba(8, 12, 20, 0.38) 100%);
}

.services-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    height: 160px;
    background: linear-gradient(180deg, rgba(8, 12, 20, 0) 0%, #080c14 100%);
}

.services-hero > * {
    max-width: 760px;
}

.services-hero .section-title,
.services-hero .section-subtitle,
.services-hero .services-hero-details {
    margin-left: clamp(1rem, 5vw, 6rem);
}

.services-hero .section-title {
    max-width: 680px;
}

.services-hero .section-subtitle {
    max-width: 720px;
}

.services-hero .section-subtitle {
    color: rgba(247, 248, 251, 0.86);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.55);
}

.services-hero .services-hero-details {
    width: min(720px, 100%);
}

@media (max-width: 992px) {
    .services-hero {
        min-height: 760px;
        padding: 10rem 2rem 5rem;
        background-position: 66% center;
    }

    .services-hero .section-title,
    .services-hero .section-subtitle,
    .services-hero .services-hero-details {
        margin-left: 0;
    }
}

.portfolio-grid-section {
    padding: 2rem 4rem 8rem;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

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

.portfolio-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}

.portfolio-category {
    color: var(--gold-start);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* Project Modal Specific Styles */
.project-modal-content {
    max-width: 1000px;
    padding: 0;
    overflow: hidden;
    background: #0a0e17;
}

.project-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
}

.project-modal-details {
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-modal-image-wrapper {
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.project-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-modal-desc {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 1.05rem;
}

@media (max-width: 992px) {
    .project-modal-grid {
        grid-template-columns: 1fr;
    }
    .project-modal-image-wrapper {
        min-height: 300px;
        order: -1; /* Image on top for mobile */
    }
    .project-modal-details {
        padding: 3rem 2rem;
    }
}

/* Trust Badges */
.trust-badges-section {
    background: #05070a;
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.trust-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
}

.trust-text {
    color: var(--gold-start);
    font-size: 0.85rem;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 2rem;
}

.badges-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .badges-grid {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Process Section */
.process-section {
    padding: 8rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.process-step {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: #0d0f18;
    border: 2px solid var(--gold-start);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gold-start);
    margin: 0 auto 1.5rem;
    box-shadow: 0 0 20px rgba(220, 172, 86, 0.2);
}

.step-title {
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.step-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .process-grid {
        grid-template-columns: 1fr 1fr;
    }
    .process-grid::before {
        display: none;
    }
}
@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
    }
}

/* FAQ Section */
.faq-section {
    padding: 4rem 4rem 8rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-header {
    text-align: center;
    margin-bottom: 4rem;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--gold-start);
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding-bottom: 1.5rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Floating Action Button */
.fab-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 999;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    animation: pulse-fab 2s infinite;
}

@keyframes pulse-fab {
    0% { box-shadow: 0 0 0 0 rgba(220, 172, 86, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(220, 172, 86, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 172, 86, 0); }
}

@media (max-width: 768px) {
    .fab-btn {
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* Before / After Slider */
.ba-section {
    padding: 2rem 4rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.ba-header {
    text-align: center;
    margin-bottom: 3rem;
}

.ba-slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.ba-slider-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-image-after {
    z-index: 1;
}

.ba-image-before {
    z-index: 2;
    filter: grayscale(0.45) sepia(0.5) saturate(0.45) brightness(0.55) contrast(1.35);
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.ba-before-wear {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    background:
        radial-gradient(circle at 20% 24%, rgba(77, 78, 50, 0.65) 0 7%, transparent 16%),
        radial-gradient(circle at 36% 62%, rgba(47, 49, 35, 0.56) 0 9%, transparent 18%),
        radial-gradient(circle at 70% 32%, rgba(82, 84, 58, 0.42) 0 8%, transparent 17%),
        linear-gradient(22deg, transparent 0 42%, rgba(18, 20, 16, 0.62) 43% 44%, transparent 46%),
        linear-gradient(157deg, transparent 0 58%, rgba(18, 20, 16, 0.5) 59% 60%, transparent 62%),
        repeating-linear-gradient(105deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 18px),
        rgba(20, 18, 14, 0.2);
    mix-blend-mode: multiply;
}

.ba-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    opacity: 0;
    cursor: ew-resize;
    margin: 0;
}

.ba-slider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--gold-start);
    z-index: 3;
    transform: translateX(-50%);
    pointer-events: none;
    box-shadow: 0 0 10px rgba(220, 172, 86, 0.5);
}

.ba-slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: var(--gold-start);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    border: 2px solid #fff;
}

.ba-slider-button svg {
    color: #05070a;
    width: 24px;
    height: 24px;
}

.ba-labels {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    display: flex;
    justify-content: space-between;
    z-index: 3;
    pointer-events: none;
}

.ba-label {
    background: rgba(10, 14, 23, 0.8);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
    .ba-section {
        padding: 2rem 2rem;
    }
}

/* Chat Window */
.chat-window {
    position: fixed;
    bottom: 100px;
    right: 2rem;
    width: 350px;
    background: #0d0f18;
    border: 1px solid var(--gold-start);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 20px rgba(220, 172, 86, 0.1);
    z-index: 998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-window.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
}

.chat-header {
    background: linear-gradient(90deg, var(--gold-start) 0%, var(--gold-end) 100%);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-agent {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-start);
}

.close-chat {
    background: none;
    border: none;
    color: #111;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    padding: 1.5rem;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(255,255,255,0.02);
}

.chat-message {
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 85%;
}

.chat-message.agent {
    background: rgba(220, 172, 86, 0.1);
    border: 1px solid rgba(220, 172, 86, 0.2);
    align-self: flex-start;
    border-top-left-radius: 0;
}

.chat-input-area {
    padding: 1rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 0.5rem;
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
}

.chat-input:focus {
    border-color: var(--gold-start);
}

.chat-send {
    background: var(--gold-start);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.chat-send:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .chat-window {
        bottom: 80px;
        right: 1.5rem;
        left: 1.5rem;
        width: auto;
    }
}

/* Footer Section */
.footer {
    width: 100%;
    background-color: #05070a;
    border-top: 1px solid var(--glass-border);
    padding: 5rem 4rem 2rem;
    color: var(--text-muted);
}

.footer-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-main);
    text-decoration: none;
    margin-bottom: 1rem;
}

.footer-logo .logo-mark {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
}

.footer-logo .logo-mark::before {
    inset: 4px;
}

.footer-desc {
    line-height: 1.6;
    max-width: 400px;
    font-size: 0.95rem;
}

.footer-heading {
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

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

.footer-contact p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.footer-bottom {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

.footer-legal a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 1.5rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--text-main);
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 4rem 2rem 1.5rem;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .footer-legal a {
        margin: 0 0.75rem;
    }
}
