/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #000000;
}

/* Typography */
.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Utility Classes */
.hidden {
    display: none;
}

.block {
    display: block;
}

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.text-center {
    text-align: center;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-0 {
    z-index: 0;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

/* Spacing */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }

.m-4 { margin: 1rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mr-4 { margin-right: 1rem; }
.mt-4 { margin-top: 1rem; }
.mt-12 { margin-top: 3rem; }

/* Sizing */
.w-full { width: 100%; }
.w-6 { width: 1.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-16 { height: 4rem; }
.h-18 { height: 4.5rem; }
.h-20 { height: 5rem; }
.h-24 { height: 6rem; }
.h-28 { height: 7rem; }
.h-32 { height: 8rem; }
.h-40 { height: 10rem; }
.h-48 { height: 12rem; }
.h-64 { height: 16rem; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }

/* Colors */
.bg-black { background-color: #000000; }
.bg-gray-900 { background-color: #111827; }
.bg-yellow-600 { background-color: #D4AF37; }
.bg-yellow-700 { background-color: #B8941F; }

.text-white { color: #ffffff; }
.text-black { color: #000000; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-yellow-400 { color: #F4D03F; }

.border { border-width: 1px; }
.border-gray-700 { border-color: #374151; }
.border-gray-800 { border-color: #1f2937; }
.border-yellow-600 { border-color: #D4AF37; }

/* Typography Sizes */
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-6xl { font-size: 3.75rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.leading-relaxed { line-height: 1.625; }

/* Border Radius */
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

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

/* Object Fit */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.object-fill { object-fit: fill; }
.object-scale-down { object-fit: scale-down; }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Opacity */
.opacity-0 { opacity: 0; }
.opacity-40 { opacity: 0.4; }
.opacity-100 { opacity: 1; }

/* Transitions */
.transition-colors { transition-property: color, background-color, border-color; }
.transition-opacity { transition-property: opacity; }
.transition-transform { transition-property: transform; }
.transition-all { transition-property: all; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

/* Transforms */
.transform { transform: translateX(0) translateY(0) rotate(0) skewX(0) skewY(0) scaleX(1) scaleY(1); }
.translate-y-4 { transform: translateY(1rem); }
.scale-105 { transform: scale(1.05); }
.scale-110 { transform: scale(1.1); }

/* Focus */
.focus\:outline-none:focus { outline: none; }
.focus\:border-yellow-600:focus { border-color: #D4AF37; }

/* Hover Effects */
.hover\:text-yellow-400:hover { color: #F4D03F; }
.hover\:bg-yellow-600:hover { background-color: #D4AF37; }
.hover\:bg-yellow-700:hover { background-color: #B8941F; }
.hover\:border-yellow-600:hover { border-color: #D4AF37; }
.hover\:scale-105:hover { transform: scale(1.05); }

/* Group Hover */
.group:hover .group-hover\:opacity-100 { opacity: 1; }
.group:hover .group-hover\:translate-y-0 { transform: translateY(0); }
.group:hover .group-hover\:scale-110 { transform: scale(1.1); }

/* Grid */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* Flex */
.space-x-8 > * + * { margin-left: 2rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-4 > * + * { margin-top: 1rem; }

/* Custom Styles */
.top-0 { top: 0; }
.w-full { width: 100%; }
.cursor-pointer { cursor: pointer; }

/* Header Styles */
header {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Hero Section */
.hero-gradient {
    background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(17,24,39,0.6) 50%, rgba(0,0,0,0.9) 100%);
}

/* Custom Gradients */
.bg-gradient-to-b {
    background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.bg-gradient-to-t {
    background-image: linear-gradient(to top, var(--tw-gradient-stops));
}

.from-black\/60 {
    --tw-gradient-from: rgba(0, 0, 0, 0.6);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

.via-black\/40 {
    --tw-gradient-stops: var(--tw-gradient-from), rgba(0, 0, 0, 0.4), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

.to-black\/80 {
    --tw-gradient-to: rgba(0, 0, 0, 0.8);
}

.from-black\/80 {
    --tw-gradient-from: rgba(0, 0, 0, 0.8);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

.to-transparent {
    --tw-gradient-to: transparent;
}

.from-black\/50 {
    --tw-gradient-from: rgba(0, 0, 0, 0.5);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(0, 0, 0, 0));
}

/* Backdrop Blur */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Form Styles */
input, select, textarea {
    transition: border-color 0.3s ease;
}

input::placeholder, textarea::placeholder {
    color: #9ca3af;
}

/* Button Styles */
button, .btn {
    transition: all 0.3s ease;
    cursor: pointer;
}

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

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

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

/* Custom Product Card Hover Effects */
.product-card {
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-card .product-overlay {
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:flex { display: flex; }
    .md\:hidden { display: none; }
    .md\:h-10 { height: 2.5rem; }
    .md\:h-14 { height: 3.5rem; }
    .md\:h-18 { height: 4.5rem; }
    .md\:h-20 { height: 5rem; }
    .md\:h-24 { height: 6rem; }
    .md\:h-32 { height: 8rem; }
    .md\:h-40 { height: 10rem; }
    .md\:h-48 { height: 12rem; }
    .md\:text-2xl { font-size: 1.5rem; }
    .md\:text-6xl { font-size: 3.75rem; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* Mobile Optimizations */
@media (max-width: 767px) {
    .container {
        padding: 0 1rem;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
    
    .text-6xl {
        font-size: 2.5rem;
    }
    
    .py-20 {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .grid-cols-2 {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .space-x-8 > * + * {
        margin-left: 0;
        margin-top: 1rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111827;
}

::-webkit-scrollbar-thumb {
    background: #D4AF37;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #B8941F;
}

/* Hide scrollbar for gallery */
.scrollbar-hide {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;  /* Chrome, Safari and Opera */
}

/* Gallery specific styles */
.gallery-item {
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

/* High z-index for popup */
.z-60 {
    z-index: 60;
}

/* Logo Image Styles - Clean and Large */
.logo-header {
    transition: all 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: optimizeQuality;
    width: auto;
    max-width: 240px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
    object-position: center;
}

.logo-header:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.logo-hero {
    transition: all 0.4s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: optimizeQuality;
    width: auto;
    max-width: 650px;
    height: auto;
    object-fit: contain;
    object-position: center;
    border-radius: 12px;
}

.logo-hero:hover {
    transform: scale(1.03);
    filter: brightness(1.1);
}

/* Logo Hero Background - White div behind logo */
.logo-hero-background {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    width: 100%;
    padding: 32px 40px 48px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustments for Hero Section */
@media (max-width: 768px) {
    .logo-hero {
        max-width: 90vw;
        width: 100%;
    }
    
    .logo-hero-background {
        padding: 20px 16px 32px 16px;
        border-radius: 12px;
        margin: 0 16px;
    }
    
    /* Adjust hero text sizes for mobile */
    .text-5xl.md\\:text-7xl {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 1.5rem;
    }
    
    .text-xl.md\\:text-2xl {
        font-size: 1.125rem !important;
        margin-bottom: 2rem;
    }
    
    /* Hero container adjustments */
    .max-w-6xl {
        padding: 0 1rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .logo-hero {
        max-width: 500px;
    }
    
    .logo-hero-background {
        padding: 28px 32px 40px 32px;
        margin: 0 24px;
    }
    
    .text-5xl.md\\:text-7xl {
        font-size: 3rem !important;
    }
    
    .text-xl.md\\:text-2xl {
        font-size: 1.375rem !important;
    }
}

@media (max-width: 480px) {
    .logo-hero {
        max-width: 85vw;
    }
    
    .logo-hero-background {
        padding: 16px 12px 24px 12px;
        border-radius: 8px;
        margin: 0 12px;
    }
    
    .text-5xl.md\\:text-7xl {
        font-size: 1.75rem !important;
        margin-bottom: 1rem;
    }
    
    .text-xl.md\\:text-2xl {
        font-size: 1rem !important;
        margin-bottom: 1.5rem;
    }
    
    .mb-12 {
        margin-bottom: 2rem;
    }
    
    /* Button adjustments */
    .px-10.py-4 {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }
}

.logo-footer {
    transition: all 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: optimizeQuality;
    width: auto;
    max-width: 160px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    object-position: center;
    opacity: 0.9;
}

.logo-footer:hover {
    transform: scale(1.02);
    opacity: 1;
    filter: brightness(1.05);
}



/* Enhanced logo styling for better integration */
img[src*="logo"] {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: optimizeQuality;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

/* Client Logos Carousel */
.clients-carousel-container {
    width: 100%;
    height: 200px;
    mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
    -webkit-mask: linear-gradient(90deg, transparent, white 10%, white 90%, transparent);
    padding: 20px 0;
    position: relative;
    overflow: visible;
}

.clients-carousel {
    animation: scroll-horizontal 25s linear infinite;
    width: max-content;
    gap: 3rem;
}

@keyframes scroll-horizontal {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.client-item {
    width: 240px;
    margin: 0 1.5rem;
}

.client-logo-wrapper {
    transition: all 0.3s ease;
    height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible;
    z-index: 1;
}

.client-logo-wrapper:hover {
    transform: translateY(-12px) scale(1.08);
    border-color: rgba(212, 175, 55, 0.6);
    background-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(212, 175, 55, 0.3);
    z-index: 10;
}

.client-logo {
    transition: all 0.3s ease;
    filter: brightness(1.1) contrast(1.1) grayscale(0.3);
    object-fit: contain;
    max-width: 140px;
}

.client-logo:hover {
    filter: brightness(1.3) contrast(1.2) grayscale(0);
}

.client-item .text-sm {
    font-size: 0.875rem;
    line-height: 1.2;
    opacity: 0.9;
    transition: all 0.3s ease;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo-wrapper:hover .text-sm {
    opacity: 1;
    color: rgba(212, 175, 55, 0.9);
    transform: scale(1.05);
}

/* Pause animation on hover */
.clients-carousel-container:hover .clients-carousel {
    animation-play-state: paused;
}

/* Ensure parent section allows overflow for hover effects */
section:has(.clients-carousel-container),
.py-20.bg-gray-900:has(.clients-carousel-container) {
    overflow: visible;
    position: relative;
}

.clients-carousel-container {
    position: relative;
    z-index: 1;
}

/* Ensure hover elements stay above everything */
.client-logo-wrapper:hover {
    position: relative;
    z-index: 20;
}

/* Responsive adjustments for 4 clients visible */
@media (min-width: 1200px) {
    /* Desktop large - 4 clients visible */
    .client-item {
        width: 280px;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    /* Desktop - 4 clients visible */
    .client-item {
        width: 240px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    /* Tablet - 3 clients visible */
    .client-item {
        width: 220px;
        margin: 0 1rem;
    }
    
    .client-logo-wrapper {
        height: 130px;
        padding: 1rem;
    }
    
    .client-logo {
        height: 4.5rem;
        max-width: 140px;
    }
    
    .clients-carousel {
        animation-duration: 22s;
        gap: 2rem;
    }
}

@media (max-width: 767px) {
    /* Mobile - 2 clients visible */
    .client-item {
        width: 180px;
        margin: 0 0.75rem;
    }
    
    .client-logo-wrapper {
        height: 120px;
        padding: 1rem;
    }
    
    .client-logo {
        height: 4rem;
        max-width: 120px;
    }
    
    .clients-carousel {
        animation-duration: 20s;
        gap: 1.5rem;
    }
    
    .clients-carousel-container {
        height: 180px;
        padding: 15px 0;
    }
}

@media (max-width: 480px) {
    /* Mobile small - 1.5 clients visible */
    .client-item {
        width: 160px;
        margin: 0 0.5rem;
    }
    
    .client-logo-wrapper {
        height: 100px;
        padding: 0.75rem;
    }
    
    .client-logo {
        height: 3.5rem;
        max-width: 100px;
    }
    
    .clients-carousel {
        animation-duration: 18s;
        gap: 1rem;
    }
    
    .clients-carousel-container {
        height: 160px;
        padding: 10px 0;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

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

/* Smooth Transitions for All Interactive Elements */
a, button, input, select, textarea {
    transition: all 0.3s ease;
}

/* Focus Styles for Accessibility */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 2px solid #D4AF37;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .fixed, .sticky {
        position: static !important;
    }
    
    .bg-black, .bg-gray-900 {
        background: white !important;
        color: black !important;
    }
    
    .text-white {
        color: black !important;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .bg-gray-900 {
        background-color: #000000;
    }
    
    .text-gray-400 {
        color: #ffffff;
    }
}

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

