/*
  File: style.css
  Project: Festival Vibes – Australian Music & Culture Festival Guide
  Design System: Corporate with Biomorphic Design elements
  Color Scheme: Split-Complementary
  Animation Style: Particle Animation
*/

/* ==========================================================================
   1. CSS Variables
   ========================================================================== */

:root {
    /* Color Palette (Split-Complementary) */
    --primary-color: #FF7A00; /* Vibrant Orange */
    --secondary-color: #00A78D; /* Teal */
    --accent-color: #4E64FF; /* Indigo */
    
    --primary-darker: #cc6200;
    
    /* Neutral Colors */
    --dark-color: #222222;
    --text-color: #333333;
    --light-text-color: #f8f9fa;
    --background-light: #fdfdfd;
    --background-gray: #f8f9fa;
    --border-color: #dee2e6;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Source Sans Pro', sans-serif;
    
    /* Spacing & Sizing */
    --header-height: 80px;
    --border-radius: 15px;
    --border-radius-soft: 25px 5px 25px 5px; /* Biomorphic touch */
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s ease;
}

/* ==========================================================================
   2. Global Styles & Resets
   ========================================================================== */

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--background-light);
    line-height: 1.7;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--dark-color);
    font-weight: 700;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 1rem;
    color: var(--dark-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

section {
    padding: 80px 0;
    overflow: hidden; /* Prevents AOS animations from showing scrollbars */
}

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

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

.lead {
    font-size: 1.15rem;
    font-weight: 400;
}


/* ==========================================================================
   3. Buttons & Form Elements (Global)
   ========================================================================== */

.btn, button, input[type='submit'] {
    font-family: var(--font-body);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover, button:hover, input[type='submit']:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.btn-primary.custom-btn {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.btn-primary.custom-btn:hover {
    background-color: var(--primary-darker);
    border-color: var(--primary-darker);
    color: #fff;
}

.btn-outline-primary.custom-btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary.custom-btn-outline:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.form-control {
    border-radius: 10px;
    padding: 1.5rem 1rem;
    border: 1px solid var(--border-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 122, 0, 0.25);
}

.form-floating > label {
    padding: 1rem 1rem;
}


/* ==========================================================================
   4. Header / Navigation
   ========================================================================== */
.header .navbar {
    transition: var(--transition-speed);
    box-shadow: var(--box-shadow);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--dark-color) !important;
}

.nav-link {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 10px;
    position: relative;
    color: var(--text-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-speed);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
}


/* ==========================================================================
   5. Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-text-color);
    text-align: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 3;
}

.hero-section .container {
    position: relative;
    z-index: 4;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: #fff;
    margin-top: 1rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}


/* ==========================================================================
   6. Biomorphic Shapes & Parallax
   ========================================================================== */
.section-with-biomorphic-shape {
    position: relative;
}
.section-with-biomorphic-shape::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--background-light);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 50px));
}

.section-with-biomorphic-shape-reverse {
    position: relative;
}
.section-with-biomorphic-shape-reverse::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--background-light);
    clip-path: polygon(0 0, 100% 50px, 100% 100%, 0 100%);
}

.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}
.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6);
}

/* ==========================================================================
   7. Specific Sections
   ========================================================================== */

/* About / Research (Timeline) */
.timeline {
    list-style: none;
    padding: 20px 0;
    position: relative;
}
.timeline:before {
    top: 0;
    bottom: 0;
    position: absolute;
    content: " ";
    width: 3px;
    background-color: #eeeeee;
    left: 30px;
    margin-right: -1.5px;
}
.timeline > li {
    margin-bottom: 20px;
    position: relative;
}
.timeline > li:before, .timeline > li:after {
    content: " ";
    display: table;
}
.timeline > li:after {
    clear: both;
}
.timeline-badge {
    color: #fff;
    width: 60px;
    height: 60px;
    line-height: 60px;
    font-size: 1.4em;
    text-align: center;
    position: absolute;
    top: 16px;
    left: 0;
    margin-right: -25px;
    background-color: var(--secondary-color);
    z-index: 100;
    border-radius: 50%;
    border: 3px solid #fff;
}
.timeline-panel {
    width: calc(100% - 90px);
    float: right;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    position: relative;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
    background: #fff;
}
.timeline-title {
    color: var(--secondary-color);
}

/* Artists / Instructors (Cards) */
.artist-card {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed);
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.artist-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}
.artist-card .card-image {
    width: 100%;
    height: 250px; /* Fixed height for image container */
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}
.artist-card .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image covers the container */
    transition: transform var(--transition-speed);
}
.artist-card:hover .card-img-top {
    transform: scale(1.05);
}
.artist-card .card-content {
    padding: 1.5rem;
}

/* Statistics Section */
.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--light-text-color);
}
.stat-item p {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

/* Sustainability (Progress Bars) */
.progress-indicator {
    margin-bottom: 1rem;
}
.progress-indicator label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.progress {
    height: 1.5rem;
    border-radius: 50px;
}
.progress-bar {
    background-color: var(--secondary-color);
    font-weight: bold;
    font-size: 0.8rem;
    line-height: 1.5rem;
    border-radius: 50px;
}

/* Pricing / Tickets */
.pricing-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition-speed);
}
.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}
.pricing-card-featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    box-shadow: var(--box-shadow);
}
.pricing-card-featured .card-header {
    background-color: var(--primary-color);
    color: #fff;
    font-weight: bold;
}
.card-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-color);
}
.card-price .period {
    font-size: 1rem;
    color: #6c757d;
}

/* Resources */
.list-group-item {
    border-radius: 10px !important;
    margin-bottom: 1rem;
    border-width: 1px;
    transition: var(--transition-speed);
}
.list-group-item:hover {
    background-color: #f8f9fa;
    border-left: 5px solid var(--primary-color);
    transform: translateX(5px);
}

/* Contact */
.contact-form-wrapper {
    background: #fff;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* ==========================================================================
   8. Footer
   ========================================================================== */
.footer {
    background-color: var(--dark-color);
}
.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}
.footer a:hover {
    color: #fff;
    text-decoration: underline;
}
.footer .text-uppercase {
    color: #fff;
}
.footer hr {
    background-color: var(--primary-color);
}

/* ==========================================================================
   9. Standalone Pages (Success, Privacy, Terms)
   ========================================================================== */
.success-page-container,
.content-page-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 20px;
}

.success-page-container {
    min-height: 100vh;
}

.content-page {
    padding-top: 120px; /* Offset for fixed header */
    padding-bottom: 60px;
}

.content-page h1 {
    margin-bottom: 2rem;
}

.content-page p, .content-page li {
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   10. Media Queries
   ========================================================================== */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 3.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .timeline-panel {
        width: calc(100% - 80px);
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 15px;
    }
    section {
        padding: 60px 0;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .timeline:before {
        left: 20px;
    }
    .timeline-badge {
        width: 40px;
        height: 40px;
        line-height: 40px;
        left: 0;
    }
    .timeline-panel {
        width: calc(100% - 60px);
    }
    .pricing-card-featured {
        transform: scale(1);
    }
}