/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    font-size: 16px;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1e1e2f;
    background-color: #f8f9fc;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}
body.dark-mode {
    color: #e0e0e0;
    background-color: #121212;
}
a {
    color: inherit;
    text-decoration: none;
}
ul, ol {
    list-style: none;
}
img {
    max-width: 100%;
    display: block;
}
button {
    cursor: pointer;
    font: inherit;
    border: none;
    background: none;
}
/* ===== Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f0f0;
}
body.dark-mode ::-webkit-scrollbar-track {
    background: #2a2a2a;
}
::-webkit-scrollbar-thumb {
    background: #c0c0c0;
    border-radius: 4px;
}
body.dark-mode ::-webkit-scrollbar-thumb {
    background: #555;
}
/* ===== Header & Navigation ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
body.dark-mode header {
    background: rgba(18, 18, 18, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
header.sticky {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
body.dark-mode header.sticky {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
}
.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #cc2936, #e85d3a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: #1e1e2f;
    padding: 0.25rem;
}
body.dark-mode .menu-toggle {
    color: #e0e0e0;
}
.nav-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}
.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
    position: relative;
}
.nav-links a:hover {
    background: rgba(204, 41, 54, 0.08);
    color: #cc2936;
}
body.dark-mode .nav-links a:hover {
    background: rgba(204, 41, 54, 0.2);
    color: #ff6b6b;
}
.nav-links .active a {
    background: rgba(204, 41, 54, 0.12);
    color: #cc2936;
    font-weight: 600;
}
body.dark-mode .nav-links .active a {
    background: rgba(204, 41, 54, 0.25);
    color: #ff6b6b;
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.dark-mode-toggle {
    font-size: 1.3rem;
    padding: 0.3rem;
    border-radius: 50%;
    transition: background 0.2s ease;
}
.dark-mode-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}
body.dark-mode .dark-mode-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}
.btn-login {
    display: inline-block;
    background: linear-gradient(135deg, #cc2936, #e85d3a);
    color: #fff;
    padding: 0.5rem 1.4rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(204, 41, 54, 0.3);
}
.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 41, 54, 0.4);
}
/* ===== Mobile Nav ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        transition: transform 0.4s ease, opacity 0.4s ease;
        pointer-events: none;
        z-index: 999;
    }
    body.dark-mode .nav-links {
        background: rgba(18, 18, 18, 0.95);
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-links a {
        font-size: 1.3rem;
    }
    .nav-actions {
        gap: 0.5rem;
    }
    .btn-login {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
}
/* ===== Main Content ===== */
main {
    padding-top: 70px;
}
/* ===== Hero ===== */
#hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    position: relative;
    overflow: hidden;
    padding: 3rem 1.5rem;
}
#hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(204, 41, 54, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(232, 93, 58, 0.12) 0%, transparent 50%);
    animation: heroGlow 15s ease-in-out infinite alternate;
}
@keyframes heroGlow {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(5%, 5%) rotate(3deg); }
}
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 750px;
    color: #fff;
}
#hero-title {
    font-size: clamp(2.2rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    opacity: 0.9;
    margin-bottom: 0.8rem;
    font-weight: 300;
    letter-spacing: 1px;
}
.hero-content p:not(.hero-subtitle) {
    font-size: 1.05rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto 2rem;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.8rem 2.2rem;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-primary {
    background: linear-gradient(135deg, #cc2936, #e85d3a);
    color: #fff;
    box-shadow: 0 6px 20px rgba(204, 41, 54, 0.4);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(204, 41, 54, 0.5);
}
.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-3px);
}
/* ===== Sections Common ===== */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
}
section h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}
section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #cc2936, #e85d3a);
    border-radius: 2px;
    margin-top: 0.5rem;
}
section > p {
    font-size: 1.05rem;
    color: #555;
    max-width: 700px;
    margin-bottom: 2.5rem;
}
body.dark-mode section > p {
    color: #aaa;
}
/* ===== About ===== */
#about {
    background: #fff;
    border-radius: 24px;
    margin: 2rem auto;
    padding: 4rem 2.5rem;
    box-shadow: 0 8px 40px rgba(0,0,0,0.04);
}
body.dark-mode #about {
    background: #1e1e2a;
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
#about p {
    margin-bottom: 1rem;
    color: #444;
    line-height: 1.8;
}
body.dark-mode #about p {
    color: #bbb;
}
.about-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(204, 41, 54, 0.04);
    border-radius: 16px;
    backdrop-filter: blur(4px);
}
body.dark-mode .about-details {
    background: rgba(204, 41, 54, 0.1);
}
.about-details div {
    font-size: 0.95rem;
}
.about-details strong {
    color: #cc2936;
}
/* ===== Card Grid ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
}
.card-grid article {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}
body.dark-mode .card-grid article {
    background: rgba(30, 30, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}
.card-grid article::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #cc2936, #e85d3a);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.card-grid article:hover::before {
    opacity: 1;
}
.card-grid article:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}
body.dark-mode .card-grid article:hover {
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.card-grid h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #1e1e2f;
}
body.dark-mode .card-grid h3 {
    color: #f0f0f0;
}
.card-grid p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
}
body.dark-mode .card-grid p {
    color: #aaa;
}
.card-grid a {
    display: inline-block;
    margin-top: 1rem;
    color: #cc2936;
    font-weight: 600;
    transition: color 0.2s ease, transform 0.2s ease;
}
.card-grid a:hover {
    color: #e85d3a;
    transform: translateX(4px);
}
/* ===== Services / Resources ===== */
#services, #resources {
    background: transparent;
}
/* ===== HowTo ===== */
#howto {
    background: linear-gradient(135deg, #f0f2ff, #fce4ec);
    border-radius: 24px;
    padding: 4rem 2.5rem;
    margin: 2rem auto;
}
body.dark-mode #howto {
    background: linear-gradient(135deg, #1a1a2e, #2d1b1b);
}
#howto ol {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}
#howto li {
    counter-increment: step;
    position: relative;
    padding: 1rem 1rem 1rem 3.5rem;
    margin-bottom: 0.8rem;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.6);
    transition: transform 0.2s ease, background 0.2s ease;
}
body.dark-mode #howto li {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
}
#howto li::before {
    content: counter(step);
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #cc2936, #e85d3a);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
#howto li:hover {
    transform: scale(1.01);
    background: rgba(255,255,255,0.7);
}
body.dark-mode #howto li:hover {
    background: rgba(255,255,255,0.05);
}
#howto li span {
    font-weight: 700;
    color: #cc2936;
}
/* ===== FAQ ===== */
#faq {
    background: #fff;
    border-radius: 24px;
    padding: 4rem 2.5rem;
    margin: 2rem auto;
    box-shadow: 0 8px 40px rgba(0,0,0,0.03);
}
body.dark-mode #faq {
    background: #1e1e2a;
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
}
.faq-list details {
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 1rem 0;
    transition: background 0.2s ease;
}
body.dark-mode .faq-list details {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.faq-list summary {
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.2s ease;
    list-style: none;
}
.faq-list summary::-webkit-details-marker {
    display: none;
}
.faq-list summary::before {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: #cc2936;
    transition: transform 0.3s ease;
    display: inline-block;
    width: 24px;
    text-align: center;
}
.faq-list details[open] summary::before {
    content: '−';
    transform: rotate(180deg);
}
.faq-list summary:hover {
    color: #cc2936;
}
.faq-list details[open] summary {
    color: #cc2936;
}
.faq-list details div {
    padding: 0.8rem 0 0.5rem 2rem;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
}
body.dark-mode .faq-list details div {
    color: #aaa;
}
/* ===== Contact ===== */
#contact {
    background: linear-gradient(135deg, #f8f9fc, #e8ecf4);
    border-radius: 24px;
    padding: 4rem 2.5rem;
    margin: 2rem auto;
}
body.dark-mode #contact {
    background: linear-gradient(135deg, #1a1a2e, #24243e);
}
.contact-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
}
body.dark-mode .contact-details {
    background: rgba(0,0,0,0.2);
}
.contact-details div {
    font-size: 0.95rem;
}
.contact-details strong {
    color: #cc2936;
}
.contact-form {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.5);
}
body.dark-mode .contact-form {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.05);
}
.contact-form h3 {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
}
.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-form label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}
body.dark-mode .contact-form label {
    color: #ccc;
}
.contact-form input,
.contact-form textarea {
    padding: 0.8rem 1rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255,255,255,0.8);
    transition: border 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    font-family: inherit;
}
body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #e0e0e0;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #cc2936;
    box-shadow: 0 0 0 3px rgba(204, 41, 54, 0.15);
}
.contact-form button[type="submit"] {
    align-self: flex-start;
    background: linear-gradient(135deg, #cc2936, #e85d3a);
    color: #fff;
    padding: 0.8rem 2.5rem;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(204, 41, 54, 0.3);
}
.contact-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(204, 41, 54, 0.4);
}
/* ===== Footer ===== */
footer {
    background: #1a1a2e;
    color: #ccc;
    padding: 3rem 1.5rem 2rem;
    margin-top: 4rem;
}
body.dark-mode footer {
    background: #0d0d1a;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
}
.footer-brand p:first-child {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
}
.footer-brand p:last-child {
    font-size: 0.85rem;
    opacity: 0.7;
}
footer nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}
footer nav a {
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.2s ease, color 0.2s ease;
}
footer nav a:hover {
    opacity: 1;
    color: #ff6b6b;
}
.footer-meta {
    width: 100%;
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.8rem;
    opacity: 0.6;
}
/* ===== Back to Top ===== */
#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #cc2936, #e85d3a);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(204, 41, 54, 0.4);
    transition: transform 0.2s ease, opacity 0.2s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
}
#back-to-top[style*="display: block"] {
    opacity: 1;
    transform: scale(1);
}
#back-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(204, 41, 54, 0.5);
}
/* ===== Responsive ===== */
@media (max-width: 768px) {
    section {
        padding: 3rem 1.2rem;
    }
    #about, #howto, #faq, #contact {
        padding: 2.5rem 1.2rem;
        border-radius: 16px;
    }
    .card-grid {
        gap: 1.2rem;
    }
    .card-grid article {
        padding: 1.5rem 1.2rem;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    footer nav ul {
        justify-content: center;
    }
    #back-to-top {
        bottom: 1.2rem;
        right: 1.2rem;
        width: 42px;
        height: 42px;
        font-size: 1.2rem;
    }
}
@media (max-width: 480px) {
    .nav-container {
        padding: 0.6rem 1rem;
    }
    .logo {
        font-size: 1.2rem;
    }
    #hero {
        min-height: 70vh;
        padding: 2rem 1rem;
    }
    .about-details {
        grid-template-columns: 1fr;
    }
    .contact-details {
        grid-template-columns: 1fr;
    }
}
/* ===== Scroll Animation (fade-up) ===== */
section {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.7s ease forwards;
}
section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }
section:nth-child(5) { animation-delay: 0.4s; }
section:nth-child(6) { animation-delay: 0.5s; }
section:nth-child(7) { animation-delay: 0.6s; }
section:nth-child(8) { animation-delay: 0.7s; }
section:nth-child(9) { animation-delay: 0.8s; }
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}