/* =========================================
   VARIABLES & SETUP
========================================= */
:root {
    /* Color Palette */
    --color-bg-main: #0a0f16;
    /* Deep slate/navy background */
    --color-bg-secondary: #121a24;
    /* Slightly lighter slate */
    --color-bg-light: #f8f9fa;
    /* Very light grey for contrast sections */

    --color-text-light: #e2e8f0;
    /* Off-white text for dark bg */
    --color-text-dark: #1e293b;
    /* Dark text for light bg */
    --color-text-muted: #94a3b8;
    /* Muted grey text */

    --color-accent: #e65c00;
    /* Vibrant safety orange from reference */
    --color-accent-hover: #cc5200;
    /* Darker orange for hover */
    --color-card-bg: #0f2445;
    /* Deep blue specific to cards in reference */

    --color-white: #ffffff;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-main);
    color: var(--color-text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    color: var(--color-white);
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

.center {
    text-align: center;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
}

.bg-light h2,
.bg-light h3 {
    color: var(--color-bg-main);
}

span {
    color: var(--color-accent);
}

.subtitle {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-accent);
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.subtitle::before {
    content: '';
    display: inline-block;
    width: 40px;
    height: 3px;
    background-color: var(--color-accent);
}

/* =========================================
   BUTTONS
========================================= */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 600;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(180deg, #ff7e29 0%, #db4a00 100%);
    color: var(--color-white);
    box-shadow: 0 4px 10px rgba(219, 74, 0, 0.4);
    border: 1px solid #ff7e29;
}

.btn-primary:hover {
    background: linear-gradient(180deg, #e66b1a 0%, #c24000 100%);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(180deg, #ffe599 0%, #e6b800 100%);
    color: #1a1a1a;
    border: 1px solid #ffe599;
}

.btn-secondary:hover {
    background: linear-gradient(180deg, #e6cc80 0%, #cc9900 100%);
}

/* =========================================
   NAVIGATION
========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition-normal);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.navbar.scrolled .logo,
.navbar.scrolled .nav-links a:not(.btn-nav) {
    color: var(--color-text-dark);
}

.navbar.scrolled .bar {
    background-color: var(--color-text-dark);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    color: var(--color-white);
}

.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--color-accent);
    transition: var(--transition-normal);
}

.nav-links a:not(.btn-nav):hover::after,
.nav-links a.active::after {
    width: 100%;
}

.btn-nav {
    background: var(--color-accent);
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    color: white !important;
}

.btn-nav:hover {
    background: var(--color-accent-hover);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--color-white);
}

/* =========================================
   HERO SECTION
========================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: slowZoom 20s infinite alternate linear;
}

@keyframes slowZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(14, 30, 56, 0.85) 0%, rgba(14, 30, 56, 0.4) 60%, transparent 100%);
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--color-text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
    opacity: 0.9;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

/* =========================================
   ABOUT SECTION & CHECKLIST
========================================= */
.about {
    background-color: #eef2f6;
    /* Very light cool grey */
    color: var(--color-text-dark);
}

.about h2,
.about h3 {
    color: var(--color-text-dark);
}

.about p {
    color: #475569;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.about-checklist {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 2rem;
    border-left: 2px solid #cbd5e1;
    padding-left: 1.5rem;
}

.about-checklist li {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-slow);
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

/* =========================================
   NEW PRODUCTS SECTION
========================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.product-card {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    transition: var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.product-img {
    height: 200px;
    width: 100%;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-img img {
    transform: scale(1.1);
}

.product-title {
    background: var(--color-card-bg);
    /* Deep blue reference color */
    color: white;
    padding: 15px 10px;
    text-align: center;
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

/* Make specific titles orange as per reference image */
.product-card:nth-child(1) .product-title {
    background: linear-gradient(180deg, #db4a00 0%, #ab3a00 100%);
}

/* =========================================
   SERVICES SECTION
========================================= */
.services {
    background: var(--color-card-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    text-align: center;
}

.service-card {
    padding: 2.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(230, 92, 0, 0.15) 0%, rgba(219, 74, 0, 0) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(230, 92, 0, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(230, 92, 0, 0.1);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card .icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
}

.service-card:hover .icon {
    transform: scale(1.15) rotate(5deg);
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--color-accent) !important;
}

.service-card p {
    display: none;
    /* Hide detailed paragraphs to match minimal icon row style */
}

/* =========================================
   PORTFOLIO SECTION ("Why Balaji Precast?")
========================================= */
.portfolio {
    background-color: #eef2f6;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    height: 250px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(219, 74, 0, 0.9) 0%, rgba(219, 74, 0, 0) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.portfolio-info {
    transform: translateY(20px);
    transition: transform var(--transition-normal);
    text-align: center;
    width: 100%;
}

.portfolio-info span {
    display: none;
}

/* Hide sub tags */

.portfolio-info h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid white;
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition-fast);
}

.btn-icon:hover {
    background: white;
    color: #db4a00;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

/* =========================================
   FOOTER
========================================= */
.footer {
    background-color: #05080b;
    padding: 80px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1rem;
}

.footer-desc {
    color: var(--color-text-muted);
    max-width: 350px;
    margin-bottom: 2rem;
}

.socials {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-family: var(--font-heading);
    font-weight: bold;
}

.social-icon:hover {
    background: var(--color-accent);
}

.footer-links h3,
.footer-contact h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

.footer-links ul li,
.footer-contact ul li {
    margin-bottom: 0.8rem;
    color: var(--color-text-muted);
}

.footer-links ul li a:hover {
    color: var(--color-accent);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* =========================================
   LIGHTBOX MODAL
========================================= */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 4px;
    animation: zoomIn 0.3s;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-size: 1.2rem;
    font-family: var(--font-heading);
    animation: zoomIn 0.3s;
}

.close-lightbox {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-lightbox:hover {
    color: var(--color-accent);
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

/* =========================================
   ANIMATIONS UTILS
========================================= */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.visible,
.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 992px) {

    .about-grid,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .products-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .navbar.scrolled .bar {
        background-color: var(--color-text-dark);
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        gap: 1.5rem;
    }

    .nav-links a {
        color: var(--color-text-dark);
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        text-align: center;
    }

    .products-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}