/* ===== HERO SLIDER STYLES ===== */
.hero-slide {
    transition: opacity 1s ease-in-out;
}

.slider-indicator {
    transition: all 0.3s ease;
}

.slider-indicator.active {
    opacity: 1 !important;
    background-color: #60a5fa;
    transform: scale(1.2);
}

#heroSlider {
    position: relative;
}

/* ===== FONT & BASE STYLES ===== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #1f2937;
    overflow-x: hidden;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@keyframes slideInNav {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* ===== UTILITY CLASSES ===== */
.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in-down {
    animation: fadeInDown 0.6s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.6s ease forwards;
}

.fade-in-right {
    animation: fadeInRight 0.6s ease forwards;
    animation-delay: 0s;
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* ===== NAV STYLES ===== */
nav {
    animation: slideInNav 0.5s ease;
}

.nav-link {
    position: relative;
    color: #1f2937;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #2563eb;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: #2563eb;
}

/* ===== SERVICE CARD STYLES ===== */
.service-card {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    border-color: #2563eb;
    transform: translateY(-5px);
}

/* ===== GALLERY ITEM STYLES ===== */
.gallery-item {
    position: relative;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ===== SCROLL REVEAL ===== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== BUTTON STYLES ===== */
button, a.btn {
    transition: all 0.3s ease;
    cursor: pointer;
}

button:hover, a.btn:hover {
    transform: translateY(-2px);
}

/* ===== RESPONSIVE MOBILE OPTIMIZATION ===== */
@media (max-width: 768px) {
    .fade-in-left {
        animation: fadeInUp 0.6s ease forwards;
    }

    .fade-in-right {
        animation: fadeInUp 0.6s ease forwards;
    }

    .text-5xl, .text-6xl {
        word-break: break-word;
    }

    .gap-8 {
        gap: 1.5rem;
    }

    /* Improve touch targets on mobile */
    button, a, input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }

    /* Better form spacing on mobile */
    .form-group {
        margin-bottom: 1rem;
    }

    /* Responsive container padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Optimize service cards for mobile */
    .service-category-card {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .text-4xl {
        font-size: 1.875rem;
    }

    .px-8 {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .grid-cols-1 {
        gap: 1rem;
    }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #2563eb, #1d4ed8);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #1d4ed8, #1e40af);
}

/* Firefox scrollbar */
* {
    scrollbar-color: #2563eb #f1f1f1;
    scrollbar-width: thin;
}

/* Hide scrollbar but keep functionality */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* ===== TAILWIND POPPINS FONT ===== */
.font-poppins {
    font-family: 'Poppins', sans-serif;
}

/* ===== SMOOTH TRANSITIONS ===== */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ===== CUSTOM UTILITY FOR MASONRY ===== */
@supports (column-count: 3) {
    .columns-1 {
        column-count: 1;
    }

    @media (min-width: 768px) {
        .columns-2 {
            column-count: 2;
        }
    }

    @media (min-width: 1024px) {
        .columns-3 {
            column-count: 3;
        }
    }

    .break-inside-avoid {
        break-inside: avoid;
    }
}

/* ===== LIGHTBOX OVERLAY ===== */
#lightbox {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== HERO GRADIENT ANIMATION ===== */
.bg-gradient-to-br {
    background-image: linear-gradient(135deg, #111827 0%, #1e3a8a 50%, #111827 100%);
    animation: gradientShift 15s ease infinite;
    background-size: 400% 400%;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ===== SHADOW UTILITIES ===== */
.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hover\:shadow-2xl:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ===== TEXT SELECTION COLOR ===== */
::selection {
    background-color: #2563eb;
    color: white;
}

/* ===== FOCUS STYLES FOR ACCESSIBILITY ===== */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* Improve focus visibility for keyboard navigation */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid #2563eb;
    outline-offset: 3px;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Skip to main content link (accessibility) */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: #2563eb;
    color: white;
    padding: 8px 16px;
    border-radius: 0 0 4px 0;
    z-index: 9999;
}

.skip-to-main:focus {
    top: 0;
}

/* ===== LINK STYLES ===== */
a {
    color: inherit;
    text-decoration: none;
}

/* ===== IMAGE OPTIMIZATION ===== */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
}

/* ===== STAGGER ANIMATION FOR MULTIPLE ELEMENTS ===== */
.delay-0 { animation-delay: 0s; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }
.delay-8 { animation-delay: 0.8s; }
.delay-9 { animation-delay: 0.9s; }
.delay-10 { animation-delay: 1s; }

/* ===== SERVICE CATEGORY CARD STYLES ===== */
.service-category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(16,24,40,0.06);
    transition: transform 0.36s cubic-bezier(.2,.8,.2,1), box-shadow 0.36s ease;
}
.service-category-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(16,24,40,0.12); }
.service-image { width: 100%; height: 160px; object-fit: cover; display: block; transition: transform 0.6s ease; }
.service-image.parallax-hover:hover { transform: scale(1.06) translateY(-4px); }
.service-card-content { padding: 1rem; }
.service-card-title { font-weight: 700; color: #0f172a; margin-bottom: 0.25rem; }
.service-card-desc { color: #334155; font-size: 0.95rem; }

/* ===== PREMIUM HOVER EFFECTS ===== */
.hover\:shadow-lg:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.hover\:shadow-blue-500\/50:hover {
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.5);
}

/* ===== COUNTER ANIMATION STYLES ===== */
.counter {
    display: inline-block;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    transition: transform 0.3s ease;
}

.stat-card {
    transition: all 0.36s cubic-bezier(.2,.8,.2,1);
    border: 1px solid transparent;
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

/* ===== SUSTAINABILITY METRICS ===== */
.sustainability-metric {
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sustainability-metric:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

/* ===== CERTIFICATION LOGOS CAROUSEL ===== */
.certification-logos-section,
.client-logos-section {
    position: relative;
}

.slider-nav-controls {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.logo-slider-btn {
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    background: #ffffff;
    color: #1d4ed8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}

.logo-slider-btn:hover {
    transform: translateY(-1px);
    border-color: #93c5fd;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
}

.logo-slider-btn:active {
    transform: translateY(0);
}

.certification-logos-wrapper,
.client-logos-wrapper {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
}

.certification-logos-track,
.client-logos-track {
    display: flex;
    width: max-content;
    gap: 1.25rem;
}

.certification-logo-item,
.client-logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    scroll-snap-align: start;
}

.certification-logo-item {
    min-width: 180px;
    height: 120px;
}

.client-logo-item {
    min-width: 200px;
    height: 120px;
}

.certification-logo-item:hover,
.client-logo-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.15);
}

.certification-logo {
    max-width: 160px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter 0.3s ease;
}

.client-logo {
    max-width: 180px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(40%);
    transition: filter 0.3s ease;
}

.certification-logo-item:hover .certification-logo,
.client-logo-item:hover .client-logo {
    filter: grayscale(0%);
}

/* ===== WHY CHOOSE HORIZONTAL STRIP ===== */
.why-choose-strip {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
}

.why-card {
    flex: 0 0 260px;
    background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%);
    border: 1px solid #dbeafe;
    border-radius: 14px;
    padding: 1rem;
    scroll-snap-align: start;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.why-card-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: transparent;
    border: 0;
    padding: 0;
    text-align: left;
    transform: none;
}

.why-card-trigger:hover {
    transform: none;
}

.why-icon {
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1d4ed8;
    color: #ffffff;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.why-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.why-card-content {
    margin-top: 0.85rem;
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.5;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(-6px);
    transition: max-height 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

.why-card:hover,
.why-card.is-active {
    transform: translateY(-4px);
    border-color: #93c5fd;
    box-shadow: 0 16px 28px rgba(37, 99, 235, 0.14);
    background: #ffffff;
}

.why-card:hover .why-card-content,
.why-card.is-active .why-card-content {
    max-height: 180px;
    opacity: 1;
    transform: translateY(0);
}

.why-card:hover .why-icon,
.why-card.is-active .why-icon {
    background: #0284c7;
}

@media (max-width: 768px) {
    .slider-nav-controls {
        justify-content: center;
    }

    .client-logo-item {
        min-width: 160px;
        height: 100px;
    }

    .certification-logo-item {
        min-width: 150px;
        height: 100px;
    }

    .client-logo {
        max-width: 145px;
        max-height: 82px;
    }

    .certification-logo {
        max-width: 130px;
        max-height: 82px;
    }

    .why-card {
        flex-basis: 220px;
    }
}

/* ===== FORM STYLING ===== */
.form-group input,
.form-group textarea,
.form-group select {
    font-family: 'Poppins', sans-serif;
}

.form-group input:invalid,
.form-group textarea:invalid,
.form-group select:invalid {
    border-color: #ef4444;
    background-color: #fee2e2;
}

.form-group input:valid:not(:placeholder-shown),
.form-group textarea:valid:not(:placeholder-shown),
.form-group select:valid {
    border-color: #22c55e;
    background-color: #f0fdf4;
}

#quotationForm {
    animation: fadeInUp 0.6s ease forwards;
}

/* ===== MOBILE MENU ANIMATION ===== */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

#mobileMenu.hidden {
    animation: slideUp 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* ===== GLASS MORPHISM EFFECT (OPTIONAL) ===== */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ===== WAVY TEXT ANIMATION ===== */
@keyframes wave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* ===== CODE HIGHLIGHTING ===== */
code {
    background-color: #f3f4f6;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

/* ===== TABLE STYLES ===== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

thead {
    background-color: #f3f4f6;
}

td, th {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

tr:hover {
    background-color: #f9fafb;
}

/* ===== FORM ELEMENTS ===== */
input, textarea, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ===== LOADING SPINNER ===== */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    animation: spin 1s linear infinite;
}

/* ===== RESPONSIVE TEXT SIZES ===== */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}

/* ===== PRINT STYLES ===== */
/* ===== GALLERY STYLES ===== */
.gallery-container {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #60a5fa #e5e7eb;
}

.gallery-container::-webkit-scrollbar {
    height: 8px;
}

.gallery-container::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 4px;
}

.gallery-container::-webkit-scrollbar-thumb {
    background: #60a5fa;
    border-radius: 4px;
    transition: background 0.3s;
}

.gallery-container::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}

.gallery-track {
    display: flex;
    gap: 1rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.gallery-item {
    position: relative;
    flex-shrink: 0;
    width: 400px;
    height: 256px;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* ===== GALLERY SCROLL BUTTONS ===== */
.gallery-scroll-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    background-color: #2563eb;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.gallery-scroll-btn:hover:not(:disabled) {
    background-color: #1d4ed8;
    transform: scale(1.1);
}

.gallery-scroll-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== RESPONSIVE GALLERY ===== */
@media (max-width: 1024px) {
    .gallery-item {
        width: 320px;
        height: 240px;
    }
}

@media (max-width: 768px) {
    .gallery-item {
        width: 280px;
        height: 210px;
    }

    .gallery-track {
        gap: 0.75rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .gallery-item {
        width: 240px;
        height: 180px;
    }

    .gallery-track {
        gap: 0.5rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .gallery-scroll-btn {
        min-width: 36px;
        min-height: 36px;
    }

    .gallery-scroll-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media print {
    nav, .no-print {
        display: none;
    }

    body {
        font-size: 12pt;
    }
}
