/* Reset dan pengaturan global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #2D3748;
    line-height: 1.6;
    background-color: #F7FAFC;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.dark-mode {
    color: #E2E8F0;
    background-color: #1A202C;
}

/* Tipografi */
h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    color: #2B6CB0;
}

body.dark-mode h1, body.dark-mode h2, body.dark-mode h3 {
    color: #63B3ED;
}

h1 { font-size: 60px; font-weight: 700; }
h2 { font-size: 32px; font-weight: 600; margin-bottom: 20px; text-align: center; }
h3 { font-size: 24px; font-weight: 600; margin-bottom: 15px; }
.section-description { text-align: center; max-width: 800px; margin: 0 auto 40px; font-size: 16px; color: #4A5568; }
body.dark-mode .section-description { color: #A0AEC0; }

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    max-width: 1400px;
    margin: 0 auto;
}

body.dark-mode header { background-color: #2D3748; }
header.scrolled { background-color: rgba(255, 255, 255, 0.98); }
body.dark-mode header.scrolled { background-color: rgba(45, 55, 72, 0.98); }

.logo { display: flex; align-items: center; }
.logo img { height: 50px; transition: transform 0.3s ease; }
.logo:hover img { transform: scale(1.1); }
.school-name { font-family: 'Poppins', sans-serif; font-size: 24px; color: #2B6CB0; margin-left: 15px; }
body.dark-mode .school-name { color: #63B3ED; }

nav { display: flex; align-items: center; }
nav ul { display: flex; gap: 30px; list-style: none; }
nav ul li a { 
    font-size: 16px; 
    color: #2D3748; 
    font-weight: 500; 
    padding: 8px 12px; 
    border-radius: 5px; 
    transition: all 0.3s ease; 
    text-decoration: none; 
    position: relative; 
}
body.dark-mode nav ul li a { color: #E2E8F0; }
nav ul li a:hover { 
    color: #fff; 
    background-color: #2B6CB0; 
}
body.dark-mode nav ul li a:hover { background-color: #63B3ED; }
nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #2B6CB0;
    transition: width 0.3s ease;
}
body.dark-mode nav ul li a::after { background-color: #63B3ED; }
nav ul li a:hover::after { width: 100%; }

/* Theme Toggle */
.theme-toggle { margin-left: 20px; }
.switch { position: relative; display: inline-block; width: 60px; height: 34px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { 
    position: absolute; 
    cursor: pointer; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    background-color: #ccc; 
    transition: 0.4s; 
    border-radius: 34px; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 0 5px; 
}
body.dark-mode .slider { background-color: #4A5568; }
.slider:before { 
    position: absolute; 
    content: ""; 
    height: 26px; 
    width: 26px; 
    left: 4px; 
    bottom: 4px; 
    background-color: white; 
    transition: 0.4s; 
    border-radius: 50%; 
}
input:checked + .slider { background-color: #2B6CB0; }
body.dark-mode input:checked + .slider { background-color: #63B3ED; }
input:checked + .slider:before { transform: translateX(26px); }
.slider .icon { font-size: 18px; }
.slider .sun { margin-left: 5px; }
.slider .moon { margin-right: 5px; }

/* Hamburger Menu */
.hamburger { 
    display: none; 
    background: none; 
    border: none; 
    cursor: pointer; 
    padding: 5px; 
}
.hamburger .bar { 
    display: block; 
    width: 25px; 
    height: 3px; 
    background-color: #2D3748; 
    margin: 5px 0; 
    transition: all 0.3s ease; 
}
body.dark-mode .hamburger .bar { background-color: #E2E8F0; }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
    max-width: 100%;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(43, 108, 176, 0.7), rgba(66, 153, 225, 0.5));
    z-index: 2;
}

body.dark-mode .hero-overlay {
    background: linear-gradient(135deg, rgba(45, 55, 72, 0.7), rgba(66, 153, 225, 0.5));
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1000px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.hero-content h1 {
    font-size: 60px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-content p {
    font-size: 20px;
    font-weight: 300;
    max-width: 700px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
}

.accreditation {
    display: inline-block;
    background-color: #ECC94B;
    color: #2D3748;
    padding: 10px 25px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.dark-mode .accreditation { color: #1A202C; }

.hero-buttons {
    display: flex;
    gap: 20px;
}

.cta-button {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-button.primary {
    background-color: #ECC94B;
    color: #2B6CB0;
}

body.dark-mode .cta-button.primary { background-color: #63B3ED; color: #1A202C; }

.cta-button.primary:hover {
    transform: translateY(-5px);
    background-color: #D69E2E;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .cta-button.primary:hover { background-color: #4299E1; }

.cta-button.secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #ECC94B;
}

body.dark-mode .cta-button.secondary { border-color: #63B3ED; }

.cta-button.secondary:hover {
    background-color: #ECC94B;
    color: #2B6CB0;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .cta-button.secondary:hover {
    background-color: #63B3ED;
    color: #1A202C;
}

.cta-button.small { padding: 10px 25px; font-size: 14px; }

/* Elemen Dekoratif */
.hero-decor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.decor-line {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background-color: #ECC94B;
    animation: pulse 2s infinite;
}

body.dark-mode .decor-line { background-color: #63B3ED; }

@keyframes pulse {
    0% { transform: translateX(-50%) scaleX(1); }
    50% { transform: translateX(-50%) scaleX(1.5); }
    100% { transform: translateX(-50%) scaleX(1); }
}

.decor-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('particles.png') repeat;
    opacity: 0.2;
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { background-position: 0 0; }
    100% { background-position: 1000px 1000px; }
}

/* About Section */
#about {
    padding: 80px 40px;
    background-color: #fff;
    max-width: 1400px;
    margin: 0 auto;
}

body.dark-mode #about { background-color: #1A202C; }

.about-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    padding: 0 20px;
}

.about-text {
    flex: 1;
    padding: 30px;
    background-color: #F7FAFC;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    animation: fadeInLeft 1s ease-out;
    max-width: 500px;
}

body.dark-mode .about-text { background-color: #2D3748; }

.about-text p { margin-bottom: 15px; }
.about-text ul { list-style: disc; margin-left: 20px; margin-bottom: 15px; }
.about-text ul li { margin-bottom: 10px; }

@keyframes fadeInLeft { from { transform: translateX(-50px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.about-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: fadeInRight 1s ease-out;
}

@keyframes fadeInRight { from { transform: translateX(50px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Achievements & Graduates Section */
#achievements, #graduates {
    padding: 80px 40px;
    background-color: #F7FAFC;
    max-width: 1400px;
    margin: 0 auto;
}

body.dark-mode #achievements, body.dark-mode #graduates { background-color: #1A202C; }

.achievements-grid, .graduates-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.achievement-card, .graduate-card {
    background-color: #fff;
    padding: 30px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 300px;
}

body.dark-mode .achievement-card, body.dark-mode .graduate-card { background-color: #2D3748; }
.achievement-card:hover, .graduate-card:hover { transform: translateY(-10px); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1); }
.achievement-card img { height: 60px; margin-bottom: 20px; }
.graduate-card img { width: 100%; max-width: 120px; border-radius: 50%; margin-bottom: 15px; border: 3px solid #ECC94B; }
body.dark-mode .graduate-card img { border-color: #63B3ED; }
.achievement-card h3, .graduate-card h3 { font-size: 20px; margin-bottom: 10px; }

/* Contact Section */
#contact {
    padding: 80px 40px;
    background-color: #F7FAFC;
    max-width: 1400px;
    margin: 0 auto;
}

body.dark-mode #contact { background-color: #1A202C; }

.contact-content {
    display: flex;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    padding: 0 20px;
}

.contact-schedule {
    flex: 1;
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-width: 500px;
}

body.dark-mode .contact-schedule { background-color: #2D3748; }

.contact-schedule h3 {
    text-align: center;
    margin-bottom: 20px;
}

.contact-schedule form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-schedule input,
.contact-schedule select {
    padding: 15px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background-color: #fff;
    color: #2D3748;
}

body.dark-mode .contact-schedule input,
body.dark-mode .contact-schedule select {
    border-color: #4A5568;
    background-color: #2D3748;
    color: #E2E8F0;
}

.contact-schedule input:focus,
.contact-schedule select:focus {
    border-color: #2B6CB0;
    outline: none;
}

body.dark-mode .contact-schedule input:focus,
body.dark-mode .contact-schedule select:focus {
    border-color: #63B3ED;
}

.contact-schedule button {
    background-color: #2B6CB0;
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

body.dark-mode .contact-schedule button { background-color: #63B3ED; }

.contact-schedule button:hover {
    background-color: #2C5282;
    transform: translateY(-3px);
}

body.dark-mode .contact-schedule button:hover { background-color: #4299E1; }

.contact-schedule button.loading {
    background-color: #A0AEC0;
    cursor: not-allowed;
}

body.dark-mode .contact-schedule button.loading { background-color: #718096; }

.contact-schedule button.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.contact-methods {
    flex: 1;
    padding: 30px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.dark-mode .contact-methods { background-color: #2D3748; }

.contact-methods h3 {
    text-align: center;
    margin-bottom: 20px;
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    margin-bottom: 30px;
}

.chat-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.chat-button img {
    height: 24px;
}

.chat-button.whatsapp {
    background-color: #25D366;
    color: #fff;
}

.chat-button.telegram {
    background-color: #0088cc;
    color: #fff;
}

.chat-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.chat-button.whatsapp:hover { background-color: #20b358; }
.chat-button.telegram:hover { background-color: #0077b3; }

.qr-contact {
    text-align: center;
}

.qr-contact p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #4A5568;
}

body.dark-mode .qr-contact p { color: #A0AEC0; }

.qr-code {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

.qr-code img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.qr-code:hover {
    transform: scale(1.1);
}

/* Responsivitas */
@media (max-width: 1024px) {
    .contact-content { flex-direction: column; align-items: center; }
    .contact-schedule, .contact-methods { max-width: 600px; }
}

@media (max-width: 768px) {
    #contact { padding: 60px 20px; }
    .contact-schedule, .contact-methods { max-width: 100%; }
    .chat-options { gap: 10px; }
    .qr-code { width: 120px; height: 120px; }
}

@media (max-width: 480px) {
    #contact { padding: 40px 15px; }
    .contact-schedule h3, .contact-methods h3 { font-size: 20px; }
    .contact-schedule input, .contact-schedule select, .chat-button { font-size: 14px; padding: 12px; }
    .qr-contact p { font-size: 14px; }
    .qr-code { width: 100px; height: 100px; }
}

/* Footer */
footer {
    background-color: #2B6CB0;
    color: #fff;
    padding: 50px 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

body.dark-mode footer { background-color: #1A202C; }

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 30px;
    flex-wrap: wrap;
}

.footer-section { flex: 1; min-width: 250px; }
.footer-section h3 { font-size: 20px; margin-bottom: 20px; }
.footer-section p { margin-bottom: 10px; font-size: 14px; }
.footer-section a { color: #ECC94B; text-decoration: none; transition: color 0.3s ease; }
body.dark-mode .footer-section a { color: #63B3ED; }
.footer-section a:hover { color: #fff; }

.footer-section.links ul { list-style: none; }
.footer-section.links ul li { margin-bottom: 10px; }
.footer-section.links ul li a { font-size: 14px; }

.footer-section.social .social-media { display: flex; gap: 15px; }
.social-media img { 
    height: 30px; 
    transition: transform 0.3s ease, filter 0.3s ease; 
    filter: grayscale(100%); 
}
body.dark-mode .social-media img { filter: grayscale(50%); }
.social-media img:hover { 
    filter: grayscale(0%); 
    transform: scale(1.2) rotate(5deg); 
}

.footer-bottom { 
    text-align: center; 
    padding-top: 20px; 
    border-top: 1px solid rgba(255, 255, 255, 0.2); 
}
.footer-bottom p { font-size: 14px; }

/* Responsivitas */
@media (max-width: 1024px) {
    .contact-content { flex-direction: column; align-items: center; }
    .contact-form, .contact-info { max-width: 600px; }
    .hero-content h1 { font-size: 48px; }
    .hero-content p { font-size: 18px; }
    .hero-buttons { flex-direction: column; gap: 15px; }
    .about-content { flex-direction: column; align-items: center; }
    .about-text, .about-image img { max-width: 600px; }
    .achievements-grid, .graduates-grid { flex-direction: column; align-items: center; }
    .achievement-card, .graduate-card { max-width: 350px; }
    .footer-content { flex-direction: column; align-items: center; text-align: center; }
    .footer-section { margin-bottom: 30px; }
    .footer-section.social .social-media { justify-content: center; }
}

@media (max-width: 768px) {
    header { flex-wrap: wrap; padding: 15px 20px; }
    .logo { margin-bottom: 10px; }
    .school-name { font-size: 20px; }
    nav { display: none; width: 100%; }
    nav.active { display: block; animation: slideIn 0.3s ease-in-out; }
    nav ul { flex-direction: column; text-align: center; gap: 20px; margin-top: 20px; }
    .theme-toggle { position: absolute; right: 20px; top: 20px; }
    .hamburger { display: block; }
    .hero { height: 80vh; }
    .hero-content { padding: 15px; }
    .hero-content h1 { font-size: 36px; }
    .hero-content p { font-size: 16px; }
    .cta-button { padding: 12px 30px; font-size: 14px; }
    .accreditation { font-size: 14px; padding: 8px 20px; }
    #about, #achievements, #graduates, #contact { padding: 60px 20px; }
}

@media (max-width: 480px) {
    header { padding: 10px 15px; }
    .school-name { font-size: 18px; }
    .theme-toggle { right: 15px; top: 15px; }
    .hero { height: 70vh; }
    .hero-content h1 { font-size: 28px; }
    .hero-content p { font-size: 14px; }
    .cta-button { padding: 10px 25px; font-size: 12px; }
    .decor-line { bottom: 30px; width: 80px; }
    #about, #achievements, #graduates, #contact { padding: 40px 15px; }
    .about-text, .about-image img { max-width: 100%; }
    .achievement-card, .graduate-card { max-width: 100%; }
    .contact-form, .contact-info { max-width: 100%; }
    footer { padding: 30px 20px 10px; }
    .footer-section h3 { font-size: 18px; }
    .footer-section p, .footer-section.links ul li a { font-size: 12px; }
}

@keyframes slideIn { from { transform: translateY(-20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }