/* Modern Professional Network Infrastructure Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0066FF;
    --primary-dark: #0047AB;
    --primary-light: #4D94FF;
    --secondary: #6C757D;
    --success: #28A745;
    --warning: #FFC107;
    --danger: #DC3545;
    --info: #17A2B8;
    --light: #F8F9FA;
    --dark: #1A1D29;
    --border: #E1E4E8;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.2);
    --gradient-primary: linear-gradient(135deg, #0066FF 0%, #0047AB 100%);
    --gradient-mesh: radial-gradient(at 20% 20%, rgba(0, 102, 255, 0.1) 0%, transparent 50%),
                     radial-gradient(at 80% 80%, rgba(0, 71, 171, 0.1) 0%, transparent 50%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: #FAFBFC;
    background-image: var(--gradient-mesh);
    min-height: 100vh;
}

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

/* Header - Modern Glassmorphism */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(225, 228, 232, 0.8);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    transition: transform 0.2s;
}

.logo:hover {
    transform: translateY(-1px);
}

.logo svg {
    filter: drop-shadow(0 2px 4px rgba(0, 102, 255, 0.3));
}

.logo h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(0, 102, 255, 0.05);
}

/* Hero Section - Enhanced */
.hero {
    background: linear-gradient(135deg, #0047AB 0%, #0066FF 50%, #0080FF 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    font-weight: 400;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 80px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.stat {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s, background 0.3s;
}

.stat:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-value {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.stat-label {
    font-size: 13px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Topologies Section */
.topologies {
    padding: 60px 0;
}

.section-title {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 50px;
    text-align: center;
    letter-spacing: -0.5px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.topology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.topology-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
    position: relative;
}

.topology-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.topology-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.topology-card:hover::before {
    opacity: 1;
}

.topology-thumbnail {
    position: relative;
    background: var(--light);
    padding: 30px;
    border-bottom: 1px solid var(--border);
}

.topology-preview {
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-svg {
    width: 100%;
    height: 100%;
}

.topology-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
}

.badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-primary {
    background: var(--primary);
    color: white;
}

.badge-warning {
    background: var(--warning);
    color: var(--dark);
}

.badge-info {
    background: var(--info);
    color: white;
}

.badge-danger {
    background: var(--danger);
    color: white;
}

.badge-success {
    background: var(--success);
    color: white;
}

.topology-info {
    padding: 24px;
}

.topology-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.topology-description {
    font-size: 14px;
    color: var(--secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.topology-specs {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 16px;
    background: var(--light);
    border-radius: 8px;
}

.spec {
    flex: 1;
    text-align: center;
}

.spec-label {
    display: block;
    font-size: 11px;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.spec-value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
}

.topology-actions {
    display: flex;
    gap: 12px;
}

.btn {
    flex: 1;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    letter-spacing: 0.3px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.4);
}

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

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
}

/* Network Diagram Container */
.diagram-container {
    margin: 40px auto;
    max-width: 1000px;
}

.diagram-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.btn-diagram {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: var(--shadow);
}

.btn-diagram.btn-primary {
    background: linear-gradient(135deg, #0066FF 0%, #0047AB 100%);
    color: white;
}

.btn-diagram.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 102, 255, 0.4);
}

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

.btn-diagram.btn-secondary:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 102, 255, 0.3);
}

.diagram-link {
    display: block;
    text-decoration: none;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    margin: 0 auto;
    max-width: 900px;
}

.diagram-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.diagram-placeholder {
    position: relative;
    padding: 40px;
    background: linear-gradient(135deg, #F8F9FA 0%, #E9ECEF 100%);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.network-diagram-svg {
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 0 auto;
    display: block;
}

.diagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 102, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.diagram-link:hover .diagram-overlay {
    opacity: 1;
}

.diagram-overlay p {
    color: white;
    font-size: 18px;
    font-weight: 600;
    margin-top: 16px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.feature-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--secondary);
}

/* Documentation Links */
.doc-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.doc-link-card {
    background: white;
    border-radius: 12px;
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.doc-link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.doc-link-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.doc-link-card p {
    font-size: 14px;
    color: var(--secondary);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--dark);
    color: white;
    padding: 40px 0;
    margin-top: 60px;
    text-align: center;
}

.footer p {
    margin-bottom: 8px;
    opacity: 0.9;
}

.footer-disclaimer {
    font-size: 13px;
    opacity: 0.7;
    font-style: italic;
    max-width: 600px;
    margin: 12px auto 8px;
}

.footer a {
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        height: auto;
        padding: 16px 0;
        gap: 16px;
    }
    
    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .doc-links {
        grid-template-columns: 1fr;
    }
    
    .diagram-placeholder {
        padding: 20px;
    }
}
