@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* CSS Variables for CyberNX-Inspired Corporate White Theme */
:root {
    --bg-body: #f8fafc; /* Very light cool slate */
    --bg-surface: #ffffff; /* Pure white for cards */
    --text-primary: #0f172a; /* Deep charcoal/slate */
    --text-secondary: #475569; /* Slate grey */
    --accent-red: #dc2626; /* Security Red */
    --accent-red-hover: #b91c1c; /* Darker red */
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-body);
    padding: 20px;
    -webkit-font-smoothing: antialiased;
}

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

a:hover {
    color: var(--accent-red-hover);
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

/* Layout Container */
.container {
    width: 100%;
    max-width: 1280px;
    padding: 0 20px;
    margin: 0 auto;
}

/* Header / Hero Section */
.site-header {
    background: #ffffff;
    color: var(--text-primary);
    padding: 70px 40px;
    border-radius: 16px;
    margin-bottom: 50px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    border-bottom: 4px solid var(--accent-red);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.site-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

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

.site-title a:hover {
    color: var(--accent-red);
    text-decoration: none;
}

.site-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Navbar */
.main-nav {
    margin-top: 30px;
    width: auto;
    border-top: none;
    padding: 15px 30px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    display: inline-block;
}

.main-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.main-nav ul li a {
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.main-nav ul li a:hover {
    color: var(--accent-red);
    text-decoration: none;
}

/* Featured Image */
.featured-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-sm);
    display: block;
}

/* Content Images (Infographics) */
.content-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
    box-shadow: var(--shadow-sm);
    display: block;
    border: 1px solid var(--border-color);
}

/* Content Area */
.content-area {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.main-content {
    flex: 3;
}

/* Blog Grid Layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: start;
}

.blog-grid .post {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-grid .post-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-grid .read-more {
    margin-top: auto;
    align-self: flex-start;
}

.sidebar {
    flex: 1;
    position: sticky;
    top: 20px;
}

/* Cards (Posts & Widgets) */
.post, .widget, .comments-section {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.post:not(.single-post):hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.post-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.post-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.post-title a:hover {
    color: var(--accent-red);
}

.post-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-weight: 500;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.post-content p, .post-content ul {
    margin-bottom: 18px;
    font-size: 1.05rem;
    color: #334155;
}

.post-content ul {
    padding-left: 20px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content h3 {
    margin-top: 35px;
    font-size: 1.4rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 8px;
}

.post-content h4 {
    margin-top: 25px;
    font-size: 1.1rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    margin-top: 25px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #ffffff;
    background-color: var(--accent-red);
    padding: 12px 28px;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
}

.read-more:hover {
    background-color: var(--accent-red-hover);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
    text-decoration: none;
}

.read-more::after {
    content: ' →';
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.read-more:hover::after {
    transform: translateX(4px);
}

/* Sidebar Widgets */
.widget {
    padding: 25px;
    border-top: 3px solid var(--accent-red);
}

.widget-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.widget ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.widget ul li a {
    color: var(--text-secondary);
    font-weight: 500;
}

.widget ul li a:hover {
    color: var(--accent-red);
    text-decoration: none;
}

/* Forms */
input[type="text"], input[type="email"], textarea {
    width: 100%;
    padding: 12px 15px;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    background: #ffffff;
}

button {
    background: var(--accent-red);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
}

button:hover {
    background: var(--accent-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}

/* Comments */
.comments-section h3 {
    margin-bottom: 25px;
}

.comment {
    background: #f8fafc;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 40px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
}

/* Social Icons */
.social-icons {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-red);
    transform: translateY(-3px);
}

/* Tables */
.comparison-table-wrapper {
    overflow-x: auto;
    margin: 30px 0;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    background-color: #ffffff;
}

.comparison-table th, .comparison-table td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background-color: #f8fafc;
    color: var(--text-primary);
    font-weight: 700;
}

.comparison-table tbody tr:hover {
    background-color: #f1f5f9;
}

/* Scroll Animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Contact Buttons */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.float-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: #ffffff;
    text-decoration: none;
}

.wa-btn {
    background-color: #25D366;
}

.phone-btn {
    background-color: var(--accent-red);
}

/* Responsive */
@media (max-width: 900px) {
    .content-area {
        flex-direction: column;
    }
    .sidebar {
        position: static;
        width: 100%;
    }
    .main-nav ul {
        flex-wrap: wrap;
        gap: 15px;
    }
    .site-header {
        padding: 20px;
    }
    .site-title {
        font-size: 2rem;
    }
    .post, .widget, .comments-section {
        padding: 20px;
    }
    .post-title {
        font-size: 1.5rem;
    }
}
