/* =============================================
   DNS Explorer - Custom Theme
   Dark Navy + Neon Accent Palette
   ============================================= */

:root {
    --bg-primary: #0a0e1a;
    --bg-secondary: #111827;
    --bg-card: #1a2235;
    --bg-card-hover: #1f2a40;
    --accent-primary: #00d4ff;
    --accent-secondary: #7c3aed;
    --accent-gradient: linear-gradient(135deg, #00d4ff, #7c3aed);
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #1e293b;
    --border-glow: rgba(0, 212, 255, 0.25);
    --shadow-glow: 0 0 20px rgba(0, 212, 255, 0.1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

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

a:hover {
    color: #33ddff;
}

code, .mono {
    font-family: 'JetBrains Mono', monospace;
}

/* ---------- Navbar ---------- */
.navbar {
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    transition: background 0.3s ease;
}

.navbar-brand {
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.navbar-brand i {
    color: var(--accent-primary);
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: var(--text-secondary) !important;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-primary) !important;
    background: rgba(0, 212, 255, 0.08);
}

/* ---------- Main Content ---------- */
.main-content {
    padding-top: 76px;
    min-height: 80vh;
}

/* ---------- Hero Section ---------- */
.hero-section {
    padding: 5rem 0 4rem;
    text-align: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

.hero-title .gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 2rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 50px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--accent-primary);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

/* ---------- Section ---------- */
.section {
    padding: 4rem 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* ---------- Cards ---------- */
.card-dns {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}

.card-dns:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.card-dns .card-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
}

.card-dns .card-icon.icon-blue {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.card-dns .card-icon.icon-purple {
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent-secondary);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.card-dns .card-icon.icon-green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.card-dns .card-icon.icon-amber {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.card-dns .card-icon.icon-pink {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.card-dns .card-icon.icon-red {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.card-dns h5 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.card-dns p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

.card-dns .record-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    background: rgba(0, 212, 255, 0.08);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 212, 255, 0.15);
    margin-bottom: 0.75rem;
}

/* ---------- Process / Steps ---------- */
.process-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem 0;
}

.process-step + .process-step {
    border-top: 1px solid var(--border-color);
}

.step-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-content h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ---------- Forms ---------- */
.form-dns .form-control,
.form-dns .form-select {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-dns .form-control:focus,
.form-dns .form-select:focus {
    background: var(--bg-card);
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
    color: var(--text-primary);
}

.form-dns .form-control::placeholder {
    color: var(--text-muted);
}

.form-dns label {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--text-secondary);
}

/* ---------- Buttons ---------- */
.btn-accent {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 0.7rem 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-accent:hover {
    color: #fff;
    box-shadow: 0 4px 24px rgba(0, 212, 255, 0.3);
    transform: translateY(-1px);
}

.btn-accent:active {
    transform: translateY(0);
}

.btn-outline-dns {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 12px;
    padding: 0.7rem 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-outline-dns:hover {
    background: rgba(0, 212, 255, 0.08);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

/* ---------- Alerts ---------- */
.alert-dns {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.9rem;
}

.alert-dns.alert-success {
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.08);
    color: #6ee7b7;
}

.alert-dns.alert-danger {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.08);
    color: #fca5a5;
}

/* ---------- About Page ---------- */
.timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-primary);
    box-shadow: 0 0 8px rgba(0, 212, 255, 0.4);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 24px;
    width: 2px;
    height: calc(100% - 16px);
    background: var(--border-color);
}

.timeline-item:last-child::after {
    display: none;
}

.timeline-item h5 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.timeline-item .timeline-year {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.timeline-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-brand {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.footer-brand i {
    color: var(--accent-primary);
}

.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-heading {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    color: var(--accent-primary);
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.08);
}

.footer-divider {
    border-color: var(--border-color);
    margin: 2rem 0 1rem;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 0;
}

/* ---------- Misc ---------- */
.highlight-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--accent-primary);
    border-radius: 0 12px 12px 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.highlight-box p {
    margin-bottom: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.tag {
    display: inline-block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    background: rgba(0, 212, 255, 0.08);
    color: var(--accent-primary);
    border: 1px solid rgba(0, 212, 255, 0.15);
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .section {
        padding: 2.5rem 0;
    }

    .card-dns {
        padding: 1.5rem;
    }
}
