@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Rajdhani:wght@400;500;600&family=Inter:wght@400;500;600&display=swap');

/* General Reset */
body, html {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    font-family: 'Poppins', Arial, sans-serif;
    background-color: #f7f8fc;
    color: #333;
    scroll-behavior: smooth;
}

/* Cursor Interaction Enhancements */
.cta-button:hover ~ .custom-cursor,
.footer-social a:hover ~ .custom-cursor,
.card:hover ~ .custom-cursor {
    transform: scale(1.2);
    transition: 0.3s ease-in-out;
    filter: brightness(1.2);
}

/* Welcome Section */
.welcome-section {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    z-index: 1;
    background: linear-gradient(135deg, rgba(5, 197, 136, 0.9), rgba(255, 63, 47, 0.9));
}

/* Background Video */
#background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.75;
}

/* Overlay */
.overlay {
    position: relative;
    z-index: 1;
    color: white;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 25px 50px;
    border-radius: 12px;
    animation: fadeIn 1.5s ease-in-out;
}

/* Heading Styles */
.welcome-section h1, .welcome-section h2 {
    font-weight: 700;
    text-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
    animation: floatEffect 3s ease-in-out infinite;
}

.welcome-section h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 4.5rem;
    color: #00FFA2;
}

.welcome-section h2 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 3.5rem;
    color: #FF4F4F;
}

/* Welcome Text */
.welcome-section p {
    font-size: 1.4rem;
    font-weight: 600;
    color: #E0E0E0;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    animation: fadeIn 2s ease-in-out;
}

/* CTA Button */
.welcome-section .cta-button {
    margin-top: 25px;
    padding: 15px 35px;
    font-size: 18px;
    background: linear-gradient(135deg, #FF6F61, #FF3B2F);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    animation: bounceIn 1.5s ease-in-out;
}

.welcome-section .cta-button:hover {
    background: linear-gradient(135deg, #FF3B2F, #FF6F61);
    transform: scale(1.05);
    box-shadow: 0px 10px 25px rgba(255, 63, 47, 0.3);
}

/* Services Section */
.services-section {
    background: linear-gradient(135deg, #05c588, #f7f8fc);
    padding: 50px 8%;
    text-align: center;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Services Container */
.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; /* Reduced gap between cards */
    max-width: 1000px;
    width: 100%;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease-in-out;
    padding: 20px;
    flex: 1 1 260px; /* Adjusted width */
    min-width: 260px;
    max-width: 280px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

/* Heading Styling */
.service-card h3 {
    font-size: 1.4rem;
    color: #333;
    font-weight: bold;
    white-space: nowrap;
    margin-bottom: 8px; /* Reduced space */
}

/* Text Styling */
.service-card p {
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
    text-align: justify;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Hover Effect */
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #FF6F61, #05c588);
    color: white;
}

.service-card:hover h3, 
.service-card:hover p {
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-container {
        flex-direction: row;
        justify-content: center;
    }

    .service-card {
        width: 45%; /* More compact for tablets */
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    .services-container {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        width: 90%;
        max-width: 350px;
    }
}


.initiatives-section h4{
    font-size: 3rem;
    font-weight: bolder;
}

/* Initiative Cards */
.initiative-card {
    height: 260px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.initiative-card:hover {
    transform: translateY(-10px);
    background: linear-gradient(135deg, #05c588, #FF3B2F);
}

@media (min-width: 768px) and (max-width: 1024px) {
    .welcome-section h1 {
        font-size: 3rem; /* Adjusted for tablets */
    }

    .welcome-section h2 {
        font-size: 2.5rem;
    }

    .services-section h4, 
    .initiatives-section h4, 
    .about-title {
        font-size: 2.5rem; /* Adjusted for better visibility */
    }

    .about-description {
        font-size: 1.2rem;
    }
}



/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounceIn {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes floatEffect {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* About Section */
.about-section {
    background: linear-gradient(135deg, #f7f8fc, #e4e7eb);
    border-radius: 20px;
    padding: 60px 10%;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    animation: fadeIn 1.5s ease-in-out;
}

.about-title {
    font-size: 2.8rem;
    color: #333;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    animation: slideInFromLeft 1.2s ease-in-out;
}

.about-description {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #555;
    max-width: 900px;
    margin: 0 auto 30px auto;
    animation: fadeIn 1.5s ease-in-out;
}

/* Image Enhancements */
.about-image {
    max-width: 85%;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease-in-out;
    animation: zoomIn 1.3s ease-in-out;
}

.about-image:hover {
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .about-section {
        padding: 50px 5%;
    }

    .about-title {
        font-size: 2.2rem;
    }

    .about-description {
        font-size: 1.1rem;
    }

    .about-image {
        max-width: 100%;
    }
}

/* Animations */
@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes slideInFromLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* SRBJ Section */
.srbj-section {
    position: relative;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background: url(https://www.johorstemhub.com/asset/srbj/goal-background-img.jpg) no-repeat center center/cover;
    background-attachment: fixed;
    border-radius: 20px;
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.2);
}

.srbj-section::before {
    background-color: rgba(0, 0, 0, 0.3); /* Reduce darkness to enhance visibility */
}


.srbj-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    animation: fadeIn 1.5s ease-in-out;
}

.srbj-content h1 {
    font-family: 'Rajdhani', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    margin-bottom: 30px;
    animation: slideInFromLeft 1.2s ease-in-out;
    color: white !important; /* Ensuring white text */
    position: relative; /* Ensure it stays above overlay */
    z-index: 3; /* Higher than overlay */
}


/* Masuk Button */
.srbj-content .masuk-button {
    padding: 15px 45px;
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #00c897, #198754);
    border: none;
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    animation: bounceIn 1.5s ease-in-out;
}

.srbj-content .masuk-button:hover {
    background: linear-gradient(135deg, #198754, #00c897);
    transform: scale(1.08);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .srbj-content h1 {
        font-size: 2.5rem;
    }

    .srbj-content .masuk-button {
        font-size: 1.1rem;
        padding: 12px 30px;
    }
}
