/* style.css */

/* --- CSS Variables --- */
:root {
    /* Color Palette (Split-Complementary) */
    --primary-color: #0052D4;         /* Strong Blue */
    --secondary-color: #00A7E1;        /* Teal/Cyan */
    --accent-color: #FFB800;           /* Gold/Orange */
    --primary-darker: #003a99;
    --accent-darker: #cc9300;

    /* Typography */
    --text-dark: #222222;
    --text-light: #555555;
    --text-on-dark: #FFFFFF;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Nunito', sans-serif;
    
    /* Backgrounds */
    --bg-light: #F4F7F6;
    --bg-dark: #1a1a1a;
    --bg-glass: rgba(255, 255, 255, 0.1);

    /* UI Elements */
    --border-radius: 8px;
    --card-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --neo-brutal-shadow: 5px 5px 0px var(--text-dark);
    --neo-brutal-shadow-hover: 8px 8px 0px var(--text-dark);

    /* Spacing */
    --header-height: 80px;
}

/* --- General Styles --- */
html {
    scroll-behavior: smooth;
    background-color: var(--bg-light);
}

body {
    font-family: var(--font-body);
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1.1rem;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6, .title, .subtitle {
    font-family: var(--font-heading);
    color: var(--text-dark);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.05);
}

.section-title {
    margin-bottom: 3rem !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.content p {
    margin-bottom: 1.25rem;
}

a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-darker);
}

/* --- Layout & Sections --- */
.section {
    padding: 4rem 1.5rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Specific Page Layouts */
.page-content {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 2rem;
    min-height: calc(100vh - var(--header-height));
}

.success-page-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 100vh;
    padding: 2rem;
    background-color: var(--bg-light);
}

/* --- Header & Navigation --- */
.header.is-fixed-top {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: var(--header-height);
}

.navbar-item, .navbar-link {
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.navbar-item:hover, .navbar-item.is-active {
    background-color: transparent !important;
    color: var(--primary-color) !important;
}

.navbar-brand .logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar-item .button.is-primary {
    background-color: var(--primary-color);
}

.navbar-burger {
    height: var(--header-height);
    width: var(--header-height);
}

/* Mobile Menu */
@media screen and (max-width: 1023px) {
    .navbar-menu {
        background-color: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(5px);
        box-shadow: 0 8px 16px rgba(10,10,10,.1);
    }
}


/* --- Hero Section --- */
#hero {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;
    color: var(--text-on-dark);
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

#hero .hero-body {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: var(--text-on-dark);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-on-dark);
    opacity: 0.9;
    margin-top: 1rem;
    margin-bottom: 2.5rem;
}

/* --- Buttons & Inputs --- */
.button {
    font-family: var(--font-body);
    font-weight: 700;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    padding: 1.25em 2em;
}

.button.is-primary {
    background-color: var(--primary-color);
    border-color: transparent;
}
.button.is-primary:hover {
    background-color: var(--primary-darker);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 82, 212, 0.4);
}

/* Neo-Brutalism Button Style */
.neo-brutal-button {
    background-color: var(--accent-color);
    color: var(--text-dark);
    border: 2px solid var(--text-dark);
    box-shadow: var(--neo-brutal-shadow);
    border-radius: var(--border-radius);
    font-weight: 700;
}
.neo-brutal-button:hover {
    box-shadow: var(--neo-brutal-shadow-hover);
    transform: translate(-3px, -3px);
}
.neo-brutal-button:active {
    box-shadow: none;
    transform: translate(5px, 5px);
}

/* Form Inputs */
.input, .textarea {
    border: 2px solid #dbdbdb;
    border-radius: var(--border-radius);
    box-shadow: none;
    transition: all 0.3s ease;
}
.input:focus, .textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.125em rgba(0, 82, 212, 0.25);
}

/* --- Glassmorphism --- */
.glass-effect, .glass-effect-form {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
}

/* --- Cards --- */
.card {
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.2);
}

.card-image img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
}

.card-content {
    flex-grow: 1;
}

.card .button.is-link.is-outlined {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    font-weight: 600;
}
.card .button.is-link.is-outlined:hover {
    background-color: var(--secondary-color);
    color: white;
}


/* --- History Section (Timeline) --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--secondary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}
.timeline-item:nth-child(odd) {
    left: 0;
}
.timeline-item:nth-child(even) {
    left: 50%;
}
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 4px solid var(--secondary-color);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}
.timeline-item:nth-child(even)::after {
    left: -10px;
}
.timeline-content {
    position: relative;
}

/* --- Projects & Statistics Section --- */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}
#projects::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
}
#projects .container {
    position: relative;
    z-index: 2;
}

.stat-widget .title.is-1 {
    font-size: 4rem;
    font-weight: 700;
}

.stat-widget .heading {
    font-family: var(--font-body);
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
}


/* --- Events Section --- */
.event-item {
    margin-bottom: 1.5rem;
}
.event-date {
    background-color: var(--primary-color);
    color: var(--text-on-dark);
    border-radius: var(--border-radius);
    text-align: center;
    padding: 10px;
    font-family: var(--font-heading);
    width: 80px;
}
.event-date .month {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
}
.event-date .day {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

/* --- External Resources Section --- */
.resource-card a {
    text-decoration: none;
}
.resource-card .title:hover {
    color: var(--secondary-color);
}


/* --- Custom Slider --- */
.custom-slider-container {
    position: relative;
}
.slider {
    display: flex;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    padding: 0 10px;
}
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
}
.slider-nav.prev {
    left: -25px;
}
.slider-nav.next {
    right: -25px;
}

@media (min-width: 769px) {
    .slide {
        flex: 0 0 33.333%;
    }
}


/* --- Footer --- */
.footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 3rem 1.5rem;
}
.footer .title {
    color: var(--text-on-dark);
}
.footer a {
    color: rgba(255, 255, 255, 0.7);
}
.footer a:hover {
    color: var(--secondary-color);
}
.footer ul {
    list-style: none;
    margin: 0;
}
.footer li {
    margin-bottom: 0.5rem;
}

/* --- Scroll Animations --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    transition-delay: var(--delay, 0s);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll[data-animation="fade-in"] { transform: translateY(0); }
.animate-on-scroll[data-animation="fade-in-down"] { transform: translateY(-30px); }
.animate-on-scroll[data-animation="fade-in-right"] { transform: translateX(-30px); }
.animate-on-scroll[data-animation="fade-in-left"] { transform: translateX(30px); }
.animate-on-scroll[data-animation="zoom-in"] { transform: scale(0.9); }
.animate-on-scroll[data-animation="zoom-in"].is-visible { transform: scale(1); }

/* --- Responsive Adjustments --- */
@media screen and (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .section {
        padding: 3rem 1.5rem;
    }
    .section-title {
        margin-bottom: 2rem !important;
    }
    .timeline::after {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 15px;
    }
    .timeline-item:nth-child(odd), .timeline-item:nth-child(even) {
        left: 0;
    }
    .timeline-item::after {
        left: 10px;
    }
    .footer .columns {
        text-align: center;
    }
}