/* Core Layout Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: #0d0e12;
    color: #eeeeee;
    overflow-x: hidden;
}

/* Hero Section Styling */
.hero-section {
    height: 85vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, rgba(13, 14, 18, 0.95) 30%, rgba(30, 15, 50, 0.8)), url('background.jpg') no-repeat center center/cover;
    border-bottom: 3px solid #6a0dad;
}

.hero-content {
    max-width: 800px;
    animation: fadeIn 1s ease-in-out;
}

/* Logo & Headers */
.server-logo {
    max-width: 160px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0px 0px 10px rgba(106, 13, 173, 0.5));
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0px 4px 12px rgba(0,0,0,0.6);
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 1.25rem;
    color: #b9bbbe;
    margin-bottom: 35px;
    font-weight: 400;
}

/* Enhanced Gaming Buttons */
.button-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    color: #ffffff;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.btn i {
    font-size: 1.1rem;
}

.play-btn {
    background: linear-gradient(135deg, #8a2be2, #4a0082);
    border: 1px solid #a040ff;
}
.play-btn:hover {
    background: linear-gradient(135deg, #a040ff, #5c00a3);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.5);
}

.discord-btn {
    background-color: #5865F2;
}
.discord-btn:hover {
    background-color: #4752C4;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
}

.store-btn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
}
.store-btn:hover {
    background: linear-gradient(135deg, #2ea35f, #219653);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

/* Features Section Styling */
.features {
    padding: 80px 20px;
    text-align: center;
    background-color: #090a0d;
}

.features h2 {
    font-size: 2.2rem;
    margin-bottom: 45px;
    position: relative;
    display: inline-block;
    letter-spacing: 1px;
}

.features h2::after {
    content: '';
    position: absolute;
    width: 60%;
    height: 4px;
    background-color: #8a2be2;
    bottom: -10px;
    left: 20%;
    border-radius: 2px;
}

.feature-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.feature-card {
    background-color: #14161d;
    border: 1px solid #232733;
    padding: 40px 30px;
    border-radius: 10px;
    width: 340px;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #8a2be2;
}

.feature-card i {
    font-size: 2.5rem;
    color: #8a2be2;
    margin-bottom: 20px;
    display: block;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.feature-card p {
    color: #a3a6ac;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Law Enforcement Section Styling */
.leo-section {
    padding: 80px 20px;
    background-color: #0b0c10;
    border-top: 2px solid #1f2330;
    text-align: center;
}

.leo-container {
    max-width: 1100px;
    margin: 0 auto;
}

.leo-section h2 {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.leo-subtitle {
    color: #a3a6ac;
    margin-bottom: 45px;
    font-size: 1.1rem;
}

.leo-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.leo-card {
    background: linear-gradient(145deg, #11141d, #090a0d);
    border: 1px solid #1a2436;
    border-left: 4px solid #1e56a0; /* Police Blue left accent bar */
    padding: 40px 30px;
    border-radius: 8px;
    width: 340px; /* Reduced to balance cleanly across 3 column panels */
    text-align: left;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.leo-card:hover {
    transform: translateY(-3px);
    border-color: #1e56a0;
}

/* Color tweak for the custom third recruitment card */
.app-card-trigger {
    border-left: 4px solid #8a2be2;
}
.app-card-trigger:hover {
    border-color: #8a2be2;
}
.app-card-trigger .card-icon {
    color: #8a2be2;
}

.card-icon {
    font-size: 2.5rem;
    color: #1e56a0;
    margin-bottom: 20px;
}

.leo-card h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 700;
}

.leo-card p {
    color: #a3a6ac;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 30px;
    height: 75px; /* Keeps cards perfectly even */
}

/* LEO Action Buttons */
.leo-btn {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 12px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    color: #ffffff;
    transition: background 0.2s ease;
    border: none;
}

.cad-btn {
    background-color: #1e56a0;
}
.cad-btn:hover {
    background-color: #163f75;
}

.roster-btn {
    background-color: #232733;
    border: 1px solid #383e52;
}
.roster-btn:hover {
    background-color: #1b1e28;
}

.app-trigger-btn {
    background-color: #8a2be2;
    cursor: pointer;
}
.app-trigger-btn:hover {
    background-color: #7020c4;
}

/* Dynamic Application Portal Panel Styling */
.app-section {
    padding: 80px 20px;
    background-color: #090a0d;
    border-top: 3px solid #8a2be2;
    text-align: center;
    animation: fadeIn 0.4s ease-in-out;
}

.app-container {
    max-width: 1100px;
    margin: 0 auto;
}

.app-section h2 {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.app-subtitle {
    color: #b9bbbe;
    margin-bottom: 45px;
    font-size: 1.1rem;
}

.app-grid {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.app-box {
    background-color: #14161d;
    border: 1px solid #232733;
    padding: 35px 25px;
    border-radius: 8px;
    width: 320px;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.app-box:hover {
    transform: translateY(-4px);
    border-color: #8a2be2;
}

.app-box i {
    font-size: 2.2rem;
    color: #8a2be2;
    margin-bottom: 15px;
}

.app-box h3 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 12px;
}

.app-box p {
    color: #a3a6ac;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 25px;
    height: 65px;
}

.portal-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background-color: #232733;
    border: 1px solid #383e52;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.portal-btn:hover {
    background-color: #8a2be2;
    border-color: #a040ff;
}

.close-portal-btn {
    background: none;
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 10px 25px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close-portal-btn:hover {
    background-color: #ef4444;
    color: #ffffff;
}

/* Smooth Entrance Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile View Optimization & Full Responsiveness */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .button-container { flex-direction: column; width: 100%; max-width: 300px; margin: 0 auto; }
    .feature-card, .leo-card, .app-box { width: 100%; }
    .leo-card p, .app-box p { height: auto; }
}
