/* ============================================
   SMA NU KAPLONGAN - Custom Styles
   ============================================ */

/* Root Variables */
:root {
    --primary-green: #2d6e3e;
    --secondary-green: #4a8b5c;
    --light-green: #6fa581;
    --dark-green: #1a4d2e;
    --accent-orange: #d4823b;
    --accent-yellow: #ffc107;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --text-dark: #333333;
}

/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
}

/* Navigation */
#mainNav {
    background-color: var(--white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s;
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: bold;
}

.brand-text {
    text-align: left;
}

.brand-title {
    color: var(--primary-green);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.brand-subtitle {
    color: var(--secondary-green);
    font-size: 0.9rem;
    line-height: 1.1;
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-green);
}

.search-box {
    position: relative;
}

.search-box .form-control {
    border-radius: 20px;
    padding-right: 40px;
    border: 1px solid #ddd;
}

.btn-search {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-green);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    padding: 120px 0 60px;
    position: relative;
    min-height: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    font-style: italic;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

.student-group {
    padding: 1rem;
}

.student-group img {
    max-height: 250px;
    object-fit: cover;
    border: 3px solid var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-success {
    background-color: var(--secondary-green);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s;
}

.btn-success:hover {
    background-color: var(--dark-green);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Wave Decoration */
.wave-decoration {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
}

.wave-decoration svg {
    display: block;
    width: 100%;
    height: auto;
}

.wave-decoration-bottom {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background-color: var(--white);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-dark);
    font-weight: 400;
}

.feature-card {
    padding: 2rem 1rem;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.icon-circle {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(45, 110, 62, 0.3);
}

.feature-card h5 {
    font-weight: 600;
    color: var(--primary-green);
    margin-top: 1rem;
}

.feature-card p {
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* Achievements Section */
.achievements-section {
    background: linear-gradient(135deg, var(--accent-orange) 0%, #e69347 100%);
    padding: 80px 0 100px;
    position: relative;
}

.achievement-card {
    padding: 1rem;
}

.achievement-card img {
    height: 200px;
    object-fit: cover;
    border: 3px solid var(--white);
}

.achievement-card h5 {
    font-weight: 700;
    font-size: 1.2rem;
}

.achievement-card p {
    font-size: 0.95rem;
}

/* Video Section */
.video-section {
    padding: 80px 0;
    background-color: var(--light-gray);
}

.video-card {
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s;
}

.video-card:hover {
    transform: scale(1.05);
}

.video-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.play-button:hover {
    background-color: var(--accent-yellow);
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button i {
    color: var(--primary-green);
    font-size: 1.5rem;
    margin-left: 3px;
}

.btn-warning {
    background-color: var(--accent-yellow);
    border: none;
    color: var(--text-dark);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    transition: all 0.3s;
}

.btn-warning:hover {
    background-color: #ffb300;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Building Section */
.building-section {
    background: linear-gradient(135deg, #2d6e3e 0%, #4a8b5c 50%, #2d6e3e 100%);
    padding: 3rem 0 6rem 0;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    margin-bottom: 0;
}

.building-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 70%, rgba(255,255,255,0.08) 0%, transparent 40%);
    pointer-events: none;
}

.building-section .container {
    position: relative;
    z-index: 2;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.building-carousel {
    border-radius: 25px;
    overflow: hidden;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.4),
        0 10px 30px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    position: relative;
}

.building-carousel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.1) 0%,
        transparent 30%,
        transparent 70%,
        rgba(0,0,0,0.1) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.building-carousel img {
    height: 550px;
    object-fit: cover;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1.15) contrast(1.15) saturate(1.1);
    position: relative;
    z-index: 2;
}

.building-carousel img:hover {
    transform: scale(1.03);
    filter: brightness(1.25) contrast(1.25) saturate(1.2);
}

.building-carousel .carousel-control-prev,
.building-carousel .carousel-control-next {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, rgba(255,255,255,0.25) 0%, rgba(255,255,255,0.15) 100%);
    border-radius: 50%;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.building-carousel .carousel-control-prev {
    left: -27px;
}

.building-carousel .carousel-control-next {
    right: -27px;
}

.building-carousel .carousel-control-prev:hover,
.building-carousel .carousel-control-next:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0.25) 100%);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-50%) scale(1.1);
    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.building-carousel .carousel-control-prev-icon,
.building-carousel .carousel-control-next-icon {
    filter: invert(1) brightness(1.2);
}

/* Footer */
.footer-section {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 0;
}

.social-link {
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.social-link:hover {
    color: var(--accent-yellow);
}

.copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
}

.footer-partners {
    background-color: var(--dark-green);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.powered-by {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
    
    .achievement-card {
        margin-bottom: 2rem;
    }
    
    .icon-circle {
        width: 100px;
        height: 100px;
    }
    
    .icon-circle i {
        font-size: 2.5rem !important;
    }

    .about-image img {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .brand-title {
        font-size: 1rem;
    }
    
    .brand-subtitle {
        font-size: 0.8rem;
    }
    
    .navbar-brand img {
        height: 40px;
    }

    .about-image img {
        height: 350px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

/* Enhanced animations with delay support */
.animate-fade-in-up[style*="animation-delay"] {
    animation-delay: var(--delay, 0s);
}

/* Modern hover effects */
.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.achievement-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Backdrop blur support for modern browsers */
.backdrop-blur-sm {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-gray);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-green);
}

/* About Section */
.about-section {
    padding: 80px 0;
}

.about-image {
    box-shadow: none !important;
}

.about-image img {
    width: 100%;
    height: 500px;
    object-fit: contain;
    object-position: center top;
    border-radius: 10px;
    background-color: var(--light-gray);
    box-shadow: none !important;
    filter: none !important;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: 10px;
}

.carousel-control-next {
    right: 10px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Building Section Responsive */
@media (max-width: 768px) {
    .building-section {
        padding: 2rem 0 4rem 0;
        margin-top: 0;
        margin-bottom: 0;
    }

    .building-section .container {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .building-carousel img {
        height: 480px;
    }

    .building-carousel .carousel-control-prev,
    .building-carousel .carousel-control-next {
        width: 45px;
        height: 45px;
    }

    .building-carousel .carousel-control-prev {
        left: -22px;
    }

    .building-carousel .carousel-control-next {
        right: -22px;
    }
}

@media (max-width: 576px) {
    .building-section {
        padding: 1.5rem 0 3rem 0;
        margin-top: 0;
        margin-bottom: 0;
    }

    .building-section .container {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .building-carousel img {
        height: 380px;
    }

    .building-carousel {
        border-radius: 20px;
    }

    .building-carousel .carousel-control-prev,
    .building-carousel .carousel-control-next {
        width: 40px;
        height: 40px;
    }

    .building-carousel .carousel-control-prev {
        left: -20px;
    }

    .building-carousel .carousel-control-next {
        right: -20px;
    }
}

/* WhatsApp FAB */
.whatsapp-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: #25d366;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-fab:hover {
    background: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
    color: white;
    text-decoration: none;
}

.whatsapp-fab i {
    margin: 0;
}

@media (max-width: 768px) {
    .whatsapp-fab {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 15px;
        right: 15px;
    }
}
