/* Ensure carousel images fit properly */
.carousel-img {
    width: 100%;
    height: auto;
    object-fit: fill;
    object-position: center;
    display: block;
    background: #222;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}



/* Cover Section - FIXED VERSION */
.cover-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-height: 100vh;
    
    /* Background image with overlay */
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('../../assets/group-photo.JPG');
    background-size: cover;
    background-position: 100% 20%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    
    color: white;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

/* REMOVE OR COMMENT OUT THE ::before PSEUDO-ELEMENT - IT'S BLOCKING THE IMAGE */
/*
.cover-container::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 1000 1000"><defs><radialGradient id="g"><stop offset="20%" stop-opacity=".1"/><stop offset="50%" stop-opacity=".05"/><stop offset="100%" stop-opacity="0"/></radialGradient></defs><rect width="100%" height="100%" fill="url(%23g)"/></svg>');
    animation: none;
}
*/

/* Mobile optimizations */
@media (max-width: 768px) {
    .cover-container {
        background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                    url('../../assets/group-photo.JPG') !important;
        background-attachment: scroll !important;
        background-position: center 30% !important;
        
        background-size: cover !important;
        background-repeat: no-repeat !important;
    }
    
    .flint-logo {
        width: 250px;
    }
    
    .cover-heading {
        font-size: 2rem;
        text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
    }
    
    .lead {
        font-size: 1.1rem;
        text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
    }
    
    .inner {
        padding: 2rem 1rem;
    }
}
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}
.inner {
    padding: 3rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}
/* Logo styling */
.logo-container {
    margin: 0.5rem 0 1rem 0 !important; /* Reduced top margin */
    animation: logoFadeIn 2s ease;
}
.flint-logo {
    width: 520px;
    height: auto;
    /* No filter, color, or transition to ensure PNG logo always displays correctly */
}
@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
.cover-heading {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease 0.5s both;
}
.lead {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.7s both;
}
.btn-secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease 0.9s both;
}
.btn-secondary:hover {
    color: #333;
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    text-align: center;
}
.scroll-arrow {
    display: block;
    margin-top: 0.5rem;
    font-size: 1.5rem;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Content Section */
.content-section {
    background: #f8f9fa;
    min-height: 100vh;
    position: relative;
    z-index: 10; /* Higher than cover container */
    margin-top: 0; /* Ensure no gap */
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section-padding {
    padding: 4rem 0;
}
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #333;
    font-weight: 300;
}
/* Carousel */
.carousel-section {
    background: white;
    padding: 4rem 0;
}
.carousel-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}
.carousel {
    display: flex;
    transition: transform 0.5s ease;
}
.carousel-slide {
    min-width: 100%;
    height: 500px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #666;
    position: relative;
    overflow: hidden;
}
.carousel-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 40%, rgba(255, 255, 255, 0.1) 50%, transparent 60%);
    /* animation: shimmer 3s infinite; */
}
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 10;
}
.carousel-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}
.dot.active {
    background: #667eea;
    transform: scale(1.3);
}
/* About Section */
.about-section {
    background: white;
    padding: 4rem 0;
}
.features-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
    justify-content: center;
    align-items: stretch;
}
.feature-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
    flex: 0 1 350px; /* Don't grow, can shrink, preferred width 350px */
    max-width: 400px; /* Prevent cards from getting too wide */
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}
.feature-title {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 500;
}
.feature-text {
    color: #666;
    line-height: 1.6;
}
/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem 1.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.social-link:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.email-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    margin-top: 1rem;
}
.email-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
/* Footer */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}
/* Responsive */
@media (max-width: 768px) {
    .flint-logo {
        width: 250px;
    }
    
    .cover-heading {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
    
    .inner {
        padding: 2rem 1rem;
    }
    
    .carousel-slide {
        height: 300px;
        font-size: 1.2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
}

/* Cover Nav (Bootstrap Cover style) - DARK GRAY TRANSPARENT */
.cover-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    background-color: rgba(40, 40, 40, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 3rem;
    height: 70px;
}

.navbar-brand {
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    text-decoration: none;
}

.navbar-links {
    display: flex;
    gap: 1.5rem;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.navbar-toggle-icon {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-toggle-icon::before,
.navbar-toggle-icon::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.navbar-toggle-icon::before {
    top: -8px;
}

.navbar-toggle-icon::after {
    bottom: -8px;
}

.navbar-toggle.active .navbar-toggle-icon {
    background-color: transparent;
}

.navbar-toggle.active .navbar-toggle-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.navbar-toggle.active .navbar-toggle-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

/* Mobile styles */
@media (max-width: 768px) {
    .navbar-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(40, 40, 40, 0.9);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .navbar-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .navbar-toggle {
        display: block;
    }
}

.cover-nav-link {
    color: #fff;
    background: transparent;
    padding: 0.5rem 1.2rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.2s;
}
.cover-nav-link:hover {
    color: #3498db;
    text-decoration: none;
}
