/* Custom Styles for ELS Website */

:root {
    /* ELS Brand Colors */
    --els-primary: #0f3d6f;
    --els-gold: #ebcd7d;
    --els-steel: #5f7297;
    --els-grey: #aeaeae;
    
    /* Gradients using ELS colors */
    --primary-gradient: linear-gradient(135deg, #0f3d6f 0%, #ebcd7d 100%);
    --secondary-gradient: linear-gradient(135deg, #ebcd7d 0%, #5f7297 100%);
    --success-gradient: linear-gradient(135deg, #0f3d6f 0%, #5f7297 100%);
    --info-gradient: linear-gradient(135deg, #5f7297 0%, #0f3d6f 100%);
    --warning-gradient: linear-gradient(135deg, #ebcd7d 0%, #0f3d6f 100%);
    --dark-gradient: linear-gradient(135deg, #0f3d6f 0%, #5f7297 100%);
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    background: linear-gradient(45deg, #ffffff, #f8f9fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 20px rgba(255,255,255,0.5); }
    to { text-shadow: 0 0 30px rgba(255,255,255,0.8), 0 0 40px rgba(255,255,255,0.6); }
}

.hero p {
    font-size: 1.3rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    color: rgba(255, 255, 255, 0.9);
}

.btn-primary {
    background: var(--primary-gradient);
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 32px rgba(15, 61, 111, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::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-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(15, 61, 111, 0.4);
    background: linear-gradient(135deg, #0f3d6f 0%, #5f7297 100%);
}

.btn-success {
    background: linear-gradient(135deg, #0f3d6f 0%, #5f7297 100%);
    border: none;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(15, 61, 111, 0.3);
    transition: all 0.3s ease;
    color: white;
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(15, 61, 111, 0.4);
    background: linear-gradient(135deg, #5f7297 0%, #0f3d6f 100%);
}

.btn-warning {
    background: linear-gradient(135deg, #ebcd7d 0%, #0f3d6f 100%);
    border: none;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(235, 205, 125, 0.3);
    transition: all 0.3s ease;
    color: white;
}

.btn-warning:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(235, 205, 125, 0.4);
    background: linear-gradient(135deg, #0f3d6f 0%, #ebcd7d 100%);
}

.btn-info {
    background: linear-gradient(135deg, #5f7297 0%, #0f3d6f 100%);
    border: none;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(95, 114, 151, 0.3);
    transition: all 0.3s ease;
    color: white;
}

.btn-info:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(95, 114, 151, 0.4);
    background: linear-gradient(135deg, #0f3d6f 0%, #5f7297 100%);
}

.card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: none;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.card-img-top {
    transition: transform 0.4s ease;
}

.card:hover .card-img-top {
    transform: scale(1.1);
}

.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--primary-gradient);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.navbar-brand img {
    height: 60px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

footer {
    margin-top: auto;
    background: var(--dark-gradient);
    color: white;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
}

/* Glass morphism effect */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
}

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

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

/* Gradient text */
.gradient-text {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Enhanced modal */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95);
}

.modal-header {
    border-radius: 20px 20px 0 0;
    border: none;
    padding: 2rem;
}

/* Stat items enhancement */
.stat-item {
    transition: all 0.3s ease;
    padding: 1.5rem;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 0.2);
}

/* Parallax effect */
.parallax {
    background-attachment: fixed;
    background-size: cover;
}

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

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0f3d6f 0%, #5f7297 100%);
}

/* Text colors for ELS palette */
.text-primary {
    color: #0f3d6f !important;
}

.text-success {
    color: #0f3d6f !important;
}

.text-info {
    color: #5f7297 !important;
}

.text-warning {
    color: #ebcd7d !important;
}

/* Background colors for ELS palette */
.bg-primary {
    background: linear-gradient(135deg, #0f3d6f 0%, #5f7297 100%) !important;
}

.bg-success {
    background: linear-gradient(135deg, #0f3d6f 0%, #5f7297 100%) !important;
}

.bg-info {
    background: #5f7297 !important;
}

.bg-warning {
    background: #ebcd7d !important;
}

/* Icon colors using ELS palette */
.fa-language, .fa-graduation-cap, .fa-laptop, .fa-users {
    color: #0f3d6f !important;
}

/* Nav link colors */
.nav-link {
    color: #0f3d6f !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #ebcd7d !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: linear-gradient(90deg, #0f3d6f, #ebcd7d);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* Modern Card Design System */
.els-card {
    background: #ffffff;
    border: 1px solid rgba(15, 61, 111, 0.08);
    border-left: 5px solid var(--els-gold);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.els-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(235, 205, 125, 0.05) 0%, transparent 20%);
    pointer-events: none;
    z-index: 0;
}

.els-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(15, 61, 111, 0.15);
    border-color: rgba(15, 61, 111, 0.1);
    border-left: 8px solid var(--els-gold);
}

.els-card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.els-card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.els-card:hover .els-card-img-wrapper img {
    transform: scale(1.1);
}

.els-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 61, 111, 0) 0%, rgba(15, 61, 111, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.els-card:hover .els-card-overlay {
    opacity: 1;
}

.els-card-header {
    padding: 20px;
    background: var(--els-primary);
    color: white;
    text-align: center;
    position: relative;
}

.els-card-header.gold {
    background: var(--els-gold);
    color: var(--els-primary);
}

.els-card-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.5px;
}

.els-card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.els-card-title {
    color: var(--els-primary);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.els-card-text {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.els-badge-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.els-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.els-badge-primary {
    background: rgba(15, 61, 111, 0.1);
    color: var(--els-primary);
}

.els-badge-gold {
    background: rgba(235, 205, 125, 0.2);
    color: #856404;
}

.els-card-footer {
    padding: 0 25px 25px;
}

/* Update existing card-service to use new system */
.card-service {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: #fff;
}

.card-service:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(15, 61, 111, 0.15);
}

.card-service-header {
    background: var(--els-primary);
    padding: 20px;
    text-align: center;
    color: #fff;
}

.card-service-header h3 {
    font-weight: 700;
    margin: 0;
    font-size: 1.2rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        overflow: hidden;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .parallax {
        background-attachment: scroll;
    }
    .card:hover {
        transform: none;
    }
    .btn-primary {
        padding: 12px 30px;
        font-size: 0.9rem;
    }
    .display-4 {
        font-size: 2.5rem;
    }
    .lead {
        font-size: 1.1rem;
    }
    .card {
        margin-bottom: 1rem;
    }
    .navbar-brand img {
        height: 50px;
    }
    .hero-video {
        height: 100%; /* Ensure video covers full hero height on mobile */
        object-fit: cover;
    }
    .hero-overlay {
        position: relative;
        min-height: 100vh;
        padding: 80px 0;
        background: linear-gradient(135deg, rgba(15, 61, 111, 0.8) 0%, rgba(95, 114, 151, 0.7) 100%);
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .btn-primary, .btn-success, .btn-warning {
        padding: 10px 25px;
        font-size: 0.85rem;
    }
    .display-4 {
        font-size: 2rem;
    }
    .card-title {
        font-size: 1.1rem;
    }
    .card-text {
        font-size: 0.9rem;
    }
    .fas.fa-4x {
        font-size: 2.5rem !important;
    }
    footer .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Gallery Styles */
.gallery-item {
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 0.375rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.gallery-item:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    border-radius: 0.375rem;
}

.gallery-overlay:hover {
    opacity: 1;
}

.gallery-overlay-content {
    color: white;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-overlay:hover .gallery-overlay-content {
    transform: translateY(0);
}

.gallery-overlay-content p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Additional Color Utility Classes */
.bg-primary-dark {
    background-color: #0f3d6f !important;
}

.bg-gold {
    background-color: #ebcd7d !important;
}

.bg-steel-blue {
    background-color: #5f7297 !important;
}

.bg-grey {
    background-color: #aeaeae !important;
}

.text-primary-dark {
    color: #0f3d6f !important;
}

.text-gold {
    color: #ebcd7d !important;
}

.text-steel-blue {
    color: #5f7297 !important;
}

.btn-secondary {
    background: #5f7297;
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    color: white;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #0f3d6f;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15, 61, 111, 0.3);
}

.btn-outline-gold {
    border: 2px solid #ebcd7d;
    color: #ebcd7d;
    background: transparent;
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-gold:hover {
    background: #ebcd7d;
    color: #0f3d6f;
    box-shadow: 0 8px 24px rgba(235, 205, 125, 0.3);
}

.section-title {
    color: #0f3d6f;
    position: relative;
    display: inline-block;
    font-weight: 700;
    font-size: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ebcd7d 0%, #5f7297 100%);
    border-radius: 2px;
}

.card-service {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: #fff;
}

.card-service:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(15, 61, 111, 0.15);
}

.card-service-header {
    background: var(--els-primary);
    padding: 20px;
    text-align: center;
    color: #fff;
}

.card-service-header h3 {
    font-weight: 700;
    margin: 0;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-title::after {
        width: 40px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn-primary, .btn-secondary, .btn-outline-gold {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .card-service {
        margin-bottom: 20px;
    }

    .card-service-header {
        padding: 15px;
    }

    .card-service-header h3 {
        font-size: 1.2rem;
    }

    .price-badge, .info-badge {
        display: block;
        margin: 8px 0;
        padding: 10px 12px;
    }

    .row.g-4 {
        row-gap: 1.5rem;
    }

    footer {
        padding: 2rem 0;
    }

    footer .col-lg-4,
    footer .col-lg-2 {
        margin-bottom: 2rem;
    }

    .navbar-expand-lg {
        background: rgba(255, 255, 255, 0.98) !important;
    }

    .nav-link {
        padding: 0.7rem 1rem !important;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .card-service-header h3 {
        font-size: 1rem;
    }

    .price-badge {
        font-size: 0.8rem;
        padding: 8px 10px;
    }

    .info-badge {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .btn-primary, .btn-secondary, .btn-outline-gold {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .container {
        padding: 0 10px;
    }

    .row.g-4 > * {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }
}