@import 'bootstrap/dist/css/bootstrap.min.css';

/* Custom LECL Styles */
:root {
    --lecl-primary: #1e3a8a;
    --lecl-primary-rgb: 30, 58, 138;
    --lecl-secondary: #3b82f6;
    --lecl-accent: #f59e0b;
    --lecl-dark: #1f2937;
    --lecl-light: #f8fafc;
    --primary-navy: #1e3a8a;
    --primary-blue: #3b82f6;
    --accent-gold: #f59e0b;
    --white: #ffffff;
}

/* Ensure all sections have proper backgrounds */
section {
    position: relative;
    z-index: 1;
}

.bg-light {
    background-color: #f8f9fa !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--lecl-dark);
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--lecl-primary) !important;
}

/* Section titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--lecl-dark);
    margin-bottom: 2rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #6b7280;
    text-align: center;
    margin-bottom: 3rem;
}

/* Text content */
.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--lecl-dark);
}

p {
    color: var(--lecl-dark);
    margin-bottom: 1rem;
}

/* Enhanced hero section with animations */
.hero-section {
    background: linear-gradient(135deg, var(--lecl-primary) 0%, var(--lecl-secondary) 100%);
    color: white;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
    animation: float 6s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 8s ease-in-out infinite reverse;
    opacity: 0.4;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out 0.6s forwards;
}

.hero-section .btn {
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.9s forwards;
}

/* Enhanced button styles with animations */
.btn-lecl {
    background-color: var(--lecl-accent);
    border-color: var(--lecl-accent);
    color: white;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-lecl::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
    z-index: -1;
}

.btn-lecl:hover::before {
    left: 100%;
}

.btn-lecl:hover {
    background-color: #d97706;
    border-color: #d97706;
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.4);
}

.btn-lecl:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--lecl-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--lecl-secondary);
    margin-bottom: 3rem;
    text-align: center;
}

/* Professional animations and motion */
@keyframes fadeInUp {
    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 scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

.animate-slide-in-down {
    animation: slideInDown 0.8s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

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

/* Staggered animation delays */
.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.5s; }
.animate-delay-6 { animation-delay: 0.6s; }

/* Initial hidden state for animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Enhanced card animations */
.card-custom {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.card-custom.animate {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.card-custom:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--lecl-primary);
}

.testimonial-card {
    background: var(--lecl-light);
    border-left: 4px solid var(--lecl-accent);
    padding: 2rem;
    margin: 1rem 0;
    border-radius: 10px;
    transition: all 0.4s ease;
    transform: perspective(1000px) rotateX(0deg);
}

.testimonial-card:hover {
    transform: perspective(1000px) rotateX(2deg) translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.partner-logo {
    max-height: 80px;
    transition: all 0.3s ease;
    transform: scale(1);
    filter: grayscale(0.3);
}

.partner-logo:hover {
    transform: scale(1.05);
    filter: grayscale(0);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.footer {
    background-color: var(--lecl-dark);
    color: white;
    padding: 3rem 0 1rem;
}

/* Footer styling */
.footer {
    background: linear-gradient(135deg, var(--lecl-dark) 0%, #374151 100%);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 0;
}

.footer h5,
.footer h6 {
    color: white;
    font-weight: 600;
}

.footer .text-light {
    color: #d1d5db !important;
}

.footer a.text-light:hover {
    color: white !important;
    text-decoration: underline;
}

/* Enhanced Animation Styles for Contact Page */
.fade-in {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.section-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.section-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.slide-up.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { animation-delay: 0.2s; }
.stagger-2 { animation-delay: 0.4s; }
.stagger-3 { animation-delay: 0.6s; }

.floating-enhanced {
    animation: floatingEnhanced 3s ease-in-out infinite;
}

@keyframes floatingEnhanced {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(2deg);
    }
    50% {
        transform: translateY(-5px) rotate(0deg);
    }
    75% {
        transform: translateY(-15px) rotate(-2deg);
    }
}

.hero-glow {
    position: relative;
}

.hero-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.3) 0%, transparent 70%);
    animation: glow 4s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        opacity: 0.5;
        transform: scale(1);
    }
    to {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.bubbles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: bubbleFloat 8s ease-in-out infinite;
}

.bubble-1 {
    width: 60px;
    height: 60px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.bubble-2 {
    width: 80px;
    height: 80px;
    top: 70%;
    right: 10%;
    animation-delay: 2s;
}

.bubble-3 {
    width: 40px;
    height: 40px;
    top: 40%;
    left: 80%;
    animation-delay: 4s;
}

.bubble-4 {
    width: 100px;
    height: 100px;
    top: 80%;
    left: 20%;
    animation-delay: 1s;
}

.bubble-5 {
    width: 50px;
    height: 50px;
    top: 20%;
    right: 30%;
    animation-delay: 3s;
}

.bubble-6 {
    width: 70px;
    height: 70px;
    top: 60%;
    left: 50%;
    animation-delay: 5s;
}

.bubble-7 {
    width: 30px;
    height: 30px;
    top: 30%;
    left: 70%;
    animation-delay: 6s;
}

.bubble-8 {
    width: 90px;
    height: 90px;
    top: 50%;
    right: 20%;
    animation-delay: 7s;
}

@keyframes bubbleFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.7;
    }
    25% {
        transform: translateY(-20px) rotate(90deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px) rotate(180deg);
        opacity: 0.8;
    }
    75% {
        transform: translateY(-30px) rotate(270deg);
        opacity: 0.9;
    }
}

.parallax-element {
    animation: parallaxFloat 6s ease-in-out infinite;
}

@keyframes parallaxFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-15px) translateX(5px);
    }
    50% {
        transform: translateY(-10px) translateX(-5px);
    }
    75% {
        transform: translateY(-20px) translateX(3px);
    }
}

.btn-enhanced {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-enhanced:hover::before {
    left: 100%;
}

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

.stats-enhanced {
    transition: all 0.3s ease;
}

.stats-enhanced:hover {
    transform: scale(1.05);
}

.counter {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

.magnetic {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.magnetic:hover {
    transform: translateY(-3px);
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .bubble {
        display: none;
    }
    
    .parallax-element {
        display: none;
    }
    
    .floating-enhanced {
        animation: none;
    }
}
