/* ==================== General Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

:root {
    --primary-color: #87CEEB;
    --secondary-color: #555555;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #87CEEB;
    --light-color: #FFFFFF;
    --dark-color: #000000;
}

/* ==================== Hero Section ==================== */
.hero-section {
    background: linear-gradient(135deg, #000000 0%, #87CEEB 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    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 1440 320"><path fill="rgba(255,255,255,0.1)" fill-opacity="1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,128C672,128,768,160,864,160C960,160,1056,128,1152,112C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
    animation: wave 5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes wave {
    0%, 100% {
        opacity: 0.8;
        transform: translateY(0px);
    }
    50% {
        opacity: 1;
        transform: translateY(-10px);
    }
}

.animated-title {
    animation: fadeInDown 1s ease-out;
}

.animated-title span {
    color: #80a1b3 !important;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section .btn {
    transition: all 0.3s ease;
    font-weight: 600;
}

.hero-section .btn-primary {
    background-color: #2f3c44;
    border-color: #2f3c44;
}

.hero-section .btn-primary:hover {
    background-color: #546f7d;
    border-color: #546f7d;
}

.hero-section .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ==================== Feature Cards ==================== */
.feature-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.1), rgba(135, 206, 235, 0.1));
    border-radius: 50%;
}

.feature-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-card p {
    color: var(--secondary-color);
}

/* ==================== Category Cards ==================== */
.category-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 5px solid var(--primary-color);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.category-header {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.category-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-left: 1.5rem;
    color: var(--dark-color);
}

.category-card p {
    margin: 1rem 1.5rem;
    color: var(--secondary-color);
}

.category-card ul {
    margin: 1rem 1.5rem;
}

.category-card li {
    margin-bottom: 0.8rem;
    color: var(--secondary-color);
}

.category-card li i {
    margin-right: 0.8rem;
}

/* ==================== Timeline ==================== */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--success-color));
    border-radius: 10px;
}

.timeline-item {
    margin-bottom: 3rem;
    padding-left: 4rem;
    position: relative;
}

.timeline-marker {
    position: absolute;
    left: -22px;
    top: 0;
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 0 0 4px white, 0 0 0 8px var(--primary-color);
}

.timeline-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.timeline-content .text-muted {
    font-weight: 600;
    color: var(--primary-color) !important;
}

/* ==================== Registration Steps ==================== */
.registration-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 2rem;
}

.step-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    border-left: 5px solid var(--primary-color);
    transition: all 0.3s ease;
}

.step-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2rem;
}

.step-card h4 {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 600;
}

.step-card p {
    color: var(--secondary-color);
    margin-bottom: 0;
}

.border-left-primary {
    border-left: 5px solid var(--primary-color) !important;
}

/* ==================== Documents List ==================== */
.documents-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.doc-item {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.doc-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateX(5px);
}

.doc-item i {
    font-size: 2rem;
    color: var(--danger-color);
    min-width: 40px;
    text-align: center;
}

.doc-content {
    flex: 1;
}

.doc-content h5 {
    margin: 0 0 0.3rem;
    color: var(--dark-color);
    font-weight: 600;
}

.doc-content p {
    margin: 0;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.doc-item .btn {
    white-space: nowrap;
}

/* ==================== Material Cards ==================== */
.material-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.material-card:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transform: translateY(-10px);
}

.material-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1rem;
}

.material-card h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 600;
}

.material-card p {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* ==================== Contact Info ==================== */
.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.info-block {
    border-left: 5px solid var(--primary-color);
    padding-left: 20px;
}

.info-block h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.info-block p {
    color: var(--secondary-color);
    margin-bottom: 0;
}

.info-block a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.info-block a:hover {
    color: var(--danger-color);
    text-decoration: underline;
}

/* ==================== Timeline ==================== */
.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.contact-card:hover {
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.contact-card p {
    color: var(--secondary-color);
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-card a:hover {
    color: var(--danger-color);
    text-decoration: underline;
}

/* ==================== Accordion ==================== */
.accordion-button {
    font-weight: 600;
    color: var(--dark-color);
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.accordion-body {
    color: var(--secondary-color);
    line-height: 1.8;
}

/* ==================== Back to Top Button ==================== */
.btn-floating {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.btn-floating.show {
    opacity: 1;
    visibility: visible;
}

.btn-floating:hover {
    background-color: #5DADE2;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* ==================== Navigation ==================== */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--primary-color) !important;
}

.nav-link {
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* ==================== Footer ==================== */
footer {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: #e2e8f0;
    padding-top: 4rem;
    padding-bottom: 2rem;
}

footer h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

footer .text-muted {
    color: #cbd5e0 !important;
}

footer ul li {
    margin-bottom: 0.8rem;
}

footer a {
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

footer a:hover {
    color: var(--primary-color);
    text-decoration: underline;
    transform: translateX(3px);
}

footer .d-flex gap-3 a {
    font-size: 1.3rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

footer .d-flex.gap-3 a:hover {
    background: var(--primary-color);
    color: white;
}

footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

footer .text-center {
    color: #a0aec0;
    font-size: 0.95rem;
}

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .display-5 {
        font-size: 1.8rem;
    }

    .d-flex.gap-3 {
        flex-direction: column;
    }

    .d-flex.gap-3 .btn {
        width: 100%;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-marker {
        left: -22px;
    }

    .timeline-item {
        padding-left: 3rem;
    }

    .btn-floating {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .registration-form {
        padding: 1.5rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .material-card {
        margin-bottom: 1.5rem;
    }

    footer .row {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .feature-card,
    .category-card,
    .contact-card {
        margin-bottom: 1.5rem;
    }

    .display-5 {
        font-size: 1.5rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .btn-floating {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* ==================== Animations ==================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.category-card,
.contact-card {
    animation: slideInUp 0.6s ease-out;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* ==================== Scroll Behavior ==================== */
html {
    scroll-behavior: smooth;
}

/* ==================== Additional Utilities ==================== */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), #87CEEB);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), #87CEEB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-lg {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.border-bottom-primary {
    border-bottom: 3px solid var(--primary-color);
}
