/* =========================================================================
   Global Theme Variables - Chisel Build Inspired
   ========================================================================= */

/* =========================================================================
   Global Theme Variables – Professional, Modern, Trustworthy
   ========================================================================= */

:root {
    /* Brand Colors */
    --primary-teal: #0A4F5E;
    --accent-brown: #A65A14;
    --accent-brown-dark: #8E4B10;

    /* Text */
    --text-dark: #2B2B2B;
    --text-secondary: #4F4F4F;
    --muted: #6B6B6B;
    --text-light: #FFFFFF;

    /* Backgrounds */
   --background: #F2F4F3;
    --background-light: #FFFFFF;
    --card-bg: #FFFFFF;

    /* Borders */
    --border: #E3E5E1;
    --border-light: #EEF0EC;

    /* Shadows */
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.08),
                   0 2px 4px -1px rgba(0, 0, 0, 0.05);

    --shadow-medium: 0 10px 15px -3px rgba(0, 0, 0, 0.10),
                     0 4px 6px -2px rgba(0, 0, 0, 0.06);

    --shadow-strong: 0 20px 25px -5px rgba(0, 0, 0, 0.12),
                     0 10px 10px -5px rgba(0, 0, 0, 0.05);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #0A4F5E 0%, #0E6576 100%);
    --gradient-accent: linear-gradient(135deg, #A65A14 0%, #8E4B10 100%);
}
/* Backward compatibility mapping */
:root {
    --primary-blue: var(--primary-teal);
    --accent-red: var(--accent-brown);
}


/* =========================================================================
   Base Reset
   ========================================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
    color: var(--text-dark);
    background: var(--background);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}


img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================================================
   Containers & Titles
   ========================================================================= */

.container {
    width: min(1400px, 95vw);
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin: 60px 0 50px;
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--primary-blue);
    position: relative;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: "";
    width: 80px;
    height: 5px;
    background: var(--gradient-accent);
    display: block;
    margin: 20px auto 0;
    border-radius: 999px;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin: 40px 0 30px;
    }
}

/* =========================================================================
   STATE-WISE SLIDER (IMPROVED)
   ========================================================================= */

.state-project-showcase {
    margin: 50px auto 80px;
    padding: 0 20px;
}

.horizontal-slider-layout {
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.horizontal-slider-layout:hover {
    box-shadow: var(--shadow-strong);
}

/* Slider Container */
.state-nav-slider {
    display: flex;
    gap: 24px;
    padding: 32px;
    overflow-x: auto;
    scroll-behavior: smooth;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.state-nav-slider::-webkit-scrollbar {
    display: none;
}

/* STATE CARD */
.state-slide-item {
    min-width: 400px;
    width: 400px;
    height: 480px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    box-shadow: var(--shadow-medium);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

/* Hover Effect */
.state-slide-item:hover {
    border: 3px solid var(--accent-red);
    scale: 1.03;
}


/* Active State */
.state-slide-item.active {
    outline: 4px solid var(--accent-red);
    outline-offset: -4px;
    box-shadow: var(--shadow-strong);
}

/* Overlay */
.state-slide-item .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.0) 0%,
        rgba(0,0,0,0.3) 50%,
        rgba(0,0,0,0.9) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 12px;
    padding: 32px;
    color: var(--text-light);
    transition: background 0.3s ease;
}

/*.state-slide-item:hover .overlay {
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.0) 0%,
        rgba(225, 29, 29, 0.2) 50%,
        rgba(225, 29, 29, 0.85) 100%
    );
}*/

/* State Name */
.state-slide-item h3 {
    font-size: 1.75rem;
    font-weight: 700;
    padding: 14px 20px;
    /*background: rgba(0,0,0,0.7);*/
    border-radius: 12px;
    margin: 0;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
}

.state-slide-item:hover h3 {
    /* background: rgba(225, 29, 29, 0.9); */
    transform: translateX(4px);
}

/* Project Count */
.state-slide-item p {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 10px 20px;
    background: rgba(0,0,0,0.6);
    border-radius: 12px;
    margin: 0;
    display: inline-block;
    width: fit-content;
    transition: all 0.3s ease;
}

.state-slide-item:hover p {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

/* =========================================================================
   RECENT PROJECTS
   ========================================================================= */

.recent-projects {
    margin-bottom: 100px;
    padding: 0 20px;
}

.recent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.recent-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-medium);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.recent-card:hover {
    border: 2px solid var(--accent-red);
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-strong);
}

.recent-thumb {
    aspect-ratio: 4 / 3;
    position: relative;
}

.recent-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-pill-group {
    position: absolute;
    left: 14px;
    bottom: 14px;
    display: flex;
    gap: 8px;
}

.recent-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.recent-body h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 0;
    letter-spacing: -0.01em;
}

.recent-body p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.recent-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.recent-actions {
    margin-top: auto;
}

.view-details-btn {
    display: inline-block;
    padding: 14px 28px;
    text-align: center;
    background: var(--gradient-accent);
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(225, 29, 29, 0.3);
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.state-slide-item:nth-child(2n) {
    animation-delay: 0.8s;
}

.state-slide-item:nth-child(3n) {
    animation-delay: 1.6s;
}

.view-details-btn:hover {
    background: linear-gradient(135deg, #c11616, #a11212);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(225, 29, 29, 0.4);
    color: #fff;
}

/* =========================================================================
   Pills
   ========================================================================= */

.pill {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    transition: all 0.2s ease;
}

.pill.accent {
    background: rgba(225, 29, 29, 0.12);
    color: var(--accent-red);
    border: 1px solid rgba(225, 29, 29, 0.2);
}

.pill.muted {
    background: rgba(107, 114, 128, 0.1);
    color: var(--muted);
    border: 1px solid rgba(107, 114, 128, 0.15);
}

/* =========================================================================
   FOOTER
   ========================================================================= */

.main-footer {
    background: var(--gradient-primary);
    color: #fff;
    padding: 60px 0 0;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-column h4 {
    color: var(--accent-red);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.footer-logo {
    font-size: 1.5rem !important;
    margin-bottom: 12px !important;
}

.company-tagline {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 16px;
    font-weight: 500;
}

.footer-column p,
.footer-column a {
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    transition: color 0.2s ease;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column a:hover {
    color: var(--accent-red);
    transform: translateX(4px);
    display: inline-block;
}

.footer-bar {
    text-align: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.2);
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

@media (max-width: 768px) {
    .state-slide-item {
        min-width: 300px;
        height: 400px;
    }

    .state-slide-item h3 {
        font-size: 1.35rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .recent-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
/* =========================================================================
   STATE GALLERY PAGE
   ========================================================================= */

.state-gallery {
    margin: 40px auto 80px;
}

/* Back Link */
.back-link {
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--primary-blue);
    transition: color 0.3s ease, transform 0.2s ease;
}

.back-link:hover {
    color: var(--accent-red);
    transform: translateX(-4px);
}

/* =========================================================================
   PROJECT DETAIL SECTION
   ========================================================================= */

.project-detail-section {
    background: var(--card-bg);
    border-radius: 18px;
    padding: 26px;
    margin-bottom: 50px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.project-detail-section h2 {
    font-size: 1.6rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.project-detail-section p {
    color: var(--muted);
    max-width: 900px;
    margin-bottom: 22px;
}

/* Divider */
.project-detail-section + hr {
    border: none;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        var(--border),
        transparent
    );
    margin: 50px 0;
}

/* =========================================================================
   IMAGE GALLERY GRID
   ========================================================================= */

/* ================= IMAGE GALLERY GRID ================= */
.project-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

/* Gallery Item */
.gallery-item {
    background: var(--card-bg);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover Effect */
.gallery-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-strong);
    border-color: var(--accent-brown);
}

/* Image */
.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* Caption */
.gallery-item .caption {
    padding: 12px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-dark);
    background: #f9fafb;
    border-top: 1px solid var(--border);
}

/* =========================================================================
   EMPTY STATE MESSAGE
   ========================================================================= */

.state-gallery > p {
    padding: 20px;
    background: rgba(217, 30, 24, 0.08);
    border-left: 5px solid var(--accent-red);
    border-radius: 12px;
    font-weight: 600;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

@media (max-width: 768px) {
    .project-detail-section {
        padding: 20px;
    }

    .project-detail-section h2 {
        font-size: 1.4rem;
    }

    .gallery-item img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .gallery-item img {
        height: 180px;
    }
}
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #f6f7fb;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 30px;
}

.title {
    font-size: 32px;
    margin-bottom: 25px;
    color: #1e1e2f;
}

/* Gallery Grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

/* Details Page */
.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    text-decoration: none;
    color: #e63946;
    font-weight: 600;
}

.details {
    display: flex;
    gap: 30px;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.details img {
    max-width: 450px;
    border-radius: 10px;
}

.info h3 {
    font-size: 26px;
    margin-bottom: 10px;
}

.info p {
    font-size: 16px;
    margin-bottom: 8px;
    color: #444;
}

/* Responsive */
@media (max-width: 768px) {
    .details {
        flex-direction: column;
    }
    .details img {
        width: 100%;
    }
}
.gallery-item.featured {
    border: 3px solid var(--accent-red);
    transform: scale(1.05);
}

  /* SCROLL ANIMATIONS
   =============================== */

.animate {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

.animate.show {
    opacity: 1;
    transform: translateY(0);
}

/* Left to Right */
.animate-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s ease;
}

.animate-left.show {
    opacity: 1;
    transform: translateX(0);
}

/* Right to Left */
.animate-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s ease;
}

.animate-right.show {
    opacity: 1;
    transform: translateX(0);
}

/* Zoom Effect */
.animate-zoom {
    opacity: 0;
    transform: scale(0.85);
    transition: all 0.8s ease;
}

.animate-zoom.show {
    opacity: 1;
    transform: scale(1);
}
/* ===============================
   STATE DETAILS ANIMATION
   =============================== */

.state-details-box {
    margin-top: 40px;
    padding: 30px;
    background: var(--card-bg);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    display: none;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease;
}

.state-details-box.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.loader {
    text-align: center;
    font-weight: 600;
    color: var(--muted);
}

/* =========================================================================
   HERO SECTION STYLES (Chisel Build Inspired)
   ========================================================================= */

.hero-section {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 100px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn-primary-hero {
    padding: 16px 36px;
    background: var(--gradient-accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(225, 29, 29, 0.35);
    text-decoration: none;
    display: inline-block;
}

.btn-primary-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(225, 29, 29, 0.45);
    background: linear-gradient(135deg, #c11616, #a11212);
}

.btn-secondary-hero {
    padding: 16px 36px;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.btn-secondary-hero:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 20px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .btn-primary-hero,
    .btn-secondary-hero {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

/* =========================================================================
   MODERN BUTTON STYLES
   ========================================================================= */

.btn-modern {
    display: inline-block;
    padding: 14px 32px;
    background: var(--gradient-accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(225, 29, 29, 0.3);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-modern:hover::before {
    width: 400px;
    height: 400px;
}

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(225, 29, 29, 0.4);
    background: linear-gradient(135deg, #c11616, #a11212);
}

.btn-modern:active {
    transform: translateY(-1px);
}

/* =========================================================================
   CARD ENHANCEMENTS
   ========================================================================= */

.card-modern {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.card-modern:hover::before {
    transform: scaleX(1);
}

.card-modern:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-strong);
    border-color: var(--accent-red);
}

/* =========================================================================
   SMOOTH SCROLLING
   ========================================================================= */

html {
    scroll-behavior: smooth;
}

/* =========================================================================
   SELECTION STYLES
   ========================================================================= */

::selection {
    background: var(--accent-red);
    color: #fff;
}

::-moz-selection {
    background: var(--accent-red);
    color: #fff;
}

/* =========================================================================
   FOCUS STYLES
   ========================================================================= */

*:focus {
    outline: 2px solid var(--accent-red);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 2px solid var(--accent-red);
    outline-offset: 4px;
    border-radius: 4px;
}
/* ===============================
   FLOATING (IDLE) ANIMATION
   =============================== */

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Apply to state cards */
.state-slide-item {
    animation: float 4s ease-in-out infinite;
}
/* ===============================
   STATE DESCRIPTION HOVER ANIMATION
   =============================== */

/* Initial hidden state */
/* ===============================
   STATE DESCRIPTION HOVER ANIMATION
   =============================== */

.state-desc {
    max-height: 0;
    overflow: hidden;

    opacity: 0;
    transform: translateY(20px);

    transition:
        max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);

    font-size: 0.95rem;
    line-height: 1.6;
    padding: 0 18px; /* no vertical padding initially */
    margin-top: 0;
}
.state-slide-item:hover .state-desc {
    max-height: 200px;   /* enough to fit content */
    opacity: 1;
    transform: translateY(0);

    padding: 14px 18px;
    margin-top: 10px;
}
/* ================= FILTER SECTION ================= */
