/* ============================================
   KAHAWA SUKARI VTI - MAIN STYLESHEET
   Color Scheme: Purple (#6B2D8C), Yellow/Gold (#F4C430), White, Dark Gray
   ============================================ */

:root {
    --primary: #6B2D8C;
    --secondary: #F4C430;
    --dark: #1a1a1a;
    --light: #f5f5f5;
    --white: #ffffff;
    --text: #333333;
    --border: #e0e0e0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background-color: var(--white);
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, rgba(107, 45, 140, 0.95) 100%);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.navbar-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--white);
    font-weight: bold;
}

.logo-text {
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--secondary);
    font-style: italic;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: var(--secondary);
    border-bottom: 2px solid var(--secondary);
}

.nav-btn {
    background-color: var(--secondary);
    color: var(--primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background-color: var(--white);
    transform: scale(1.05);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: '▼';
    font-size: 0.7rem;
    margin-left: 0.5rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: rgba(107, 45, 140, 0.98);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    top: 100%;
    border-radius: 4px;
    overflow: hidden;
}

.dropdown-menu a {
    color: var(--white);
    padding: 1rem;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: var(--secondary);
    color: var(--primary);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ============================================
   PAGE LOADER
   ============================================ */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, rgba(107, 45, 140, 0.98) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: var(--white);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(244, 196, 48, 0.3);
    border-top: 4px solid var(--secondary);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

.loader-text {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--secondary);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 4rem 2rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary) 0%, rgba(107, 45, 140, 0.95) 50%, var(--secondary) 100%);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="dots" x="0" y="0" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect fill="url(%23dots)" width="1200" height="600"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    text-align: left;
}

.hero-animated-title {
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.hero-main-title {
    font-size: 4rem;
    color: var(--white);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.3rem;
    animation: slideInLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    letter-spacing: 2px;
}

.hero-sub-title {
    font-size: 2.5rem;
    color: var(--secondary);
    font-weight: 700;
    line-height: 1.2;
    animation: slideInLeft 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s forwards;
    letter-spacing: 1px;
    opacity: 0;
}

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

.tagline {
    font-size: 1.4rem;
    color: var(--white);
    font-style: italic;
    margin-bottom: 2rem;
    font-weight: 500;
    animation: fadeInUp 0.8s ease 0.3s forwards;
    opacity: 0;
}

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

.intake-badge {
    position: relative;
    background: linear-gradient(135deg, var(--secondary) 0%, rgba(244, 196, 48, 0.85) 100%);
    padding: 1.8rem 2rem;
    border-radius: 15px;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 40px rgba(244, 196, 48, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s ease 0.4s forwards, pulse-badge 2s ease-in-out infinite;
    opacity: 0;
    overflow: hidden;
}

.badge-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: radiusPulse 2s ease-out infinite;
}

@keyframes radiusPulse {
    0% {
        width: 100%;
        height: 100%;
        opacity: 1;
    }
    100% {
        width: 200%;
        height: 200%;
        opacity: 0;
    }
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.intake-badge h2 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 900;
    position: relative;
    z-index: 1;
    letter-spacing: 1px;
}

.intake-badge p {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 2.5rem;
    max-width: 600px;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.5s forwards;
    opacity: 0;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
    flex-wrap: wrap;
}

.cta-btn {
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.cta-btn.primary {
    background-color: var(--secondary);
    color: var(--primary);
}

.cta-btn.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--white);
    transition: left 0.3s ease;
    z-index: -1;
    opacity: 0.3;
}

.cta-btn.primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(244, 196, 48, 0.5);
}

.cta-btn.primary:hover::before {
    left: 100%;
}

.cta-btn.secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.cta-btn.secondary:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.hero-decorative {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
}

.circle-1 {
    width: 400px;
    height: 400px;
    top: -150px;
    right: -100px;
    animation: float 6s ease-in-out infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    right: 10%;
    animation: float 8s ease-in-out infinite 1s;
}

.circle-3 {
    width: 250px;
    height: 250px;
    bottom: 5%;
    right: 50%;
    animation: float 10s ease-in-out infinite 2s;
}

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

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    background: linear-gradient(135deg, var(--light) 0%, rgba(244, 196, 48, 0.1) 100%);
    padding: 3rem 2rem;
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-top: 4px solid var(--secondary);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    display: inline-block;
}

.feature-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #666;
    font-size: 0.95rem;
}

/* ============================================
   COURSES SECTION
   ============================================ */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.section-header {
    animation: slideInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.courses-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.section-header p {
    color: #666;
    font-size: 1.1rem;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.course-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.course-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(244, 196, 48, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.course-card:hover::before {
    left: 0;
}

.course-card:hover::after {
    opacity: 1;
}

.course-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 40px rgba(107, 45, 140, 0.25), 0 0 20px rgba(244, 196, 48, 0.15);
    border-color: var(--primary);
}

.course-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.course-card h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.course-list {
    list-style: none;
    text-align: left;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.course-list li {
    padding: 0.5rem 0;
    color: #666;
    border-bottom: 1px dotted var(--border);
    font-size: 0.95rem;
}

.course-list li:last-child {
    border-bottom: none;
}

.course-btn {
    background: linear-gradient(135deg, var(--primary) 0%, rgba(107, 45, 140, 0.8) 100%);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.course-btn:hover {
    background: var(--secondary);
    color: var(--primary);
    transform: scale(1.05);
}

.short-term {
    background-color: var(--white);
}

.long-term {
    background: linear-gradient(135deg, var(--light) 0%, rgba(244, 196, 48, 0.05) 100%);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, rgba(107, 45, 140, 0.9) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
    margin: 2rem 0;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-btn-large {
    background-color: var(--secondary);
    color: var(--primary);
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(244, 196, 48, 0.3);
}

.cta-btn-large:hover {
    background-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 196, 48, 0.4);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
#contact {
    scroll-margin-top: 80px;
}

.contact-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    padding: 2rem;
    background: var(--light);
    border-radius: 10px;
    border-left: 4px solid var(--primary);
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.contact-info h3:first-child {
    margin-top: 0;
}

.contact-info p {
    color: #666;
    font-size: 1.1rem;
}

.contact-form {
    padding: 2rem;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 10px;
}

.contact-form h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 5px rgba(107, 45, 140, 0.2);
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary) 0%, rgba(107, 45, 140, 0.85) 100%);
    color: var(--white);
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(107, 45, 140, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary), rgba(244, 196, 48, 0.8));
    transition: left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: -1;
}

.submit-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px rgba(107, 45, 140, 0.4);
}

.submit-btn:hover::before {
    left: 0;
}

.submit-btn:active {
    transform: translateY(-2px) scale(0.99);
}

/* ============================================
   MODAL
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1;
        backdrop-filter: blur(4px);
    }
}

.modal-content {
    background: linear-gradient(135deg, var(--white) 0%, rgba(244, 196, 48, 0.05) 100%);
    margin: 10% auto;
    padding: 2.5rem;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    animation: zoomInCenter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 40px rgba(244, 196, 48, 0.1);
    border: 1px solid rgba(244, 196, 48, 0.2);
    max-height: 85vh;
    overflow-y: auto;
}

@keyframes zoomInCenter {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content h2 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.modal-content form {
    display: flex;
    flex-direction: column;
}

.modal-content input,
.modal-content select,
.modal-content textarea {
    padding: 0.85rem;
    margin-bottom: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background-color: rgba(255, 255, 255, 0.9);
}

.modal-content input:focus,
.modal-content select:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(107, 45, 140, 0.1), 0 0 12px rgba(107, 45, 140, 0.2);
    transform: scale(1.02);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--primary);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: linear-gradient(135deg, var(--primary) 0%, rgba(107, 45, 140, 0.95) 100%);
    color: var(--white);
    padding: 3rem 2rem 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.footer-section p {
    opacity: 0.9;
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

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

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
    opacity: 0.9;
}

.footer-section a:hover {
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--secondary);
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}
