/* Modern Design Overhaul - GrigeryTech */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;700;800&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #FF3B30;
    /* Vital Red */
    --hover-red: #D32F2F;
    --dark: #0A0A0A;
    --light: #F9F9F9;
    --white: #FFFFFF;
    --gray: #888888;

    --radius-lg: 24px;
    --radius-md: 16px;

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--light);
    color: var(--dark);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    color: var(--dark);
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Utilities */
.text-red {
    color: var(--primary) !important;
}

.bg-red {
    background-color: var(--primary) !important;
    color: white;
}

.bg-dark {
    background-color: var(--dark) !important;
    color: white;
}

.bg-white {
    background-color: var(--white) !important;
}

.object-fit-cover {
    object-fit: cover !important;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-1 {
    z-index: 1;
}

.opacity-10 {
    opacity: 0.1;
}

.opacity-25 {
    opacity: 0.25;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .1) !important;
}

.bg-gradient-to-t {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.display-huge {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1;
    text-transform: uppercase;
}

.display-large {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 600;
    letter-spacing: -1px;
}

.section-padding {
    padding: 120px 0;
}

/* Modern Navbar */
.navbar {
    padding: 2rem 0;
    background: transparent !important;
    position: absolute;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--dark) !important;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--dark) !important;
    margin: 0 1rem;
    position: relative;
    opacity: 0.7;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
}

.btn-modern {
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary-modern {
    background: var(--primary);
    color: white;
}

.btn-primary-modern:hover {
    background: var(--hover-red);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 59, 48, 0.3);
}

.btn-outline-modern {
    background: transparent;
    border: 2px solid var(--dark);
    color: var(--dark);
}

.btn-outline-modern:hover {
    background: var(--dark);
    color: white;
}

/* Picture-in-Picture Hero */
.modern-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    padding-bottom: 50px;
    overflow: hidden;
}

.pip-container {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pip-main {
    position: absolute;
    width: 90%;
    height: 90%;
    right: 0;
    top: 0;
    z-index: 1;
    transform: rotate(2deg);
    transition: transform 0.5s ease-out;
}

.pip-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
}

.pip-float {
    position: absolute;
    width: 55%;
    height: auto;
    bottom: 5%;
    left: 0%;
    z-index: 2;
    transform: rotate(-3deg);
    transition: transform 0.6s ease-out;
}

.pip-container:hover .pip-main {
    transform: rotate(0deg) scale(1.02);
}

.pip-container:hover .pip-float {
    transform: rotate(0deg) scale(1.05) translateY(-20px);
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 24px;
}

.bento-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.bento-large {
    grid-column: span 8;
}

.bento-medium {
    grid-column: span 6;
}

.bento-small {
    grid-column: span 4;
}

@media (max-width: 992px) {

    .bento-large,
    .bento-medium,
    .bento-small {
        grid-column: span 12;
    }

    .pip-container {
        height: 400px;
        margin-top: 3rem;
    }
}

.bento-bg-dark {
    background: var(--dark);
    color: white;
}

.bento-bg-red {
    background: var(--primary);
    color: white;
}

.bento-bg-image {
    position: relative;
}

.bento-bg-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.6s;
    opacity: 0.9;
}

.bento-bg-image:hover img {
    transform: scale(1.05);
}

.bento-content {
    position: relative;
    z-index: 1;
}

/* Feature Rows (Services) */
.feature-row {
    display: flex;
    align-items: flex-start;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.feature-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary);
    opacity: 0.4;
    font-weight: 800;
    margin-right: 2rem;
    line-height: 1;
}

/* Modern Form */
.modern-input {
    background: transparent !important;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 0;
    box-shadow: none !important;
    font-size: 1.1rem;
    color: var(--dark);
    transition: var(--transition);
}

.modern-input:focus {
    background: transparent;
    border-color: var(--primary);
    box-shadow: none;
    outline: none;
}

/* Footer */
.modern-footer {
    background: var(--dark);
    color: white;
    padding: 80px 0 30px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    margin-top: 80px;
}

.footer-link {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(10px);
}

/* Scrolling Text Animation */
.scrolling-text-container {
    overflow: hidden;
    white-space: nowrap;
    padding: 2rem 0;
    background: var(--primary);
    color: white;
    transform: rotate(-2deg) scale(1.05);
    margin: 4rem 0;
}

.scrolling-text {
    display: inline-block;
    animation: scroll 20s linear infinite;
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    text-transform: uppercase;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Simple GLightbox overrides */
.glightbox-clean .gslide-title {
    font-family: var(--font-heading);
}

/* Enhanced Product Image Styles */
.product-card-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Soft initial shadow */
    transition: var(--transition);
    transform-style: preserve-3d;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

/* Hover Effect */
.product-card-image:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    /* Deep shadow on lift */
    transform: translateY(-5px);
}

.product-card-image:hover img {
    transform: scale(1.05);
    /* Subtle zoom */
}

/* Optional: Add a subtle overlay on hover to make text pop if overlaying */
.product-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.2) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* Utilities for transitions and hover effects */
.transition {
    transition: var(--transition) !important;
}

.group:hover .group-hover-scale {
    transform: scale(1.1);
}

.img-zoom {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Gradient Text */
.text-gradient-red {
    background: linear-gradient(45deg, var(--primary), #ff8a80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--primary);
}

/* Feature List Cards for Paving Section */
.feature-list-card {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--dark);
}

.feature-list-card:hover {
    transform: translateX(10px);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(255, 59, 48, 0.1);
}

/* Glassmorphism & Redesign Styles */
/* Glassmorphism & Redesign Styles */
.glass-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.06);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
}

/* Overlap Layout for M10 Section */
.overlap-image-container {
    height: 600px;
    width: 100%;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.overlap-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlap-content-wrapper {
    margin-top: -150px;
    /* Pull content up over the image */
    position: relative;
    z-index: 10;
    padding-left: 2rem;
}

@media (max-width: 992px) {
    .overlap-image-container {
        height: 400px;
    }

    .overlap-content-wrapper {
        margin-top: -50px;
        padding-left: 0;
        margin-bottom: 2rem;
    }
}

.overlap-horizontal-card {
    margin-left: -100px;
    z-index: 10;
    position: relative;
    max-width: 500px;
}

@media (max-width: 992px) {
    .overlap-horizontal-card {
        margin-left: 0;
        margin-top: -50px;
        max-width: 100%;
    }
}

/* Side-by-Side Overlap Redesign */
.overlap-side-image {
    height: 500px;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.overlap-side-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlap-side-content {
    margin-left: -50px;
    /* Slight horizontal overlap */
    position: relative;
    z-index: 10;
}

@media (max-width: 992px) {
    .overlap-side-image {
        height: 350px;
    }

    .overlap-side-content {
        margin-left: 0;
        margin-top: -50px;
        /* Revert to vertical overlap on mobile */
    }
}

/* Contact Page Enhancements */
.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 59, 48, 0.1);
    border: 1px solid rgba(255, 59, 48, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.5rem;
    transition: var(--transition);
}

.icon-box:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 10px 20px rgba(255, 59, 48, 0.3);
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.6;
    animation: floatShape 10s infinite ease-in-out alternate;
}

.bg-shape-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 59, 48, 0.4), transparent);
    top: -100px;
    left: -100px;
}

.bg-shape-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 138, 128, 0.3), transparent);
    bottom: 50px;
    right: 10%;
    animation-delay: 2s;
}

@keyframes floatShape {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(30px, 30px);
    }
}

/* Attractive Map Design */
.map-container {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    cursor: pointer;
}

.map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
}

.map-iframe {
    filter: grayscale(100%) contrast(1.1);
    transition: filter 0.6s ease;
}

.map-container:hover .map-iframe {
    filter: grayscale(0%) contrast(1);
}

.map-overlay-btn {
    bottom: 30px;
    left: 30px;
    z-index: 10;
    transition: all 0.3s ease;
    background: white;
}

.map-overlay-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}
/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
