/* Color variables (Brazil-inspired blue & yellow) */
:root {
  /* Accents */
  --primary-yellow: #FFD700; /* use sparingly */
  --primary-blue: #0055A4;   /* use sparingly */
  --accent-yellow: #FFC72C;
  --accent-blue: #00A8E8;
  --dark-navy: #002B5C;
  /* Dominant grays/white (60%) */
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-600: #4B5563;
  --gray-900: #111827;
  /* Derived */
  --text-main: var(--gray-900);
  --text-secondary: var(--gray-600);
  --border-gray: var(--gray-200);
  --border-yellow: var(--primary-yellow);
  /* Depth & patterns */
  --shadow-soft: 0 2px 0 rgba(0,0,0,0.04), 0 6px 16px rgba(0,0,0,0.06);
  --shadow-medium: 0 2px 0 rgba(0,0,0,0.06), 0 10px 24px rgba(0,0,0,0.08);
  --pattern-dots: radial-gradient(circle at 1px 1px, rgba(17,24,39,0.06) 1px, transparent 1px);
  --pattern-stripes: repeating-linear-gradient(135deg, rgba(17,24,39,0.05) 0 8px, transparent 8px 16px);
}

/* Base reset */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji"; color: var(--text-main); background: var(--white); line-height: 1.5; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
img { max-width: 100%; display: block; }

/* Layout */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 16px; }
section { padding: 50px 0; }
section:first-of-type { padding-top: 60px; }
section:last-of-type { padding-bottom: 60px; }
@media (max-width: 1024px) { section { padding: 40px 0; } section:first-of-type { padding-top: 50px; } section:last-of-type { padding-bottom: 50px; } }
@media (max-width: 767px) { section { padding: 30px 0; } section:first-of-type { padding-top: 40px; } section:last-of-type { padding-bottom: 40px; } }

/* Spacing utilities */
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
.my-40 { margin-block: 40px; }
.row { display: flex; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.wrap { flex-wrap: wrap; }

/* Header / Navigation */
.header { position: sticky; inset-block-start: 0; z-index: 1000; background: var(--white); border-bottom: 2px solid var(--border-gray); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { color: var(--gray-900); font-weight: 900; letter-spacing: 1px; text-transform: uppercase; position: relative; text-decoration: none; display: inline-block; padding-right: 14px; }
.brand::after { content: ""; position: absolute; inset-inline-end: 0; inset-block-start: 50%; width: 8px; height: 8px; background: var(--primary-yellow); border: 2px solid var(--gray-900); transform: translateY(-50%); }
.brand:hover { color: var(--gray-900); text-decoration: none; }
.menu { display: flex; gap: 24px; }
.menu a { color: var(--gray-600); padding-block: 8px; border-bottom: 2px solid transparent; font-weight: 700; }
.menu a:hover { color: var(--primary-blue); border-bottom-color: var(--primary-blue); transition: border-color .3s ease, color .3s ease; }
.menu a.active { color: var(--gray-900); border-bottom-color: var(--primary-yellow); }
.hamburger { display: none; width: 32px; height: 32px; color: var(--gray-900); background: transparent; border: none; padding: 0; }
.hamburger span { display: block; height: 2px; background: var(--gray-900); margin: 6px 0; }

@media (max-width: 1024px) {
  .menu { display: none; position: absolute; inset-block-start: 64px; inset-inline: 0; background: var(--white); border-bottom: 2px solid var(--border-gray); flex-direction: column; padding: 8px 16px; }
  .menu.open { display: flex; }
  .hamburger { display: inline-block; }
}

/* Footer */
.footer { background: var(--gray-100); color: var(--gray-700); border-top: 2px solid var(--border-gray); padding: 32px 0; }
.footer .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer a { color: var(--primary-blue); text-decoration: none; transition: color .2s ease; }
.footer a:hover { text-decoration: none; color: var(--accent-blue); }
@media (max-width: 1024px) { .footer .grid { grid-template-columns: 1fr; } }
.copyright { margin-top: 16px; padding-top: 16px; border-top: 2px solid rgba(0,0,0,0.1); font-size: 14px; color: var(--gray-600); }

/* Utilities */
.grid-2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
@media (max-width: 1024px) { .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; } }
.muted { color: var(--text-secondary); }
.accent { color: var(--primary-yellow); }
.divider { height: 2px; background: var(--border-gray); margin: 24px 0; }
.badge { display: inline-block; padding: 6px 10px; border: 2px solid var(--primary-yellow); color: var(--gray-900); text-transform: none; font-size: 13px; font-weight: 800; background: var(--accent-yellow); position: relative; }
.badge::after { content: "★"; margin-inline-start: 6px; color: var(--primary-blue); }
.tag { display: inline-block; padding: 6px 10px; border: 2px solid var(--border-gray); color: var(--primary-blue); font-size: 12px; font-weight: 800; background: var(--gray-50); }

/* Buttons (no border-radius) */
.btn { display: inline-block; padding: 12px 20px; font-weight: 900; border: 2px solid var(--primary-yellow); background: var(--primary-yellow); color: var(--gray-900); cursor: pointer; letter-spacing: 0.5px; box-shadow: var(--shadow-soft); transition: transform .2s ease, background .2s ease; }
.btn:hover { background: var(--accent-yellow); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--primary-blue); border: 2px solid var(--primary-blue); box-shadow: var(--shadow-soft); }
.btn-outline:hover { background: var(--primary-blue); color: #fff; }
.btn-secondary { background: var(--primary-blue); border: 2px solid var(--primary-blue); color: #fff; box-shadow: var(--shadow-soft); }
.btn-secondary:hover { background: var(--accent-blue); border-color: var(--accent-blue); }

/* Cards (no radius) */
.card { background: var(--white); border: 2px solid var(--border-gray); box-shadow: var(--shadow-soft); padding: 30px; position: relative; }
.card::before { content: ""; position: absolute; inset: 0; border: 2px solid transparent; pointer-events: none; }
.card.headered { border-top: 6px solid var(--primary-yellow); }
.card.layered { box-shadow: var(--shadow-medium); }
.card.layered::before { inset: 6px; border-color: var(--gray-200); }

/* Section headers */
.section-title { font-size: 28px; font-weight: 900; color: var(--gray-900); margin: 0 0 16px; border-inline-start: 6px solid var(--primary-yellow); padding-inline-start: 14px; text-transform: uppercase; }
.section-subtitle { color: var(--text-gray); margin-top: 0; }

/* Hero */
.hero { background: var(--gray-50); border-bottom: 2px solid var(--border-gray); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: var(--pattern-dots); background-size: 12px 12px; opacity: .25; pointer-events: none; }
.hero h1 { font-size: 40px; line-height: 1.1; color: var(--gray-900); margin: 0 0 8px; }
.hero .title { font-size: 20px; font-weight: 900; color: var(--gray-900); letter-spacing: 1px; }
.stats { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 16px; }
.stat { border: 2px solid var(--border-gray); padding: 16px 20px; background: var(--white); box-shadow: var(--shadow-soft); position: relative; }
.stat::before { content: ""; position: absolute; inset-inline-start: -6px; inset-block-start: -6px; width: 12px; height: 12px; background: var(--primary-blue); }
.stat strong { display: block; font-size: 22px; color: var(--gray-900); }

/* Timeline */
.timeline { border-inline-start: 4px solid var(--primary-yellow); padding-inline-start: 40px; }
.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-item::before { content: ""; position: absolute; inset-inline-start: -22px; inset-block-start: 4px; width: 16px; height: 16px; background: var(--primary-yellow); border: 2px solid var(--gray-900); box-shadow: var(--shadow-soft); }
.timeline-item h4 { margin: 0 0 6px; color: var(--gray-900); }

/* Experience lists */
.experience-card { border-inline-start: 4px solid var(--primary-yellow); box-shadow: var(--shadow-soft); }
.experience-meta { color: var(--gray-600); margin-block: 10px; }
.experience-list { padding-inline-start: 20px; }
.experience-list li { margin-block-end: 15px; }
.experience-list li::marker { color: var(--primary-blue); }

/* Skill bars */
.skill { margin-bottom: 16px; }
.skill .label { display: flex; justify-content: space-between; font-weight: 700; color: var(--primary-dark); }
.bar { height: 10px; border: 2px solid var(--primary-blue); background: var(--white); overflow: hidden; position: relative; }
.bar::after { content: ""; position: absolute; inset: 0; background-image: var(--pattern-stripes); opacity: .25; }
.bar .fill { height: 100%; background: var(--primary-blue); width: 0; transition: width .8s ease; }
.bar .fill.expert { background: var(--primary-yellow); }

/* Gallery/Grid cards */
.thumb { width: 100%; height: 180px; background: var(--gray-100); border: 2px solid var(--border-gray); box-shadow: var(--shadow-soft); }
.thumb-hero-home { background-image: url('https://images.unsplash.com/photo-1518779578993-ec3579fee39f?q=80&w=1200&auto=format&fit=crop'); background-size: cover; background-position: center; }
.thumb-hero-about { background-image: url('https://images.unsplash.com/photo-1519389950473-47ba0277781c?q=80&w=1200&auto=format&fit=crop'); background-size: cover; background-position: center; }
/* Profile image in hero section */
.profile-image-hero { width: 100%; height: 500px; object-fit: cover; border: 2px solid var(--border-gray); box-shadow: var(--shadow-soft); background: var(--gray-100); }
@media (max-width: 1024px) { .profile-image-hero { height: 400px; } }
@media (max-width: 767px) { .profile-image-hero { height: 300px; } }

/* Tables/filters */
.filters { display: flex; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; }

/* Animations */
[data-animate] { opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
[data-animate].visible { opacity: 1; transform: translateY(0); }

/* Social icons (enhanced design matching theme with Font Awesome) */
.icons { display: flex; gap: 16px; flex-wrap: wrap; }
.icon { width: 44px; height: 44px; background: var(--white); border: 2px solid var(--gray-900); display: inline-flex; align-items: center; justify-content: center; color: var(--gray-900); box-shadow: var(--shadow-soft); transition: all .2s ease; position: relative; text-decoration: none; }
.icon i { font-size: 18px; display: inline-block; line-height: 1; }
.icon i.fab { font-family: "Font Awesome 6 Brands" !important; font-weight: 400 !important; }
.icon i.fas { font-family: "Font Awesome 6 Free" !important; font-weight: 900 !important; }
.icon::before { content: ""; position: absolute; inset: -2px; border: 2px solid var(--primary-yellow); opacity: 0; transition: opacity .2s ease; }
.icon:hover { background: var(--primary-yellow); border-color: var(--primary-yellow); color: var(--gray-900); transform: translateY(-2px); box-shadow: var(--shadow-medium); text-decoration: none; }
.icon:hover::before { opacity: 1; }
.footer .icon { border-color: var(--gray-600); color: var(--gray-600); }
.footer .icon:hover { background: var(--primary-yellow); border-color: var(--primary-yellow); color: var(--gray-900); }

/* Form elements */
label { display: block; font-weight: 700; color: var(--gray-900); margin-block-end: 6px; }
.input, .select, .textarea { width: 100%; padding: 12px; border: 2px solid var(--border-gray); background: var(--white); color: var(--gray-900); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary-blue); box-shadow: 0 0 0 2px rgba(0,85,164,0.1); }



