/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

:root {
    /* Will be updated via JS to match fixed navbar height */
    --nav-height: 100px;
}

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

/* Typography - Improved Harmony */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

/* Ensure clear separation between titles and paragraphs */
h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p {
    margin-top: 1.25rem;
}

/* Additional spacing for better visual hierarchy */
.hero-title {
    margin-bottom: 2rem;
}

.section-title {
    margin-bottom: 2rem;
}

.about-subtitle {
    margin-bottom: 1.75rem;
}

.service-title {
    margin-bottom: 1.5rem;
}

/* Desktop-specific enhanced spacing */
@media (min-width: 1024px) {
    .hero-title {
        margin-bottom: 3rem !important;
        font-size: 5.94rem !important;
        padding: 35px 50px !important;
        border-radius: 40px !important;
        line-height: 0.85 !important;
        letter-spacing: -0.04em !important;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
        -webkit-hyphens: none !important;
        -ms-hyphens: none !important;
        max-width: 1200px !important;
    }
    
    .hero-subtitle {
        margin-top: 1rem !important;
        margin-bottom: 2.5rem !important;
        font-size: 1.1rem !important;
        max-width: 900px !important;
        padding: 20px 30px !important;
        border-radius: 18px !important;
        font-weight: 400 !important;
    }
    
    h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p {
        margin-top: 1.5rem !important;
    }
    
    .section-title {
        margin-bottom: 2.5rem !important;
    }
    
    .about-subtitle {
        margin-bottom: 2rem !important;
    }
    
    .hero {
        align-items: center !important;
        padding-top: calc(var(--nav-height, 100px) + 60px) !important;
        padding-bottom: 80px !important;
    }
    
    .hero-content {
        margin-top: 0 !important;
        padding: 40px 20px !important;
    }
}

/* Ultra-wide desktop screens */
@media (min-width: 1440px) {
    .hero-title {
        font-size: 6.864rem !important;
        padding: 40px 60px !important;
        border-radius: 50px !important;
        line-height: 0.8 !important;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
        -webkit-hyphens: none !important;
        -ms-hyphens: none !important;
        max-width: 1400px !important;
    }
}

/* Consistent Spacing System */
.section-padding {
    padding: 120px 0;
}

.section-padding-medium {
    padding: 80px 0;
}

.section-padding-small {
    padding: 60px 0;
}

/* Buttons - Improved Proportions */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    min-height: 48px;
}

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

.btn-primary:hover {
    background: #164569;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(30, 91, 138, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-accent {
    background: #FFD700;
    color: #333;
    border: 2px solid #FFD700;
}

.btn-accent:hover {
    background: #e6c300;
    border-color: #e6c300;
    transform: translateY(-2px);
}

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

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
    min-height: 56px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Navigation - Improved Proportions */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(44, 90, 160, 0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo .logo {
    width: 180px;
    height: 120px;
    object-fit: contain;
    border-radius: 6px;
}

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

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-link:hover {
    color: #1E5B8A;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #1E5B8A;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    background: #d32f2f;
    color: white !important;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 15px;
    white-space: nowrap;
    min-width: fit-content;
}

.nav-cta:hover {
    background: #b71c1c;
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.nav-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.bar {
    width: 32px;
    height: 4px;
    background-color: #1E5B8A;
    margin: 4px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Hero Section - Enhanced Visual Impact */
.hero {
    margin-top: var(--nav-height, 100px);
    min-height: calc(100dvh - var(--nav-height, 100px));
    max-height: calc(100vh - var(--nav-height, 100px));
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1E5B8A;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(255,255,255,0.1), transparent);
    pointer-events: none;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/new/portada-roofing.jpeg') center center no-repeat;
    background-size: cover;
    z-index: 1;
    max-height: 100vh;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    text-align: center;
    color: white;
    padding: 40px 20px;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - var(--nav-height, 100px) - 120px);
}

.hero-title {
    font-size: min(7.92rem, max(4.62rem, 6.6vw));
    font-weight: 800;
    margin-bottom: min(12rem, 15vh);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: min(32px, 4vh) min(48px, 5vw);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: inline-block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    max-width: min(95vw, 1200px);
    text-align: center;
    transform-origin: center center;
    transform: scale(1);
}

.hero-subtitle {
    font-size: 1rem;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.6;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px 28px;
    color: #ffffff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    font-weight: 400;
    word-break: keep-all;
    overflow-wrap: break-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

.hero-actions {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 48px;
    margin-bottom: 40px;
    padding: 0 20px;
}

/* Removed red styling for last button - now using primary blue styling */



/* Section Headers - Improved Harmony */
.section-header {
    text-align: center;
    margin-bottom: 100px;
}

.section-title {
    font-size: clamp(3.5rem, 7vw, 5.5rem);
    color: #333;
    margin-bottom: 2rem;
    line-height: 1.1;
}

.section-subtitle {
    font-size: 1.3rem;
    color: #666;
    margin-bottom: 60px;
    font-weight: 400;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: #1E5B8A;
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
}

.section-divider::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #FFD700;
    border-radius: 1px;
}

/* About Section - Improved Proportions */
.about {
    padding: 120px 0;
    background: #f8f9fa;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-subtitle {
    font-size: 3.2rem;
    color: #1E5B8A;
    margin-bottom: 1.75rem;
    line-height: 1.2;
}

.about-description {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 80px;
    color: #555;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 20px;
}

.feature i {
    font-size: 2.2rem;
    color: #1E5B8A;
    width: 60px;
    text-align: center;
}

.feature h4 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.feature p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* Recognition and Awards Section */
.recognition {
    padding: 120px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.recognition::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1E5B8A, #FFD700, #1E5B8A, transparent);
}

.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.award-card {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border-top: 4px solid transparent;
    background-clip: padding-box;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.award-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1E5B8A, #FFD700, #1E5B8A);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.award-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.award-card:hover::before {
    transform: scaleX(1);
}

.award-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #1E5B8A, #164569);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    box-shadow: 0 10px 25px rgba(30, 91, 138, 0.3);
    transition: all 0.3s ease;
}

.award-card:hover .award-icon {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(30, 91, 138, 0.4);
}

.award-icon i {
    font-size: 2.5rem;
    color: white;
}

.award-title {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.3;
    font-weight: 600;
}

.award-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 1.1rem;
    flex-grow: 1;
}

.award-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    margin-top: auto;
}

.award-card:hover .award-badge {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.badge-text {
    position: relative;
}

.badge-text::before {
    content: '✓';
    margin-right: 8px;
    font-weight: bold;
}

/* Special styling for different award types */
.award-card:nth-child(1) .award-icon {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
}

.award-card:nth-child(1):hover .award-icon {
    box-shadow: 0 15px 35px rgba(211, 47, 47, 0.4);
}

.award-card:nth-child(1) .award-badge {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
}

.award-card:nth-child(1):hover .award-badge {
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

/* Services Section - Enhanced Visual Harmony */
.services {
    padding: 120px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1E5B8A, #FFD700, #1E5B8A, transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    border-top: 4px solid transparent;
    background-clip: padding-box;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1E5B8A, #FFD700, #1E5B8A);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #1E5B8A, #164569);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

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

.service-title {
    font-size: 2.4rem;
    color: #333;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.service-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 50px;
    font-size: 1rem;
    flex-grow: 1;
}

.service-image {
    margin-top: 24px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.service-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

/* Service Carousel Styles */
.service-carousel {
    margin-top: 24px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.service-carousel-wrapper {
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    height: 220px;
}

.service-carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
    will-change: transform;
}

.service-carousel-slide {
    width: 100%;
    flex-shrink: 0;
}

.service-carousel-slide img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.service-card:hover .service-carousel-slide img {
    transform: scale(1.1);
}

/* Service Carousel Controls */
.service-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.9), rgba(30, 74, 138, 0.9));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
}

.service-carousel:hover .service-carousel-btn {
    opacity: 1;
    visibility: visible;
}

.service-carousel-btn:hover {
    background: linear-gradient(135deg, rgba(30, 74, 138, 1), rgba(21, 58, 107, 1));
    transform: translateY(-50%) scale(1.1);
}

.service-prev-btn {
    left: 10px;
}

.service-next-btn {
    right: 10px;
}

/* Service Carousel Dots */
.service-carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    padding: 0 10px;
}

.service-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.service-carousel-dot {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 50%;
    background: rgba(44, 90, 160, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.service-carousel-dot:hover {
    background: rgba(44, 90, 160, 0.6);
    transform: scale(1.2);
}

.service-carousel-dot.active {
    background: #2c5aa0;
    transform: scale(1.3);
}

/* Hide controls for single image carousels */
.service-carousel.single-image .service-carousel-btn,
.service-carousel.single-image .service-carousel-controls {
    display: none;
}

/* Service Images Grid for multiple images */
.service-images-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 24px;
}

.service-images-grid .service-image {
    margin-top: 0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.service-images-grid .service-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-images-grid .service-image img {
    transform: scale(1.05);
}

/* Responsive grid for service images */
@media (min-width: 400px) {
    .service-images-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    
    .service-images-grid .service-image:first-child {
        grid-column: 1 / -1;
    }
    
    .service-images-grid .service-image:first-child img {
        height: 180px;
    }
    
    .service-images-grid .service-image:not(:first-child) img {
        height: 160px;
    }
}

/* Portfolio Section - Improved Grid Harmony */
.portfolio {
    padding: 120px 0;
    background: #f8f9fa;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
}

.portfolio-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    aspect-ratio: 4/3;
}

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

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 91, 138, 0.98), rgba(22, 69, 105, 0.95));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    text-align: center;
    padding: 20px;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

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

.portfolio-overlay h4 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.portfolio-overlay p {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.4;
    margin-top: 8px;
}

/* Video Showcase Styles */
.video-showcase {
    margin-top: 60px;
    display: flex;
    justify-content: center;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: min(400px, 90vw);
    max-height: min(70vh, 600px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    background: #000;
    aspect-ratio: 9/16; /* Portrait aspect ratio for vertical video */
}

.video-container video {
    width: 100%;
    height: 100%; /* Fill the container */
    object-fit: contain; /* Maintain aspect ratio without cropping */
    display: block;
}

/* Fullscreen video styling */
.video-container video:fullscreen,
.video-container video:-webkit-full-screen,
.video-container video:-moz-full-screen,
.video-container video:-ms-fullscreen {
    width: auto !important;
    height: auto !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    object-fit: contain !important; /* Maintain original vertical aspect ratio */
    background: #000;
    /* Ensure video is centered and properly sized for vertical content */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 91, 138, 0.9), rgba(22, 69, 105, 0.85));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 40px;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.video-play-button {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FFD700, #e6c300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
    position: relative;
    z-index: 3;
}

.video-play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.6);
}

.video-play-button i {
    font-size: 1.8rem;
    color: white;
    margin-left: 3px; /* Slight offset to center the play icon */
}

.video-overlay h4 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
}

.video-overlay p {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 400px;
}

/* Hide overlay when video is playing */
.video-container.video-playing .video-overlay {
    opacity: 0;
    pointer-events: none;
}

/* Video controls styling */
.video-container video::-webkit-media-controls-panel {
    background: rgba(0, 0, 0, 0.8);
}

.video-container video::-webkit-media-controls-current-time-display,
.video-container video::-webkit-media-controls-time-remaining-display {
    color: white;
}

/* Responsive Video Styles */
@media (max-width: 1024px) {
    .video-container {
        max-width: min(350px, 85vw);
        max-height: min(65vh, 550px);
    }

    .video-overlay h4 {
        font-size: 2.4rem;
    }

    .video-overlay p {
        font-size: 1.1rem;
    }

    .video-play-button {
        width: 70px;
        height: 70px;
    }

    .video-play-button i {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .video-showcase {
        margin-top: 50px;
    }

    .video-container {
        max-width: min(320px, 80vw);
        max-height: min(60vh, 500px);
        margin: 0 20px;
        aspect-ratio: 9/16;
    }

    .video-overlay {
        padding: 30px 20px;
    }

    .video-overlay h4 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .video-overlay p {
        font-size: 1rem;
        max-width: 300px;
    }

    .video-play-button {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .video-play-button i {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .video-showcase {
        margin-top: 40px;
    }

    .video-container {
        max-width: min(280px, 75vw);
        max-height: min(55vh, 450px);
        margin: 0 15px;
        border-radius: 16px;
        aspect-ratio: 9/16;
    }

    .video-overlay {
        padding: 20px 15px;
    }

    .video-overlay h4 {
        font-size: 1.6rem;
        margin-bottom: 0.75rem;
    }

    .video-overlay p {
        font-size: 0.9rem;
        max-width: 250px;
    }

    .video-play-button {
        width: 50px;
        height: 50px;
        margin-bottom: 15px;
    }

    .video-play-button i {
        font-size: 1.2rem;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .video-container {
        max-width: min(250px, 70vw);
        max-height: min(50vh, 400px);
        margin: 0 10px;
        border-radius: 12px;
        aspect-ratio: 9/16;
    }

    .video-overlay {
        padding: 15px 10px;
    }

    .video-overlay h4 {
        font-size: 1.4rem;
    }

    .video-overlay p {
        font-size: 0.85rem;
        max-width: 200px;
    }

    .video-play-button {
        width: 45px;
        height: 45px;
        margin-bottom: 12px;
    }

    .video-play-button i {
        font-size: 1.1rem;
    }
}

/* Trust Section - Stats and Slider */
.trust-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.trust-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #1E5B8A, transparent);
}



/* Trust Stats */
.trust-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
    text-align: center;
}

/* Reviews Carousel */
.reviews-carousel-container {
    margin-bottom: 80px;
    background: white;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.reviews-carousel-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1E5B8A, #FFD700, #1E5B8A);
}

.carousel-title {
    text-align: center;
    font-size: 2.5rem;
    color: #1E5B8A;
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
}

.carousel-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #FFD700;
    border-radius: 2px;
}

.reviews-carousel {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.carousel-wrapper {
    overflow: hidden;
    border-radius: 20px;
    position: relative;
    min-height: 300px;
}

.carousel-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: 200%; /* For 2 slides */
    will-change: transform;
}

/* Carousel Animation Classes */
.carousel-track.slide-left {
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.carousel-track.slide-right {
    transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.review-card {
    width: 50%; /* For 2 slides */
    flex-shrink: 0;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    position: relative;
    border: 1px solid rgba(30, 91, 138, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    opacity: 0.8;
    transform: scale(0.98);
    transition: all 0.6s ease;
    overflow: visible;
    height: auto;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.review-card.active {
    opacity: 1;
    transform: scale(1);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-color: rgba(30, 91, 138, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(30, 91, 138, 0.1);
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.reviewer-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1E5B8A, #164569);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(30, 91, 138, 0.3);
}

.reviewer-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reviewer-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1E5B8A;
    margin: 0;
    line-height: 1.2;
}

.reviewer-badge {
    display: inline-block;
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    white-space: nowrap;
}

.reviewer-badge.new-badge {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
}

.review-date {
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
}

.stars {
    display: flex;
    gap: 2px;
    align-items: center;
}

.stars i {
    color: #ffc107;
    font-size: 1.2rem;
    text-shadow: 0 1px 3px rgba(255, 193, 7, 0.3);
}

.review-content {
    line-height: 1.7;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.review-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.3;
}

.review-text {
    color: #555;
    font-size: 1rem;
    margin-bottom: 15px;
    line-height: 1.7;
}

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

.review-text strong {
    color: #2c5aa0;
    font-weight: 600;
}

/* Review Preview and See More Button */
.review-preview {
    position: relative;
}

.see-more-btn {
    background: linear-gradient(135deg, #1E5B8A, #164569);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 15px;
    box-shadow: 0 2px 8px rgba(30, 91, 138, 0.3);
}

.see-more-btn:hover {
    background: linear-gradient(135deg, #164569, #11344e);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 91, 138, 0.4);
}

.see-more-btn i {
    font-size: 0.75rem;
}

/* Review Modal */
.review-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.review-modal.active {
    opacity: 1;
}

.review-modal-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.review-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    max-width: 800px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.review-modal.active .review-modal-content {
    transform: scale(1);
}

.review-modal-header {
    padding: 30px 30px 20px;
    border-bottom: 2px solid rgba(30, 91, 138, 0.1);
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.review-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    z-index: 2001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.review-modal-close:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    transform: scale(1.1);
}

.review-modal-body {
    padding: 30px;
    max-height: 60vh;
    overflow-y: auto;
}

.review-modal-body::-webkit-scrollbar {
    width: 6px;
}

.review-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.review-modal-body::-webkit-scrollbar-thumb {
    background: #1E5B8A;
    border-radius: 3px;
}

.review-modal-body::-webkit-scrollbar-thumb:hover {
    background: #164569;
}

.review-modal-body .review-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

.review-modal-body .review-text:last-child {
    margin-bottom: 0;
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
    padding: 0 20px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #1E5B8A, #164569);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(30, 91, 138, 0.3);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 200;
}

.carousel-btn:hover {
    background: linear-gradient(135deg, #164569, #11344e);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(30, 91, 138, 0.5);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn.prev-btn {
    left: -25px;
}

.carousel-btn.next-btn {
    right: -25px;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: rgba(30, 91, 138, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.dot:hover {
    background: rgba(30, 91, 138, 0.6);
    transform: scale(1.2);
}

.dot.active {
    background: #1E5B8A;
    transform: scale(1.3);
    box-shadow: 0 0 0 3px rgba(30, 91, 138, 0.2);
}

.dot.active::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid rgba(30, 91, 138, 0.4);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
}

.stat-item {
    background: white;
    padding: 40px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid #1E5B8A;
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1E5B8A;
    margin-bottom: 12px;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}



/* Contact Section - Improved Proportions */
.contact {
    padding: 120px 0;
    background: white;
}

.contact-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.6;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 24px;
}

.contact-item i {
    font-size: 1.8rem;
    color: #1E5B8A;
    width: 50px;
    text-align: center;
}

.contact-item.phone i {
    color: #FFD700;
}

.contact-item h4 {
    color: #333;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.contact-item a {
    color: #1E5B8A;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
}

.contact-item a:hover {
    text-decoration: underline;
}

.cta-button {
    margin-top: 24px;
}

.cta-button .btn {
    background: #FFD700;
    border-color: #FFD700;
    color: #333;
}

.cta-button .btn:hover {
    background: #e6c300;
    border-color: #e6c300;
}

.contact-form-container {
    background: #f8f9fa;
    padding: 48px;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    min-height: 52px;
}

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

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

/* Social Media Section - Improved Proportions */
.social-media {
    padding: 100px 0;
    background: linear-gradient(135deg, #1E5B8A 0%, #164569 100%);
    color: white;
    text-align: center;
}

.social-content h3 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    line-height: 1.2;
}

.social-content p {
    font-size: 1.2rem;
    margin-bottom: 48px;
    opacity: 0.9;
    line-height: 1.6;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 500;
    transition: transform 0.3s ease;
    padding: 12px 20px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.2);
}

.social-link i {
    font-size: 1.6rem;
}

/* Footer - Improved Proportions */
.footer {
    background: #2c3e50;
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-section h4 {
    color: #FFD700;
    margin-bottom: 24px;
    font-size: 1.3rem;
    line-height: 1.2;
}
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo {
    width: 120px;
    height: 80px;
    object-fit: contain;
    border-radius: 6px;
}

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

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 1rem;
    line-height: 1.5;
}

.footer-section ul li a:hover {
    color: #2c5aa0;
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: #bdc3c7;
    font-size: 1rem;
    line-height: 1.5;
}

.footer-contact i {
    color: #2c5aa0;
    width: 24px;
    font-size: 1.1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Large mobile devices (iPhone 14 Pro Max, iPhone 15 Plus, etc.) */
@media (max-width: 430px) and (min-width: 390px) {
    .hero-title {
        font-size: clamp(4.5144rem, 16.632vw, 6.534rem) !important;
        margin-bottom: 8rem !important;
        line-height: 0.95 !important;
        letter-spacing: -0.04em !important;
        word-spacing: -0.1em !important;
        width: 100% !important;
        max-width: 95vw !important;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
        -webkit-hyphens: none !important;
        -ms-hyphens: none !important;
        text-align: center !important;
        padding: 20px 28px !important;
        border-radius: 20px !important;
    }
    
    .hero-subtitle {
        font-size: clamp(0.95rem, 2.5vw, 1.15rem) !important;
        margin-bottom: 2.5rem !important;
        line-height: 1.6 !important;
        max-width: 380px !important;
        padding: 18px 22px !important;
        border-radius: 14px !important;
        font-weight: 400 !important;
    }
    
    .hero {
        min-height: 100dvh;
        padding-top: var(--nav-height, 100px);
        padding-bottom: 80px;
        align-items: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .hero-content {
        margin-top: 0;
        padding: 50px 15px;
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: auto;
    }
    
    .hero-actions {
        margin-top: 2.5rem;
        gap: 20px;
        padding: 0 15px;
        margin-bottom: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-actions .btn {
        padding: 16px 32px;
        font-size: 16px;
        min-height: 52px;
        width: 100%;
        max-width: 320px;
        margin-bottom: 10px;
    }
}

/* Responsive Design - Improved Harmony */
@media (max-width: 768px) {
    /* Maintain clear title-paragraph separation on tablets */
    h1, h2, h3, h4, h5, h6 {
        margin-bottom: 1.25rem;
    }
    
    h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p {
        margin-top: 1rem;
    }
    
    .hero-content {
        padding-top: 80px !important;
    }
    
    .hero-title {
        font-size: clamp(3.8016rem, 14.256vw, 4.752rem) !important;
        margin-bottom: 3rem !important;
        line-height: 0.98 !important;
        letter-spacing: -0.03em !important;
        word-spacing: -0.05em !important;
        width: 100% !important;
        max-width: 95vw !important;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
        -webkit-hyphens: none !important;
        -ms-hyphens: none !important;
        text-align: center !important;
        padding: 25px 30px !important;
        border-radius: 18px !important;
        margin-top: 2rem !important;
    }
    
    .section-title {
        margin-bottom: 1.75rem;
    }
    
    .about-subtitle {
        margin-bottom: 1.5rem;
    }
    
    .service-title {
        margin-bottom: 1.25rem;
    }
    
    .nav-logo .logo {
        width: 140px;
        height: 90px;
    }
    
    .navbar {
        padding: 12px 0;
    }
    
    .navbar.scrolled {
        padding: 8px 0;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 100px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 24px 0;
    }

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

    .nav-menu li {
        margin: 12px 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(12px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-12px) rotate(-45deg);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .about-image {
        order: -1;
    }

    .about-image img {
        height: 400px;
    }

    .awards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .award-card {
        min-height: auto;
        padding: 40px 30px;
    }

    .award-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 25px;
    }

    .award-icon i {
        font-size: 2rem;
    }

    .award-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .award-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

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

    .service-card {
        min-height: auto;
        padding: 30px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-form-container {
        padding: 30px;
    }


    .trust-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 40px;
    }

    /* Reviews Carousel Mobile */
    .reviews-carousel-container {
        margin-bottom: 50px;
        padding: 30px;
        border-radius: 20px;
    }

    .carousel-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .carousel-wrapper {
        min-height: 350px;
        max-height: none;
    }

    .review-card {
        padding: 25px 20px;
        min-height: 320px;
        max-height: none;
        height: auto;
    }

    .carousel-btn {
        display: none;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .reviewer-info {
        width: 100%;
    }

    .reviewer-avatar {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .reviewer-name {
        font-size: 1.1rem;
    }

    .stars {
        align-self: flex-start;
    }

    .review-title {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .review-text {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }

    .see-more-btn {
        margin-top: 15px;
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .review-preview {
        flex: 1;
    }

    .carousel-controls {
        margin-top: 20px;
        padding: 0 15px;
    }

    .stat-item {
        padding: 30px 15px;
    }

    .stat-number {
        font-size: 2.5rem;
    }



    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .section-padding {
        padding: 80px 0;
    }

    .section-padding-medium {
        padding: 60px 0;
    }

    .section-padding-small {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    /* Ensure adequate title-paragraph separation on mobile */
    h1, h2, h3, h4, h5, h6 {
        margin-bottom: 1rem;
    }
    
    h1 + p, h2 + p, h3 + p, h4 + p, h5 + p, h6 + p {
        margin-top: 0.75rem;
    }
    
    .hero-title {
        font-size: clamp(2.82744rem, 11.1078vw, 4.24116rem) !important;
        margin-bottom: 6rem !important;
        line-height: 0.95 !important;
        letter-spacing: -0.03em !important;
        word-spacing: -0.05em !important;
        width: 100% !important;
        max-width: 95vw !important;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
        -webkit-hyphens: none !important;
        -ms-hyphens: none !important;
        text-align: center !important;
        padding: 16px 20px !important;
        border-radius: 16px !important;
    }
    
    .hero {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 100dvh;
        padding-top: var(--nav-height, 100px);
        padding-bottom: 30px;
    }
    
    .section-title {
        margin-bottom: 1.5rem;
    }
    
    .about-subtitle {
        margin-bottom: 1.25rem;
    }
    
    .service-title {
        margin-bottom: 1rem;
    }
    
    /* Portfolio overlay spacing */
    .portfolio-overlay h4 {
        margin-bottom: 0.75rem;
    }
    
    /* Contact section spacing */
    .contact-item h4 {
        margin-bottom: 0.5rem;
    }
    
    .nav-logo .logo {
        width: 120px;
        height: 80px;
    }
    
    .navbar {
        padding: 10px 0;
    }
    
    .navbar.scrolled {
        padding: 6px 0;
    }
    
    .container {
        padding: 0 15px;
    }

    .hero {
        /* Keep top padding equal to navbar height on very small widths */
        padding: var(--nav-height, 100px) 15px 30px;
        min-height: calc(100dvh - var(--nav-height, 100px));
    }
    
    .hero-content {
        padding: 30px 10px;
        margin-top: 20px;
        width: 100%;
        max-width: 100%;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .service-card,
    .contact-form-container {
        padding: 24px;
    }

    .hero-actions .btn {
        padding: 14px 24px;
        font-size: 15px;
    }

    .about-image img {
        height: 300px;
    }

    .award-card {
        padding: 30px 20px;
    }

    .award-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }

    .award-icon i {
        font-size: 1.8rem;
    }

    .award-title {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }

    .award-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .award-badge {
        padding: 10px 20px;
        font-size: 0.8rem;
    }

    .trust-stats {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 30px;
    }

    /* Reviews Carousel Mobile Small */
    .reviews-carousel-container {
        margin-bottom: 40px;
        padding: 25px 20px;
        border-radius: 16px;
    }

    .carousel-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .carousel-wrapper {
        min-height: 400px;
        max-height: none;
    }

    .review-card {
        padding: 25px 20px;
        min-height: 370px;
        max-height: none;
        height: auto;
        overflow: visible;
    }

    .carousel-btn {
        display: none;
    }

    .reviewer-avatar {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .reviewer-name {
        font-size: 1rem;
    }

    .reviewer-badge, .review-date {
        font-size: 0.7rem;
    }

    .review-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }

    .review-text {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .see-more-btn {
        margin-top: 12px;
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .review-preview {
        flex: 1;
    }

    .carousel-controls {
        margin-top: 15px;
        padding: 0 10px;
    }

    .stars i {
        font-size: 1rem;
    }

    .stat-item {
        padding: 25px 15px;
    }

    .stat-number {
        font-size: 2.2rem;
    }



    .section-padding {
        padding: 60px 0;
    }

    .section-padding-medium {
        padding: 50px 0;
    }

    .section-padding-small {
        padding: 40px 0;
    }
}

/* Handle very short screens (e.g., iPhone SE) */
@media (max-height: 700px) {
    .hero {
        min-height: auto;
        padding-top: calc(var(--nav-height, 100px) + 20px);
        padding-bottom: 40px;
    }
    
    .hero-title {
        font-size: clamp(2.22156rem, 8.0784vw, 3.23136rem) !important;
        margin-bottom: 2rem !important;
        line-height: 1.0 !important;
        max-width: 95vw !important;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
        -webkit-hyphens: none !important;
        -ms-hyphens: none !important;
        text-align: center !important;
        padding: 14px 18px !important;
        border-radius: 14px !important;
    }
    
    .hero-subtitle {
        font-size: 0.8rem !important;
        margin: 0 auto 20px !important;
        line-height: 1.4 !important;
        padding: 16px 18px !important;
        border-radius: 12px !important;
        font-weight: 400 !important;
    }
    
    .hero-actions {
        margin-top: 20px;
        gap: 12px;
        padding: 0 10px;
    }
    
    .hero-content {
        padding: 20px 10px;
        margin-top: 0;
        min-height: auto;
    }
    
    .hero-actions .btn {
        padding: 14px 24px;
        min-height: 48px;
        margin-bottom: 8px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .hero {
        min-height: auto;
        padding-top: calc(var(--nav-height, 100px) + 20px);
        padding-bottom: 40px;
    }
    
    .hero-title {
        font-size: clamp(2.42352rem, 12.1176vw, 3.63528rem) !important;
        margin-bottom: 2rem !important;
        line-height: 0.9 !important;
        letter-spacing: -0.04em !important;
        word-spacing: -0.1em !important;
        width: 100% !important;
        max-width: 95vw !important;
        word-break: keep-all !important;
        overflow-wrap: normal !important;
        hyphens: none !important;
        -webkit-hyphens: none !important;
        -ms-hyphens: none !important;
        text-align: center !important;
        padding: 14px 18px !important;
        border-radius: 12px !important;
    }
    
    .hero-subtitle {
        font-size: clamp(0.8rem, 2.5vw, 0.95rem) !important;
        line-height: 1.5 !important;
        padding: 14px 16px !important;
        border-radius: 10px !important;
        font-weight: 400 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-content {
        padding: 20px 8px;
        margin-top: 0;
        width: 100%;
        max-width: 100%;
        min-height: auto;
    }
    
    .hero-actions {
        margin-top: 1.5rem;
        gap: 10px;
        padding: 0 8px;
    }
    
    .hero-actions .btn {
        padding: 12px 20px;
        font-size: 15px;
        min-height: 44px;
        margin-bottom: 6px;
    }
    }

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2c5aa0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Call Button Phone Number Reveal Animation */
.call-reveal-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.call-reveal-btn .phone-number {
    display: inline-block;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-10px);
}

.call-reveal-btn.revealed .phone-number {
    max-width: 200px;
    opacity: 1;
    transform: translateX(0);
}

/* Removed - now handled by the comprehensive rule below */

.call-reveal-btn .call-text {
    transition: all 0.3s ease;
}

.call-reveal-btn.revealed .call-text {
    color: rgba(255, 255, 255, 0.9);
}

/* Add a subtle pulse animation to draw attention */
.call-reveal-btn:not(.revealed) {
    animation: subtle-pulse 3s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(44, 90, 160, 0.4);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 0 0 8px rgba(44, 90, 160, 0);
    }
}

/* Ensure button maintains proper spacing and alignment */
.call-reveal-btn {
    min-width: fit-content;
    justify-content: center;
    align-items: center;
}

/* Force Call us today button to always be blue - override any red styling */
.call-reveal-btn,
.call-reveal-btn:hover,
.call-reveal-btn:active,
.call-reveal-btn:focus {
    background: linear-gradient(135deg, #2c5aa0, #1e4a8a) !important;
    border-color: #2c5aa0 !important;
    box-shadow: 0 8px 20px rgba(44, 90, 160, 0.4) !important;
}

.call-reveal-btn:hover {
    background: linear-gradient(135deg, #1e4a8a, #153a6b) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 90, 160, 0.4) !important;
}

.call-reveal-btn.revealed {
    background: linear-gradient(135deg, #1e4a8a, #153a6b) !important;
    border-color: #1e4a8a !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 90, 160, 0.4) !important;
}