/* ========================================
   DNS NameServer Exchange - Dark Theme with Red Glow
   ======================================== */

/* ========================================
   CSS Variables & Base Styles
   ======================================== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #131318;
    --bg-tertiary: #1a1a22;
    --text-primary: #e8e8f0;
    --text-secondary: #a8a8b8;
    --text-muted: #707080;
    
    --accent-red: #ff3344;
    --accent-red-dark: #cc1a2a;
    --accent-red-light: #ff5566;
    
    --glow-red: rgba(255, 51, 68, 0.4);
    --glow-red-strong: rgba(255, 51, 68, 0.6);
    
    --border-color: #2a2a35;
    --border-glow: rgba(255, 51, 68, 0.2);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px var(--glow-red), 0 0 40px var(--glow-red);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Header & Navigation
   ======================================== */
header {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, rgba(19, 19, 24, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 20px rgba(255, 51, 68, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-red-light) 0%, var(--accent-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px var(--glow-red);
    letter-spacing: -0.5px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-red) 0%, var(--accent-red-light) 100%);
    box-shadow: 0 0 10px var(--glow-red);
    transition: var(--transition);
}

nav a:hover {
    color: var(--accent-red-light);
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a.active {
    color: var(--accent-red-light);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow-red) 0%, transparent 70%);
    opacity: 0.15;
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.2); opacity: 0.25; }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, var(--text-primary) 40%, var(--accent-red-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    line-height: 1.8;
}

/* ========================================
   Sections
   ======================================== */
section {
    padding: 60px 0;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-red) 0%, transparent 100%);
    box-shadow: 0 0 10px var(--glow-red);
}

/* ========================================
   Glow Card
   ======================================== */
.glow-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.glow-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--accent-red) 0%, transparent 50%, var(--accent-red) 100%);
    border-radius: 12px;
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.glow-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-lg), 0 0 30px var(--glow-red);
}

.glow-card:hover::before {
    opacity: 0.3;
}

.glow-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.glow-card p:last-child {
    margin-bottom: 0;
}

/* ========================================
   News Section
   ======================================== */
.news {
    background: var(--bg-secondary);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--accent-red) 0%, var(--accent-red-dark) 100%);
    box-shadow: 0 0 15px var(--glow-red);
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-md), 0 0 25px rgba(255, 51, 68, 0.15);
}

.news-card:hover::before {
    height: 100%;
}

.news-card .date {
    color: var(--accent-red);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.news-card h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.news-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   Stats Section
   ======================================== */
.stats {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, var(--glow-red) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-red);
    box-shadow: 0 10px 40px rgba(255, 51, 68, 0.3), inset 0 0 30px rgba(255, 51, 68, 0.1);
}

.stat-card:hover::before {
    opacity: 0.6;
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-red-light) 0%, var(--accent-red) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 20px var(--glow-red));
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    margin-bottom: 15px;
}

.contact-list a {
    color: var(--accent-red-light);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
    display: inline-block;
}

.contact-list a:hover {
    color: var(--accent-red);
    text-shadow: 0 0 15px var(--glow-red);
    transform: translateX(5px);
}

.tech-specs h3 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.tech-specs ul {
    list-style: none;
}

.tech-specs li {
    color: var(--text-secondary);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 25px;
}

.tech-specs li:last-child {
    border-bottom: none;
}

.tech-specs li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-red);
    font-size: 1.2rem;
}

/* ========================================
   Footer
   ======================================== */
footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-red);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 20px;
    }
    
    nav ul {
        gap: 20px;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .news-grid,
    .stats-grid,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ========================================
   Scrollbar Styling
   ======================================== */
/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent-red) var(--bg-primary);
}

/* Webkit browsers (Chrome, Edge, Safari) */
::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
    border-left: 1px solid var(--border-color);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-red-dark) 0%, var(--accent-red) 50%, var(--accent-red-light) 100%);
    border-radius: 8px;
    border: 3px solid var(--bg-primary);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-red) 0%, var(--accent-red-light) 100%);
    box-shadow: 0 0 15px var(--glow-red-strong), inset 0 0 6px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:active {
    background: var(--accent-red-light);
    box-shadow: 0 0 20px var(--glow-red-strong), inset 0 0 10px rgba(255, 51, 68, 0.3);
}

/* ========================================
   Selection Styling
   ======================================== */
::selection {
    background: var(--accent-red);
    color: var(--text-primary);
}

::-moz-selection {
    background: var(--accent-red);
    color: var(--text-primary);
}
