/* ========================================
   SMK Negeri Bansari - OPTIMIZED VERSION
   Modern Design dengan Performance Terbaik
   ======================================== */

:root {
    /* Color Variables */
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #f39c12;
    --success: #27ae60;
    --danger: #e74c3c;
    --purple: #9b59b6;
    --teal: #1abc9c;
    --pink: #e91e63;

    /* Gradient Variables */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --gradient-teal: linear-gradient(135deg, #1abc9c 0%, #16a085 100%);

    /* Shadow Variables */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.2);

    /* Transition */
    --transition: all 0.3s ease;
}

/* ========================================
   RESET & BASE
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    overflow-x: hidden;
    background: #f8f9fa;
    line-height: 1.6;
}

/* ========================================
   NAVBAR MODERN
   ======================================== */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    -moz-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    transition: var(--transition);
    position: relative;
    color: #2c3e50;
}

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

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


/* ========================================
   HERO VIDEO SECTION
   ======================================== */
.hero-video {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    z-index: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.7), rgba(155, 89, 182, 0.7));
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 2rem;
    text-align: center;
}

/* ========================================
   HEXAGON LOGO
   ======================================== */
.logo-school {
    margin-bottom: 30px;
    animation: fadeInDown 1s ease;
}

.school-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

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

@media (max-width: 768px) {
    .school-logo { width: 120px; height: 120px; }
}

@media (max-width: 576px) {
    .school-logo { width: 100px; height: 100px; }
}


/* ========================================
   HERO TEXT
   ======================================== */
.hero-title {
    color: white;
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    margin-top: 2rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    color: rgba(255,255,255,0.95);
    font-size: 1.6rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-weight: 300;
    margin-top: 1rem;
}

/* ========================================
   ICON MENU
   ======================================== */

.icon-menu {
    margin-top: 3rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.menu-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);

}

.icon-circle {
    width: 90px;
    height: 90px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-md);
    border: 3px solid rgba(255,255,255,0.3);
}

.icon-circle i {
    font-size: 2.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: var(--transition);
}

.icon-label {
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    text-align: center;
    text-shadow: 0 2px 10px rgba(0,0,0,0.4);
    letter-spacing: 0.5px;
}

.menu-icon-item:hover .icon-circle {
    transform: translateY(-15px) scale(1.15);
    background: var(--gradient-danger);
    box-shadow: 0 20px 50px rgba(245, 87, 108, 0.5);
    border-color: white;
}

.menu-icon-item:hover .icon-circle i {
    background: white;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transform: scale(1.1) rotate(5deg);
}

.menu-icon-item:hover .icon-label {
    color: #929292;
    transform: scale(1.05);
}

/* ========================================
   SCROLL INDICATOR
   ======================================== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    color: white;
    font-size: 2.5rem;
    opacity: 0.8;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { 
        transform: translateX(-50%) translateY(0); 
    }
    40% { 
        transform: translateX(-50%) translateY(-15px); 
    }
    60% { 
        transform: translateX(-50%) translateY(-8px); 
    }
}

/* ========================================
   SECTIONS
   ======================================== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 40px;
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 5px;
    background: var(--gradient-primary);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* ========================================
   CARDS
   ======================================== */
.card {
    border: none;
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-img-top {
    border-radius: 20px 20px 0 0;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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


/* ========================================
   BUTTONS
   ======================================== */
.btn {
    padding: 0.9rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--gradient-primary);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.btn-outline-primary {
    border: 2px solid #667eea;
    color: #667eea;
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* FOOTER STYLES */
.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
    border-bottom: 3px solid #10b981;
    padding-bottom: 10px;
    display: inline-block;
}
.footer-text {
    color: #d1d5db;
    font-size: 0.9rem;
    line-height: 1.7;
}
.social-links {
    display: flex;
    gap: 10px;
}
.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
}
.social-icon:hover {
    background: #10b981;
    transform: translateY(-3px);
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 12px;
}
.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}
.footer-links a:hover {
    color: #10b981;
    padding-left: 5px;
}
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-contact li {
    display: flex;
    margin-bottom: 15px;
    color: #d1d5db;
    font-size: 0.9rem;
}
.footer-contact i {
    color: #10b981;
    margin-top: 3px;
}
.footer-bottom {
    margin-top: 40px;
    padding: 25px 0;
    border-top: 1px solid #374151;
    color: #9ca3af;
    font-size: 0.85rem;
}


/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1200px) {
    .section {
        padding: 80px 0;
    }
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.3rem;
    }
    .section {
        padding: 60px 0;
    }
    .section-title {
        font-size: 2rem;
    }
    .icon-circle {
        width: 75px;
        height: 75px;
    }
    .icon-circle i {
        font-size: 1.8rem;
    }
}

@media (max-width: 767px) {
    .hero-video {
        min-height: 500px;
    }
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .col-6 {
    flex: 0 0 auto;
    width: 25%;
    }
    .section {
        padding: 40px 0;
    }
    .section-title {
        font-size: 1.75rem;
    }
    .icon-circle {
        width: 70px;
        height: 70px;
    }
    .icon-circle i {
        font-size: 1.6rem;
    }
    .hexagon {
        width: 120px;
        height: 69.3px;
    }
    .logo-text {
        font-size: 2rem;
    }
    .date-circle {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    .icon-menu {
        margin-top: 2rem;
    }
}

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ====================================
   PENGUMUMAN & AGENDA SECTION - IMPROVED
   ==================================== */

/* Pengumuman Styles */
.pengumuman-list {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.pengumuman-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #f8f9ff 0%, #fff 100%);
    border-left: 4px solid #6366f1;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.pengumuman-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.15);
}

.pengumuman-item:last-child {
    margin-bottom: 0;
}

.date-circle {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.date-circle .day {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.date-circle .month {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Agenda Styles - IMPROVED */
.agenda-list {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.agenda-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
    border-left: 4px solid #10b981;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.agenda-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, transparent 100%);
    border-radius: 12px;
    pointer-events: none;
}

.agenda-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(16, 185, 129, 0.2);
}

.agenda-item:last-child {
    margin-bottom: 0;
}

.agenda-date-box {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    position: relative;
    overflow: hidden;
}

.agenda-date-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
}

.agenda-date-box .month {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 2px;
    z-index: 1;
}

.agenda-date-box .day {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    z-index: 1;
}

.agenda-item h6 {
    color: #059669;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
}

.agenda-item .text-muted {
    font-size: 13px;
    line-height: 1.6;
}

.agenda-item i.fa-map-marker-alt {
    color: #10b981;
}

/* Section Title for Pengumuman & Agenda */
.section#pengumuman .section-title {
    color: #1f2937;
    font-size: 32px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section#pengumuman .section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

.section#pengumuman .col-lg-6:last-child .section-title::after {
    background: linear-gradient(90deg, #10b981, #059669);
}

/* Responsive */
@media (max-width: 991px) {
    .pengumuman-item,
    .agenda-item {
        flex-direction: column;
        gap: 15px;
    }

    .date-circle,
    .agenda-date-box {
        width: 60px;
        height: 60px;
    }

    .date-circle .day {
        font-size: 20px;
    }

    .agenda-date-box .day {
        font-size: 24px;
    }
}

/* Empty State */
.pengumuman-list p.text-center,
.agenda-list p.text-center {
    padding: 40px 20px;
    font-size: 16px;
    color: #9ca3af;
}

