/* ==========================================
   CSS VARIABLES & ROOT STYLES
   ========================================== */

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --accent-color: #3b82f6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --text-color: #1e293b;
    --light-text: #64748b;
    --background: #ffffff;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --hero-gradient: linear-gradient(180deg, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --header-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.3s ease;
    --header-height: 80px;
    --container-max: 1200px;
    --section-padding: 100px;
}

[data-theme="dark"] {
    --text-color: #f1f5f9;
    --light-text: #94a3b8;
    --background: #0f172a;
    --light-bg: #1e293b;
    --border-color: #334155;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
    --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --header-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --hero-gradient: linear-gradient(180deg, rgba(37, 99, 235, 0.1) 0%, transparent 50%);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-primary);
    background: var(--background);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: var(--section-padding) 0; position: relative; }
.section-alt { background: var(--light-bg); }

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

.hidden { display: none !important; }

/* PRELOADER */
.preloader {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader {
    position: relative;
    width: 100px; height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-ring {
    position: absolute;
    width: 100%; height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

@keyframes spin { to { transform: rotate(360deg); } }

/* PARTICLES */
.particles-container {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* HEADER */
.header {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

[data-theme="dark"] .header { background: rgba(15, 23, 42, 0.9); }
.header.scrolled { box-shadow: var(--header-shadow); }

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo { display: flex; align-items: center; gap: 0.5rem; }
.logo-img { width: 45px; height: 45px; border-radius: 10px; object-fit: cover; }
.logo-text { font-size: 1.5rem; font-weight: 800; color: var(--primary-color); }

.nav-menu { display: flex; gap: 2rem; }

.nav-link {
    font-weight: 500;
    color: var(--light-text);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active { color: var(--primary-color); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }

.theme-toggle {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--light-bg);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.theme-toggle:hover { background: var(--primary-color); color: white; }

.mobile-menu-toggle {
    display: none;
    width: 44px; height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.hamburger, .hamburger::before, .hamburger::after {
    width: 24px; height: 2px;
    background: var(--text-color);
    transition: var(--transition);
}

.hamburger { position: relative; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0; }
.hamburger::before { top: -8px; }
.hamburger::after { bottom: -8px; }

.mobile-menu-toggle.active .hamburger { background: transparent; }
.mobile-menu-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.mobile-menu-toggle.active .hamburger::after { bottom: 0; transform: rotate(-45deg); }

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-full { width: 100%; }

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background: var(--hero-gradient);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--light-text);
    margin-bottom: 2rem;
    max-width: 500px;
    line-height: 1.7;
}

.hero-cta { display: flex; gap: 1rem; margin-bottom: 3rem; }

.hero-stats { display: flex; gap: 2.5rem; }

.stat-item { text-align: center; }

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-plus {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--light-text);
    margin-top: 0.25rem;
}

.hero-image { display: flex; justify-content: center; }

.profile-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-glow {
    position: absolute;
    width: 280px; height: 280px;
    background: var(--primary-gradient);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
}

.profile-img {
    width: 280px; height: 280px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--background);
    box-shadow: var(--card-shadow-hover);
    position: relative;
    z-index: 1;
}

.profile-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--background);
    border-radius: 50px;
    box-shadow: var(--card-shadow);
    margin-top: -1.5rem;
    position: relative;
    z-index: 2;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-dot {
    width: 10px; height: 10px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--light-text);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* SECTION HEADER */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
}

/* ABOUT */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 12px;
}

.highlight-item i {
    width: 50px; height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: white;
    border-radius: 12px;
    font-size: 1.25rem;
}

.highlight-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.highlight-item p {
    font-size: 0.875rem;
    color: var(--light-text);
    margin: 0;
}

/* SKILLS */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skill-card {
    padding: 1.5rem;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: var(--transition);
}

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

.skill-icon {
    width: 50px; height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.skill-card h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.skill-bar {
    height: 8px;
    background: var(--light-bg);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 4px;
    width: 0;
    transition: width 1s ease;
}

/* CREDENTIALS */
.credentials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.credentials-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.credentials-title i {
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: white;
    border-radius: 12px;
}

/* TIMELINE */
.timeline {
    position: relative;
    padding-left: 2.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 6px; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-color) 50%, transparent 100%);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
    position: absolute;
    left: -2.5rem; top: 0.5rem;
    width: 14px; height: 14px;
    background: var(--primary-color);
    border-radius: 50%;
    border: 3px solid var(--background);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
    z-index: 1;
}

.timeline-content {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition);
}

.timeline-item:hover .timeline-content {
    border-color: var(--primary-color);
    transform: translateX(8px);
}

.timeline-date {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    background: var(--primary-gradient);
    padding: 0.375rem 0.875rem;
    border-radius: 50px;
    margin-bottom: 0.875rem;
}

.timeline-content h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.timeline-org {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.375rem;
}

.timeline-location {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.85rem;
    color: var(--light-text);
}

.timeline-location i { font-size: 0.75rem; color: var(--primary-color); }

/* CERTIFICATIONS */
.certs-grid {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.cert-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    transition: var(--transition);
}

.cert-badge:hover {
    border-color: var(--primary-color);
    transform: translateX(8px);
}

.cert-icon {
    width: 50px; height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.25rem;
}

.cert-icon.security-plus { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.cert-icon.pentest { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.cert-icon.ai { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }
.cert-icon.network { background: rgba(14, 165, 233, 0.15); color: #0ea5e9; }
.cert-icon.leadership { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.cert-icon.security { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }

.cert-info h4 { font-size: 0.95rem; margin-bottom: 0.25rem; }
.cert-info p { font-size: 0.8rem; color: var(--light-text); }

/* PROJECTS */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.75rem;
}

.project-card {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

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

.project-card.featured {
    border: 2px solid transparent;
    background: linear-gradient(var(--background), var(--background)) padding-box, var(--primary-gradient) border-box;
}

.project-image {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.08);
}

.project-image i {
    font-size: 3.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-content { padding: 1.5rem; }

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tags .tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    text-transform: uppercase;
}

.tag.ai { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }
.tag.security { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.tag.nlp { background: rgba(14, 165, 233, 0.1); color: #0ea5e9; }
.tag.gov { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.tag.research { background: rgba(236, 72, 153, 0.1); color: #ec4899; }

.project-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.project-content p {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 1.25rem;
    line-height: 1.65;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    font-size: 0.75rem;
    color: var(--light-text);
    background: var(--light-bg);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
}

/* SERVICES */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    position: relative;
    padding: 2rem;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: var(--transition);
}

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

.service-card.featured { border: 2px solid var(--primary-color); }

.featured-badge {
    position: absolute;
    top: -10px; right: 20px;
    padding: 0.4rem 1rem;
    background: var(--primary-gradient);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
}

.service-icon {
    width: 60px; height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 14px;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.service-card h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.service-card p { color: var(--light-text); margin-bottom: 1.5rem; font-size: 0.95rem; }

.service-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--light-text);
}

.service-features i { color: var(--success-color); font-size: 0.875rem; }

/* NEWS */
.news-section { background: var(--light-bg); }

.news-controls {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background: var(--background);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.search-container {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 600px;
}

.search-box i {
    position: absolute;
    left: 1rem; top: 50%;
    transform: translateY(-50%);
    color: var(--light-text);
}

.search-box input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-color);
    background: var(--background);
    transition: var(--transition);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-refresh {
    padding: 0.875rem 1.125rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-refresh:hover { background: var(--primary-dark); }
.btn-refresh.loading i { animation: spin 1s linear infinite; }

.category-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.filter-chip {
    padding: 0.625rem 1.25rem;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    border-radius: 24px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-chip:hover { border-color: var(--primary-color); color: var(--primary-color); }
.filter-chip.active { background: var(--primary-color); color: white; border-color: var(--primary-color); }

.last-update {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--light-text);
}

.last-update i { color: var(--primary-color); }

.news-loading {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.skeleton-card {
    height: 420px;
    background: linear-gradient(90deg, var(--light-bg) 25%, var(--border-color) 50%, var(--light-bg) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 12px;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.news-error {
    text-align: center;
    padding: 4rem 2rem;
}

.news-error i { font-size: 4rem; color: var(--error-color); margin-bottom: 1.5rem; }
.news-error h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.news-error p { color: var(--light-text); margin-bottom: 2rem; }

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.news-card {
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

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

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

.news-card-image {
    width: 100%; height: 200px;
    object-fit: cover;
    background: var(--light-bg);
}

.news-card-image.placeholder {
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.news-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.news-card-category {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--primary-color);
    color: white;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.news-card-category.ai { background: #8b5cf6; }
.news-card-category.cybersecurity { background: #ef4444; }
.news-card-category.cloud { background: #06b6d4; }
.news-card-category.programming { background: #10b981; }

.news-card-read-time {
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.news-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.news-card-excerpt {
    color: var(--light-text);
    margin-bottom: 1.25rem;
    line-height: 1.6;
    flex: 1;
    font-size: 0.95rem;
}

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

.news-card-source {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.news-card-source i { color: var(--primary-color); }

.load-more-container { text-align: center; margin-top: 3rem; }

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
}

.no-results i { font-size: 4rem; color: var(--light-text); margin-bottom: 1rem; }
.no-results h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.no-results p { color: var(--light-text); }

/* CONTACT */
.contact { background: var(--light-bg); }

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 1.25rem;
    background: var(--background);
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.contact-icon {
    width: 50px; height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 1.25rem;
}

.contact-details h4 { font-size: 0.875rem; color: var(--light-text); margin-bottom: 0.25rem; }
.contact-details a, .contact-details p { font-weight: 500; }
.contact-details a:hover { color: var(--primary-color); }

.social-links { margin-top: 1rem; }
.social-links h4 { font-size: 0.95rem; margin-bottom: 1rem; }

.social-icons { display: flex; gap: 1rem; }

.social-icons a {
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 1.125rem;
    color: var(--text-color);
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.contact-form {
    padding: 2.5rem;
    background: var(--background);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: 0.5rem; font-size: 0.95rem; }

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-color);
    background: var(--background);
    transition: var(--transition);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea { resize: vertical; min-height: 120px; }

/* FOOTER */
.footer {
    background: var(--background);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-logo { font-size: 1.75rem; font-weight: 800; color: var(--primary-color); }
.footer-brand p { color: var(--light-text); font-size: 0.9rem; margin-top: 0.5rem; }

.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: var(--light-text); font-weight: 500; }
.footer-links a:hover { color: var(--primary-color); }

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

.footer-social a {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-bg);
    border-radius: 10px;
    color: var(--text-color);
    transition: var(--transition);
}

.footer-social a:hover { background: var(--primary-color); color: white; }

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--light-text);
}

/* BACK TO TOP */
.back-to-top {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 50px; height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-size: 1.25rem;
    box-shadow: var(--card-shadow);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* TOAST */
#toast-container {
    position: fixed;
    top: 100px; right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 1rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.toast-success { background: var(--success-color); }
.toast-error { background: var(--error-color); }
.toast-warning { background: var(--warning-color); }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    :root { --section-padding: 80px; }
    .hero-title { font-size: 2.75rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .credentials-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
    :root { --section-padding: 60px; --header-height: 70px; }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height); left: 0;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--background);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transform: translateX(-100%);
        transition: var(--transition);
    }
    
    .nav-menu.active { transform: translateX(0); }
    .mobile-menu-toggle { display: flex; }
    
    .hero-content { grid-template-columns: 1fr; text-align: center; }
    .hero-title { font-size: 2.25rem; }
    .hero-description { margin: 0 auto 2rem; }
    .hero-cta { justify-content: center; flex-wrap: wrap; }
    .hero-stats { justify-content: center; }
    .hero-image { order: -1; }
    .profile-img { width: 200px; height: 200px; }
    
    .about-content, .contact-content { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .projects-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    
    .news-controls { padding: 1rem; }
    .search-container { flex-direction: column; }
    .search-box { max-width: 100%; }
    .btn-refresh { width: 100%; }
    .category-filters { overflow-x: auto; flex-wrap: nowrap; }
    .filter-chip { white-space: nowrap; flex-shrink: 0; }
    .news-grid { grid-template-columns: 1fr; }
    
    .footer-content { flex-direction: column; gap: 2rem; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
    
    #toast-container { left: 1rem; right: 1rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.875rem; }
    .section-title { font-size: 1.875rem; }
    .hero-stats { flex-direction: column; gap: 1.5rem; }
    .contact-form { padding: 1.5rem; }
}