@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    padding-top: 80px; /* Space for fixed header */
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; 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); }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.animate-fade-in.delay-100 {
    animation-delay: 0.1s;
}

.animate-fade-in.delay-200 {
    animation-delay: 0.2s;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}
/* Modern Solution Cards */
.solution-card-modern {
    @apply bg-white p-0 rounded-xl shadow-2xl transition-all duration-500 border border-gray-100 overflow-hidden h-64;
    position: relative;
}

.solution-card-content {
    @apply p-8 h-full flex flex-col relative z-10;
}

.solution-card-overlay {
    @apply absolute inset-0 bg-gradient-to-br from-primary to-primary-dark opacity-90 transition-all duration-500;
    transform: translateY(100%);
}

.solution-card-modern:hover .solution-card-overlay {
    transform: translateY(0);
}

.solution-card-modern h3 {
    @apply text-xl font-bold mb-3 text-primary transition-all duration-500;
}

.solution-card-modern:hover h3 {
    @apply text-white;
}

.solution-card-modern p {
    @apply text-gray-600 transition-all duration-500;
}

.solution-card-modern:hover p {
    @apply text-white/80;
}

.icon-container-modern {
    @apply w-16 h-16 rounded-full flex items-center justify-center mb-6 bg-primary/10 transition-all duration-500;
}

.solution-card-modern:hover .icon-container-modern {
    @apply bg-white/20;
}

.solution-icon-modern {
    @apply text-primary w-8 h-8 transition-all duration-500;
}

.solution-card-modern:hover .solution-icon-modern {
    @apply text-white;
    transform: rotate(10deg);
}

/* Industry Cards Modern */
.industry-card-modern {
    @apply p-8 rounded-xl relative overflow-hidden min-h-[250px] flex flex-col justify-end cursor-pointer;
    background: linear-gradient(135deg, rgba(11, 61, 46, 0.9) 0%, rgba(11, 61, 46, 0.7) 100%);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.industry-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

.industry-card-modern h3 {
    @apply text-2xl font-bold mb-2 relative z-10 text-white;
}

.industry-card-modern p {
    @apply opacity-90 relative z-10 text-white/80;
}

.industry-dots {
    @apply absolute bottom-6 right-6 flex space-x-1;
}

.industry-dots span {
    @apply block w-2 h-2 rounded-full bg-white/30;
    transition: all 0.3s ease;
}

.industry-card-modern:hover .industry-dots span {
    @apply bg-secondary;
}

.industry-dots span:nth-child(1) { transition-delay: 0.1s; }
.industry-dots span:nth-child(2) { transition-delay: 0.2s; }
.industry-dots span:nth-child(3) { transition-delay: 0.3s; }

/* Modal Styles */
.modal {
    @apply fixed inset-0 bg-black/80 z-50 flex items-center justify-center p-4 opacity-0 pointer-events-none transition-opacity duration-300;
}

.modal.active {
    @apply opacity-100 pointer-events-auto;
}

.modal-content {
    @apply bg-white rounded-xl max-w-2xl w-full max-h-[90vh] overflow-y-auto relative;
}

.close-modal {
    @apply absolute top-4 right-4 text-gray-500 hover:text-primary text-2xl;
}

/* Hero Slider */
.bg-slide {
    animation: slideShow 16s infinite;
}

@keyframes slideShow {
    0%, 100% { 
        background-image: url('http://static.photos/technology/1200x630/1');
        opacity: 1;
    }
    25% { 
        background-image: url('http://static.photos/industry/1200x630/2');
        opacity: 1;
    }
    50% { 
        background-image: url('http://static.photos/workspace/1200x630/3');
        opacity: 1;
    }
    75% { 
        background-image: url('http://static.photos/office/1200x630/4');
        opacity: 1;
    }
}
/* Brands Marquee Section */
.brands-marquee {
    @apply overflow-hidden relative bg-gray-50;
    padding-top: 3rem;
    padding-bottom: 3rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.brands-track {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: max-content;
    gap: 2rem;
    padding: 1rem 0;
    animation: scroll 30s linear infinite;
}

.brand-item {
    @apply flex-shrink-0;
    padding: 0.75rem 1rem;
    min-width: 140px;
    opacity: 0;
    animation: fadeInLogo 0.8s ease-out forwards;
}

.brand-item:nth-child(1) { animation-delay: 0.1s; }
.brand-item:nth-child(2) { animation-delay: 0.2s; }
.brand-item:nth-child(3) { animation-delay: 0.3s; }
.brand-item:nth-child(4) { animation-delay: 0.4s; }
.brand-item:nth-child(5) { animation-delay: 0.5s; }
.brand-item:nth-child(6) { animation-delay: 0.6s; }
.brand-item:nth-child(7) { animation-delay: 0.7s; }
.brand-item:nth-child(8) { animation-delay: 0.8s; }
.brand-item:nth-child(9) { animation-delay: 0.9s; }
.brand-item:nth-child(10) { animation-delay: 1s; }
.brand-item:nth-child(11) { animation-delay: 1.1s; }
.brand-item:nth-child(12) { animation-delay: 1.2s; }

.brand-image {
    @apply max-w-full object-contain filter grayscale opacity-70 transition-all duration-300;
    height: 48px;
    width: auto;
    transform: scale(0.95);
}

.brand-item:hover .brand-image {
    @apply filter-none opacity-100;
    transform: scale(1.1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes fadeInLogo {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
/* Animation Delays */
.animate-fade-in.delay-100 { animation-delay: 0.1s; }
.animate-fade-in.delay-150 { animation-delay: 0.15s; }
.animate-fade-in.delay-200 { animation-delay: 0.2s; }
.animate-fade-in.delay-250 { animation-delay: 0.25s; }
.animate-fade-in.delay-300 { animation-delay: 0.3s; }
.animate-fade-in.delay-350 { animation-delay: 0.35s; }

/* Fade-in on scroll animation - only hide if JavaScript is enabled */
.js-enabled .fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.js-enabled .fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero section should be visible immediately - no fade-in */
.js-enabled section:first-of-type.fade-in-section {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Ensure navbar and footer are always visible */
custom-navbar,
custom-footer {
    opacity: 1 !important;
    transform: none !important;
}

/* Default: show content if JavaScript is disabled or not yet loaded */
.fade-in-section {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for child elements */
.fade-in-section.visible .fade-in-item {
    animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in-section.visible .fade-in-item:nth-child(1) { animation-delay: 0.1s; }
.fade-in-section.visible .fade-in-item:nth-child(2) { animation-delay: 0.2s; }
.fade-in-section.visible .fade-in-item:nth-child(3) { animation-delay: 0.3s; }
.fade-in-section.visible .fade-in-item:nth-child(4) { animation-delay: 0.4s; }
.fade-in-section.visible .fade-in-item:nth-child(5) { animation-delay: 0.5s; }
.fade-in-section.visible .fade-in-item:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Industry Cards Simple */
.industry-card-simple {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.industry-card-simple:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.industry-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.industry-card-simple h3 {
    padding: 0 1.5rem;
}

.industry-card-simple p {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

/* Glow Effects */
.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(34, 122, 89, 0.3) 0%, transparent 70%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.glow-effect:hover::after {
    opacity: 1;
}

/* Form Styles */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(34, 122, 89, 0.3);
}

/* Card Styles */
.card-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-img {
    position: relative;
    transition: all 0.3s ease;
}

.card:hover .card-img {
    transform: scale(1.05);
}

.card-box {
    flex-grow: 1;
    background: white;
}

.card-box ul {
    list-style-type: none;
    padding-left: 0;
}

.card-box ul li::before {
    content: "•";
    color: #227a59;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Solution Card Styles */
.solution-card {
    background: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.solution-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.icon-container {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(11, 61, 46, 0.1);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.solution-card:hover .icon-container {
    background: rgba(34, 122, 89, 0.2);
}

.solution-icon {
    color: #0B3D2E;
    width: 2rem;
    height: 2rem;
    transition: all 0.3s ease;
}

.solution-card:hover .solution-icon {
    color: #227a59;
}

.solution-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0B3D2E;
    margin-bottom: 0.75rem;
}

.solution-card p {
    color: #4b5563;
}

/* Contact Section Full Width */
.contact-section {
    background: linear-gradient(135deg, #0B3D2E 0%, #0a3528 100%);
    color: white;
    padding: 5rem 1.5rem;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-info p {
    opacity: 0.9;
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    color: #227a59;
    margin-top: 0.25rem;
}

.contact-item h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.contact-item a {
    color: white;
    opacity: 0.8;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-item a:hover {
    opacity: 1;
}

.contact-form {
    background: white;
    padding: 2.5rem;
    border-radius: 0.75rem;
}

.contact-form label {
    display: block;
    color: #1f2937;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    color: #0B3D2E;
    background-color: white;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #6b7280;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: #227a59;
    box-shadow: 0 0 0 3px rgba(34, 122, 89, 0.1);
}

.contact-form button {
    width: 100%;
    background: #227a59;
    color: #0B3D2E;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    background: #34e000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 122, 89, 0.3);
}

@media (max-width: 968px) {
    .contact-content {
        grid-template-columns: 1fr;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .animate-slide-in-left, .animate-slide-in-right {
        animation: fadeIn 1s ease-out forwards;
    }
}