@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    font-family: 'Inter', sans-serif;
}

/* Smooth scrolling for better UX */
html {
    scroll-behavior: smooth;
}

/* Prevent fixed navbar from covering anchored sections */
/* Adjust value to match navbar height (h-20 ~ 5rem) */
html {
    scroll-padding-top: 5rem;
}

/* Ensure individual sections also have margin for anchor targets */
#contact, #services, #about, #brands, #home {
    scroll-margin-top: 5rem;
}

/* Custom Tailwind Config */
:root {
    --primary-green: #1A4D2E;
    --secondary-green: #2D5A3D;
    --tertiary-green: #3D6B4F;
    --quaternary-green: #4A7C61;
    --primary-gold: #FFC107;
    --secondary-gold: #FFD700;
    --tertiary-gold: #FFA500;
}

/* Glassmorphism Effects */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Gradient Backgrounds */
.gradient-bg {
    background: linear-gradient(-45deg, var(--primary-green), var(--secondary-green), var(--tertiary-green), var(--quaternary-green));
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold), var(--tertiary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Parallax Effects */
.parallax {
    transform-style: preserve-3d;
}

/* Floating Elements */
.floating-element {
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(2) {
    animation-delay: -2s;
}

.floating-element:nth-child(3) {
    animation-delay: -4s;
}

/* Three.js Container */
#three-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    /* allow clicks to pass through the decorative canvas */
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary-gold);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

/* Custom Animations */
@keyframes float {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-20px); 
    }
}

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

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

/* Animation Classes */
.animate-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce-slow {
    animation: bounce 3s infinite;
}

.animate-spin-slow {
    animation: spin 8s linear infinite;
}

.animate-gradient {
    animation: gradient 15s ease infinite;
}

/* Initial States for Scroll Animations */
.service-card, .brand-card, .feature-card {
    opacity: 1;
    transform: none;
}

/* Animated state - will be added by Intersection Observer */
.service-card:not(.animate-fade-in), 
.brand-card:not(.animate-fade-in), 
.feature-card:not(.animate-fade-in) {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.service-card.animate-fade-in, 
.brand-card.animate-fade-in, 
.feature-card.animate-fade-in {
    opacity: 1;
    transform: translateY(0);
}


/* Navbar Transitions */
.navbar-transition {
    transition: all 0.3s ease;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .floating-element {
        animation: none;
    }
    
    #three-container {
        display: none;
    }
    
    .card-hover:hover {
        transform: translateY(-5px) scale(1.01);
    }
    
    /* Better touch targets for mobile */
    button, a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Optimize padding for mobile */
    .glass {
        padding: 1.5rem !important;
    }
    
    /* Improve mobile typography */
    body {
        font-size: 16px;
        line-height: 1.6;
    }
}

/* Extra small devices */
@media (max-width: 420px) {
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .section-title {
        font-size: 1.875rem !important;
    }
    
    /* Stack grid items single column */
    .grid {
        gap: 1rem;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-gold), var(--tertiary-gold));
}

/* Focus States */
button:focus,
input:focus,
select:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Utility Classes */
.bg-300 {
    background-size: 300%;
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.backdrop-blur-xl {
    backdrop-filter: blur(24px);
}

/* Brand Card Specific Styles */
.brand-card {
    transition: all 0.3s ease;
}

.brand-card:hover .brand-logo {
    transform: scale(1.1) rotate(5deg);
}

.brand-logo {
    transition: all 0.3s ease;
    background-color: white;
    border-radius: 8px;
    padding: 8px;
}

/* Service Card Specific Styles */
.service-card {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    color: var(--secondary-gold);
}

.service-icon {
    transition: all 0.3s ease;
}

/* Feature Card Specific Styles */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    color: var(--secondary-gold);
}

.feature-icon {
    transition: all 0.3s ease;
}

/* Modal Styles */
.modal-backdrop {
    backdrop-filter: blur(8px);
}

.modal-content {
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Button Hover Effects */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-gold), var(--tertiary-gold));
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 193, 7, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

/* Social Media Icons */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1) translateY(-2px);
    background: var(--primary-gold);
    color: var(--primary-green);
}

/* Footer Styles */
.footer-link {
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-gold);
    transform: translateX(5px);
}

/* Stats Counter */
.stat-number {
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-gold), var(--secondary-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive Typography */
@media (max-width: 640px) {
    .hero-title {
        font-size: 3rem;
        line-height: 1.1;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
        line-height: 1.1;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

@media (min-width: 1025px) {
    .hero-title {
        font-size: 5rem;
        line-height: 1.1;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .glass, .gradient-bg {
        background: white !important;
        backdrop-filter: none !important;
    }
}
