:root {
    --primary: #F0A500; /* KPU Gold */
    --primary-light: #ffc233;
    --secondary: #8a0404; /* KPU Red */
    --secondary-dark: #660000;
    --dark: #0f0f0f;
    --light: #fdfdfd;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --text-light: #ffffff;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --glass: rgba(255, 255, 255, 0.08);
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    text-transform: capitalize;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(to right, #400000, #8a0404);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--primary);
    padding: 0.75rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

header.scrolled {
    padding: 0.5rem 5%;
    background: rgba(102, 0, 0, 0.95);
}

.logo-link {
    text-decoration: none;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-section img {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(240, 165, 0, 0.3));
}

.logo-section h1 {
    font-size: 1.25rem;
    color: var(--text-light);
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: capitalize;
}

.logo-section h1 span {
    color: var(--primary);
    display: block;
    font-size: 0.75rem;
    letter-spacing: 2px;
    font-weight: 400;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    background: var(--dark);
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.1);
    opacity: 0;
    transition: opacity 1.5s ease-in-out, transform 8s ease-out;
}

.slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(75deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, var(--light), transparent);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    max-width: 900px;
    padding: 0 5%;
    text-align: left;
    margin-top: 50px;
}

.hero-subtitle {
    display: inline-block;
    color: var(--primary);
    text-transform: capitalize;
    font-weight: 700;
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    background: rgba(240, 165, 0, 0.1);
    padding: 5px 15px;
    border-radius: 50px;
    border: 1px solid rgba(240, 165, 0, 0.3);
    animation: fadeInLeft 0.8s ease-out forwards;
}

.hero-main-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    font-weight: 900;
    text-shadow: 2px 2px 30px rgba(0,0,0,0.5);
    animation: fadeInLeft 1s ease-out forwards;
}

.hero-main-title .highlight {
    color: var(--primary);
    display: block;
}

.hero-target {
    font-size: 1.75rem;
    font-weight: 400;
    color: #ccc;
    margin-bottom: 2.5rem;
    animation: fadeInLeft 1.2s ease-out forwards;
}

.hero-header-flex {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 2rem;
}

.hero-logo {
    height: 160px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.5));
    animation: scaleIn 0.8s ease-out forwards;
    flex-shrink: 0;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #e0e0e0;
    animation: fadeInUp 1.2s ease-out forwards;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, var(--primary) 0%, #d49200 100%);
    color: var(--dark);
    text-decoration: none;
    font-weight: 800;
    border-radius: 50px;
    transition: var(--transition);
    text-transform: capitalize;
    letter-spacing: 1.5px;
    box-shadow: 0 10px 30px rgba(240, 165, 0, 0.3);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(240, 165, 0, 0.5);
    background: #fff;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 5px;
    transition: var(--transition);
    margin-top: 1rem;
}

.btn-outline:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(138, 4, 4, 0.2);
}

.pdf-icon {
    width: 20px;
    height: 20px;
}

/* Footer */
footer {
    background: var(--secondary);
    color: white;
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.wa-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #25D366;
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.wa-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.4);
}

.copyright {
    text-align: center;
    font-size: 0.9rem;
    color: #aaa;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.alur-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

.alur-card {
    background: white;
    padding: 35px 25px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.alur-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(240, 165, 0, 0.1);
}

.alur-card .step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--primary);
    color: var(--dark);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.5rem;
    border-radius: 0 0 0 20px;
}

.alur-card h3 {
    font-size: 1.15rem;
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.4;
}

.alur-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.alur-card:hover::before {
    transform: scaleX(1);
}

@media (max-width: 1024px) {
    header {
        padding: 0.8rem 4%;
    }
    .hero-content {
        max-width: 95%;
    }
    .hero-main-title {
        font-size: 3.2rem;
    }
    .hero-logo {
        height: 130px;
    }
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

@media (max-width: 768px) {
    header {
        padding: 0.8rem 5%;
    }

    .logo-section img {
        height: 40px;
    }

    .logo-section h1 {
        font-size: 1.2rem;
    }

    .menu-toggle {
        display: flex;
    }

    /* Mobile Navigation Overlay */
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(102, 0, 0, 0.98);
        backdrop-filter: blur(15px);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        box-shadow: -5px 0 30px rgba(0,0,0,0.5);
        z-index: 1000;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
        display: flex; /* Override previous display:none */
    }

    nav ul li a {
        font-size: 1.2rem;
        font-weight: 700;
    }

    /* Hamburger Animation */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero-content {
        margin-left: 0;
        padding: 1.5rem;
        text-align: center;
        margin-top: 80px;
        width: 100%;
    }
    
    .hero-header-flex {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        text-align: center;
    }
    
    .hero-main-title {
        font-size: 2.5rem;
    }
    
    .hero-target {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }
    
    .hero-logo {
        height: 100px;
    }

    .hero-content p {
        font-size: 1rem;
        margin: 0 auto 2.5rem;
        max-width: 500px;
    }

    .btn-primary {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .footer-section {
        width: 100%;
    }

    .wa-btn {
        justify-content: center;
        width: fit-content;
        margin: 0 auto;
    }

    section {
        padding: 60px 5% !important;
    }

    .page-header {
        padding: 120px 5% 60px !important;
    }

    .page-header h1 {
        font-size: 2.2rem !important;
    }
}

@media (max-width: 480px) {
    .logo-section h1 {
        font-size: 1rem;
    }
    
    .hero-main-title {
        font-size: 2.1rem;
    }

    .hero-logo {
        height: 80px;
    }

    .alur-grid {
        grid-template-columns: 1fr;
    }
}
