* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --army-green: #4a5d23;
    --army-dark: #2d3a1a;
    --army-light: #6b7f3a;
    --camo-brown: #6b5d4f;
    --desert-sand: #c19a6b;
    --tactical-black: #1a1a1a;
    --olive-drab: #6b8e23;
    --khaki: #8b7355;
    --bg-primary: #0f1108;
    --bg-secondary: #1a1f12;
    --text-primary: #e8e6e3;
    --text-secondary: #b8b5b2;
    --accent-gold: #d4af37;
    --border-color: #3a4a1f;
    --success: #5a7d2b;
    --error: #8b3a3a;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body.light-theme {
    --bg-primary: #f5f5f0;
    --bg-secondary: #e8e8e0;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --border-color: #c4c4b8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, var(--army-dark) 0%, var(--army-green) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 3px solid var(--accent-gold);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Teko', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 2px;
}

.logo img {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 4px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(212, 175, 55, 0.2);
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.8rem;
    cursor: pointer;
}

.theme-btn {
    background: var(--army-light);
    color: var(--text-primary);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.theme-btn:hover {
    background: var(--accent-gold);
    color: var(--army-dark);
    transform: scale(1.05);
}

.btn-logout {
    background: var(--error);
    color: var(--text-primary);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: #a63f3f;
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--army-dark) 0%, var(--army-green) 50%, var(--olive-drab) 100%);
    background-image: 
        url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%234a5d23" fill-opacity="0.1"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Teko', sans-serif;
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 8px;
    margin-bottom: 1rem;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.7);
    color: var(--accent-gold);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    animation: fadeInUp 1.2s ease;
}

.hero-motto {
    font-size: 1.4rem;
    font-style: italic;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    animation: fadeInUp 1.4s ease;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: fadeInUp 1.6s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Buttons */
.btn {
    padding: 14px 32px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: 'Rajdhani', sans-serif;
}

.btn-primary {
    background: var(--accent-gold);
    color: var(--army-dark);
}

.btn-primary:hover {
    background: #e5c158;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-gold);
}

.btn-secondary:hover {
    background: var(--accent-gold);
    color: var(--army-dark);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.section-title {
    font-family: 'Teko', sans-serif;
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 4px;
    color: var(--accent-gold);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: 10px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    color: var(--accent-gold);
}

/* Stats Section */
.stats {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--army-green) 0%, var(--army-dark) 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-number {
    font-family: 'Teko', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.2rem;
    letter-spacing: 1px;
}

/* Auth Section */
.auth-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.auth-container {
    width: 100%;
    max-width: 500px;
    padding: 0 20px;
}

.auth-box {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-family: 'Teko', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 3px;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Rajdhani', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.error-message {
    background: rgba(139, 58, 58, 0.2);
    color: #ff6b6b;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 1px solid #8b3a3a;
    display: none;
}

.error-message.show {
    display: block;
}

.success-message {
    background: rgba(90, 125, 43, 0.2);
    color: #90ee90;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 1rem;
    border: 1px solid #5a7d2b;
    display: none;
}

.success-message.show {
    display: block;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.auth-footer a {
    color: var(--accent-gold);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Profile Section */
.profile-section {
    min-height: 85vh;
    padding: 3rem 0;
    background: var(--bg-primary);
}

.profile-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-top: 2rem;
}

.profile-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    overflow: hidden;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.profile-header {
    padding: 3rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--army-green) 0%, var(--army-dark) 100%);
    border-bottom: 3px solid var(--accent-gold);
}

.profile-header.theme-camo {
    background: linear-gradient(135deg, #6b5d4f 0%, #4a3f35 100%);
}

.profile-header.theme-tactical {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.profile-header.theme-desert {
    background: linear-gradient(135deg, #c19a6b 0%, #a67c52 100%);
}

.profile-image-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.profile-image-container img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--accent-gold);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.change-photo-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: var(--accent-gold);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.change-photo-btn:hover {
    transform: scale(1.1);
}

.profile-header h2 {
    font-family: 'Teko', sans-serif;
    font-size: 2rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.profile-role {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.profile-bio {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

.profile-social {
    padding: 2rem;
}

.profile-social h3 {
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-primary);
    border-radius: 6px;
    color: var(--text-primary);
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: var(--accent-gold);
    transform: translateX(5px);
}

.social-icon {
    font-size: 1.5rem;
}

.profile-customization {
    background: var(--bg-secondary);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    padding: 2.5rem;
}

.profile-customization h2 {
    font-family: 'Teko', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 3px;
    color: var(--accent-gold);
    margin-bottom: 2rem;
}

.custom-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.custom-section:last-child {
    border-bottom: none;
}

.custom-section h3 {
    font-size: 1.3rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

#bioCount {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.theme-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.theme-option {
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.theme-option:hover {
    transform: scale(1.05);
}

.theme-preview {
    width: 100%;
    height: 80px;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.theme-option.active .theme-preview {
    border-color: var(--accent-gold);
}

.theme-default {
    background: linear-gradient(135deg, var(--army-green) 0%, var(--army-dark) 100%);
}

.theme-camo {
    background: linear-gradient(135deg, #6b5d4f 0%, #4a3f35 100%);
}

.theme-tactical {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.theme-desert {
    background: linear-gradient(135deg, #c19a6b 0%, #a67c52 100%);
}

.theme-option p {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Page Header */
.page-header {
    padding: 4rem 0 2rem;
    text-align: center;
    background: linear-gradient(135deg, var(--army-dark) 0%, var(--army-green) 100%);
    border-bottom: 3px solid var(--accent-gold);
}

.page-header h1 {
    font-family: 'Teko', sans-serif;
    font-size: 3.5rem;
    letter-spacing: 4px;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

.page-header p {
    font-size: 1.3rem;
    letter-spacing: 2px;
    color: var(--text-secondary);
}

/* About Page */
.about-content {
    padding: 4rem 0;
}

.about-intro {
    max-width: 900px;
    margin: 0 auto 4rem;
    text-align: center;
}

.about-intro h2 {
    font-family: 'Teko', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 3px;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.about-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.about-mission {
    margin-bottom: 4rem;
}

.about-mission h2 {
    font-family: 'Teko', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 3px;
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 2rem;
}

.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.mission-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.mission-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.mission-card h3 {
    font-size: 1.3rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

.about-values {
    margin-bottom: 4rem;
}

.about-values h2 {
    font-family: 'Teko', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 3px;
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 2rem;
}

.values-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.value-item {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--accent-gold);
}

.value-item h3 {
    font-size: 1.3rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    color: var(--accent-gold);
}

.about-history h2 {
    font-family: 'Teko', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 3px;
    color: var(--accent-gold);
    text-align: center;
    margin-bottom: 3rem;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding-left: 50px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-gold);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-year {
    position: absolute;
    left: -50px;
    top: 0;
    width: 80px;
    height: 40px;
    background: var(--accent-gold);
    color: var(--army-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 6px;
}

.timeline-year::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    background: var(--accent-gold);
    border-radius: 50%;
}

.timeline-content {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    margin-left: 40px;
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
}

/* Contact Page */
.contact-section {
    padding: 4rem 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info h2 {
    font-family: 'Teko', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 3px;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

.contact-icon {
    font-size: 2rem;
    min-width: 40px;
}

.contact-item h3 {
    font-size: 1.2rem;
    color: var(--accent-gold);
    margin-bottom: 0.3rem;
}

.contact-form-container {
    background: var(--bg-secondary);
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
}

.contact-form-container h2 {
    font-family: 'Teko', sans-serif;
    font-size: 2.5rem;
    letter-spacing: 3px;
    color: var(--accent-gold);
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--army-dark) 0%, var(--tactical-black) 100%);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
    border-top: 3px solid var(--accent-gold);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-family: 'Teko', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 968px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }

    .profile-card {
        position: static;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .timeline {
        padding-left: 30px;
    }

    .timeline-year {
        left: -30px;
        width: 60px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--army-dark);
        width: 100%;
        padding: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .auth-box {
        padding: 2rem 1.5rem;
    }

    .values-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .logo span {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 4px;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .theme-selector {
        grid-template-columns: repeat(2, 1fr);
    }
}