/* Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for fixed header */
}

/* Global Styles */
body {
    font-family: 'Montserrat', sans-serif;
}

/* Color Classes */
.gold-text {
    color: #D4AF37;
}

.electric-blue-text {
    color: #00B4D8;
}

.dark-bg {
    background-color: #0A0A0A;
}

/* Transitions */
.smooth-transition {
    transition: all 0.4s ease;
}

/* Hover Effects */
.hover-scale:hover {
    transform: scale(1.05);
}

/* Header Styles */
header {
    transition: all 0.3s ease;
    position: relative;
    z-index: 1000;
}

/* Premium Desktop Navigation */
header nav {
    position: relative;
    z-index: 100;
}

header nav a {
    position: relative;
    padding: 0.5rem 1.25rem;
    margin: 0 0.5rem;
    color: #ffffffcc;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-radius: 50px;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
}

header nav a i {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

header nav a:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

header nav a:hover i {
    transform: translateY(-1px);
}

/* Active state for current page */
header nav a.border-gold {
    color: #D4AF37 !important;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
    position: relative;
}

header nav a.border-gold:before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    transition: width 0.4s ease;
}

header nav a.border-gold:hover:before {
    width: 80%;
}

/* ===== Client Carousel Styles ===== */
.carousel-container {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
}

.carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
    will-change: transform;
}

.client-logo {
    flex: 0 0 calc(33.333% - 1.33rem);
    padding: 1rem;
    transition: all 0.3s ease;
}

.logo-container {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    padding: 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.logo-container:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.logo-container img {
    max-width: 100%;
    height: auto;
    transition: all 0.4s ease;
    filter: grayscale(100%) brightness(0.8);
    opacity: 0.8;
}

.logo-container:hover img {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1.05);
}

.client-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-align: left;
}

.client-overlay h3 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.client-overlay p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin: 0;
}

.logo-container:hover .client-overlay {
    transform: translateY(0);
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.carousel-arrow:hover {
    background: #D4AF37;
    color: #000;
    transform: translateY(-50%) scale(1.1);
}

.left-0 {
    left: -24px;
}

.right-0 {
    right: -24px;
}

.group:hover .carousel-arrow {
    opacity: 1;
    visibility: visible;
}

/* Social Media Icons */
.social-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-container {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease, transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

.icon-container i {
    color: white;
    z-index: 2;
    transition: transform 0.3s ease;
}

.icon-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-icon:hover .icon-container {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.social-icon:hover .icon-container::before {
    opacity: 1;
}

.social-icon:hover .icon-container i {
    transform: scale(1.2);
}

/* Carousel Dots Navigation */
.carousel-dots {
    position: relative;
    z-index: 10;
}

.carousel-dots button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.carousel-dots button:hover {
    background-color: #D4AF37;
    transform: scale(1.2);
}

.carousel-dots button.bg-gold,
.carousel-dots button.active {
    background-color: #D4AF37 !important;
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .client-logo {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 640px) {
    .client-logo {
        flex: 0 0 100%;
    }
    
    .carousel-arrow {
        width: 36px;
        height: 36px;
    }
    
    .left-0 {
        left: 10px;
    }
    
    .right-0 {
        right: 10px;
    }
}

/* Hover effect */
header nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
    transform: translateX(-50%);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: -1;
    opacity: 0;
}

header nav a:hover:after,
header nav a.border-gold:after {
    width: 100%;
    opacity: 1;
}

header nav a.border-gold:after {
    background: linear-gradient(90deg, transparent, #D4AF37, transparent);
}

/* Navigation bar effect */
header:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* Mobile Menu */
#mobile-menu {
    position: fixed;
    top: 80px; /* Height of header */
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

#mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
}

#mobile-menu a {
    display: block;
    padding: 1rem 2rem;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

#mobile-menu a:hover,
#mobile-menu a:focus {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    padding-left: 2.5rem;
    border-left-color: var(--gold);
}

#mobile-menu a.active {
    color: var(--gold);
    font-weight: 600;
    background: rgba(212, 175, 55, 0.1);
    border-left-color: var(--gold);
}

/* Menu Toggle Button */
#menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
}

#menu-toggle:hover {
    color: var(--gold);
}

#menu-toggle[aria-expanded="true"] {
    color: var(--gold);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

body.menu-open {
    overflow: hidden;
}

body.menu-open .menu-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* Close button for mobile menu */
#close-menu {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1002;
}

#close-menu:hover {
    color: var(--gold);
}

@media (min-width: 768px) {
    #mobile-menu {
        display: none;
    }
    
    #menu-toggle {
        display: none;
    }
}

/* Footer Styles */
footer a:hover {
    color: #D4AF37;
}

/* Form Elements */
input, textarea {
    width: 100%;
    padding: 0.75rem;
    background-color: #1F2937;
    border: 1px solid #374151;
    border-radius: 0.375rem;
    color: white;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #D4AF37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

/* Buttons */
button, .btn {
    transition: all 0.3s ease;
}

button:focus, .btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.4);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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