/* ===== NADA MAHMOUD - HOMEPAGE STYLES ===== */
/* home.css - Specific to index.php */

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
}

.section:not(:last-of-type)::after {
    content: '';
    display: block;
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 0 auto;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.6;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.badge {
    display: inline-block;
    background: rgba(8, 145, 178, 0.1);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

[data-theme="dark"] .section-header .badge {
    color: var(--primary) !important;
}

.section-header h2 {
    margin-bottom: 16px;
    color: #C5A059 !important;
}

[data-theme="dark"] .section-header h2 {
    color: #d4b880 !important;
}

.section-header p {
    font-size: 1.15rem;
    line-height: 1.8;
}

.bg-secondary {
    background: var(--bg-secondary);
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    padding: 45px 35px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transition: var(--transition);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 85px;
    height: 85px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(197, 160, 89, 0.1), rgba(197, 160, 89, 0.05));
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    transition: var(--transition);
}

.feature-icon svg {
    width: 36px;
    height: 36px;
}

.feature-card:hover .feature-icon {
    background: var(--primary-gradient);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(8, 145, 178, 0.3);
}

.feature-card h3 {
    margin-bottom: 12px;
}

/* Map Section */
.map-section {
    margin-top: -1px;
}

.map-section iframe {
    display: block;
    filter: grayscale(20%);
}

/* ===== HERO SECTION - Coastal Premium ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
    background: var(--bg-hero), url('../images/hero-bg.jpg') center/cover fixed;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23ffffff' d='M0,50 C360,100 720,0 1080,50 C1260,75 1380,25 1440,50 L1440,100 L0,100 Z'/%3E%3C/svg%3E");
    background-size: cover;
    z-index: 2;
}

[data-theme="dark"] .hero::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%230c1929' d='M0,50 C360,100 720,0 1080,50 C1260,75 1380,25 1440,50 L1440,100 L0,100 Z'/%3E%3C/svg%3E");
    background-size: cover;
}

/* Animated waves */
.hero::after {
    content: '';
    position: absolute;
    bottom: 100px;
    left: 0;
    right: 0;
    height: 80px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='rgba(255,255,255,0.1)' d='M0,40 C480,80 960,0 1440,40 L1440,80 L0,80 Z'/%3E%3C/svg%3E");
    background-size: cover;
    animation: waveMove 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes waveMove {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-20px);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 3;
}

.hero-text {
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--accent-light);
    font-weight: 700;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    margin-bottom: 28px;
    font-size: 0.9rem;
    animation: fadeInUp 0.8s ease;
}

.hero-badge svg {
    width: 18px;
    height: 18px;
}

[data-theme="dark"] .hero-badge {
    color: var(--primary) !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.35;
    margin-bottom: 20px;
    color: white;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-text h1 span {
    color: #C5A059 !important;
    position: relative;
    background: none !important;
    -webkit-text-fill-color: #C5A059 !important;
    /* Remove underline from Hero Text - Updated Design */
    border-bottom: none !important;
    display: inline-block;
    padding: 0 10px;
}

[data-theme="dark"] .hero-text h1 span {
    color: #d4b880 !important;
    -webkit-text-fill-color: #d4b880 !important;
}

.hero-text>p {
    font-size: 1rem;
    max-width: 550px;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.9;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s both;
}

/* Hero Stats - 3D Shiny Gold Styles */
.hero-stats {
    display: flex;
    gap: 20px;
    margin-top: 50px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-stats>div {
    background: linear-gradient(135deg, #DFC27D 0%, #C5A059 100%);
    padding: 20px;
    border-radius: 16px;
    color: #1a1a1a;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(197, 160, 89, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    text-align: center;
    transform: perspective(1000px) rotateX(5deg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 130px;
}

.hero-stats>div:hover {
    transform: perspective(1000px) rotateX(0deg) translateY(-5px);
    box-shadow:
        0 15px 30px rgba(197, 160, 89, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.hero-stats strong {
    display: block;
    font-size: 2rem !important;
    font-weight: 800;
    color: #000 !important;
    /* Force Black for Contrast on Gold */
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
    line-height: 1;
}

.hero-stats span {
    font-size: 0.9rem;
    color: #333 !important;
    font-weight: 700;
    margin-top: 6px;
    display: block;
}

/* Hero Image */
.hero-image {
    position: relative;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: top center;
    border-radius: 20px !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
    border: 4px solid rgba(255, 255, 255, 0.2) !important;
    animation: floatHero 5s ease-in-out infinite;
    will-change: transform;
}

@keyframes floatHero {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.hero-image:hover img {
    transform: scale(1.02);
    transition: transform 0.4s ease;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 12px 20px !important;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    text-align: center;
    animation: pulse 2s infinite;
    min-width: auto !important;
}

@keyframes pulse {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
    }

    50% {
        transform: translateX(-50%) scale(1.03);
    }
}

.experience-badge .number {
    font-size: 1.8rem !important;
    font-weight: 800;
    color: var(--primary);
    display: block;
    line-height: 1;
}

.experience-badge span:last-child {
    font-size: 0.9rem !important;
    color: var(--text-secondary);
    font-weight: 600;
}

/* ===== Categories Grid ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    position: relative;
    height: 320px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: block;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card:hover img {
    transform: scale(1.1);
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 24px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
}

.category-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}

.category-content span {
    font-size: 0.9rem;
    color: var(--accent-light);
    font-weight: 600;
}

/* ===== Sea Video Banner (Home) ===== */
.sea-video-banner {
    position: relative;
    overflow: hidden;
    height: 300px !important;
    width: 100%;
}

.banner-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    /* 16:9 ratio */
    min-height: 120vh;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.8;
}

.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(12, 25, 41, 0.4), rgba(12, 25, 41, 0.4)),
        url('https://images.unsplash.com/photo-1505118380757-91f5f45d8de4?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat !important;
    z-index: 1;
    display: block !important;
}

.sea-video-banner .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.banner-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.banner-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
}

/* ===== Stats Section (Separate from Hero Stats) ===== */
/* Note: This might be the one in 'fixes.css' line 2400+ which uses squares */
.stats-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.stats-section .stats-grid {
    padding: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
}

.stats-section .stats-grid>div {
    width: 170px;
    height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.05), -5px -5px 15px rgba(255, 255, 255, 0.8);
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.stats-section .stats-grid>div:hover {
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translateY(-5px);
    box-shadow: 0 15px 30px rgba(197, 160, 89, 0.2), 0 0 0 2px rgba(197, 160, 89, 0.1);
    border-color: var(--accent);
}

.stats-section .number {
    font-size: 2.2rem !important;
    background: linear-gradient(45deg, #C5A059, #DFC27D);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    font-weight: 800;
}

.stats-section .label {
    color: #555;
    font-weight: 700;
    font-size: 0.95rem;
}

/* ===== Testimonials Section ===== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: white;
    padding: 25px;
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    position: relative;
    transition: transform 0.3s ease;
    border-right: 4px solid var(--accent);
}

.testimonial-card::before {
    content: '\201C';
    font-size: 5rem;
    color: rgba(197, 160, 89, 0.15);
    position: absolute;
    top: 10px;
    right: 20px;
    font-family: serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-card .stars {
    color: #FFD700;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.testimonial-card p {
    font-style: normal;
    color: #444;
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.testimonial-card .client-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

.client-avatar-placeholder {
    width: 45px;
    height: 45px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

[data-theme="dark"] .testimonial-card {
    background: var(--bg-card);
}

/* ===== CTA Parallax ===== */
.cta-parallax {
    padding: 120px 0;
    background: url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=1920&q=80') center/cover fixed !important;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.cta-parallax::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.92) 0%, rgba(14, 116, 144, 0.95) 100%);
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    color: white;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-whatsapp-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid white;
    color: white;
    padding: 16px 36px;
    border-radius: var(--radius-full);
    font-weight: 700;
    transition: var(--transition);
}

.btn-whatsapp-outline:hover {
    background: white;
    color: var(--primary);
}

/* ===== Partners Marquee ===== */
.partners-section {
    background: var(--bg-secondary);
    padding: 80px 0;
    text-align: center;
}

.partners-logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.partner-logo {
    height: 60px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition);
}

.partner-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* ===== RESPONSIVE HOME ===== */
@media (max-width: 992px) {
    .hero {
        padding: 140px 0 120px;
        background-attachment: scroll !important;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text>p {
        margin: 0 auto 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        margin: 50px auto 0;
        flex-wrap: wrap;
    }

    .hero-image {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-image img {
        height: 350px;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-parallax {
        background-attachment: scroll !important;
    }
}




@media (max-width: 576px) {
    .hero-stats {
        flex-direction: row;
        gap: 15px;
        padding: 24px;
    }

    .stat-item {
        flex: 1 1 40%;
        min-width: 120px;
    }
}

/* ===== DUPLICATED COMPONENTS FOR ISOLATION ===== */
/* These styles are duplicated from projects.css and blog.css */
/* to ensure the homepage is completely self-contained. */

/* --- Project Cards (from projects.css) --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.project-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-image a {
    display: block;
    height: 100%;
    width: 100%;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-status {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.project-status.active {
    background: #10b981;
}

.project-status.sold {
    background: #ef4444;
}

.project-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.project-location svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
}

.project-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.project-card h3 a {
    color: var(--text-primary);
    transition: var(--transition);
}

.project-card h3 a:hover {
    color: var(--accent);
}

.project-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 16px;
}

.project-features {
    display: flex;
    gap: 16px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.project-features span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-features svg {
    width: 16px;
    height: 16px;
}

/* --- Blog Cards (from blog.css) --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.blog-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-image a {
    display: block;
    height: 100%;
    width: 100%;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent);
    color: white;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.blog-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.blog-meta svg {
    width: 14px;
    height: 14px;
    color: var(--accent);
}

.blog-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card h3 a {
    color: var(--text-primary);
    transition: var(--transition);
}

.blog-card h3 a:hover {
    color: var(--accent);
}

.blog-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    margin-top: auto;
    color: var(--accent);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.read-more:hover {
    gap: 10px;
    color: var(--primary-dark);
}

/* ===== FINAL MOBILE REFINEMENTS - FORCED OVERRIDES ===== */
@media (max-width: 991px) {

    /* Hero Section Reordering & Compactness */
    .hero-section {
        padding-top: 60px !important;
        /* Drastically reduced from 100px */
        padding-bottom: 0 !important;
        /* Remove bottom padding */
        min-height: auto !important;
        /* Allow it to shrink */
        margin-bottom: 20px !important;
        /* Small margin to next section */
    }

    .hero-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
        /* Minimal gap */
    }

    .hero-text {
        display: contents !important;
    }

    /* Order: Badge(1), Image(2), Title/Text(3) */
    .hero-badge {
        order: 1 !important;
        margin: 0 auto 5px !important;
        /* Minimal margin */
        position: static !important;
        transform: none !important;
    }

    .hero-image {
        order: 2 !important;
        margin-bottom: 5px !important;
        max-width: 75% !important;
        /* Slightly smaller */
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
    }

    .hero-text h1 {
        font-size: 2rem !important;
        /* Slightly smaller title */
        margin-bottom: 10px !important;
    }

    .hero-text p {
        margin-bottom: 15px !important;
    }

    .hero-text h1,
    .hero-text p,
    .hero-buttons,
    .hero-stats {
        order: 3 !important;
    }

    /* Experience Badge - Gold & Side Position */
    .experience-badge {
        background: linear-gradient(135deg, #C5A059 0%, #a38446 100%) !important;
        color: white !important;
        left: 20px !important;
        bottom: 20px !important;
        right: auto !important;
        transform: none !important;
        border: 2px solid white !important;
        min-width: 120px !important;
    }

    .experience-badge .number {
        color: white !important;
        font-size: 1.5rem !important;
    }

    .experience-badge span:last-child {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    /* Hero Stats - Horizontal Row with Scrolling if needed */
    .hero-stats {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        gap: 10px !important;
        padding-bottom: 5px !important;
        width: 100% !important;
        margin-top: 15px !important;
    }

    .hero-stats>div {
        flex: 1 0 auto !important;
        /* Allow growing/shrinking but keep basis */
        min-width: 90px !important;
        /* Smaller min-width to fit 3 screens */
        padding: 10px !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .hero-stats strong {
        font-size: 1.25rem !important;
    }

    .hero-stats span {
        font-size: 0.75rem !important;
    }

    /* Blog Card - Improved Mobile Look */
    .latest-articles-grid .blog-card {
        min-width: 280px !important;
        /* Fixed width for consistency */
        max-width: 90vw;
        margin-right: 10px;
    }

    /* Testimonials - Fix Width and Layout */
    .testimonials-grid {
        padding: 10px 0 20px !important;
        gap: 15px !important;
    }

    .testimonial-card {
        min-width: 280px !important;
        /* Fixed width */
        width: 80vw !important;
        margin-right: 15px;
        /* Spacing */
        padding: 20px !important;
        height: auto !important;
        background: white !important;
    }

    [data-theme="dark"] .testimonial-card {
        background: var(--bg-card) !important;
    }

    /* CTA Parallax - Reduce Padding */
    .cta-parallax {
        padding: 50px 0 !important;
        background-attachment: scroll !important;
    }

    /* Fix Footer Copyright Alignment on Mobile */
    .footer-bottom {
        justify-content: center !important;
        text-align: center !important;
    }

    .cta-content h2 {
        font-size: 1.8rem !important;
        margin-bottom: 15px !important;
    }

    /* General Grids */
    .features-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    .feature-card {
        padding: 25px 15px !important;
    }

    .feature-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.4rem !important;
        margin-bottom: 12px !important;
    }

    .category-card {
        height: 180px !important;
    }

    .category-content {
        padding: 15px 10px !important;
    }

    .category-content h3 {
        font-size: 0.95rem !important;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .project-card .project-image {
        height: 140px !important;
        /* Reduced height for mobile */
    }

    .project-card .project-content {
        padding: 10px !important;
    }

    .project-card h3 {
        font-size: 0.85rem !important;
        margin-bottom: 4px !important;
        line-height: 1.3;
        height: 2.6em;
        /* Limit to 2 lines */
        overflow: hidden;
    }

    .project-location {
        font-size: 0.75rem !important;
        margin-bottom: 4px !important;
    }

    .project-price {
        font-size: 0.9rem !important;
        margin-bottom: 8px !important;
    }

    .project-features {
        padding-top: 8px !important;
        margin-top: 6px !important;
        font-size: 0.75rem !important;
        gap: 8px !important;
    }

    .project-features svg {
        width: 12px !important;
        height: 12px !important;
    }

    /* Blog Carousel on Mobile - Balanced Tile */
    .latest-articles-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        scroll-snap-type: x mandatory !important;
        gap: 12px !important;
        padding: 0 10px 10px !important;
        margin: 0 -15px !important;
        -webkit-overflow-scrolling: touch;
    }

    .hero-buttons {
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
    }

    .hero-buttons .btn {
        width: 100% !important;
    }

    .sea-video-banner {
        height: 180px !important;
    }

    .banner-title {
        font-size: 1.5rem !important;
    }

    .banner-subtitle {
        font-size: 0.9rem !important;
    }

    /* Stats Section Horizontal Scroll */
    .stats-section .stats-grid {
        flex-wrap: nowrap !important;
        justify-content: flex-start !important;
        overflow-x: auto !important;
        padding-bottom: 30px !important;
        scroll-snap-type: x mandatory !important;
        gap: 15px !important;
        padding-left: 20px !important;
        margin: 0 -15px !important;
    }

    .stats-section .stats-grid>div {
        flex: 0 0 150px !important;
        height: 150px !important;
        scroll-snap-align: center !important;
        width: 150px !important;
        transform: none !important;
    }

    /* Testimonials Horizontal Scroll - Extra Compact Tiles */
    .testimonial-card {
        margin-bottom: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        border-radius: 12px !important;
    }

    .testimonial-card .client-info {
        gap: 6px !important;
        margin-top: 8px !important;
        padding-top: 6px !important;
    }

    .client-avatar-placeholder {
        width: 22px !important;
        height: 22px !important;
        font-size: 0.7rem !important;
    }

    .testimonial-card .client-details h4 {
        font-size: 0.7rem !important;
    }
}