/* Enhanced styles for SemiconTantra */

/* Global styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Enhanced Navigation */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(41, 25, 61, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.navbar-brand:hover {
    color: #ff8000 !important;
}

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

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

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

/* Hero Carousel Enhancements */
.carousel {
    border-radius: 0 0 20px 20px;
    overflow: hidden;
}

.carousel .carousel-item {
    min-height: 350px;
    max-height: 400px;
    overflow: hidden;
    position: relative;
}

.carousel .carousel-item img {
    transition: transform 0.6s ease;
}

.carousel .carousel-item:hover img {
    transform: scale(1.05);
}

.carousel-caption {
    background: linear-gradient(135deg, rgba(41,25,61,0.9) 0%, rgba(41,25,61,0.7) 100%);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    max-width: 500px;
    animation: slideInUp 0.8s ease;
}

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

.carousel-caption h1 {
    font-weight: 800;
    font-size: 1.8rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.carousel-caption p {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.carousel-caption .btn {
    font-weight: 700;
    padding: 15px 40px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,128,0,0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.carousel-caption .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255,128,0,0.4);
    background: #e67300 !important;
}

/* Carousel controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    margin: 0 20px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 8px;
    background: rgba(255,255,255,0.5);
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background: #ff8000;
    transform: scale(1.2);
}

/* Who We Are Section */
section {
    padding: 40px 0;
}

section h2 {
    font-weight: 800;
    font-size: 2rem;
    color: #29193d;
    margin-bottom: 1rem;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ff8000, #fa7b16);
    border-radius: 2px;
}

/* About images grid */
.about-images-grid {
    position: relative;
}

.about-images-grid img {
    transition: all 0.3s ease;
    border-radius: 15px;
}

.about-images-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Features Section */
.features-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff8000, transparent);
}

.features-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #29193d;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.features-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff8000, #fa7b16);
    border-radius: 2px;
}

.feature-item {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,128,0,0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ff8000, #fa7b16);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255,128,0,0.2);
    border-color: #ff8000;
}

.feature-item:hover::before {
    transform: scaleX(1);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #29193d;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.feature-title::before {
    content: '🚀';
    margin-right: 10px;
    font-size: 1.5rem;
}

.feature-desc {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
}

/* Events Section */
.card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.card-title {
    font-weight: 700;
    font-size: 1.3rem;
    color: #29193d;
    margin-bottom: 1rem;
}

.card-body {
    padding: 2rem;
}

/* Initiatives Section */
.initiative-row {
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.initiative-row:hover {
    background: rgba(255,128,0,0.05);
    border-color: rgba(255,128,0,0.2);
    transform: translateX(10px);
}

.initiative-num {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg,#ff8000 60%,#fa7b16 100%);
    color: #fff;
    font-weight: 800;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(255,128,0,0.3);
    transition: all 0.3s ease;
}

.initiative-row:hover .initiative-num {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 25px rgba(255,128,0,0.4);
}

/* Footer */
footer {
    background: linear-gradient(135deg, #29193d 0%, #1a0f2e 100%);
    padding: 3rem 0;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff8000, transparent);
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-caption h1 {
        font-size: 1.8rem;
    }
    
    .carousel-caption p {
        font-size: 1rem;
    }
    
    .carousel-caption {
        padding: 2rem;
        margin: 0 1rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .feature-item {
        margin-bottom: 2rem;
    }
    
    .initiative-row:hover {
        transform: translateX(5px);
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}
