/* ===================================
   CSS VARIABLES
   =================================== */
:root {
    --primary-purple: #6B46C1;
    --dark-purple: #4C1D95;
    --light-purple: #8B5CF6;
    --accent-red: #EF4444;
    --text-light: #E5E7EB;
    --text-white: #FFFFFF;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--dark-purple) 0%, var(--primary-purple) 50%, #7C3AED 100%);
    color: var(--text-white);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ===================================
   NAVIGATION - FIXED & RESPONSIVE
   =================================== */
.navbar {
    background: rgba(75, 29, 149, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    min-height: 80px;
    z-index: 9999;
    transition: background 0.3s ease;
}

.navbar-brand {
    font-weight: 700;
    font-size: 2rem;
    color: var(--text-white) !important;
    letter-spacing: 2px;
    display: inline-block;
}

.navbar-brand .accent {
    color: var(--accent-red);
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
    padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav {
    align-items: center;
}

.navbar-nav .nav-item {
    margin: 0 5px;
}

.navbar-nav .nav-link {
    color: #FFFFFF !important;
    font-weight: 500;
    margin: 0 10px;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-red) !important;
}

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

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

.navbar-nav .nav-link.active {
    color: var(--accent-red) !important;
}

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

/* Navbar Collapse - Fixed untuk mobile */
.navbar-collapse {
    transition: max-height 0.3s ease-in-out;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-content {
    z-index: 2;
    position: relative;
}

.hero-image {
    z-index: 2;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
    opacity: 0.9;
}

.hero-image img:hover {
    transform: scale(1.02);
    opacity: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.3s forwards;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
    opacity: 0;
    animation: fadeInUp 1s ease 0.7s forwards;
}

.hero-buttons {
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
}

/* ===================================
   BUTTONS
   =================================== */
.btn-primary {
    background: var(--accent-red);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary:hover {
    background: #DC2626;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

.btn-outline {
    border: 2px solid var(--text-white);
    color: var(--text-white);
    background: transparent;
    padding: 10px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-outline:hover {
    background: var(--text-white);
    color: var(--dark-purple);
    transform: translateY(-2px);
}

/* ===================================
   INFO CARDS
   =================================== */
.info-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease 1.1s forwards;
}

.info-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.info-card h4 {
    color: var(--accent-red);
    margin-bottom: 1rem;
    font-weight: 600;
}

.info-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* ===================================
   CTA BANNER
   =================================== */
.cta-banner {
    background: var(--accent-red);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
    animation: fadeInUp 1s ease 1.1s forwards;
    transition: all 0.3s ease;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 80px;
}

.cta-banner h3 {
    margin-bottom: 0;
    font-weight: 600;
}

.cta-banner p {
    margin-bottom: 0;
    opacity: 0.9;
}

/* ===================================
   PARTNERS SECTION
   =================================== */
.partners-section {
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.partner-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
    transition: all 0.3s ease;
}

.logo-placeholder {
    width: 110px;
    height: 110px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.partner-logo:hover .logo-placeholder {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* ===================================
   FOOTER
   =================================== */
.footer-section {
    background: #1F1F1F;
    color: var(--text-light);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo h2 {
    color: var(--text-white);
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.footer-logo .accent {
    color: var(--accent-red);
}

.footer-subtitle {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-links h5,
.footer-contact h5,
.footer-contact h6 {
    color: var(--text-white);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--text-white);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-bottom: 1rem;
}

.social-link {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link.facebook {
    background: #3b5998;
}

.social-link.twitter {
    background: #1da1f2;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-link.linkedin {
    background: #0077b5;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    margin-top: 2rem;
}

.footer-bottom p {
    color: var(--text-light);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.footer-bottom a {
    color: var(--accent-red);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--text-white);
}

/* ===================================
   BACK TO TOP BUTTON
   =================================== */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    background: var(--accent-red);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.back-to-top:hover {
    background: #DC2626;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.6);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* ===================================
   PARTICLES BACKGROUND
   =================================== */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: particle-float 15s linear infinite;
}

/* ===================================
   MODAL STYLES
   =================================== */
.modal-content {
    background: rgba(75, 29, 149, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    color: var(--text-white);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem 2rem 1rem;
}

.modal-body {
    padding: 2rem;
}

.modal-title {
    color: var(--text-white);
    font-weight: 600;
    font-size: 1.5rem;
}

.btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.btn-close:hover {
    opacity: 1;
}

.form-label {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    color: var(--text-white);
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-red);
    box-shadow: 0 0 0 0.2rem rgba(239, 68, 68, 0.25);
    color: var(--text-white);
}

.form-control::placeholder {
    color: rgba(229, 231, 235, 0.6);
}

.login-btn {
    background: var(--accent-red);
    border: none;
    padding: 12px;
    font-weight: 600;
    border-radius: 10px;
    width: 100%;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

.login-btn:hover {
    background: #DC2626;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.4);
}

.forgot-password {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--accent-red);
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.scroll-animate {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

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

@keyframes particle-float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}

/* ===================================
   RESPONSIVE DESIGN - DESKTOP
   =================================== */
@media (min-width: 992px) {
    .navbar-collapse {
        background: transparent !important;
        padding: 0 !important;
        margin-top: 0 !important;
        display: flex !important;
        flex-basis: auto;
    }
    
    .navbar-nav {
        flex-direction: row;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem !important;
    }
}

/* ===================================
   RESPONSIVE DESIGN - TABLET & MOBILE
   =================================== */
@media (max-width: 991px) {
    /* Navbar Mobile Styles */
    .navbar-collapse {
        background: rgba(75, 29, 149, 0.98);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
        margin: 0;
    }
    
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        display: block;
    }
    
    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    /* Hero Section */
    .hero-section {
        padding-top: 110px;
        text-align: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .info-card {
        margin-bottom: 1.5rem;
    }

    .hero-image {
        text-align: center;
        margin-top: 2rem;
    }
}

/* ===================================
   RESPONSIVE DESIGN - MOBILE ONLY
   =================================== */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 120px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .navbar-brand {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        text-align: center;
        margin-bottom: 3rem;
    }

    .hero-buttons .btn {
        margin-bottom: 10px;
        width: 100%;
        max-width: 200px;
    }

    .hero-image {
        text-align: center;
        margin-top: 2rem;
    }

    .back-to-top {
        right: 20px;
        bottom: 20px;
        width: 45px;
        height: 45px;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .footer-links,
    .footer-contact {
        margin-top: 2rem;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle,
    .hero-description {
        font-size: 0.95rem;
    }
    
    .info-card {
        padding: 1.5rem;
    }
    
    .cta-banner {
        padding: 1.5rem;
    }
    
    .logo-placeholder {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
}