* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    filter: blur(8px);
    z-index: -2;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-logo {
    max-width: 100px;
    height: auto;
    margin-bottom: 0.3rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.tagline {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* Navigation */
nav {
    background-color: #2c3e50;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 1rem 1.5rem;
    transition: background-color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    background-color: #34495e;
}

/* Main Content */
main {
    background-color: white;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    min-height: 60vh;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 2rem 0;
    border-bottom: 2px solid #f0f0f0;
    margin-bottom: 2rem;
}

.hero h2 {
    font-size: 2rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
}

/* Features Grid */
.features {
    margin: 3rem 0;
}

.features h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.feature-card h3 {
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

/* Quick Links */
.quick-links {
    margin: 3rem 0;
}

.quick-links h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.link-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.link-card h3 {
    margin-bottom: 0.5rem;
}

/* Announcements */
.announcement {
    background-color: #f8f9fa;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.announcement-header h3 {
    color: #2c3e50;
    font-size: 1.5rem;
}

.announcement-header .date {
    color: #777;
    font-size: 0.9rem;
}

.announcement-content p {
    margin-bottom: 0.5rem;
}

/* Documents */
.document-section {
    margin-bottom: 2rem;
}

.document-section h3 {
    color: #667eea;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.doc-list {
    list-style: none;
    padding-left: 0;
}

.doc-list li {
    margin-bottom: 0.5rem;
}

.doc-link {
    color: #2c3e50;
    text-decoration: none;
    padding: 0.5rem;
    display: block;
    transition: background-color 0.3s, padding-left 0.3s;
}

.doc-link:hover {
    background-color: #f0f0f0;
    padding-left: 1rem;
}

.doc-link::before {
    content: "📄 ";
    margin-right: 0.5rem;
}

/* About Page */
.about-content h3 {
    color: #667eea;
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.about-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.about-content ul li {
    margin-bottom: 0.5rem;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li a {
        padding: 0.8rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .feature-grid,
    .links-grid {
        grid-template-columns: 1fr;
    }

    .announcement-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Gallery Styles */
.gallery-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.gallery-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f0f0f0;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-image img {
    transform: scale(1.05);
}

.gallery-info {
    padding: 1.5rem;
}

.gallery-info h3 {
    color: #667eea;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.gallery-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.gallery-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #777;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.gallery-uploader,
.gallery-date {
    display: flex;
    align-items: center;
}

/* Portal Login Styles */
.portal-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.portal-login-container {
    max-width: 500px;
    width: 100%;
    background-color: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.portal-icon {
    text-align: center;
    font-size: 4rem;
    margin-bottom: 1rem;
}

.portal-login-container h2 {
    text-align: center;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.portal-description {
    text-align: center;
    color: #777;
    margin-bottom: 2rem;
}

.portal-login-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    background-color: white;
    cursor: pointer;
    transition: border-color 0.3s;
}

.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.portal-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.portal-help {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.portal-help p {
    color: #777;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.portal-help .info-text {
    color: #e67e22;
    font-weight: 500;
    margin-top: 1rem;
}

.portal-link {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
}

.portal-link:hover {
    text-decoration: underline;
}

.portal-info {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.portal-info h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.portal-info ul {
    list-style: none;
    padding-left: 0;
}

.portal-info ul li {
    padding: 0.5rem 0;
    color: #555;
}

.portal-info ul li::before {
    content: "✓ ";
    color: #667eea;
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Portal Dashboard Styles */
.portal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 1rem;
}

.portal-header h2 {
    color: #2c3e50;
    margin: 0;
}

.portal-user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.portal-user-info span {
    color: #667eea;
    font-weight: 600;
}

.btn-logout {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.btn-logout:hover {
    background-color: #c0392b;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.dashboard-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.dashboard-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
    text-align: center;
}

.portal-doc-list {
    list-style: none;
    padding-left: 0;
}

.portal-doc-list li {
    margin-bottom: 0.5rem;
}

.portal-doc-list .doc-link {
    color: #2c3e50;
    text-decoration: none;
    padding: 0.5rem;
    display: block;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 0.9rem;
}

.portal-doc-list .doc-link:hover {
    background-color: #f0f0f0;
}

.portal-doc-list .doc-link::before {
    content: "📎 ";
    margin-right: 0.5rem;
}

/* Form Styles */
.form-section {
    margin-top: 2rem;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
}

.form-description {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.tracking-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tracking-form .form-group {
    margin-bottom: 1.5rem;
}

.tracking-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 600;
}

.tracking-form input[type="text"],
.tracking-form input[type="number"],
.tracking-form select,
.tracking-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.tracking-form input:focus,
.tracking-form select:focus,
.tracking-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.tracking-form textarea {
    resize: vertical;
}

.tracking-form input[type="checkbox"] {
    margin-right: 0.5rem;
    width: auto;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .portal-login-container {
        padding: 2rem 1.5rem;
    }
    
    .portal-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .portal-user-info {
        width: 100%;
        justify-content: space-between;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }
}

/* Training Portal Styles */
.training-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.training-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.training-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.training-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.training-list {
    list-style: none;
    margin-top: 1rem;
}

.training-list li {
    margin: 0.75rem 0;
}

.doc-link {
    color: #2c3e50;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.doc-link:before {
    content: "📄";
    margin-right: 0.5rem;
}

.doc-link:hover {
    background-color: #f0f0f0;
    color: #667eea;
}

.training-resources {
    margin: 3rem 0;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.resource-item {
    text-align: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.resource-item h4 {
    color: #667eea;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Socials Page Styles */
.social-platforms {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.social-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.15);
}

.social-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.social-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin: 1rem 0;
}

.social-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.discord-btn {
    background-color: #5865F2;
}

.discord-btn:hover {
    background-color: #4752C4;
}

.roblox-btn {
    background-color: #e03131;
}

.roblox-btn:hover {
    background-color: #c92a2a;
}

.youtube-btn {
    background-color: #FF0000;
}

.youtube-btn:hover {
    background-color: #CC0000;
}

.social-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.social-features span {
    background: #f0f0f0;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #666;
}

.community-guidelines {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 3rem 0;
}

.community-guidelines h2 {
    color: #667eea;
    margin-bottom: 1rem;
}

.guidelines-list {
    list-style: none;
    margin-top: 1rem;
}

.guidelines-list li {
    padding: 0.75rem;
    margin: 0.5rem 0;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #667eea;
}
