/* Custom Styles for Kamala Nemi Foundation */

:root {
    --primary-color: #0066cc;
    --secondary-color: #ff6b35;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-bg: #f8f9fa;
    --dark-bg: #343a40;
    --white: #ffffff;
    --border-light: #e9ecef;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-heavy: rgba(0, 0, 0, 0.2);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    padding-top: 76px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 60px 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 70%, rgba(0, 102, 204, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Logo Container */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.logo-ring {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Circular Logo with Image */
.logo-circle {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    border: 0px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Outer Ring Text */
.logo-ring-text {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.logo-main-text {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.logo-sub-text {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 20px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Small Logo in Navbar */
.logo-small {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

.logo-img-small {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slider Section */
.slider-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.carousel-item img {
    height: 300px;
    max-height: 45vh;
    object-fit: contain;
    object-position: center center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 8px;
    background-color: #f8f9fa;
    padding: 0;
}

.carousel-item:hover img {
    transform: scale(1.02);
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-caption h5 {
    font-weight: 600;
    margin-bottom: 8px;
}

.carousel-caption p {
    font-size: 0.9rem;
    margin-bottom: 0;
    opacity: 0.9;
}

/* Optimized carousel controls */
.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    color: var(--primary-color);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-size: 100%;
    width: 30px;
    height: 30px;
}

/* Carousel indicators */
.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: var(--primary-color);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.carousel-indicators [data-bs-target].active {
    opacity: 1;
    transform: scale(1.2);
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Section Padding */
section {
    padding: 60px 0;
}

#about {
    padding: 60px 0;
}

#mission {
    padding: 60px 0;
}

#core {
    padding: 60px 0;
}

#services {
    padding: 60px 0;
}

#contact {
    padding: 60px 0;
}

/* Button Styles */
.btn {
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Navbar */
.navbar {
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.2rem;
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* Footer */
footer {
    background: #1a1a1a !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-ring {
        width: 300px;
        height: 300px;
    }

    .logo-circle {
        width: 200px;
        height: 200px;
    }

    .logo-main-text {
        font-size: 16px;
        top: -15px;
    }

    .logo-sub-text {
        font-size: 14px;
        bottom: -15px;
    }

    .carousel-item img {
        height: 250px;
        max-height: 40vh;
        object-fit: contain;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .logo-ring {
        width: 250px;
        height: 250px;
    }

    .logo-circle {
        width: 160px;
        height: 160px;
    }

    .logo-main-text {
        font-size: 14px;
    }

    .logo-sub-text {
        font-size: 12px;
    }
}

/* Text Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section .col-lg-6:last-child {
    animation: fadeInUp 1s ease-out;
}