:root {
    --aus-navy: #13294B;
    --aus-blue: #00698F;
    --aus-lightblue: #E6F0F5;
    --aus-grey-dark: #333333;
    --aus-grey-medium: #5A6A72;
    --aus-white: #FFFFFF;
    --aus-border: #C4C9D0;
    --aus-focus: #00698F;
    --aus-shadow: 0 2px 5px rgba(0,0,0,0.05);
    --aus-shadow-hover: 0 4px 15px rgba(0,0,0,0.1);
}

::selection { background-color: var(--aus-blue); color: white; }
::-moz-selection { background-color: var(--aus-blue); color: white; }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 !important;
}

body, button, input, select, textarea, a, p, h1, h2, h3, li, span, div {
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--aus-white);
    color: var(--aus-grey-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ----- full-screen rotating hero ----- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: var(--aus-navy);
}

.hero-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    pointer-events: none;
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0) 100%);
    z-index: 0;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

/* title at bottom-left */
.hero-title {
    position: absolute;
    bottom: 60px;
    left: 60px;
    z-index: 20;
    color: white;
    background-color: transparent;
    padding: 8px 0 8px 24px;
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    border-left: 8px solid var(--aus-blue);
    pointer-events: none;
    text-shadow: 0px 4px 15px rgba(0,0,0,0.7);
    max-width: 80%;
}

/* floating hamburger (top right) */
.hero-hamburger {
    position: absolute;
    top: 40px; 
    right: 40px;
    z-index: 200;
    background: none;
    border: 2px solid white;
    color: white;
    background-color: rgba(19,41,75,0.7);
    width: 70px;
    height: 70px;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.hero-hamburger:hover {
    background-color: var(--aus-blue);
    transform: translateY(-2px);
}

/* ----- header container (hidden initially, slides down on scroll) ----- */
.header-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 150;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: var(--aus-shadow);
}
.header-container.visible {
    transform: translateY(0);
}

.official-banner {
    background-color: var(--aus-navy);
    color: white;
    padding: 10px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid #2A4A6A;
}
.official-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.identity-flag {
    display: flex;
    align-items: center;
    gap: 10px;
}
.flag-img {
    width: 24px; height: 24px; object-fit: contain;
}

.main-header {
    background-color: var(--aus-white);
    border-bottom: 2px solid var(--aus-blue);
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}
.logo {
    display: flex; align-items: center; gap: 15px; text-decoration: none;
}
.logo-img {
    width: 50px; height: 50px; object-fit: contain;
}

/* ----- side menu (right overlay) ----- */
.side-menu-btn {
    background: none;
    border: 2px solid var(--aus-grey-dark);
    font-size: 2rem;
    color: var(--aus-navy);
    cursor: pointer;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255,255,255,0.9);
    transition: background 0.1s;
}
.side-menu-btn:hover {
    background-color: var(--aus-lightblue);
}

.side-panel {
    position: fixed;
    top: 0;
    right: -350px;
    width: 300px;
    height: 100vh;
    background-color: var(--aus-white);
    border-left: 4px solid var(--aus-blue);
    box-shadow: -5px 0 20px rgba(0,0,0,0.2);
    z-index: 500;
    transition: right 0.3s ease;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
}
.side-panel.open {
    right: 0;
}
.side-panel .close-btn {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 2.2rem;
    cursor: pointer;
    color: var(--aus-navy);
    margin-bottom: 40px;
}
.side-panel ul {
    list-style: none;
}
.side-panel li {
    margin-bottom: 30px;
}
.side-panel a {
    text-decoration: none;
    color: var(--aus-grey-dark);
    font-weight: 600;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 2px solid transparent;
    padding-bottom: 8px;
}
.side-panel a i {
    color: var(--aus-blue);
    width: 30px;
}
.side-panel a:hover {
    border-bottom-color: var(--aus-blue);
}
.overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    z-index: 450;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}
.overlay.show {
    opacity: 1;
    visibility: visible;
}

/* ----- rest of content ----- */
main.container {
    padding-top: 80px;
    padding-bottom: 100px;
}

.services-section, .about-section, .leadership-section, .discord-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
    margin-bottom: 80px;
}
.services-section { animation-delay: 0.2s; }
.about-section { animation-delay: 0.3s; }
.leadership-section { animation-delay: 0.4s; }
.discord-section { animation-delay: 0.5s; margin-bottom: 40px; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--aus-navy);
    font-weight: 700;
    border-bottom: 4px solid var(--aus-blue);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px,1fr));
    gap: 40px;
}
.service-card {
    background: white;
    border: 1px solid var(--aus-border);
    padding: 40px 30px;
    text-decoration: none;
    color: inherit;
    border-top: 6px solid var(--aus-navy);
    transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
}
.service-card:hover {
    border-color: var(--aus-blue);
    border-top-color: var(--aus-blue);
    box-shadow: var(--aus-shadow-hover);
    transform: translateY(-4px);
}
.service-icon {
    background-color: var(--aus-lightblue);
    color: var(--aus-blue);
    width: 80px; height: 80px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    border: 1px solid var(--aus-border);
    transition: background-color 0.3s, color 0.3s;
}
.service-card:hover .service-icon {
    background-color: var(--aus-blue); color: white;
}
.service-card h3 { font-size: 1.7rem; font-weight: 600; margin-bottom: 1rem; color: var(--aus-navy); }
.service-card p { color: var(--aus-grey-medium); font-size: 1.05rem; }

/* About section */
.about-content {
    background: white;
    border: 1px solid var(--aus-border);
    padding: 40px;
    border-top: 6px solid var(--aus-navy);
}
.about-content p {
    color: var(--aus-grey-medium);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.about-content p:last-child {
    margin-bottom: 0;
}

/* Leadership section */
.leadership-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
.leader-card {
    background: white;
    border: 1px solid var(--aus-border);
    border-top: 6px solid var(--aus-navy);
    padding: 30px;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.3s, border-color 0.3s, transform 0.3s;
    flex: 1 1 280px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
}
.leader-card.president-card {
    flex: 1 1 320px;
    max-width: 360px;
    transform: scale(1.05);
    border-top-color: var(--aus-blue);
}
.leader-card:hover {
    border-color: var(--aus-blue);
    box-shadow: var(--aus-shadow-hover);
    transform: translateY(-4px);
}
.leader-card.president-card:hover {
    transform: scale(1.05) translateY(-4px);
}
.leader-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 1px solid var(--aus-border);
    margin-bottom: 1.5rem;
}
.leader-card h3 {
    font-size: 1.7rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--aus-navy);
}
.leader-title {
    color: var(--aus-blue);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.leader-bio {
    color: var(--aus-grey-medium);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}
.read-more-btn {
    background: none;
    border: 2px solid var(--aus-blue);
    color: var(--aus-blue);
    padding: 12px 24px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    width: 100%;
    margin-top: auto;
}
.read-more-btn:hover {
    background: var(--aus-blue);
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal.show {
    display: flex;
}
.modal-content {
    background: white;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border-left: 8px solid var(--aus-blue);
    position: relative;
}
.modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid var(--aus-border);
}
.modal-header h2 {
    font-size: 2rem;
    color: var(--aus-navy);
    margin-bottom: 0.25rem;
}
.modal-header p {
    color: var(--aus-blue);
    font-weight: 600;
    font-size: 1.1rem;
}
.modal-body {
    padding: 30px;
}
.modal-body p {
    color: var(--aus-grey-medium);
    margin-bottom: 1rem;
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--aus-grey-dark);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover {
    color: var(--aus-blue);
}

/* Discord section */
.discord-section {
    background: #FAFAFA;
    padding: 80px 0;
    border-top: 1px solid var(--aus-border);
    border-bottom: 1px solid var(--aus-border);
}
.discord-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.discord-content h2 {
    margin-bottom: 1rem;
}
.discord-description {
    color: var(--aus-grey-medium);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
}
.discord-widget {
    width: 100%;
    max-width: 600px;
    height: 400px;
    border: 1px solid var(--aus-border);
    background: white;
}

.view-all {
    display: inline-block;
    background-color: var(--aus-blue);
    color: white;
    padding: 18px 48px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.15rem;
    border: 2px solid var(--aus-blue);
    transition: background 0.2s, box-shadow 0.2s;
}
.view-all:hover { 
    background-color: #00507a; 
    box-shadow: 0 4px 12px rgba(0, 105, 143, 0.3);
}

#footer-container {
    background-color: var(--aus-navy); color: white;
}
.footer-loading, .footer-error {
    padding: 60px 0; text-align: center;
    border-top: 4px solid var(--aus-blue);
    font-size: 1.1rem;
}

@media (max-width: 992px) {
    .services-grid { grid-template-columns: repeat(2,1fr); }
    .leadership-grid { gap: 20px; }
    .leader-card.president-card { transform: none; }
    .leader-card.president-card:hover { transform: translateY(-4px); }
}
@media (max-width: 768px) {
    .hero-hamburger { top: 20px; right: 20px; }
    .hero-title { bottom: 30px; left: 20px; font-size: 2.2rem; padding: 4px 0 4px 16px; }
    .services-grid { grid-template-columns: 1fr; }
    .leadership-grid { flex-direction: column; }
    .leader-card, .leader-card.president-card { max-width: 100%; width: 100%; }
    main.container { padding-top: 50px; padding-bottom: 50px; }
    .services-section, .about-section, .leadership-section, .discord-section { margin-bottom: 50px; }
}
@media (max-width: 576px) {
    .hero-hamburger { width: 55px; height: 55px; font-size: 1.8rem; }
    .hero-title { font-size: 1.8rem; }
    .section-title { font-size: 2rem; }
}
