/* Main CSS for SMA AL HAYAT SAMBOJA Website */
/* Theme: Professional Blue */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Scroll Animation */
.scroll-animation, .scroll-animation-left, .scroll-animation-right {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
    will-change: opacity, transform;
}

.scroll-animation-left {
    transform: translateX(-30px);
}

.scroll-animation-right {
    transform: translateX(30px);
}

.scroll-animation.animate, .scroll-animation-left.animate, .scroll-animation-right.animate {
    opacity: 1;
    transform: translate(0, 0);
}

.section-active {
    animation: sectionHighlight 1s ease;
}

@keyframes sectionHighlight {
    0% { background-color: rgba(0, 102, 204, 0.05); }
    100% { background-color: transparent; }
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    cursor: none;
    overflow-x: hidden;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 10px;
    height: 10px;
    background-color: #0066cc;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: transform 0.15s cubic-bezier(0.215, 0.61, 0.355, 1);
    will-change: transform, left, top;
}

.cursor-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 2px solid rgba(0, 102, 204, 0.3);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.2s cubic-bezier(0.215, 0.61, 0.355, 1), border 0.3s;
    z-index: 9998;
    will-change: transform, left, top;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: #0056b3;
    transition: all 0.3s ease;
}

a:hover {
    color: #003d7a;
}

ul {
    list-style: none;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #0056b3;
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-header h2:after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: #0056b3;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #0056b3;
    color: #fff;
}

.btn-primary:hover {
    background-color: #003d7a;
    color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: #0056b3;
    border: 2px solid #0056b3;
}

.btn-secondary:hover {
    background-color: #0056b3;
    color: #fff;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 60px;
    height: auto;
    margin-right: 15px;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0056b3;
    margin: 0;
}

.logo-text p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin: 0 15px;
}

.nav-menu li a {
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

.nav-menu li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #0056b3;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

.nav-menu li a:hover:after,
.nav-menu li a.active:after {
    width: 100%;
}

.nav-menu li a.active {
    color: #0056b3;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #0056b3;
}

/* Hero Section */
.hero {
    padding-top: 100px; /* Increased from 80px to 100px to prevent navbar overlap */
    position: relative;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5;
}

.slide {
    position: relative;
    display: none;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    display: block;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4));
    z-index: 1;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    z-index: 2;
    width: 80%;
    max-width: 800px;
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
}

.hero-content .animate-text {
    opacity: 0;
    will-change: opacity, letter-spacing, transform;
}

.hero-content h1.animate-text {
    animation: letterSpacing 1.5s forwards 0.5s;
}

.hero-content p.animate-text {
    animation: textFadeIn 1.5s forwards 1.5s;
}

.hero-slider .slide {
    opacity: 0;
    transition: opacity 1s ease;
    will-change: opacity;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slider .slide.active {
    opacity: 1;
    z-index: 1;
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

.hero-info {
    background-color: #fff;
    padding: 30px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    margin-top: -50px;
}

.info-cards {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.info-card {
    flex: 1;
    text-align: center;
    padding: 20px;
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-10px);
}

.info-card i {
    font-size: 2.5rem;
    color: #0056b3;
    margin-bottom: 15px;
}

.info-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.info-card p {
    color: #6c757d;
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.about-image {
    flex: 1;
    padding: 20px;
}

.about-text {
    flex: 1;
    padding: 20px;
}

.about-text h3 {
    font-size: 1.8rem;
    color: #0056b3;
    margin-bottom: 15px;
}

.about-text p {
    margin-bottom: 20px;
    color: #6c757d;
}

.about-text ul {
    margin-left: 20px;
}

.about-text ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.about-text ul li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #0056b3;
}

/* Academic Section */
.academic-section {
    padding: 100px 0;
    background-color: #fff;
}

.academic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.academic-item {
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.academic-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.academic-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background-color: #e6f0ff;
    margin: 0 auto 20px;
}

.academic-icon i {
    font-size: 2rem;
    color: #0056b3;
}

.academic-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #0056b3;
}

.academic-item p {
    color: #6c757d;
}

.academic-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-top: 30px;
}

.feature {
    flex-basis: calc(25% - 30px);
    text-align: center;
    padding: 20px;
    margin: 15px;
}

.feature i {
    font-size: 2rem;
    color: #0056b3;
    margin-bottom: 15px;
}

.feature h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.feature p {
    color: #6c757d;
}

/* Facilities Section */
.facilities {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.facility-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.facility-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.facility-item:hover img {
    transform: scale(1.1);
}

.facility-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.facility-item:hover .facility-info {
    transform: translateY(-10px);
}

.facility-info h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.facility-info p {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Achievements Section */
.achievements-section {
    padding: 100px 0;
    background-color: #fff;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.achievement-item {
    text-align: center;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.achievement-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.achievement-icon {
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background-color: #e6f0ff;
    margin: 0 auto 20px;
}

.achievement-icon i {
    font-size: 2rem;
    color: #0056b3;
}

.achievement-item h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #0056b3;
}

.achievement-item p {
    color: #6c757d;
}

/* Gallery Section */
.gallery {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-more {
    text-align: center;
    margin-top: 30px;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background-color: #fff;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 50px;
    gap: 30px;
}

.contact-info {
    flex: 1;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: #0056b3;
    margin-right: 15px;
    margin-top: 5px;
}

.contact-item h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #333;
}

.contact-item p {
    color: #6c757d;
}

.social-media {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #0056b3;
    color: #fff;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: #003d7a;
    transform: translateY(-5px);
}

.contact-form {
    flex: 1;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.map-container {
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 450px;
    width: 100%;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Footer Section */
footer {
    background-color: #003d7a;
    color: #fff;
    padding: 70px 0 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 30px;
}

.footer-logo {
    flex-basis: 25%;
    padding: 0 15px;
}

.footer-logo img {
    width: 60px;
    margin-bottom: 15px;
}

.footer-logo h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-links {
    flex-basis: 20%;
    padding: 0 15px;
}

.footer-links h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-links h3:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: #0056b3;
    bottom: -10px;
    left: 0;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: #fff;
    padding-left: 5px;
}

.footer-social {
    flex-basis: 20%;
    padding: 0 15px;
}

.footer-social h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-social h3:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: #0056b3;
    bottom: -10px;
    left: 0;
}

.social-icons {
    display: flex;
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: #0056b3;
}

.footer-newsletter {
    flex-basis: 35%;
    padding: 0 15px;
}

.footer-newsletter h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-newsletter h3:after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background-color: #0056b3;
    bottom: -10px;
    left: 0;
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-newsletter form {
    display: flex;
}

.footer-newsletter input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-family: 'Poppins', sans-serif;
}

.footer-newsletter button {
    background-color: #0056b3;
    color: #fff;
    border: none;
    padding: 0 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-newsletter button:hover {
    background-color: #003d7a;
}

.footer-bottom {
    background-color: #00305f;
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes letterSpacing {
    0% { letter-spacing: -5px; opacity: 0; }
    50% { letter-spacing: 10px; opacity: 0.5; }
    100% { letter-spacing: 3px; opacity: 1; }
}

@keyframes slideInLeft {
    0% { transform: translateX(-100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
    0% { transform: translateX(100px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes fadeInDown {
    0% { transform: translateY(-30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes fadeInUp {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .header-content {
        padding: 10px 0;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        height: calc(100vh - 70px);
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        transition: all 0.4s ease;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 15px 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-content,
    .contact-content {
        flex-direction: column;
    }

    .about-image,
    .about-text,
    .contact-info,
    .contact-form {
        flex: 100%;
    }

    .info-card,
    .program-card,
    .achievement-item {
        flex-basis: calc(50% - 30px);
    }

    .feature {
        flex-basis: calc(50% - 30px);
    }

    .footer-logo,
    .footer-links,
    .footer-social,
    .footer-newsletter {
        flex-basis: 50%;
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .info-card,
    .program-card,
    .achievement-item {
        flex-basis: 100%;
    }

    .feature {
        flex-basis: 100%;
    }

    .footer-logo,
    .footer-links,
    .footer-social,
    .footer-newsletter {
        flex-basis: 100%;
    }
}