/*
* File: style.css
* Project: Aussie Slang Guide
* Design System: Creative
* Trend: Skewed Grids
* Color Scheme: Gradient
* Animation Style: 3D Effects
*/

/* --- CSS Variables --- */
:root {
    /* Gradient Palette */
    --gradient-primary: linear-gradient(135deg, #FF8C42 0%, #FF6223 100%);
    --gradient-secondary: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%);
    --gradient-background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --gradient-dark-overlay: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));

    /* Core Colors */
    --color-primary: #FF7A33;
    --color-accent: #00A8FF;
    --color-dark: #222222;
    --color-dark-gray: #333333;
    --color-light: #FFFFFF;
    --color-body-text: #4a4a4a;
    --color-subtle-bg: #f8f9fa;
    --color-border: #e0e0e0;

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Merriweather', serif;

    /* Spacing */
    --spacing-unit: 1rem;
    --header-height: 80px;

    /* Effects */
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 8px 30px rgba(0, 0, 0, 0.15);
    --transition-smooth: all 0.3s ease-in-out;
}


/* --- Global Styles & Resets --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-body-text);
    background-color: var(--color-light);
    line-height: 1.7;
    overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-dark);
    font-weight: 800;
    line-height: 1.2;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: var(--spacing-unit);
}

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

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

/* --- Layout & Utility Classes --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 1.5);
}

.columns {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -1rem;
}

.column {
    padding: 0 1rem;
    width: 100%;
}

@media (min-width: 768px) {
    .column.is-two-thirds {
        width: 66.66%;
    }
     .column {
        width: 50%;
    }
}

.section-title {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 3);
    color: var(--color-dark);
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: -2rem auto 3rem;
    font-size: 1.1rem;
}


/* --- Header & Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-light);
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-dark);
    text-decoration: none;
}
.logo:hover {
    color: var(--color-primary);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-menu li {
    margin-left: 2rem;
}

.nav-menu a {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-dark-gray);
    text-decoration: none;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.burger-menu {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1100;
}

.burger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-dark);
    margin: 5px 0;
    transition: var(--transition-smooth);
}


/* --- Buttons (Global) --- */
.btn, button, input[type='submit'] {
    display: inline-block;
    padding: 0.8rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-light);
    background: var(--gradient-primary);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: var(--transition-smooth);
    transform-style: preserve-3d;
    box-shadow: 0 4px 15px rgba(255, 100, 50, 0.4);
}

.btn:hover, button:hover, input[type='submit']:hover {
    transform: translateY(-5px) perspective(1000px) rotateX(10deg);
    box-shadow: 0 8px 25px rgba(255, 100, 50, 0.6);
    color: var(--color-light);
    text-decoration: none;
}

.btn-secondary {
    background: var(--gradient-secondary);
    box-shadow: 0 4px 15px rgba(0, 168, 255, 0.4);
}

.btn-secondary:hover {
    box-shadow: 0 8px 25px rgba(0, 168, 255, 0.6);
}


/* --- Section Styles --- */
.content-section {
    padding: 5rem 0;
}

.page-header {
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 2rem;
    background: var(--gradient-background);
}

.skewed-bg {
    position: relative;
    background: var(--color-subtle-bg);
    overflow: hidden;
}

.skewed-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: -5%;
    width: 110%;
    height: 100%;
    background: var(--gradient-background);
    transform: skewY(-3deg);
    z-index: -1;
}

/* --- Hero Section --- */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
    perspective: 1000px;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    color: var(--color-light);
    font-size: 4.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    margin-bottom: 1rem;
}

.hero-content p {
    color: var(--color-light);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}


/* --- Cards (Global) --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.card {
    background: var(--color-light);
    border-radius: 15px;
    box-shadow: var(--shadow-strong);
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    transform-style: preserve-3d;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-10px) rotateY(5deg);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.card-image {
    width: 100%;
    margin-bottom: 1.5rem;
}

.testimonial-card .card-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem auto;
    border: 4px solid var(--color-light);
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.info-card .card-image {
    height: 200px; /* Fixed height for image container */
    border-radius: 10px;
    overflow: hidden;
    margin-top: -3.5rem; /* Pull image up */
}


.card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Testimonials Section */
.testimonial-card blockquote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    position: relative;
    padding: 0 1rem;
}
.testimonial-card blockquote::before {
    content: '“';
    font-size: 4rem;
    color: var(--color-primary);
    opacity: 0.3;
    position: absolute;
    top: -1.5rem;
    left: -0.5rem;
}
.testimonial-card cite {
    font-weight: 700;
    font-style: normal;
    color: var(--color-dark);
}
.progress-indicator {
    width: 100%;
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    margin-top: 1rem;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
}

/* Events Section */
.event-meta {
    font-size: 0.9rem;
    color: var(--color-dark-gray);
    margin-bottom: 1rem;
}

/* --- Media Section --- */
.media-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
}
.media-logo img {
    max-width: 180px;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: var(--transition-smooth);
}
.media-logo img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* --- External Resources Section --- */
.resource-list {
    list-style: none;
    text-align: center;
}
.resource-list li {
    margin-bottom: 1rem;
}
.resource-list a {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
}
.resource-list a::after {
    content: '→';
    position: absolute;
    right: -25px;
    opacity: 0;
    transition: var(--transition-smooth);
}
.resource-list a:hover::after {
    opacity: 1;
    right: -35px;
}


/* --- Contact Form --- */
.contact-form .form-group {
    position: relative;
    margin-bottom: 2.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    background-color: transparent;
    transition: var(--transition-smooth);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(255, 122, 51, 0.2);
}

.contact-form label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: #999;
    padding: 0 0.25rem;
    background-color: var(--color-light);
    transition: var(--transition-smooth);
    pointer-events: none;
}

.contact-form input:focus + label,
.contact-form textarea:focus + label,
.contact-form input:not(:placeholder-shown) + label,
.contact-form textarea:not(:placeholder-shown) + label {
    top: -0.8rem;
    left: 0.8rem;
    font-size: 0.9rem;
    color: var(--color-primary);
}


/* --- Footer --- */
.site-footer {
    background: var(--color-dark);
    color: #a0a0a0;
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-column h4 {
    color: var(--color-light);
    margin-bottom: 1.5rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column a {
    color: #a0a0a0;
    text-decoration: none;
}

.footer-column a:hover {
    color: var(--color-light);
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 2rem;
    font-size: 0.9rem;
}


/* --- Page Specific Styles --- */

/* Privacy & Terms pages */
.text-content {
    padding-top: calc(var(--header-height) + 2rem);
    max-width: 800px;
    margin: 0 auto;
}
.text-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Success page */
.success-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    background: var(--gradient-background);
}
.success-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}


/* --- Animations & Transitions --- */

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

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

/* Barba.js Page Transitions */
.fade-transition-leave-active,
.fade-transition-enter-active {
  transition: opacity 0.5s;
}
.fade-transition-leave-to,
.fade-transition-enter-from {
  opacity: 0;
}


/* --- Responsive Design --- */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    .hero-content h1 { font-size: 3.5rem; }
    h2 { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .columns {
        flex-direction: column;
    }
    .column,
    .column.is-two-thirds {
        width: 100%;
        margin-bottom: 2rem;
    }
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--color-light);
        flex-direction: column;
        padding-top: 6rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s ease-in-out;
    }
    .nav-menu.is-active {
        right: 0;
    }
    .nav-menu li {
        margin: 0;
    }
    .nav-menu a {
        display: block;
        padding: 1.5rem 2rem;
        font-size: 1.2rem;
    }
    .burger-menu {
        display: block;
    }
    .burger-menu.is-active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger-menu.is-active span:nth-child(2) {
        opacity: 0;
    }
    .burger-menu.is-active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    h1 { font-size: 2.5rem; }
    .hero-content h1 { font-size: 3rem; }
}