/* ====================
   Variables & Colors
   ==================== */
:root {
    /* Color Scheme - Updated to be more cyberpunk */
    --primary-dark: #000000; /* True black background */
    --secondary-dark: #0a0a0a; /* Very dark, almost black */
    --tertiary-dark: #101010; /* Slightly lighter dark */
    --accent-color: #00eeff; /* Bright cyan/blue */
    --accent-hover: #00aaff; /* Slightly darker cyan for hover */
    --accent-color-2: #00ff66; /* Bright green */
    --accent-color-3: #ff00aa; /* Bright pink/magenta */
    --text-primary: #ffffff; /* Pure white */
    --text-secondary: #e0e0e0; /* Very light gray */
    --text-muted: #8b949e; /* Unchanged */
    --border-color: #333333; /* Dark gray for borders */
    --success-color: #00ff66; /* Same as accent-color-2 */
    --warning-color: #f0e100; /* Bright yellow */
    --error-color: #ff0055; /* Bright red */

    /* Interactive Gradients for Team Cards */
    --behind-gradient: radial-gradient(farthest-side circle at var(--pointer-x) var(--pointer-y), rgba(6, 182, 212, var(--card-opacity)) 4%, rgba(59, 130, 246, 0.75) 10%, rgba(6, 182, 212, 0.5) 50%, rgba(15, 23, 42, 0) 100%), radial-gradient(35% 52% at 55% 20%, #06b6d4c4 0%, #3b82f600 100%), radial-gradient(100% 100% at 50% 50%, #3b82f6ff 1%, #06b6d400 76%), conic-gradient(from 124deg at 50% 50%, #06b6d4ff 0%, #3b82f6ff 40%, #3b82f6ff 60%, #06b6d4ff 100%);
    --inner-gradient: linear-gradient(145deg, #0f172a 0%, #06b6d444 100%);
    --pointer-x: 50%;
    --pointer-y: 50%;
    --background-x: 50%;
    --background-y: 50%;
    --pointer-from-center: 0;
    --pointer-from-top: 0.5;
    --pointer-from-left: 0.5;
    --rotate-x: 0deg;
    --rotate-y: 0deg;
    --card-opacity: 0.3;

    /* Typography */
    --font-family: 'Poppins', sans-serif;
    /* Use clamp to adapt heading/body sizes across screens without feeling zoomed */
    --fs-xl: clamp(2.2rem, 3.2vw + 1rem, 3.5rem);
    --fs-l: clamp(1.6rem, 2.2vw + 0.6rem, 2.5rem);
    --fs-m: clamp(1.05rem, 1.2vw + 0.6rem, 1.5rem);
    --fs-s: clamp(0.98rem, 0.6vw + 0.6rem, 1.125rem);
    --fs-xs: clamp(0.85rem, 0.4vw + 0.55rem, 0.95rem);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-s: 1rem;
    --spacing-m: 2rem;
    --spacing-l: 3rem;
    --spacing-xl: 5rem;

    /* Other */
    --border-radius: 0.5rem;
    --transition: all 0.3s ease;
    --box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.9);
    --container-max-width: 1200px;
    --glow-effect: 0 0 10px rgba(0, 238, 255, 0.7);
}

/* Normalize root sizing and prevent platform text zoom changing icon sizes */
html {
    font-size: 16px; /* stabilize rem baseline across hosts */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Slightly reduce base scale on common laptop widths to avoid oversized look */
@media (max-width: 1440px) {
  html { font-size: 15.5px; }
}
@media (max-width: 1280px) {
  html { font-size: 15px; }
}
@media (max-width: 1100px) {
  html { font-size: 14.5px; }
}

/* Normalize Font Awesome icon sizing */
.fa, .fas, .far, .fab,
i.fa, i.fas, i.far, i.fab {
    font-size: 1em; /* icons follow surrounding text size */
    line-height: 1;
}

/* Prevent buttons from inflating icon size */
button i, .btn i {
    font-size: 1em;
    line-height: 1;
}

/* ====================
   Light Theme Tokens
   ==================== */
:root[data-theme="light"] {
    /* Backgrounds */
    --primary-dark: #ffffff;
    --secondary-dark: #f7f7f8;
    --tertiary-dark: #f1f3f5;

    /* Text */
    --text-primary: #111111;
    --text-secondary: #333333;
    --text-muted: #6b7280;

    /* Accents keep brand identity but reduce glow on light */
    --accent-color: #06b6d4;
    --accent-hover: #0891b2;
    --accent-color-2: #16a34a;
    --accent-color-3: #db2777;

    /* Borders, shadow */
    --border-color: #e5e7eb;
    --box-shadow: 0 10px 30px -15px rgba(0, 0, 0, 0.12);
}

/* Smooth transition when switching themes */
html, body { transition: background-color 0.25s ease, color 0.25s ease; }

/* ====================
   Light Theme Component Overrides
   ==================== */
/* Layout & general */
[data-theme="light"] body { background-color: #f7f9fc; color: #111111; }
[data-theme="light"] .container { color: var(--text-primary); }

/* Header */
[data-theme="light"] header {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 6px 16px rgba(17,17,17,0.06);
}
[data-theme="light"] .nav-links li a { color: #374151; }
[data-theme="light"] .nav-links li a:hover,
[data-theme="light"] .nav-links li a.active {
  color: var(--accent-hover);
  background: #e6f7fb;
  box-shadow: none;
}
[data-theme="light"] .hamburger .line { background: linear-gradient(45deg, var(--accent-color), #111111); }

/* Logo subtle in light */
[data-theme="light"] .logo-bracket { text-shadow: none; color: var(--accent-color); }
[data-theme="light"] .logo-text { animation: none; text-shadow: none; }

/* Hero */
[data-theme="light"] .hero {
  background: radial-gradient(1200px 600px at 20% 0%, rgba(6,182,212,0.06) 0%, rgba(6,182,212,0.04) 20%, transparent 60%), #f7f9fc;
}
[data-theme="light"] .hero::before {
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.05) 1px, transparent 1px);
}
[data-theme="light"] .shield { color: var(--accent-color); text-shadow: none; animation: none; }
[data-theme="light"] .ripple { border-color: rgba(6,182,212,0.25); animation: none; opacity: .6; }

/* Buttons */
[data-theme="light"] .primary-btn {
  background: linear-gradient(135deg, var(--accent-color), #11a3c1);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(6,182,212,0.25);
}
[data-theme="light"] .primary-btn:hover {
  background: linear-gradient(135deg, var(--accent-hover), var(--accent-color));
  box-shadow: 0 10px 26px rgba(6,182,212,0.35);
}
[data-theme="light"] .secondary-btn {
  color: #0f172a;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
[data-theme="light"] .secondary-btn:hover { background: #f8fafc; }

/* Cards */
[data-theme="light"] .content-card,
[data-theme="light"] .team-card,
[data-theme="light"] .achievement-item,
[data-theme="light"] .training-item,
[data-theme="light"] .timeline-content,
[data-theme="light"] .certification-card {
  background: #ffffff;
  border: 1px solid #e6e9ef;
  box-shadow: 0 6px 16px rgba(17,24,39,0.07);
}
[data-theme="light"] .content-card:hover,
[data-theme="light"] .team-card:hover,
[data-theme="light"] .achievement-item:hover,
[data-theme="light"] .training-item:hover,
[data-theme="light"] .timeline-content:hover,
[data-theme="light"] .certification-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(17,24,39,0.10);
}
[data-theme="light"] .content-card-text { color: #374151; }

/* Sections backgrounds */
[data-theme="light"] .skills,
[data-theme="light"] .experience,
[data-theme="light"] .trainings,
[data-theme="light"] .certifications { background: #ffffff; }
[data-theme="light"] .achievements,
[data-theme="light"] .projects { background: #f0f3f8; }

/* Underline accent */
[data-theme="light"] .underline { box-shadow: none; }
[data-theme="light"] .section-header h2 { color: #0f172a; }

/* Testimonials */
[data-theme="light"] .testimonials { color: #111111; }
[data-theme="light"] .testimonials-title { color: #0f172a; }
[data-theme="light"] .testimonials-text { color: #4b5563; }

/* Inputs */
[data-theme="light"] input, [data-theme="light"] textarea, [data-theme="light"] select {
  background: #ffffff;
  border-color: #d1d5db;
  color: #111111;
}
[data-theme="light"] input:focus, [data-theme="light"] textarea:focus, [data-theme="light"] select:focus {
  border-color: var(--accent-color);
}

/* Footer / Links hover tune */
[data-theme="light"] a { color: var(--accent-hover); }
[data-theme="light"] a:hover { color: #0ea5b7; }

/* Team avatars on light */
[data-theme="light"] .testimonials-avatar-box img,
[data-theme="light"] .team-img { box-shadow: 0 6px 16px rgba(17,24,39,0.10); border-color: #06b6d4; }

/* Grid/particles subtle */
[data-theme="light"] .particles .particle { background: #0ea5b7; opacity: 0.2; }

/* Dividers */
[data-theme="light"] .section-divider, [data-theme="light"] hr {
  border: none;
  height: 1px;
  background: #e5e7eb;
}

/* ====================
   Footer Enhancements
   ==================== */
footer {
  background: var(--secondary-dark);
  border-top: 1px solid rgba(0, 238, 255, 0.15);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1rem;
  justify-content: center;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: .95rem;
  padding: .25rem .5rem;
  background: transparent;
  border-radius: 6px;
}

.footer-links a:hover {
  color: var(--accent-color);
  background: rgba(0, 238, 255, 0.08);
}

.footer-bottom {
  width: 100%;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: .75rem;
}

/* Footer and team social icon animations */
.footer-social,
.team-social { gap: .6rem; display: flex; align-items: center; justify-content: center; }
.footer-social a,
.team-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--tertiary-dark);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
}
.footer-social a:hover,
.team-social a:hover { 
  transform: translateY(-3px) scale(1.06);
  background: var(--accent-color);
  color: var(--primary-dark);
  box-shadow: 0 0 14px rgba(0,238,255,.45), 0 6px 18px rgba(0,0,0,.35);
}
.footer-social a:focus-visible,
.team-social a:focus-visible {
  outline: 3px solid var(--accent-color);
  outline-offset: 2px;
}
.footer-social a i,
.team-social a i { font-size: 1.05rem; }

/* Hide in-page policy blocks by default to keep layout clean */
.policy-section { display: none; }

/* Light theme tweaks for footer */
[data-theme="light"] footer { background: #f7f7f8; border-top-color: #e6e9ef; }
[data-theme="light"] .footer-links a { color: #6b7280; }
[data-theme="light"] .footer-links a:hover { color: #0891b2; background: #e6f7fb; }
[data-theme="light"] .footer-bottom { border-top-color: #e6e9ef; }

/* ====================
   Reset & Base Styles
   ==================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--primary-dark);
}

body {
    font-family: var(--font-family);
    background-color: var(--primary-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Accessibility improvements */
a:focus, button:focus, input:focus, select:focus, textarea:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Responsive images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Security related styles */
input, textarea, select {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    font-size: var(--fs-xs);
    transition: border-color 0.3s ease;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--accent-color);
    outline: none;
}

/* Prevent text selection on buttons for better UX */
button {
    user-select: none;
    cursor: pointer;
}

::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background-color: var(--accent-color);
    border-radius: 6px;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--spacing-s);
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: var(--fs-xl);
    background: linear-gradient(45deg, var(--text-primary), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    text-shadow: var(--glow-effect);
}

h2 {
    font-size: var(--fs-l);
}

h3 {
    font-size: var(--fs-m);
}

p {
    margin-bottom: var(--spacing-s);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: box-shadow 0.3s, transform 0.3s;
}

img:hover {
    box-shadow: 0 0 20px var(--accent-color-2);
    transform: scale(1.03);
}

ul, ol {
    list-style: none;
    padding-left: 0;
}

button, .btn {
    cursor: pointer;
    border: none;
    font-family: var(--font-family);
    font-size: var(--fs-xs);
    transition: var(--transition);
}

.container {
    width: 90%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--spacing-m) 0;
}

/* Responsive content grids (articles/testimonials) */
.article-container .article-grid,
#articles-list-public,
#testimonials-list-public {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* Ensure public article cards scale nicely */
.public-article .article-img img { width: 100%; height: auto; object-fit: cover; border-radius: 8px; }
.public-testimonial .testimonial-avatar { width: 64px; height: 64px; object-fit: cover; border-radius: 50%; }

/* Public article card layout to prevent overlap */
#articles-list-public > * { min-width: 0; }
.public-article {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  background: var(--tertiary-dark);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  overflow: hidden;
}
.public-article .article-img { width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: 8px; }
.public-article .article-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.public-article .article-content { display: flex; flex-direction: column; gap: .5rem; }
.public-article .article-content { overflow-wrap: anywhere; }
.public-article .article-content h3 { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.public-article .article-content p { display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.public-article .article-meta { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.public-article img:hover { transform: none; box-shadow: none; }

/* ====================
   Public testimonials (What The Client Say About Us)
   ==================== */
.public-testimonial {
  background: var(--tertiary-dark);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.public-testimonial .testimonial-header {
  display: flex; align-items: center; gap: .8rem;
}
.public-testimonial .testimonial-avatar {
  width: 50px; height: 50px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--accent-color);
}
.public-testimonial .testimonial-info h4 { margin: 0; font-size: 1rem; }
.public-testimonial .testimonial-rating { color: #ffc800; font-size: .95rem; }
.public-testimonial .testimonial-date { opacity: .8; font-size: .85rem; }
.public-testimonial .testimonial-text {
  color: var(--text-secondary);
  word-break: break-word;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ====================
   Public testimonial form (Share your feedback)
   ==================== */
.public-testimonial-form { max-width: 760px; margin: 2rem auto 0; }
.public-testimonial-form form {
  display: grid;
  gap: 0.9rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
}
.public-testimonial-form .form-group input,
.public-testimonial-form .form-group textarea,
.public-testimonial-form .form-group select {
  width: 100%;
  background: rgba(3,10,20,.6);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 10px;
  padding: .75rem .9rem;
}
.public-testimonial-form .form-group textarea { min-height: 120px; resize: vertical; }
.public-testimonial-form .primary-btn { justify-self: start; }
.public-testimonial-form #testimonial-public-note { opacity: .75; font-size: .9rem; margin: 0; }

/* ====================
   Success / feedback cards (shared)
   ==================== */
.success-card {
  text-align: center;
  padding: 1.25rem;
  border-radius: 12px;
  background: var(--tertiary-dark);
  border: 1px solid var(--border-color);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.success-card .success-icon { font-size: 44px; line-height: 1; margin-bottom: .4rem; }
.success-card h3 { margin: .25rem 0 .4rem; }
.success-card p { margin: 0; opacity: .9; }

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-l);
}

.underline {
    height: 4px;
    width: 80px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-color-2));
    margin: 0 auto;
    margin-top: -10px;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(0, 238, 255, 0.5);
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    margin-right: var(--spacing-s);
    font-size: var(--fs-xs);
    transition: box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1), transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.primary-btn {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    box-shadow: 0 0 10px rgba(0, 238, 255, 0.5);
}

.primary-btn:hover {
    background-color: var(--accent-hover);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 238, 255, 0.8), 0 0 40px rgba(0, 238, 255, 0.5);
    animation: glow 1s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 20px rgba(0, 238, 255, 0.8), 0 0 40px rgba(0, 238, 255, 0.5);
    }
    to {
        box-shadow: 0 0 30px rgba(0, 238, 255, 1), 0 0 60px rgba(0, 238, 255, 0.7);
    }
}

/* Modal Styles */
.modal-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-container.active {
    display: flex;
    opacity: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.article-modal {
    background-color: var(--bg-color);
    border-radius: 10px;
    padding: 2rem;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--accent-color);
}

.article-modal [data-modal-close-btn] {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.article-modal [data-modal-close-btn]:hover {
    color: var(--accent-color);
}

.article-modal-content h2 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.article-modal-content .article-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.article-modal-content .article-image {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.article-modal-content .article-text {
    line-height: 1.8;
    font-size: 1.1rem;
    color: var(--text-color);
    font-size: 1rem;
    letter-spacing: 0.2px;
}

/* Normalize team social icon sizes */
.team-social a i {
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
}

/* Make social icons (LinkedIn, Telegram, X, HackerOne, Google) consistent and visible */
.team-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(0, 238, 255, 0.25);
  color: #e8f7ff;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.team-social a:hover {
  transform: translateY(-2px);
  background: rgba(0, 238, 255, 0.12);
  box-shadow: 0 6px 18px rgba(0,238,255,0.25);
  color: #ffffff;
}
.team-social a i { font-size: 16px; }
.team-social a svg { width: 16px; height: 16px; display: block; }
/* Ensure strong contrast for HackerOne mark */
.team-social a[aria-label="Ahmed HackerOne"] { color: #ffffff; }

/* Light theme contrast */
[data-theme="light"] .team-social a {
  background: rgba(15,23,42,0.06);
  border-color: rgba(6,182,212,0.35);
  color: #0f172a;
}
[data-theme="light"] .team-social a:hover {
  background: rgba(6,182,212,0.15);
  color: #0b1220;
}

.secondary-btn {
    background-color: transparent;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    box-shadow: 0 0 10px rgba(0, 238, 255, 0.3);
}

.secondary-btn:hover {
    background-color: rgba(0, 238, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(0, 238, 255, 0.5);
}

/* ====================
   Header & Navigation
   ==================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(135deg, rgba(7, 20, 40, 0.95) 0%, rgba(0, 238, 255, 0.1) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 238, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 238, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.9rem 0; /* more breathing room */
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

header.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

#header-trigger {
  position: fixed;
  top: 0;
  height: 120px;
  width: 100%;
  z-index: 999;
}

/* Responsive spacing so header isn't cramped on mobile */
@media (max-width: 768px) {
  header { padding: 0.6rem 0; }
  nav { padding: 0 1rem; }
  .nav-links { gap: 1rem; }
  .hero { padding-top: 90px; }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    position: relative;
    padding: 0.5rem 1rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.logo a:hover::before {
    left: 100%;
}

.logo-bracket {
    color: var(--accent-color);
    font-weight: 900;
    font-size: 2rem;
    text-shadow: 0 0 20px rgba(0, 238, 255, 0.8), 0 0 40px rgba(0, 238, 255, 0.4);
    animation: bracket-pulse 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.logo-text {
    background: linear-gradient(135deg, #00eeff 0%, #00ff66 50%, #ff00aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: 1px;
    position: relative;
    text-shadow: none;
    animation: text-glow 4s ease-in-out infinite;
}

.logo a:hover .logo-bracket {
    transform: scale(1.2);
    color: #00ff66;
}

.logo a:hover .logo-text {
    letter-spacing: 2px;
    animation: text-shimmer 1s ease-in-out infinite;
}

@keyframes bracket-pulse {
    0%, 100% {
        text-shadow: 0 0 20px rgba(0, 238, 255, 0.8), 0 0 40px rgba(0, 238, 255, 0.4);
    }
    50% {
        text-shadow: 0 0 30px rgba(0, 238, 255, 1), 0 0 60px rgba(0, 238, 255, 0.6), 0 0 80px rgba(0, 238, 255, 0.3);
    }
}

@keyframes text-glow {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 10px rgba(0, 238, 255, 0.5));
    }
    50% {
        filter: brightness(1.2) drop-shadow(0 0 20px rgba(0, 238, 255, 0.8));
    }
}

@keyframes text-shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.site-title {
    color: var(--text-color);
    margin-left: 0.5rem;
    font-size: 1.4rem;
    background: linear-gradient(45deg, var(--text-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links li a {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    position: relative;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--accent-color);
    background: rgba(0, 238, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 238, 255, 0.2);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 80%;
}

.hamburger {
    display: none;
    cursor: pointer;
    gap: 5px;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: rgba(0, 238, 255, 0.1);
}

.hamburger .line {
    width: 28px;
    height: 3px;
    background: linear-gradient(45deg, var(--accent-color), var(--text-color));
    transition: all 0.3s ease;
    transform-origin: center;
    border-radius: 2px;
}

.hamburger.active .line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active .line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .line:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ====================
   Hero Section
   ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px; /* prevent header overlap */
    background: radial-gradient(circle at 10% 20%, rgba(0, 238, 255, 0.08) 0%, rgba(0, 0, 0, 1) 80%);
    position: relative;
    overflow: hidden;
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; width: 6px; height: 6px; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; width: 3px; height: 3px; }
.particle:nth-child(4) { left: 60%; animation-delay: 0.5s; width: 5px; height: 5px; }
.particle:nth-child(5) { left: 80%; animation-delay: 3s; }
.particle:nth-child(6) { left: 90%; animation-delay: 4s; width: 4px; height: 4px; }

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10%, 90% {
        opacity: 0.6;
    }
    50% {
        transform: translateY(50vh) rotate(180deg);
        opacity: 0.8;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 238, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 238, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-l);
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    margin-bottom: var(--spacing-xs);
}

.hero-text h2 {
    font-size: var(--fs-m);
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: var(--spacing-s);
}

.hero-text p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-m);
    max-width: 600px;
}

.cta-buttons {
    margin-bottom: var(--spacing-m);
}

.social-icons {
    display: flex;
    gap: var(--spacing-s);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--tertiary-dark);
    border-radius: 50%;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 0 15px var(--accent-color);
}

.social-icons i {
    color: var(--text-primary);
    font-size: 1.2rem;
}

.social-icons a:hover i {
    color: var(--primary-dark);
}

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

.security-graphic {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

@media (max-width: 1440px) {
  .security-graphic { width: 260px; height: 260px; }
}

.shield {
    position: relative;
    font-size: 8rem;
    color: var(--accent-color);
    animation: pulse 2s infinite;
    text-shadow: 0 0 15px var(--accent-color), 0 0 30px var(--accent-color);
}

.ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    animation: ripple 2s linear infinite;
}

.binary {
    position: absolute;
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--accent-color);
    opacity: 0.8;
    transform: rotate(-30deg);
    bottom: 50px;
    right: 0;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(0, 238, 255, 0.5);
    }
    50% {
        transform: scale(1.05);
        text-shadow: 0 0 20px rgba(0, 238, 255, 0.8);
    }
    100% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(0, 238, 255, 0.5);
    }
}

@keyframes ripple {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

/* ==================== */
/* ===== Testimonials Section ===== */
.testimonials {
  margin: 40px auto;
  max-width: 1000px;
  text-align: center;
}

.testimonials-title {
  font-size: 1.8rem;
  margin-bottom: 25px;
  color: #efecec;
}

.testimonials-list {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Card Style ===== */
.content-card {
  background: #060505;
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 20px;
  width: 280px;
  text-align: center;
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.content-card:hover {
  transform: translateY(-8px);
}

.testimonials-avatar-box img {
  border-radius: 50%;
  border: 3px solid #00eeff;
  margin-bottom: 15px;
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.testimonials-item-title {
  font-size: 1.2rem;
  color: #f5f5f5;
  margin-bottom: 8px;
}

.testimonials-text {
  font-size: 0.95rem;
  color: #bbb;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===== Modal ===== */
.modal-container {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-container.active {
  display: flex;
}

.overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
}

.testimonials-modal {
  position: relative;
  background: #262626;
  padding: 25px;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  text-align: center;
  z-index: 1001;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  overflow-y: auto;
  max-height: 80vh;
}

.testimonials-modal img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

[data-modal-close-btn] {
  position: absolute;
  top: 10px; right: 10px;
  font-size: 1.5rem;
  border: none;
  background: none;
  cursor: pointer;
}

/* ====================
   Skills Section
   ==================== */
.skills {
    padding: var(--spacing-xl) 0;
    background-color: var(--primary-dark);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-l);
}

.skill-category h3 {
    position: relative;
    display: inline-block;
    margin-bottom: var(--spacing-m);
    padding-bottom: var(--spacing-xs);
}

.skill-category h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-color-3));
    border-radius: 2px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: var(--spacing-s);
}

.skill-item {
    background-color: var(--tertiary-dark);
    border-radius: var(--border-radius);
    padding: var(--spacing-s);
    text-align: center;
    transition: var(--transition);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-color), var(--accent-color-2));
    transition: var(--transition);
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow), 0 0 15px rgba(0, 238, 255, 0.5);
}

.skill-item span {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: var(--fs-xs);
}

/* ====================
   Projects Section
   ==================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-l);
}

.project-card {
    background-color: var(--tertiary-dark);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px -15px rgba(0, 0, 0, 0.7), 0 0 15px rgba(0, 238, 255, 0.5);
    border: 1px solid rgba(0, 238, 255, 0.3);
}

.project-header {
    padding: var(--spacing-s);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-header h3 {
    margin-bottom: 0;
    color: var(--accent-color);
}

.project-links {
    display: flex;
    gap: var(--spacing-xs);
}

.project-links a {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.project-links a:hover {
    color: var(--accent-color);
}

.project-body {
    padding: var(--spacing-s);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-s);
    flex-grow: 1;
}

/* ====================
   Mobile Performance & Responsive Tweaks
   ==================== */
@media (max-width: 768px) {
  html { font-size: 15px; }
  .container { width: 94%; padding: 1.25rem 0; }

  /* Header/nav */
  nav { padding: 0 .75rem; }
  .nav-links { display: none; }
  .hamburger { display: inline-flex; }

  /* Hero */
  .hero { min-height: auto; padding: 4.5rem 0 2rem; }
  .hero-content { flex-direction: column; gap: 1.25rem; }
  .hero-text p { max-width: 100%; }
  .hero-image { order: -1; }

  /* Disable heavy visual effects on mobile */
  .particles, .ripple, .binary { display: none !important; }
  header { backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
  img:hover { box-shadow: none; transform: none; }
  .content-card { width: 100%; box-shadow: none; }
  .project-card:hover, .content-card:hover { transform: none; box-shadow: none; }

  /* Reduce spacing */
  :root { --spacing-l: 2rem; --spacing-xl: 3rem; }
}

/* Prefer reduced motion: cut animations and transitions to improve UX & battery */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .particles, .ripple, .binary { display: none !important; }
}

/* Touch devices: avoid hover transforms and heavy shadows */
@media (pointer: coarse) {
  img:hover, .content-card:hover, .project-card:hover { transform: none; box-shadow: none; }
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
}

.project-tech span {
    background-color: rgba(0, 238, 255, 0.1);
    color: var(--accent-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* ====================
   Timeline Styles (for Experience and Education)
   ==================== */
.experience, .education {
    padding: var(--spacing-xl) 0;
}

.experience {
    background-color: var(--primary-dark);
}



.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 20px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    margin-bottom: var(--spacing-m);
}

.timeline-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    left: 0;
    background-color: var(--tertiary-dark);
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-icon i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

.timeline-content {
    padding: var(--spacing-m);
    background-color: var(--tertiary-dark);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.8);
}

.timeline-content h3 {
    color: var(--accent-color);
    margin-bottom: 5px;
}

.timeline-content h4 {
    color: var(--text-secondary);
    font-size: var(--fs-s);
    margin-bottom: 10px;
    font-weight: 500;
}

.timeline-date {
    display: inline-block;
    padding: 4px 10px;
    background-color: rgba(0, 238, 255, 0.1);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: var(--spacing-s);
}

.timeline-content ul {
    list-style-type: disc;
    padding-left: 20px;
    color: var(--text-secondary);
}

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

.timeline-content ul li::marker {
    color: var(--accent-color);
}

.timeline-content p {
    color: var(--text-secondary);
}

/* ====================
   Certifications Section
   ==================== */
.certifications {
    background-color: var(--primary-dark);
    padding: var(--spacing-xl) 0;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-m);
}

.certification-card {
    background-color: var(--tertiary-dark);
    border-radius: var(--border-radius);
    padding: var(--spacing-m);
    display: flex;
    align-items: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.8);
}

.certification-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--accent-color), var(--accent-color-3));
    margin-right: var(--spacing-s);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.certification-logo i {
    color: var(--primary-dark);
    font-size: 1.8rem;
}

.certification-content {
    flex-grow: 1;
}

.certification-content h3 {
    font-size: var(--fs-s);
    margin-bottom: 5px;
}

.certification-content p {
    color: var(--text-muted);
    font-size: var(--fs-xs);
    margin-bottom: 0;
}

/* ====================
   Achievements Section
   ==================== */
.achievements {
    background-color: var(--secondary-dark);
    padding: var(--spacing-xl) 0;
}

.achievements-list {
    max-width: 800px;
    margin: 0 auto;
}

.achievement-content ul li::marker {
    color: var(--accent-color);
}

.achievement-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-m);
    padding: var(--spacing-m);
    background-color: var(--tertiary-dark);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.achievement-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.8);
}

.achievement-icon {
    background: linear-gradient(145deg, var(--accent-color), var(--accent-color-3));
    color: var(--primary-dark);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-s);
    flex-shrink: 0;
}

.achievement-icon i {
    font-size: 1.5rem;
}

.achievement-content {
    flex-grow: 1;
}

.achievement-content h3 {
    margin-bottom: 5px;
    color: var(--text-primary);
}

.achievement-content p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* ====================
   Trainings & Courses Section
   ==================== */
   .trainings {
    background-color: var(--primary-dark);
    padding: var(--spacing-xl) 0;
}

.trainings-container {
    max-width: 800px;
    margin: 0 auto;
}

.training-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: var(--spacing-m);
    padding: var(--spacing-m);
    background-color: var(--tertiary-dark);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.training-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.8);
}

.training-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--accent-color-2), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-s);
    flex-shrink: 0;
}

.training-icon i {
    color: var(--primary-dark);
    font-size: 1.5rem;
}

.training-content {
    flex-grow: 1;
}

.training-content h3 {
    margin-bottom: 8px;
    color: var(--text-primary);
}

.training-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-top: 0.5rem;
    color: var(--text-secondary);
}

.training-content ul li {
    margin-bottom: 6px;
    line-height: 1.5;
}

.training-content ul li::marker {
    color: var(--accent-color);
}


/* ====================
   article Section
   ==================== */
.article {
    background-color: var(--secondary-dark);
    padding: var(--spacing-xl) 0;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-l);
    margin-bottom: var(--spacing-l);
}

.article-card {
    background: linear-gradient(135deg, var(--tertiary-dark) 0%, var(--primary-dark) 100%);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 238, 255, 0.1);
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px -15px rgba(0, 0, 0, 0.8);
}

.article-img {
    overflow: hidden;
    height: 200px;
}

.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-img img {
    transform: scale(1.05);
}

.article-content {
    padding: var(--spacing-m);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-content h3 {
    font-size: var(--fs-s);
    margin-bottom: var(--spacing-s);
    line-height: 1.4;
}

.article-content p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-s);
    flex-grow: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    margin-top: auto;
    color: var(--accent-color);
    font-weight: 500;
    font-size: var(--fs-xs);
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(3px);
}

.article-cta {
    text-align: center;
}

/* ====================
   Contact Section
   ==================== */
.contact {
    background-color: var(--primary-dark);
    padding: var(--spacing-xl) 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-l);
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-m);
}

.contact-info-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-m);
    background-color: var(--tertiary-dark);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.contact-info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.8);
}

.contact-info-item .icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--accent-color), var(--accent-color-3));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--spacing-m);
    flex-shrink: 0;
}

.contact-info-item .icon i {
    color: var(--primary-dark);
    font-size: 1.5rem;
}

.contact-info-item .text {
    flex-grow: 1;
}

.contact-info-item .text h3 {
    margin-bottom: 5px;
    font-size: var(--fs-s);
}

.contact-info-item .text p, .contact-info-item .text a {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.contact-form-container {
    background-color: var(--tertiary-dark);
    padding: var(--spacing-m);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: var(--spacing-s);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--secondary-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-family: var(--font-family);
    transition: var(--transition);
}

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

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 238, 255, 0.2);
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: var(--text-muted);
}

.contact-form-container .primary-btn {
    width: 100%;
    margin-top: var(--spacing-s);
}

/* ====================
   Footer Section
   ==================== */
footer {
    background-color: var(--secondary-dark);
    padding: var(--spacing-l) 0 var(--spacing-s);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    margin-bottom: var(--spacing-m);
}

.footer-logo a {
    font-size: var(--fs-m);
    font-weight: 700;
    color: var(--text-primary);
}

.footer-logo span {
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: var(--spacing-s);
    margin-bottom: var(--spacing-m);
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--tertiary-dark);
    border-radius: 50%;
    transition: var(--transition);
}

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

.footer-social i {
    color: var(--text-primary);
    font-size: 1.2rem;
}

.footer-social a:hover i {
    color: var(--primary-dark);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-m);
    margin-bottom: var(--spacing-m);
}

.footer-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    margin-top: var(--spacing-m);
    padding-top: var(--spacing-s);
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: var(--fs-xs);
    margin-bottom: 0;
}

/* Theme toggle button */
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--tertiary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.8);
}

.theme-toggle i {
    color: var(--accent-color);
    font-size: 1.5rem;
}

.theme-toggle .fa-sun {
    display: none;
}

/* Light theme styles can be added with a .light-theme class */
.light-theme {
    /* This will be implemented in JavaScript */
}

/* ====================
   Media Queries
   ==================== */

/* Large devices (laptops/desktops, up to 1200px) */
@media only screen and (max-width: 1200px) {
    :root {
        --fs-xl: 3rem;
        --fs-l: 2.2rem;
        --fs-m: 1.3rem;
    }

    .nav-links {
        gap: var(--spacing-xs);
    }

    .container {
        width: 95%;
    }
}

/* Medium devices (tablets, up to 992px) */
@media only screen and (max-width: 992px) {
    :root {
        --fs-xl: 2.8rem;
        --fs-l: 2rem;
        --fs-m: 1.2rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 250px;
        height: 100vh;
        background-color: var(--secondary-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s;
        z-index: 900;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    .nav-active {
        right: 0;
    }

    .hamburger {
        display: block;
        z-index: 1000;
    }

    .hamburger.active .line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto var(--spacing-m);
    }

    .social-icons {
        justify-content: center;
    }

    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
    }

    .projects-grid,
    .article-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

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

/* Small devices (mobile phones, up to 768px) */
@media only screen and (max-width: 768px) {
    :root {
        --fs-xl: 2.5rem;
        --fs-l: 1.8rem;
        --fs-m: 1.1rem;
        --fs-s: 1rem;
    }

    .section-header {
        margin-bottom: var(--spacing-m);
    }

    .skills-container {
        gap: var(--spacing-m);
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .projects-grid,
    .article-grid {
        grid-template-columns: 1fr;
    }

    .timeline::after {
        left: 15px;
    }

    .timeline-icon {
        width: 30px;
        height: 30px;
        left: 0;
    }

    .timeline-icon i {
        font-size: 0.9rem;
    }

    .timeline-item {
        padding-left: 30px;
    }

    .certifications-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-container {
        margin-top: var(--spacing-m);
    }
}

/* Extra small devices (small mobile phones, up to 576px) */
@media only screen and (max-width: 576px) {
    :root {
        --fs-xl: 2.2rem;
        --fs-l: 1.6rem;
        --fs-m: 1rem;
        --spacing-xl: 3rem;
        --spacing-l: 2rem;
    }

    .container {
        width: 90%;
        padding: var(--spacing-s) 0;
    }

    .hero {
        padding-top: 0;
    }

    .hero-text h2 {
        font-size: 1rem;
    }

    .security-graphic {
        width: 200px;
        height: 200px;
    }

    .shield {
        font-size: 5rem;
    }

    .binary {
        font-size: 0.6rem;
        bottom: 30px;
    }

    .cta-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: var(--spacing-xs);
        margin-right: 0;
    }

    .achievement-item,
    .training-item,
    .contact-info-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .achievement-icon,
    .training-icon,
    .contact-info-item .icon {
        margin-bottom: var(--spacing-s);
    }

    .theme-toggle {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .theme-toggle i {
        font-size: 1.2rem;
    }

    .footer-links {
        gap: var(--spacing-s);
        flex-direction: column;
    }
}

/* ====================
   Advanced Animations & Effects
   ==================== */

/* Smooth entrance animations - Optimized */
.section-animate {
    animation: fadeInUp 0.5s ease-out both;
    will-change: transform, opacity;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

/* Enhanced glow effects */
h1, h2.section-header {
    text-shadow: 0 0 20px var(--accent-color), 0 0 40px var(--accent-color-3);
    animation: text-glow-pulse 4s ease-in-out infinite;
}

@keyframes text-glow-pulse {
    0%, 100% {
        text-shadow: 0 0 20px var(--accent-color), 0 0 40px rgba(0, 238, 255, 0.3);
    }
    50% {
        text-shadow: 0 0 30px var(--accent-color), 0 0 60px rgba(0, 238, 255, 0.5), 0 0 80px rgba(0, 238, 255, 0.2);
    }
}

/* Floating animation for hero elements */
@keyframes float-smooth {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-image {
    animation: float-smooth 6s ease-in-out infinite;
}

/* Magnetic hover effect for buttons */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Shimmer effect for cards */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.project-card::after,
.skill-item::after,
.article-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 238, 255, 0.1), transparent);
    transition: left 0.7s ease;
}

.project-card:hover::after,
.skill-item:hover::after,
.article-card:hover::after {
    left: 100%;
}

/* Pulsing border effect */
@keyframes border-pulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 238, 255, 0.3), 0 0 20px rgba(0, 238, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 238, 255, 0.6), 0 0 40px rgba(0, 238, 255, 0.3), 0 0 60px rgba(0, 238, 255, 0.1);
    }
}

.team-card:hover,
.achievement-item:hover {
    animation: border-pulse 2s ease-in-out infinite;
}

/* Smooth scale on hover */
.social-icons a,
.footer-social a {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-icons a:hover,
.footer-social a:hover {
    transform: translateY(-5px) scale(1.15) rotate(5deg);
}

/* Typing cursor effect for inputs */
input:focus,
textarea:focus {
    animation: input-glow 1.5s ease-in-out infinite;
}

@keyframes input-glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 238, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(0, 238, 255, 0.6), 0 0 25px rgba(0, 238, 255, 0.3);
    }
}

/* Parallax scroll effect */
@media (prefers-reduced-motion: no-preference) {
    .hero::before {
        animation: grid-scroll 20s linear infinite;
    }
    
    @keyframes grid-scroll {
        0% {
            background-position: 0 0;
        }
        100% {
            background-position: 40px 40px;
        }
    }
}

/* Smooth reveal on scroll */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Glitch effect for headings (subtle) */
@keyframes glitch {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
    100% {
        transform: translate(0);
    }
}

h1:hover {
    animation: glitch 0.3s ease;
}

/* Neon glow on active navigation */
.nav-links li a.active {
    animation: neon-glow 1.5s ease-in-out infinite;
}

@keyframes neon-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(0, 238, 255, 0.5), inset 0 0 10px rgba(0, 238, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 238, 255, 0.8), inset 0 0 20px rgba(0, 238, 255, 0.4);
    }
}

/* Loading spinner for async operations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner {
    border: 3px solid rgba(0, 238, 255, 0.1);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 0.8s linear infinite;
}

/* Smooth page transitions */
body {
    animation: page-fade-in 0.5s ease;
}

@keyframes page-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ====================
   Team Section - Enhanced Professional Design
   ==================== */
.team-section {
  background: linear-gradient(180deg, var(--primary-dark) 0%, rgba(0, 238, 255, 0.03) 50%, var(--primary-dark) 100%);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-top: 1rem;
  font-weight: 400;
}

.team-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(0, 238, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 255, 102, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 0, 170, 0.05) 0%, transparent 50%);
  animation: team-bg-float 20s ease-in-out infinite;
  z-index: 0;
}

@keyframes team-bg-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(1deg); }
  50% { transform: translateY(0) rotate(0deg); }
  75% { transform: translateY(10px) rotate(-1deg); }
}

.team-cards {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.team-card {
  background: linear-gradient(135deg, var(--tertiary-dark) 0%, rgba(0, 238, 255, 0.05) 100%);
  border: 1px solid rgba(0, 238, 255, 0.2);
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 238, 255, 0.1);
  padding: 2.5rem 2rem;
  width: 320px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

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

.team-card:hover::before {
  left: 100%;
}

.team-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 238, 255, 0.3), 0 0 60px rgba(0, 238, 255, 0.1);
  border-color: var(--accent-color);
  animation: card-glow 2s ease-in-out infinite alternate;
}

@keyframes card-glow {
  from {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(0, 238, 255, 0.3), 0 0 60px rgba(0, 238, 255, 0.1);
  }
  to {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 238, 255, 0.5), 0 0 80px rgba(0, 238, 255, 0.2);
  }
}

.team-img-box.team-img-out {
  width: 160px;
  height: 160px;
  margin: -50px auto 1.5rem auto;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--secondary-dark), rgba(0, 238, 255, 0.1));
  box-shadow: 0 0 30px rgba(0, 238, 255, 0.4), inset 0 0 30px rgba(0, 238, 255, 0.1);
  position: relative;
  z-index: 2;
  border: 3px solid var(--accent-color);
  animation: img-rotate 20s linear infinite;
}

@keyframes img-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.team-img-box.team-img-out::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent-color), var(--accent-color-2), var(--accent-color-3), var(--accent-color));
  z-index: -1;
  animation: border-rotate 3s linear infinite;
}

@keyframes border-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: all 0.4s ease;
  filter: brightness(1.1) contrast(1.1);
}

.team-card:hover .team-img {
  filter: brightness(1.2) contrast(1.2) saturate(1.1);
  transform: scale(1.1) rotate(5deg);
}

.team-info {
  position: relative;
  z-index: 1;
}

.team-username {
  font-size: 1.2rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-shadow: 0 0 10px rgba(0, 238, 255, 0.5);
}

.team-role {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-color-2));
  color: var(--primary-dark);
  padding: 0.4rem 1.2rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  box-shadow: 0 0 15px rgba(0, 238, 255, 0.3);
  animation: role-pulse 2s ease-in-out infinite;
}

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

.team-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
  min-height: 60px;
}

.team-contact-btn {
  background: linear-gradient(135deg, transparent, rgba(0, 238, 255, 0.1));
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  border-radius: 0.75rem;
  padding: 0.6rem 2rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.team-contact-btn:hover::before {
  left: 100%;
}

.team-contact-btn:hover {
  background: var(--accent-color);
  color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 238, 255, 0.4);
  animation: btn-shine 1.5s ease-in-out infinite;
}

@keyframes btn-shine {
  0%, 100% { box-shadow: 0 8px 25px rgba(0, 238, 255, 0.4); }
  50% { box-shadow: 0 8px 25px rgba(0, 238, 255, 0.6), 0 0 30px rgba(0, 238, 255, 0.3); }
}

/* Professional Article Cards */
.public-article {
  background: linear-gradient(135deg, var(--tertiary-dark) 0%, var(--primary-dark) 100%);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  transition: var(--transition), transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 238, 255, 0.1);
  position: relative;
}

.public-article:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 30px -15px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 238, 255, 0.5);
  border-color: rgba(0, 238, 255, 0.3);
}

.article-img {
  overflow: hidden;
  height: 200px;
  position: relative;
}

.article-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.public-article:hover .article-img img {
  transform: scale(1.05);
}

.article-content {
  padding: var(--spacing-m);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-content h3 {
  font-size: var(--fs-s);
  margin-bottom: var(--spacing-s);
  line-height: 1.4;
  color: var(--accent-color);
  font-weight: 600;
}

.article-content p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-s);
  flex-grow: 1;
  line-height: 1.6;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.article-date {
  background-color: rgba(0, 238, 255, 0.1);
  color: var(--accent-color);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.read-more {
  display: inline-flex;
  align-items: center;
  color: var(--accent-color);
  font-weight: 500;
  font-size: var(--fs-xs);
  transition: var(--transition);
}

.read-more:hover {
  color: var(--accent-hover);
}

.read-more i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.read-more:hover i {
  transform: translateX(3px);
}

/* Professional Testimonial Cards */
.public-testimonial {
  background: linear-gradient(135deg, var(--tertiary-dark) 0%, var(--primary-dark) 100%);
  border-radius: var(--border-radius);
  padding: var(--spacing-m);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 238, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-s);
  position: relative;
}

.public-testimonial:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 238, 255, 0.5);
  border-color: rgba(0, 238, 255, 0.3);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-s);
}

.testimonial-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-color);
  box-shadow: 0 0 10px rgba(0, 238, 255, 0.5);
}

.testimonial-info {
  flex-grow: 1;
}

.testimonial-info h4 {
  margin-bottom: 5px;
  color: var(--text-primary);
  font-size: var(--fs-s);
  font-weight: 600;
}

.testimonial-rating {
  color: var(--accent-color);
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.testimonial-date {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.testimonial-text {
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.6;
  margin: 0;
  position: relative;
  padding-left: 20px;
}

.testimonial-text:before {
  content: '"';
  font-size: 2rem;
  color: var(--accent-color);
  position: absolute;
  top: -10px;
  left: 0;
  opacity: 0.5;
}

/* Loading and Empty States */
.loading {
  text-align: center;
  color: var(--accent-color);
  font-size: var(--fs-s);
  padding: var(--spacing-l);
}

.empty-state {
  text-align: center;
  color: var(--text-muted);
  font-size: var(--fs-s);
  padding: var(--spacing-l);
  margin: 0;
}

/* Parallax Particles */
.particles {
  z-index: 1;
}

/* Skill Progress Bars */
.skill-item {
  position: relative;
  overflow: hidden;
}

.skill-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-color-2));
  transition: width 1s ease;
}

.skill-item:hover::after {
  width: 100%;
}

/* Footer Dynamic Year - Handled in JS */

#articles-list-public {
  display: contents;
}
.public-article {
  min-width: 320px;
  max-width: 340px;
}
#testimonials-list-public {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--spacing-l);
}
.public-testimonial {
  width: 100%;
}
