/* Custom Premium Vanilla CSS for Danawa Education */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Light Mode Redesign */
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f1f5f9;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --border-color: #e2e8f0;
    --border-glow: rgba(0, 86, 145, 0.15);
    
    --primary: #005691; /* Danawa Logo Blue */
    --primary-hover: #003f6b;
    --primary-glow: rgba(0, 86, 145, 0.25);
    
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-dark: #ffffff;
    
    --success: #059669;
    --error: #dc2626;
    
    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Layouts */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Glassmorphism utility */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
}

.glow-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px var(--border-glow);
}

/* Layout Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Alternating Section Background to reduce pure white brightness */
.section-alt {
    background-color: #f4f7fa;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

/* Custom Header / Nav */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary);
}

/* Dropdown Menu for Shop */
.dropdown {
    position: relative;
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.dropdown-item a:hover {
    background: var(--bg-surface-hover);
    color: var(--primary);
}

/* Call to Action Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 15px var(--primary-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-surface-hover);
    border-color: var(--text-muted);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 100px 0 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(245,158,11,0.1) 0%, rgba(248,250,252,0) 70%);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary) 0%, #f59e0b 50%, #f43f5e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-img-card {
    width: 100%;
    max-width: 420px;
    height: 420px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(255, 255, 255, 0.8) 100%);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-img-card svg {
    width: 180px;
    height: 180px;
    color: var(--primary);
    filter: drop-shadow(0 0 20px var(--primary-glow));
}

/* Features/Focus Grid */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-tag {
    color: var(--primary);
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    font-size: 38px;
    margin-bottom: 16px;
}

.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    padding: 40px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: rgba(245, 158, 11, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 24px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 24px;
}

.feature-link {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.feature-link:hover {
    color: var(--text-main);
}

/* Quote/Highlight Section */
.quote-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-surface) 100%);
    position: relative;
}

.quote-card {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border-color);
}

.quote-icon {
    font-size: 48px;
    color: var(--primary);
    opacity: 0.3;
    margin-bottom: 20px;
}

.quote-text {
    font-size: 24px;
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 30px;
}

.quote-author {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary);
}

.quote-title {
    font-size: 14px;
    color: var(--text-muted);
}

/* Projects and Filter System */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 40px;
    padding: 24px;
    border-radius: var(--radius-md);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.filter-select {
    background: var(--bg-main);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
    width: 100%;
}

.filter-select:focus {
    border-color: var(--primary);
}

.project-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

.project-img {
    height: 220px;
    background: linear-gradient(135deg, #f1f5f9 0%, rgba(245, 158, 11, 0.05) 100%);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.project-img svg {
    width: 80px;
    height: 80px;
    color: var(--primary);
    opacity: 0.8;
}

.project-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: var(--text-dark);
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-transform: uppercase;
}

.project-body {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-school {
    font-size: 22px;
    margin-bottom: 8px;
}

.project-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.project-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
    margin-top: auto;
}

.project-stats strong {
    color: var(--text-main);
}

/* SOW Flagship Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--border-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--bg-main);
    border: 4px solid var(--primary);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: -8px;
}

.timeline-content {
    padding: 24px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

/* ICDL Modules Grid */
.icdl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.icdl-card {
    padding: 24px;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.icdl-card:hover {
    border-color: var(--primary);
}

.icdl-card h4 {
    margin-bottom: 8px;
    color: var(--primary);
}

/* Contact Us & Forms */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
}

.contact-form {
    padding: 40px;
    border-radius: var(--radius-lg);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-muted);
}

.form-input, .form-textarea {
    width: 100%;
    background: var(--bg-main);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px;
    outline: none;
    font-family: var(--font-body);
    transition: var(--transition);
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--primary);
}

.info-box {
    margin-bottom: 32px;
}

.info-box h3 {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-box p {
    color: var(--text-muted);
    font-size: 15px;
}

/* Footer */
footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px 0;
    margin-top: 100px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
}

.footer-desc {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 24px;
    max-width: 350px;
}

.footer-title {
    font-size: 18px;
    margin-bottom: 24px;
    color: var(--text-main);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 15px;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-muted);
}

/* Success Alerts */
.alert {
    padding: 16px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-weight: 500;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .hero-grid, .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        flex-direction: column;
        padding: 40px;
        border-bottom: 1px solid var(--border-color);
        gap: 24px;
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::after {
        left: 23px;
    }
    
    .right {
        left: 0%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ==========================================================================
   Hero Slider & Modern Interface Enhancements
   ========================================================================== */

.hero-slider-wrapper {
    position: relative;
    width: 100%;
    margin-top: 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 520px;
    background: #0f172a;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.65) contrast(1.05);
    transition: transform 8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-slide.active .hero-slide-img {
    transform: scale(1.08);
}

.hero-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 80px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.3) 60%, transparent 100%);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    z-index: 3;
    pointer-events: none; /* Let clicks pass to link */
}

.hero-slide-title {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s;
}

.hero-slide.active .hero-slide-title {
    transform: translateY(0);
    opacity: 1;
}

.hero-slide-subtitle {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    max-width: 750px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.4s;
}

.hero-slide.active .hero-slide-subtitle {
    transform: translateY(0);
    opacity: 1;
}

.hero-slide-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
    font-family: var(--font-heading);
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s;
}

.hero-slide.active .hero-slide-action {
    transform: translateY(0);
    opacity: 1;
}

/* Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.slider-arrow:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 15px var(--primary-glow);
}

.slider-arrow-prev {
    left: 30px;
}

.slider-arrow-next {
    right: 30px;
}

/* Indicators */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot:hover, .slider-dot.active {
    background: var(--primary);
    transform: scale(1.1);
}

.slider-dot.active {
    width: 28px;
    border-radius: 10px;
}

/* Responsive adjustments for Slider */
@media (max-width: 992px) {
    .hero-slider {
        height: 420px;
    }
    .hero-slide-content {
        padding: 40px;
    }
    .hero-slide-title {
        font-size: 32px;
    }
    .hero-slide-subtitle {
        font-size: 15px;
        margin-bottom: 16px;
    }
}

@media (max-width: 576px) {
    .hero-slider {
        height: 320px;
    }
    .hero-slide-content {
        padding: 24px;
    }
    .hero-slide-title {
        font-size: 24px;
    }
    .hero-slide-subtitle {
        font-size: 13px;
        margin-bottom: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .slider-arrow {
        width: 38px;
        height: 38px;
        font-size: 12px;
    }
    .slider-arrow-prev { left: 12px; }
    .slider-arrow-next { right: 12px; }
    .slider-dots { bottom: 16px; }
}

/* Global Public Style Enhancements */
.hero-title span {
    position: relative;
    display: inline-block;
}

.hero-title span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 8px;
    width: 100%;
    height: 8px;
    background: var(--primary-glow);
    z-index: -1;
    border-radius: 4px;
}

.feature-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 25px var(--border-glow);
    border-color: var(--primary);
}

.project-card {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 0 20px var(--border-glow);
    border-color: var(--primary);
}

.btn {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:active {
    transform: scale(0.96);
}

