/* Base Variables - Always Dark Mode */
:root {
    /* Primary Colors - Cybersecurity Theme */
    --primary: #00ff41;
    --primary-dark: #00cc33;
    --primary-light: #33ff66;
    --accent: #ff6b35;
    --accent-dark: #e55a2b;
    
    /* Neutral Colors - Dark Theme */
    --background: #0a0a0a;
    --background-dark: #111111;
    --background-light: #1a1a1a;
    --text: #ffffff;
    --text-light: #b3b3b3;
    --text-muted: #666666;
    --border: #333333;
    --border-light: #444444;
    
    /* Status Colors */
    --success: #00ff41;
    --warning: #ffaa00;
    --error: #ff0040;
    --info: #0080ff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00ff41 0%, #00cc33 100%);
    --gradient-dark: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
    --gradient-hero: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    
    /* Spacing System */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Force dark mode for all theme attributes */
[data-theme="light"],
[data-theme="dark"] {
    /* Always use dark theme variables */
    --background: #0a0a0a;
    --background-dark: #111111;
    --background-light: #1a1a1a;
    --text: #ffffff;
    --text-light: #b3b3b3;
    --text-muted: #666666;
    --border: #333333;
    --border-light: #444444;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--background);
    margin: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--text);
    line-height: 1.3;
    margin-bottom: var(--space-md);
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 { 
    font-size: 3.5rem; 
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}
h2 { 
    font-size: 2.5rem; 
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
h3 { 
    font-size: 1.75rem; 
    font-weight: 600;
    line-height: 1.3;
}

p {
    margin-bottom: var(--space-md);
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

.lead {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-light);
    line-height: 1.6;
}

/* Navigation */
#navbar {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: all 0.3s ease;
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.logo:hover {
    color: var(--primary-light);
    text-shadow: 0 0 15px var(--primary);
    transform: translateY(-1px);
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: var(--space-xs) 0;
    font-size: 1rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-xs);
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    padding: 12rem 0 8rem;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 255, 65, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 107, 53, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: var(--space-lg);
    color: var(--text);
    text-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 30px rgba(0, 255, 65, 0.3);
    }
    to {
        text-shadow: 0 0 40px rgba(0, 255, 65, 0.5);
    }
}

.hero .lead {
    font-size: 1.6rem;
    margin-bottom: var(--space-xl);
    color: var(--text-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Sections */
section {
    padding: var(--space-2xl) 0;
    position: relative;
}

section:nth-child(even) {
    background: var(--background-dark);
}

section h2 {
    text-align: center;
    margin-bottom: var(--space-xl);
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* Cards */
.card {
    background: var(--background-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.card:hover::before {
    transform: scaleX(1);
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: var(--space-xl);
    margin: var(--space-lg) 0;
}

/* Tags */
.tag {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    background: var(--background-dark);
    color: var(--primary);
    margin-right: var(--space-sm);
    margin-bottom: var(--space-sm);
    border: 1px solid var(--primary);
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--primary);
    color: var(--background);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 65, 0.3);
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.button:hover::before {
    left: 100%;
}

.button-primary {
    background: var(--gradient-primary);
    color: var(--background);
    box-shadow: 0 6px 20px rgba(0, 255, 65, 0.3);
}

.button-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 255, 65, 0.4);
}

.button:not(.button-primary) {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.button:not(.button-primary):hover {
    background: var(--background-dark);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

/* Content Cards */
.content-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--background-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.content-card:hover::before {
    transform: scaleX(1);
}

.content-card-header {
    padding: var(--space-xl);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.content-card-body {
    padding: var(--space-xl);
    flex-grow: 1;
}

.content-card-body h3 {
    color: var(--text);
    margin-bottom: var(--space-md);
    font-size: 1.6rem;
    line-height: 1.3;
}

.content-card-body p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.05rem;
}

.content-card-footer {
    padding: var(--space-xl);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--background-dark);
}

.reading-time {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.date {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Content Filters */
.content-filters {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9rem;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: var(--background);
    box-shadow: 0 6px 20px rgba(0, 255, 65, 0.3);
}

/* Footer */
footer {
    background: var(--background-dark);
    padding: var(--space-xl) 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

footer p {
    color: var(--text-muted);
    margin: 0;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

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

    .hero .lead {
        font-size: 1.25rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        gap: var(--space-md);
        padding: var(--space-xl);
        border-top: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .content-filters {
        justify-content: center;
    }

    .card {
        padding: var(--space-md);
    }

    .content-card-header,
    .content-card-body,
    .content-card-footer {
        padding: var(--space-md);
    }
}

/* Utilities */
.text-center { text-align: center; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-4 { margin-top: var(--space-md); }
.mt-8 { margin-top: var(--space-lg); }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-4 { margin-bottom: var(--space-md); }
.mb-8 { margin-bottom: var(--space-lg); }

/* Lists */
ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul li {
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-light);
    transition: color 0.3s ease;
    line-height: 1.7;
}

ul li:last-child {
    border-bottom: none;
}

ul li:hover {
    color: var(--primary);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%, 50% {
        border-color: var(--primary);
    }
    51%, 100% {
        border-color: transparent;
    }
}

.animate {
    animation: fadeIn 0.8s ease forwards;
}

.animate-slide {
    animation: slideIn 0.8s ease forwards;
}

/* Loading state */
body:not(.loaded) {
    overflow: hidden;
}

body:not(.loaded) .hero {
    opacity: 0;
}

body.loaded .hero {
    opacity: 1;
    transition: opacity 1s ease;
}

/* Enhanced card hover effects */
.card:hover,
.content-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Typewriter cursor effect */
.hero h1 {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--primary);
    animation: blink 1s infinite;
}

/* Enhanced button hover effects */
.button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 255, 65, 0.4);
}

/* Enhanced tag hover effects */
.tag:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 255, 65, 0.3);
}

/* Parallax effect for hero */
.hero {
    transform: translateZ(0);
    will-change: transform;
}

/* Enhanced navigation hover effects */
.nav-links a:hover {
    color: var(--primary);
    transform: translateY(-1px);
}

/* Enhanced logo hover effect */
.logo:hover {
    color: var(--primary-light);
    text-shadow: 0 0 15px var(--primary);
    transform: translateY(-1px) scale(1.05);
}

/* Staggered animations for cards */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }

.content-card:nth-child(1) { animation-delay: 0.1s; }
.content-card:nth-child(2) { animation-delay: 0.2s; }
.content-card:nth-child(3) { animation-delay: 0.3s; }
.content-card:nth-child(4) { animation-delay: 0.4s; }

/* Enhanced focus states for accessibility */
.button:focus,
.nav-links a:focus,
.logo:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Enhanced selection styling */
::selection {
    background: var(--primary);
    color: var(--background);
}

::-moz-selection {
    background: var(--primary);
    color: var(--background);
}

/* Enhanced scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--background-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-light);
}

/* Service Cards */
.service-card {
    text-align: center;
    position: relative;
    padding: var(--space-xl);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: var(--space-lg);
    display: flex;
    justify-content: center;
}

.service-icon i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Certification Icons */
.cert-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: var(--space-md);
    display: flex;
    justify-content: center;
}

.cert-icon i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Contact Links */
.contact-links {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

.contact-links .button {
    min-width: 220px;
}

/* Enhanced Card Styling */
.service-card:hover .service-icon i,
.cert-icon:hover i {
    animation: pulse 1.2s ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* Enhanced Grid for Services */
.services .grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.certifications .grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Enhanced Typography for Services */
.service-card h3,
.cert-icon + h3 {
    color: var(--text);
    margin-bottom: var(--space-md);
    font-weight: 600;
    font-size: 1.5rem;
}

.service-card p,
.cert-icon + h3 + p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: var(--space-lg);
    font-size: 1.05rem;
}

/* Responsive adjustments for new elements */
@media (max-width: 768px) {
    .service-icon {
        font-size: 3rem;
    }
    
    .cert-icon {
        font-size: 2.5rem;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-links .button {
        min-width: 280px;
    }
    
    /* Disable parallax on mobile for performance */
    .hero {
        transform: none !important;
    }
}