/*
  This file is for custom CSS that complements Tailwind CSS.
  It's useful for things like custom animations, complex gradients,
  or targeting elements that are difficult to style with utility classes.
*/

/* --- Global Resets & Fonts --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #1A1A1A;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', serif;
    font-weight: 700;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes revealUp {
    from {
        transform: translateY(110%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes shake {
    10%, 90% { transform: translateX(-2px); }
    20%, 80% { transform: translateX(4px); }
    30%, 50%, 70% { transform: translateX(-6px); }
    40%, 60% { transform: translateX(6px); }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -30%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Animation Utility Classes */
.animate-fade-in-up { /* Used in script.js */
    animation: fadeInUp 1s ease-out 0.5s backwards;
}

.animate-fade-up {
    animation: fadeInUp 1s ease forwards;
}

.animate-reveal-up {
    animation: revealUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-slide-left {
    animation: slideInLeft 1s ease forwards;
}

.animate-slide-right {
    animation: slideInRight 1s ease forwards;
}

.animate-scale {
    animation: scaleIn 0.8s ease forwards;
}

.shake {
    animation: shake 0.7s cubic-bezier(.36,.07,.19,.97) both;
}

/* --- Common Components --- */

/* Gold Gradient Text */
.text-gradient-gold {
    background: linear-gradient(135deg, #D4B357 0%, #E6C76A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gold Gradient Background */
.gold-gradient {
    background: linear-gradient(135deg, #D4B357 0%, #E6C76A 50%, #D4B357 100%);
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
}

/* Counter Number */
.counter-number {
    font-size: 2.5rem;
    font-weight: 700;
    font-family: 'Lora', serif;
    color: #D4B357;
    line-height: 1;
}

/* Gold Border Bottom Animation */
.gold-border-bottom {
    position: relative;
}

.gold-border-bottom::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 60px;
    height: 2px;
    background: #D4B357;
    transition: width 0.3s ease;
}

.gold-border-bottom:hover::after {
    width: 100px;
}

/* Ripple Effect */
.ripple-container {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(212, 179, 87, 0.5);
    transform: scale(0);
    animation: ripple-animation 600ms ease-out;
    pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #1A1A1A;
}

::-webkit-scrollbar-thumb {
    background: #D4B357;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #B8963F;
}

/* --- Navbar / Mobile Menu --- */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    height: 100dvh; /* Use dynamic viewport height for mobile browsers */
    background: #1A1A1A;
    z-index: 2000;
    transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    padding: 40px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --- Index Page Specifics --- */
.premium-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.premium-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 179, 87, 0.1), transparent);
    transition: left 0.8s;
    pointer-events: none;
}

.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 40px -20px rgba(0,0,0,0.3);
}

.premium-card:hover::after {
    left: 100%;
}

.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

@media (max-width: 768px) {
    .parallax {
        background-attachment: scroll;
    }
}

.image-zoom {
    overflow: hidden;
}

.image-zoom img {
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.image-zoom:hover img {
    transform: scale(1.1);
}

/* --- Services Page Specifics --- */
.service-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212, 179, 87, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 40px -20px rgba(0,0,0,0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    transition: all 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    background: #D4B357;
    color: #1A1A1A;
}

.process-step {
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50px;
    left: 100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #D4B357 0%, transparent 100%);
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .process-step:not(:last-child)::after {
        display: none;
    }
}

.inquire-btn {
    transition: text-shadow 0.3s ease;
}

.inquire-btn:hover {
    text-shadow: 0 0 12px rgba(212, 179, 87, 0.6);
}

/* --- About Page Specifics --- */
.about-hero-shell {
    position: relative;
}

.about-hero-grid {
    display: grid;
    gap: 32px;
    align-items: end;
}

.about-intro-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
        rgba(255,255,255,0.03);
    backdrop-filter: blur(16px);
}

.about-intro-card::before {
    content: '';
    position: absolute;
    inset: auto -10% -35% auto;
    width: 220px;
    height: 220px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(212, 179, 87, 0.45) 0%, rgba(212, 179, 87, 0) 72%);
    pointer-events: none;
}

.about-hero-image {
    position: relative;
    min-height: 440px;
    border-radius: 32px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.about-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-floating-note {
    position: absolute;
    right: 20px;
    bottom: 20px;
    max-width: 240px;
    padding: 20px 22px;
    border-radius: 22px;
    background: rgba(26, 26, 26, 0.9);
    color: #fff;
    box-shadow: 0 22px 40px rgba(0, 0, 0, 0.26);
}

.about-stat-grid {
    display: grid;
    gap: 18px;
}

.about-stat-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(212, 179, 87, 0.16);
    background: #fff;
    box-shadow: 0 20px 40px rgba(17, 24, 39, 0.08);
}

.about-stat-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #D4B357 0%, rgba(212, 179, 87, 0.2) 100%);
}

.about-story-grid {
    display: grid;
    gap: 28px;
}

.about-story-panel {
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.about-story-media {
    position: relative;
    min-height: 280px;
}

.about-story-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-story-badge {
    position: absolute;
    left: 24px;
    bottom: 24px;
    padding: 12px 16px;
    border-radius: 18px;
    background: rgba(26, 26, 26, 0.88);
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.about-story-copy {
    padding: 32px;
}

.about-story-points {
    display: grid;
    gap: 16px;
}

.about-story-point {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    align-items: start;
    padding: 18px 20px;
    border-radius: 20px;
    background: #F8F8F8;
}

.about-story-point i {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(212, 179, 87, 0.12);
    color: #D4B357;
}

.about-vision-grid {
    display: grid;
    gap: 24px;
}

.about-purpose-card {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    padding: 32px;
}

.about-purpose-card::before {
    content: '';
    position: absolute;
    top: -48px;
    right: -48px;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: rgba(212, 179, 87, 0.12);
}

.about-purpose-card > * {
    position: relative;
    z-index: 1;
}

.about-purpose-card.is-light {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F8F8 100%);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.08);
}

.about-purpose-card.is-dark {
    background:
        linear-gradient(180deg, rgba(212, 179, 87, 0.12), rgba(212, 179, 87, 0)),
        #1A1A1A;
    color: #fff;
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.24);
}

.about-value-grid {
    display: grid;
    gap: 22px;
}

.about-value-panel {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 28px;
    background: #fff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.about-value-panel::after {
    content: attr(data-index);
    position: absolute;
    top: 18px;
    right: 22px;
    font-family: 'Lora', serif;
    font-size: 3.25rem;
    line-height: 1;
    color: rgba(212, 179, 87, 0.12);
}

.about-value-panel:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 50px rgba(15, 23, 42, 0.12);
}

.about-journey-grid {
    display: grid;
    gap: 20px;
}

.about-journey-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    padding: 24px 24px 24px 84px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.about-journey-year {
    position: absolute;
    left: 20px;
    top: 22px;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: rgba(212, 179, 87, 0.14);
    color: #D4B357;
    font-weight: 700;
}

.about-journey-card::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: linear-gradient(180deg, #D4B357 0%, rgba(212, 179, 87, 0) 100%);
}

.timeline-item {
    position: relative;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #D4B357, transparent);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #D4B357;
    box-shadow: 0 0 0 4px rgba(212, 179, 87, 0.2);
}

.team-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.team-card img {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.team-card:hover img {
    transform: scale(1.1);
}

.team-social {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    background: linear-gradient(to top, #1A1A1A, transparent);
    padding: 20px;
    transition: bottom 0.3s ease;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.team-card:hover .team-social {
    bottom: 0;
}

.value-card {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 179, 87, 0.1), transparent);
    transition: left 0.6s;
}

.value-card:hover::before {
    left: 100%;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.collage-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.collage-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    height: 150px;
}

.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.collage-item:hover img {
    transform: scale(1.1);
}

.collage-item:first-child {
    grid-column: span 2;
    height: 200px;
}

@media (min-width: 768px) {
    .about-stat-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .about-story-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    }

    .about-vision-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    }

    .about-value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-journey-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .collage-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .collage-item:nth-child(1) {
        grid-column: span 2;
        height: 300px;
    }

    .collage-item:nth-child(2) {
        height: 300px;
    }

    .collage-item:nth-child(3) {
        height: 250px;
    }

    .collage-item:nth-child(4) {
        height: 250px;
    }

    .collage-item:nth-child(5) {
        grid-column: span 2;
        height: 250px;
    }
}

@media (min-width: 1024px) {
    .about-hero-grid {
        grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    }
}

@media (max-width: 767px) {
    .about-hero-image {
        min-height: 360px;
    }

    .about-floating-note {
        left: 16px;
        right: 16px;
        bottom: 16px;
        max-width: none;
    }

    .about-story-copy,
    .about-purpose-card,
    .about-value-panel,
    .about-journey-card {
        padding: 24px;
    }

    .about-journey-card {
        padding-left: 24px;
    }

    .about-journey-year {
        position: static;
        margin-bottom: 14px;
    }
}

/* --- Contact Page Specifics --- */
.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    border-color: #D4B357;
    outline: none;
    box-shadow: 0 0 0 4px rgba(212, 179, 87, 0.1);
}

.form-label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    padding: 0 0.25rem;
    background: white;
    color: #6b7280;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.875rem;
    color: #D4B357;
    font-weight: 500;
}

.form-input.invalid {
    border-color: #ef4444;
}

.form-input.invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: none;
}

.error-message.show {
    display: block;
}

.form-input::placeholder {
    color: transparent;
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: #D4B357;
    transition: height 0.4s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.contact-card:hover::before {
    height: 100%;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(212, 179, 87, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
}

.contact-card:hover .contact-icon {
    background: #D4B357;
    transform: rotateY(180deg);
}

.contact-card:hover .contact-icon i {
    color: #1A1A1A;
}

.contact-icon i {
    font-size: 1.5rem;
    color: #D4B357;
    transition: all 0.4s ease;
}

#map {
    height: 250px;
    width: 100%;
    border-radius: 1.5rem;
    z-index: 1;
}

@media (min-width: 768px) {
    #map {
        height: 450px;
    }
}

.office-pin {
    background: #D4B357;
    border: 3px solid white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    box-shadow: 0 0 20px rgba(212, 179, 87, 0.5);
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: #f3f4f6;
    color: #1A1A1A;
}

.social-icon:hover {
    background: #D4B357;
    transform: translateY(-5px) scale(1.1);
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    overflow: hidden;
}

.faq-btn {
    width: 100%;
    text-align: left;
    padding: 1rem 1.25rem;
    background-color: white;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transform: translateY(0);
    box-shadow: none;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    color: #6b7280;
    line-height: 1.6;
}

.faq-btn i {
    transition: transform 0.3s ease;
}

.rotate-180 {
    transform: rotate(180deg);
}

.submit-btn {
    background: linear-gradient(135deg, #D4B357 0%, #E6C76A 50%, #D4B357 100%);
    background-size: 200% 200%;
    animation: gradient 3s ease infinite;
    color: #1A1A1A;
    font-weight: 600;
    padding: 0.625rem 1.25rem;
    font-size: 0.95rem;
    border-radius: 0.75rem;
    width: 100%;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.submit-btn:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 25px 50px rgba(212, 179, 87, 0.5);
}

.submit-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.success-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    z-index: 9999;
    text-align: center;
    display: none;
}

.success-message.show {
    display: block;
    animation: slideIn 0.3s ease;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 9998;
    display: none;
}

.overlay.show {
    display: block;
}

/* --- Projects Page Specifics --- */
.filter-btn {
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 0.95rem;
    color: #6b7280;
    background: transparent;
    border: 1px solid transparent;
}

.filter-btn:hover {
    color: #D4B357;
    background: rgba(212, 179, 87, 0.05);
}

.filter-btn.active {
    background: #D4B357;
    color: white;
    box-shadow: 0 4px 12px rgba(212, 179, 87, 0.3);
}

.project-item {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
    transition: all .3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.20);
}

/* Remove old overlays and effects */
.project-item::after,
.project-overlay {
    display: none;
}

.project-img-wrapper {
    position: relative;
    width: 100%;
    height: 230px;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
}

.project-info {
    padding: 22px;
    transform: none;
    background: #fff;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.category-badge {
    top: 15px;
    right: 15px;
    left: auto;
}

.project-info h3 {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 0;
    text-shadow: none;
}

.project-info p {
    margin: 12px 0 16px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #4B5563; /* text-gray-600 */
    opacity: 1;
    transform: none;
    /* Enforce 3 lines max for consistent card heights */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.view-details-btn {
    padding: 10px 18px;
    background: #1A1A1A;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    display: inline-block;
    transition: .3s;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 14px;
    margin-top: auto; /* Pushes button to bottom if content varies */
}

.view-details-btn:hover {
    background: #D4B357;
    color: #1A1A1A;
}

/* Updated Grid Layout */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 35px;
}

/* Reset old responsive rules that might conflict with auto-fit */
@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

/* Keep original styles for .category-badge but ensure positioning is relative to wrapper */
.category-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 10;
}

.testimonial-card {
    background: white;
    border: 1px solid #e5e7eb; /* border-gray-200 */
    border-radius: 1.5rem; /* rounded-3xl */
    padding: 2rem; /* p-8 */
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: rgba(212, 179, 87, 0.5);
}

.testimonial-card::before {
    content: '\f10d'; /* fa-quote-left */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 5rem;
    color: #D4B357;
    opacity: 0.07;
    z-index: 1;
    transition: transform 0.4s ease;
}

.testimonial-content {
    position: relative;
    z-index: 2;
    flex-grow: 1;
}

.testimonial-content p {
    margin: 0;
    font-size: 1.125rem;
    font-style: italic;
    line-height: 1.8;
    color: #374151;
}

.testimonial-author {
    position: relative;
    z-index: 2;
    margin-top: auto; /* Pushes author to the bottom */
    padding-top: 1.5rem; /* space above author */
    border-top: 1px solid #f3f4f6; /* border-gray-100 */
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.testimonial-author h4 {
    margin: 0;
    color: #1A1A1A;
}

.testimonial-author p {
    margin: 0 0 0 auto;
    padding-left: 1rem;
    color: #6b7280;
    font-size: 0.95rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 24rem));
    justify-content: center;
    gap: 2rem;
    align-items: stretch;
}

.review-card {
    background: linear-gradient(180deg, #ffffff 0%, #fffdf7 100%);
    border-color: rgba(212, 179, 87, 0.25);
    width: 100%;
    max-width: 24rem;
    min-height: 420px;
    margin-inline: auto;
}

.review-summary-shell,
.review-filter-shell,
#testimonial-slider {
    max-width: 24rem;
    margin-inline: auto;
}

.review-slide {
    display: flex;
    width: 100%;
    flex: 0 0 100%;
    justify-content: center;
    padding: 0.15rem 0.25rem;
}

.testimonials-grid .review-card {
    max-width: 24rem;
    min-height: 420px;
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.review-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    color: #D4B357;
    font-size: 0.95rem;
}

.review-score {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #4b5563;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
}

.review-quote {
    position: relative;
    z-index: 2;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #374151;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-meta {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding-top: 1.3rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.review-author-block {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.review-avatar {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1A1A1A;
    color: #D4B357;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.review-author-name {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    color: #1A1A1A;
}

.review-author-location {
    margin: 0.15rem 0 0;
    font-size: 0.84rem;
    color: #6b7280;
}

.review-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
}

.review-badge {
    border-radius: 999px;
    padding: 0.28rem 0.62rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid transparent;
}

.review-badge.verified {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
    border-color: rgba(16, 185, 129, 0.25);
}

.review-badge.service {
    background: rgba(212, 179, 87, 0.18);
    color: #7a5e12;
    border-color: rgba(212, 179, 87, 0.3);
}

.review-badge.year {
    background: #f3f4f6;
    color: #4b5563;
    border-color: #e5e7eb;
}

.review-summary-shell {
    max-width: 950px;
    margin: 0 auto 2rem;
}

.review-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.review-summary-card {
    background: #ffffff;
    border: 1px solid #ece8dd;
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

.review-summary-value {
    display: block;
    color: #1A1A1A;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
}

.review-summary-value small {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 700;
}

.review-summary-label {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.82rem;
    color: #6b7280;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.review-filter-shell {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    max-width: 900px;
    margin: 0 auto 1.6rem;
}

.review-filter-btn {
    border: 1px solid #e5e7eb;
    background: #ffffff;
    color: #4b5563;
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.review-filter-btn:hover {
    border-color: rgba(212, 179, 87, 0.45);
    color: #7a5e12;
    transform: translateY(-2px);
}

.review-filter-btn.active {
    background: #1A1A1A;
    color: #D4B357;
    border-color: #1A1A1A;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

#testimonial-track {
    will-change: transform;
}

#testimonial-slider .review-dot {
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 999px;
    border: 0;
    background: #d1d5db;
    transition: all 0.25s ease;
}

#testimonial-slider .review-dot.active {
    width: 1.65rem;
    background: #D4B357;
}

.review-empty {
    font-size: 0.98rem;
    padding: 1.25rem 0;
}

@media (max-width: 1024px) {
    .review-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .review-summary-grid {
        grid-template-columns: 1fr;
    }

    .review-summary-card {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .review-card {
        min-height: 390px;
    }

    .review-summary-shell,
    .review-filter-shell,
    #testimonial-slider {
        max-width: 100%;
    }

    .testimonial-author {
        flex-direction: column;
        align-items: flex-start;
    }

    .testimonial-author p {
        margin-left: 0;
        padding-left: 0;
    }

    .review-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .review-badges {
        justify-content: flex-start;
    }
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Leaflet Popup Overrides */
.leaflet-popup-content {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    margin: 10px;
}

.leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
}

.leaflet-popup-tip {
    background: white;
}

/* Status Badge */
.status-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #D4B357;
    color: #1A1A1A;
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 10;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* --- Dark Mode Styles --- */
html.dark {
    color-scheme: dark;
}

.dark body {
    background-color: #121212;
    color: #E0E0E0;
}

.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6 {
    color: #ffffff;
}

/* Tailwind Class Overrides */
.dark .bg-white {
    background-color: #1E1E1E !important;
}

.dark .bg-\[\#F8F8F8\] {
    background-color: #121212 !important;
}

.dark .text-\[\#1A1A1A\] {
    color: #ffffff !important;
}

.dark .text-gray-500 {
    color: #a0aec0 !important;
}

.dark .text-gray-600 {
    color: #b0b0b0 !important;
}

.dark .text-gray-700 {
    color: #c0c0c0 !important;
}

.dark .text-gray-300 {
    color: #d1d5db !important;
}

.dark .text-gray-400 {
    color: #9ca3af !important;
}

.dark .review-card {
    background: linear-gradient(180deg, #1e1e1e 0%, #232323 100%);
    border-color: #2d3748;
}

.dark .review-quote {
    color: #d1d5db;
}

.dark .review-score {
    background: #2d3748;
    border-color: #4a5568;
    color: #d1d5db;
}

.dark .review-author-name {
    color: #ffffff;
}

.dark .review-author-location {
    color: #9ca3af;
}

.dark .review-avatar {
    background: #111827;
}

.dark .review-meta {
    border-top-color: #2d3748;
}

.dark .review-badge.verified {
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
    border-color: rgba(16, 185, 129, 0.35);
}

.dark .review-badge.service {
    background: rgba(212, 179, 87, 0.24);
    color: #f6e3a8;
    border-color: rgba(212, 179, 87, 0.4);
}

.dark .review-badge.year {
    background: #2d3748;
    color: #d1d5db;
    border-color: #4a5568;
}

.dark .review-summary-card {
    background: #1e1e1e;
    border-color: #2d3748;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.dark .review-summary-value {
    color: #ffffff;
}

.dark .review-summary-value small,
.dark .review-summary-label {
    color: #a0aec0;
}

.dark .review-filter-btn {
    background: #1f2937;
    border-color: #374151;
    color: #cbd5e1;
}

.dark .review-filter-btn:hover {
    border-color: rgba(212, 179, 87, 0.55);
    color: #f6e3a8;
}

.dark .review-filter-btn.active {
    background: #D4B357;
    color: #111827;
    border-color: #D4B357;
}

.dark #testimonial-slider .review-dot {
    background: #4b5563;
}

.dark #testimonial-slider .review-dot.active {
    background: #D4B357;
}

/* Borders */
.dark .border-gray-100,
.dark .border-gray-200,
.dark .border-t.border-gray-800 {
    border-color: #2D3748 !important; /* gray.700 */
}

/* Specific Components */
.dark .premium-card,
.dark .service-card,
.dark .project-item,
.dark .testimonial-card,
.dark .value-card,
.dark .about-stat-card,
.dark .about-story-panel,
.dark .about-value-panel,
.dark .about-journey-card,
.dark .about-purpose-card.is-light,
.dark .stat-card,
.dark .contact-card,
.dark .faq-item,
.dark .bg-white.p-8.rounded-2xl,
.dark .bg-white.p-6.rounded-2xl,
.dark .bg-white.rounded-3xl,
.dark .faq-btn {
    background-color: #1E1E1E;
    border-color: #2D3748;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.dark .premium-card:hover,
.dark .service-card:hover,
.dark .project-item:hover,
.dark .testimonial-card:hover,
.dark .value-card:hover,
.dark .about-value-panel:hover,
.dark .stat-card:hover,
.dark .contact-card:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.dark .about-story-point {
    background: #252525;
}

.dark .about-purpose-card.is-dark {
    background:
        linear-gradient(180deg, rgba(212, 179, 87, 0.16), rgba(212, 179, 87, 0)),
        #121212;
}

.dark .filter-btn {
    color: #A0AEC0;
    background-color: #2D3748;
}

.dark .filter-btn:hover {
    color: #D4B357;
    background: rgba(212, 179, 87, 0.1);
}

.dark .filter-btn.active {
    background: #D4B357;
    color: #1A1A1A;
    box-shadow: 0 4px 12px rgba(212, 179, 87, 0.2);
}

.dark .project-info h3 {
    color: #ffffff;
}

.dark .project-info p {
    color: #b0b0b0;
}

.dark .form-input {
    background-color: #2D3748;
    border-color: #4A5568;
    color: #E0E0E0;
}

.dark .form-label {
    background-color: #2D3748;
    color: #A0AEC0;
}

.dark .leaflet-popup-content-wrapper, .dark .leaflet-popup-tip {
    background: #2D3748;
    color: #E0E0E0;
    box-shadow: 0 3px 14px rgba(0,0,0,0.4);
}

.dark #map {
    filter: invert(1) hue-rotate(180deg) brightness(0.9) contrast(1.1);
}

.dark .prose { color: #b0b0b0; }
.dark .prose h1, .dark .prose h2, .dark .prose h3 { color: #ffffff; }
.dark .prose a { color: #D4B357; }
.dark .prose strong { color: #ffffff; }
.dark .bg-gray-100 { background-color: #2D3748 !important; }
.dark .bg-gray-800 { background-color: #1A202C !important; }

/* About Page Theme Support */
.dark .about-page .bg-\[\#F6F2EA\] {
    background-color: #121212 !important;
}

.dark .about-page .bg-\[\#f8f4eb\],
.dark .about-page .bg-\[\#faf7f0\] {
    background-color: #181818 !important;
    border: 1px solid #2D3748;
}

.dark .about-page .bg-\[\#f5e7ba\] {
    background:
        linear-gradient(180deg, rgba(212, 179, 87, 0.14), rgba(212, 179, 87, 0.04)),
        #1d1a12 !important;
    border: 1px solid rgba(212, 179, 87, 0.22);
}

.dark .about-page .text-\[\#6c5720\],
.dark .about-page .text-\[\#4c4433\] {
    color: #f1df9a !important;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .parallax {
        background-attachment: scroll !important;
    }
}
