/* ============================================================================
   JIOCP Panel Website - Responsive CSS
   ============================================================================ */

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

:root {
    --primary-color: #00f7ff;
    --primary-dark: #0099cc;
    --primary-light: #00e6ff;
    --secondary-color: #ff006e;
    --danger-color: #ff3366;
    --dark: #0f172a;
    --dark-secondary: #1e293b;
    --gray: #94a3b8;
    --light: #f9fafb;
    --border: #334155;
    --success: #10b981;
    --warning: #f59e0b;
    --bg-dark: #0f172a;
    --bg-darker: #0a0f1f;
    --text-light: #e2e8f0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--bg-dark);
}

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-light);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--gray);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* ============================================================================
   LAYOUT
   ============================================================================ */

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

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

.col {
    width: 100%;
}

.col-2 {
    grid-column: span 2;
}

/* ============================================================================
   HEADER & NAVIGATION
   ============================================================================ */

header {
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--dark-secondary) 100%);
    border-bottom: 2px solid var(--primary-color);
    color: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 247, 255, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

nav .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--text-light);
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--primary-color);
}

nav .btn-secondary {
    background: var(--primary-color);
    color: var(--bg-dark);
}

nav .btn-secondary:hover {
    background: var(--secondary-color);
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 0, 110, 0.3);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero {
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--dark-secondary) 100%);
    border-bottom: 2px solid var(--primary-color);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    color: var(--primary-color);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 247, 255, 0.3);
}

.hero p {
    color: var(--gray);
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero .row {
    gap: 1rem;
    justify-content: center;
}

.hero .btn {
    min-width: 200px;
}

/* ============================================================================
   SECTIONS
   ============================================================================ */

section {
    padding: 3rem 0;
}

section.alt {
    background-color: var(--dark-secondary);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.section-title p {
    font-size: 1.125rem;
    color: var(--gray);
}

/* ============================================================================
   CARDS
   ============================================================================ */

.card {
    background: var(--dark-secondary);
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 247, 255, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.card:hover {
    box-shadow: 0 10px 25px rgba(0, 247, 255, 0.2);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.card p {
    color: var(--gray);
}

/* ============================================================================
   FORMS
   ============================================================================ */

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-light);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="message"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    background-color: var(--dark-secondary);
    color: var(--text-light);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 247, 255, 0.1);
    background-color: var(--dark-secondary);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

/* ============================================================================
   FEATURES LIST
   ============================================================================ */

.features-list {
    list-style: none;
}

.features-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-light);
}

.features-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
}

/* ============================================================================
   FOOTER
   ============================================================================ */

footer {
    background-color: var(--bg-darker);
    border-top: 2px solid var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

footer .row {
    margin-bottom: 2rem;
}

footer h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

footer a {
    color: var(--gray);
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    text-align: center;
    color: var(--gray);
}

/* ============================================================================
   ALERT MESSAGES
   ============================================================================ */

.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    color: #86efac;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.alert-error {
    background-color: rgba(255, 51, 102, 0.1);
    color: #ff6b7a;
    border: 1px solid rgba(255, 51, 102, 0.3);
}

.alert-info {
    background-color: rgba(0, 247, 255, 0.1);
    color: #00f7ff;
    border: 1px solid rgba(0, 247, 255, 0.3);
}

.alert-icon {
    font-size: 1.5rem;
    font-weight: 700;
}

/* ============================================================================
   BREADCRUMB
   ============================================================================ */

.breadcrumb {
    padding: 1rem 0;
    list-style: none;
    display: flex;
    gap: 0.5rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--secondary-color);
}
/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    nav ul {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: var(--dark-secondary);
        flex-direction: column;
        gap: 0;
        width: 100%;
        border-bottom: 2px solid var(--primary-color);
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        padding: 1rem;
        border-bottom: 1px solid var(--border);
    }

    .mobile-menu-btn {
        display: block;
    }

    .row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .col-2 {
        grid-column: span 1;
    }

    .hero .row {
        flex-direction: column;
    }

    .hero .btn {
        width: 100%;
    }

    section {
        padding: 2rem 0;
    }

    .btn {
        width: 100%;
        padding: 1rem;
    }

    footer .row {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 1.125rem;
    }

    .hero {
        padding: 2rem 0;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    nav ul {
        top: 50px;
    }

    .container {
        padding: 0 0.75rem;
    }
}

/* ============================================================================
   UTILITIES
   ============================================================================ */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pt-3 { padding-top: 1.5rem; }

.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }
.pb-3 { padding-bottom: 1.5rem; }

.text-muted {
    color: var(--gray);
}

.text-success {
    color: var(--success);
}

.text-danger {
    color: var(--danger-color);
}

/* ============================================================================
   CODE BLOCKS
   ============================================================================ */

code {
    background-color: var(--dark-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--primary-color);
}

pre {
    background-color: var(--bg-darker);
    color: var(--text-light);
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1.5rem;
    font-family: 'Courier New', monospace;
    border: 1px solid var(--border);
}

pre code {
    background: none;
    color: var(--primary-color);
    padding: 0;
}

/* ============================================================================
   INSTALLATION STEPS
   ============================================================================ */

.steps {
    list-style: none;
    counter-reset: step-counter;
}

.steps li {
    counter-increment: step-counter;
    margin-bottom: 2rem;
    padding-left: 4rem;
    position: relative;
}

.steps li:before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--bg-dark);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.3);
}

.steps li h3 {
    margin-bottom: 0.5rem;
    margin-top: 0;
    color: var(--text-light);
}

/* ============================================================================
   TABLE
   ============================================================================ */

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

th {
    background-color: var(--dark-secondary);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    color: var(--primary-color);
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-light);
}

tr:hover {
    background-color: var(--dark-secondary);
}
