@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #44daff;
    --primary-dark: #0088cc;
    --dark: #0a0a0a;
    --darker: #070707;
    --light: #ffffff;
    --gray: #888888;
    --gradient: linear-gradient(135deg, #44daff 0%, #0088cc 100%);
    --neon-glow: 0 0 10px rgba(68, 218, 255, 0.5),
                 0 0 20px rgba(68, 218, 255, 0.3),
                 0 0 30px rgba(68, 218, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

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

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 50% 50%, rgba(68, 218, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(68, 218, 255, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 20% 80%, rgba(0, 136, 204, 0.05) 0%, transparent 30%),
        url('../images/bgi.jpg') no-repeat center center fixed;
    background-size: cover;
    opacity: 0.15;
    z-index: -1;
    transition: transform 0.3s ease-out;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(7, 7, 7, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(68, 218, 255, 0.1);
    padding: 1rem 5%;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
}

.logo-image {
    height: 40px;
    width: auto;
}

.logo-image:first-child {
    height: 45px;  /* SAAA logo slightly bigger */
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--light);
    margin-left: 0.2rem;
}

.logo-text span {
    color: var(--primary);
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

nav a i {
    font-size: 1rem;
    color: var(--primary);
}

nav a:hover {
    background: rgba(68, 218, 255, 0.1);
    transform: translateY(-1px);
}

nav a.active {
    background: var(--gradient);
    color: var(--dark);
    font-weight: 600;
}

nav a.active i {
    color: var(--dark);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Main Content */
.main-section {
    min-height: 100vh;
    padding: 8rem 5% 4rem;
    display: flex;
    align-items: center;
}

.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

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

.title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.title span {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.description {
    color: var(--gray);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(68, 218, 255, 0.2);
}

.feature-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.feature-item p {
    color: var(--gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* CTA Buttons */
.cta-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.btn i {
    font-size: 1.2rem;
}

.btn-primary {
    background: var(--gradient);
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(68, 218, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(68, 218, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: rgba(68, 218, 255, 0.1);
    transform: translateY(-2px);
}
.image-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.image-wrapper {
    position: relative;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    overflow: hidden;
}

.image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(68, 218, 255, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 30px rgba(68, 218, 255, 0.2));
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(68, 218, 255, 0.2);
}

.stat-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-item h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.stat-item p {
    color: var(--gray);
    font-size: 0.9rem;
}

.contact-section {
    min-height: 100vh;
    padding: 6rem 5% 2rem;
    display: flex;
    align-items: center;
}

.contact-wrapper {
    width: 100%;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-description {
    color: var(--gray);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.contact-form {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    color: var(--light);
    margin-bottom: 0.3rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-help {
    display: block;
    color: var(--gray);
    font-size: 0.8rem;
    margin-top: 0.2rem;
}

.message-input {
    resize: none;
    min-height: 80px;
}

.submit-btn {
    width: 100%;
    padding: 0.8rem;
    margin-top: 0.8rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--primary);
    border: none;
    color: var(--dark);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-note {
    text-align: center;
    color: var(--gray);
    font-size: 0.8rem;
    margin-top: 0.8rem;
}

.contact-details {
    list-style: none;
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-details li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    color: var(--gray);
    font-size: 0.9rem;
}

.contact-details i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* SOP Page Styles */
.sop-section {
    padding: 8rem 5% 4rem;
    min-height: 100vh;
}

.sop-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem;
}

.sop-header {
    text-align: center;
    margin-bottom: 4rem;
}

.sop-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sop-header p {
    color: var(--gray);
    font-size: 1.2rem;
}

.sop-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
}

.sop-toc {
    position: sticky;
    top: 120px;
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: fit-content;
}

.sop-toc h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

.sop-toc ul {
    list-style: none;
}

.sop-toc li {
    margin-bottom: 1rem;
}

.sop-toc a {
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem;
    border-radius: 4px;
}

.sop-toc a:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(5px);
}

.sop-sections section {
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sop-sections h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.sop-sections h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.sop-sections p, .sop-sections li {
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.sop-sections ul {
    list-style: none;
    margin-bottom: 2rem;
}

.sop-sections li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.sop-sections li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: 0;
    top: 0;
}

.rule-list, .rank-grid, .safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.rule-item, .rank-item, .safety-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.rule-item:hover, .rank-item:hover, .safety-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(68, 218, 255, 0.2);
}

.rank-item i, .safety-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.operations-content, .communication-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Roster Styles */
.main-content {
    padding-top: 100px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.roster-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

.role-group {
    margin-bottom: 30px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.role-title {
    color: var(--primary);
    font-size: 1.5em;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    width: 100%;
    text-align: center;
}

.role-title i {
    color: var(--primary);
    font-size: 1.1em;
    text-shadow: 0 0 8px rgba(68, 218, 255, 0.4);
}

.roster-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 15px;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.roster-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    width: 200px;
    min-width: 200px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.roster-card .mugshot {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px rgba(68, 218, 255, 0.3);
    background: rgba(0, 0, 0, 0.2);
}

.roster-card .mugshot.loading {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

.roster-card .role-icon {
    font-size: 1.8em;
    color: var(--primary);
    text-shadow: 0 0 8px rgba(68, 218, 255, 0.4);
}

.roster-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(68, 218, 255, 0.3);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.roster-card i {
    font-size: 2.2em;
    margin-bottom: 12px;
    color: var(--primary);
    text-shadow: 0 0 8px rgba(68, 218, 255, 0.4);
    display: block;
}

.roster-card h3 {
    color: var(--light);
    margin: 8px 0;
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-align: center;
    width: 100%;
    padding: 0 10px;
    word-wrap: break-word;
}

#loading {
    text-align: center;
    color: var(--light);
    padding: 25px;
    font-size: 1.1em;
    letter-spacing: 1px;
    width: 100%;
}

.error-message {
    color: #ff6b6b;
    text-align: center;
    padding: 25px;
    font-size: 1em;
    background: rgba(255, 107, 107, 0.1);
    border-radius: 8px;
    margin: 15px auto;
    max-width: 500px;
    border: 1px solid rgba(255, 107, 107, 0.2);
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .roster-grid {
        gap: 15px;
    }
    
    .roster-card {
        width: 180px;
        min-width: 180px;
    }
}

@media (max-width: 480px) {
    .roster-grid {
        gap: 12px;
    }
    
    .roster-card {
        width: 150px;
        min-width: 150px;
    }
}

@media (max-width: 992px) {
    .title {
        font-size: 3.5rem;
    }
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .sop-content {
        grid-template-columns: 1fr;
    }

    .sop-toc {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 3rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        padding: 2rem;
    }

    .cta-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .sop-wrapper {
        padding: 2rem;
    }

    .sop-header h1 {
        font-size: 2.5rem;
    }

    .sop-sections h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-content {
        margin: 0 auto;
    }

    .features {
        max-width: 600px;
        margin: 3rem auto;
    }

    .cta-group {
        justify-content: center;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info {
        padding-right: 0;
        text-align: center;
    }

    nav {
        display: none;
    }
}

@media screen and (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .header-content {
        position: relative;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(7, 7, 7, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(68, 218, 255, 0.1);
    }

    nav.show {
        display: flex;
    }

    nav a {
        padding: 1rem 2rem;
        width: 100%;
        border-radius: 0;
    }

    .logo-image {
        height: 30px;
    }

    .logo-image:first-child {
        height: 35px;
    }

    .logo-text {
        font-size: 1.2rem;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--primary), var(--primary-dark));
}