/* ════════ VARIABLES & RESET ════════ */
:root {
  --primary: #e74c3c;
  --primary-hover: #c0392b;
  --bg-color: #ffffff;
  --bg-light: #f8f9fa;
  --text-main: #2c3e50;
  --text-light: #7f8c8d;
  --border: #eaeded;
  --gold: #f39c12;
  --card-bg: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.95);
  --shadow: 0 4px 6px rgba(0,0,0,0.05);
  --shadow-hover: 0 10px 20px rgba(0,0,0,0.1);
  --font-main: 'Inter', sans-serif;
  --font-head: 'Playfair Display', serif;
}

body.dark-mode {
  --bg-color: #121212;
  --bg-light: #1e1e1e;
  --text-main: #f5f6fa;
  --text-light: #a4b0be;
  --border: #2f3542;
  --card-bg: #242424;
  --nav-bg: rgba(30, 30, 30, 0.95);
  --shadow: 0 4px 6px rgba(0,0,0,0.3);
  --shadow-hover: 0 10px 20px rgba(0,0,0,0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); background: var(--bg-color); color: var(--text-main); line-height: 1.6; transition: background 0.3s, color 0.3s; }
a { text-decoration: none; color: inherit; cursor: pointer; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; }
.skip-link { position: absolute; top: -40px; left: 0; background: var(--primary); color: white; padding: 8px; z-index: 10000; }
.skip-link:focus { top: 0; }
.gold { color: var(--gold); }

/* ════════ NAVBAR ════════ */
header { position: sticky; top: 0; background: var(--nav-bg); backdrop-filter: blur(10px); z-index: 1000; border-bottom: 1px solid var(--border); transition: background 0.3s; }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; }
.nav-logo { font-size: 1.5rem; font-weight: 800; font-family: var(--font-head); }
.nav-links { display: flex; list-style: none; gap: 20px; align-items: center; }
.nav-links a { font-weight: 500; font-size: 0.95rem; padding: 5px 10px; border-radius: 5px; transition: 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: var(--bg-light); color: var(--primary); }
.nav-cta { background: var(--primary); color: white !important; border-radius: 20px !important; padding: 8px 18px !important; }
.hamburger { display: none; background: transparent; flex-direction: column; gap: 5px; }
.hamburger span { width: 25px; height: 3px; background: var(--text-main); transition: 0.3s; }
.mobile-menu { display: none; flex-direction: column; background: var(--nav-bg); padding: 20px; border-bottom: 1px solid var(--border); }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 0; font-weight: 500; border-bottom: 1px solid var(--border); }

/* ════════ LAYOUT & SECTIONS ════════ */
.page-section { display: none; animation: fadeUp 0.6s ease-out forwards; }
.page-section.active { display: block; }
.section { padding: 80px 20px; }
.bg-light { background: var(--bg-light); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-hd { text-align: center; margin-bottom: 50px; }
.eyebrow { display: inline-block; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: 0.85rem; margin-bottom: 10px; }
.section-title { font-family: var(--font-head); font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; }
.section-sub { color: var(--text-light); max-width: 600px; margin: 0 auto; }

/* ════════ BUTTONS ════════ */
.btn { display: inline-block; padding: 12px 24px; border-radius: 8px; font-weight: 600; font-size: 1rem; transition: 0.3s; }
.btn-red { background: var(--primary); color: white; }
.btn-red:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(231,76,60,0.3); }
.btn-ghost { background: transparent; color: var(--text-main); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg-light); border-color: var(--text-light); }

/* ════════ HERO ════════ */
.hero { padding: 100px 20px; }
.hero-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-text { flex: 1; }
.hero-eyebrow { font-weight: 600; color: var(--gold); margin-bottom: 15px; letter-spacing: 1px; }
.hero-text h1 { font-family: var(--font-head); font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; }
.hero-desc { font-size: 1.1rem; color: var(--text-light); margin-bottom: 30px; line-height: 1.8; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip-hero { background: var(--bg-light); padding: 8px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; border: 1px solid var(--border); }
.hero-btns { display: flex; gap: 15px; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 30px; border-top: 1px solid var(--border); padding-top: 20px; }
.stat-num { font-size: 1.5rem; font-weight: 800; color: var(--primary); }
.stat-lbl { font-size: 0.85rem; color: var(--text-light); font-weight: 500; }
.hero-image { flex: 1; display: flex; justify-content: center; }
.avatar-wrap { position: relative; width: 300px; height: 300px; display: flex; align-items: center; justify-content: center; }
.avatar-ring { position: absolute; width: 100%; height: 100%; border: 2px dashed var(--primary); border-radius: 50%; animation: spin 20s linear infinite; }
.avatar { width: 260px; height: 260px; background: linear-gradient(135deg, var(--primary), var(--gold)); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 5rem; color: white; font-weight: 800; font-family: var(--font-head); box-shadow: var(--shadow-hover); }

/* ════════ CARDS & GRIDS ════════ */
.home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }
.home-card { background: var(--card-bg); padding: 30px; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow); transition: 0.3s; cursor: pointer; text-align: center; }
.home-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.home-card-icon { font-size: 2.5rem; margin-bottom: 15px; }
.home-card h3 { margin-bottom: 10px; font-family: var(--font-head); }
.home-card p { font-size: 0.9rem; color: var(--text-light); }

/* ════════ TABS & COMPOSER ════════ */
.tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.tab-btn { padding: 10px 20px; border-radius: 30px; background: var(--card-bg); border: 1px solid var(--border); color: var(--text-main); font-weight: 600; transition: 0.3s; }
.tab-btn.active, .tab-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }
.composer { background: var(--card-bg); padding: 20px; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 30px; box-shadow: var(--shadow); }
.composer-row { display: flex; gap: 15px; margin-bottom: 15px; }
.c-avatar { width: 45px; height: 45px; background: var(--gold); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; flex-shrink: 0; }
.c-textarea { flex: 1; border: none; background: transparent; color: var(--text-main); font-size: 1rem; font-family: var(--font-main); resize: none; min-height: 60px; outline: none; }
.composer-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 15px; flex-wrap: wrap; gap: 10px; }
.c-tools { display: flex; gap: 10px; }
.c-tool { background: var(--bg-light); color: var(--text-light); padding: 6px 12px; border-radius: 20px; font-size: 0.85rem; border: 1px solid var(--border); transition: 0.2s; }
.c-tool:hover { background: var(--border); color: var(--text-main); }
.c-tags { display: flex; gap: 5px; margin-top: 10px; flex-wrap: wrap; }

/* ════════ POSTS & ARTICLES ════════ */
.post-card, .art-card { background: var(--card-bg); padding: 25px; border-radius: 12px; border: 1px solid var(--border); margin-bottom: 25px; box-shadow: var(--shadow); transition: 0.3s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.post-meta { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; position: relative; }
.p-avatar { width: 45px; height: 45px; background: var(--primary); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; }
.p-name { font-weight: 700; }
.p-date { font-size: 0.85rem; color: var(--text-light); }
.p-cat { position: absolute; right: 0; top: 0; background: var(--bg-light); padding: 4px 10px; border-radius: 12px; font-size: 0.8rem; font-weight: 600; }
.p-title { font-size: 1.2rem; margin-bottom: 10px; font-family: var(--font-head); }
.p-body { color: var(--text-light); margin-bottom: 15px; font-size: 0.95rem; }
.p-tags { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.p-tag { color: var(--primary); font-size: 0.85rem; font-weight: 500; cursor: pointer; }
.p-actions { display: flex; gap: 20px; border-top: 1px solid var(--border); padding-top: 15px; }
.p-action { background: transparent; color: var(--text-light); font-weight: 600; display: flex; align-items: center; gap: 5px; transition: 0.2s; }
.p-action:hover { color: var(--text-main); }

.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 30px; }
.art-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; cursor: pointer; }
.art-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.art-thumb { height: 180px; display: flex; align-items: center; justify-content: center; position: relative; color: white; }
.art-thumb-emoji { font-size: 4rem; }
.art-badge { position: absolute; top: 15px; right: 15px; background: rgba(0,0,0,0.3); padding: 5px 12px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; backdrop-filter: blur(5px); }
.art-body { padding: 25px; flex: 1; display: flex; flex-direction: column; }
.art-title { font-family: var(--font-head); font-size: 1.2rem; margin-bottom: 10px; }
.art-excerpt { color: var(--text-light); font-size: 0.9rem; margin-bottom: 20px; flex: 1; }
.art-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 15px; font-size: 0.85rem; font-weight: 600; }
.art-date { color: var(--text-light); }
.art-read { color: var(--primary); background: transparent; font-weight: 600; }

/* ════════ ABOUT & EXPERIENCE ════════ */
.about-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
.about-card { background: var(--card-bg); padding: 30px; border-radius: 12px; text-align: center; border: 1px solid var(--border); box-shadow: var(--shadow); height: fit-content; }
.about-av { width: 100px; height: 100px; background: var(--primary); color: white; font-size: 2rem; font-weight: bold; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.about-name { font-family: var(--font-head); margin-bottom: 5px; }
.about-role { color: var(--text-light); font-size: 0.9rem; margin-bottom: 10px; }
.about-loc { font-size: 0.85rem; font-weight: 600; margin-bottom: 20px; }
.about-mini-stats { display: flex; justify-content: space-around; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 15px 0; margin-bottom: 20px; }
.mini-stat-n { font-weight: 800; color: var(--primary); }
.mini-stat-l { font-size: 0.8rem; color: var(--text-light); }
.about-link { display: block; padding: 10px; background: var(--bg-light); border-radius: 8px; font-weight: 600; font-size: 0.9rem; border: 1px solid var(--border); transition: 0.2s; }
.about-link:hover { background: var(--primary); color: white; }
.about-content { font-size: 1.05rem; color: var(--text-light); }
.about-bio { margin-bottom: 20px; }
.content-h3 { font-family: var(--font-head); font-size: 1.5rem; color: var(--text-main); margin: 30px 0 20px; border-bottom: 2px solid var(--primary); display: inline-block; padding-bottom: 5px; }
.hl-item { display: flex; align-items: flex-start; margin-bottom: 15px; background: var(--card-bg); padding: 15px; border-radius: 8px; border: 1px solid var(--border); }
.hl-icon { font-size: 1.5rem; margin-right: 15px; }

/* ════════ EXPERIENCE NEW LAYOUT ════════ */
.experience-list { max-width: 850px; margin: 0 auto; display: flex; flex-direction: column; gap: 30px; }
.exp-card { background: var(--card-bg); padding: 30px; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow); transition: 0.3s; position: relative; overflow: hidden; }
.exp-card::before { content: ""; position: absolute; left: 0; top: 0; height: 100%; width: 5px; background: var(--primary); }
.exp-card:hover { transform: translateX(5px); box-shadow: var(--shadow-hover); }

/* Logo and Header Flexbox */
.exp-header { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--border); padding-bottom: 15px; }
.exp-logo { width: 70px; height: 70px; border-radius: 8px; object-fit: contain; background: var(--bg-light); border: 1px solid var(--border); padding: 5px; flex-shrink: 0; }
.exp-title-wrap { flex: 1; }
.exp-title-wrap h3 { font-family: var(--font-head); font-size: 1.4rem; margin-bottom: 5px; color: var(--text-main); }
.exp-company { font-weight: 600; font-size: 0.95rem; color: var(--gold); margin: 0; }

/* Bullet Points Details */
.exp-details { padding-left: 20px; color: var(--text-light); font-size: 0.95rem; line-height: 1.7; }
.exp-details li { margin-bottom: 10px; }
.exp-details li:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  .exp-header { flex-direction: column; align-items: flex-start; gap: 15px; }
}
/* ════════ CONTACT & FOOTER ════════ */
.contact-wrap { max-width: 600px; margin: 0 auto; text-align: center; background: var(--card-bg); padding: 40px; border-radius: 12px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.contact-form input, .contact-form textarea { width: 100%; padding: 15px; margin-bottom: 15px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-light); color: var(--text-main); font-family: var(--font-main); font-size: 1rem; transition: 0.3s; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); outline: none; background: var(--bg-color); box-shadow: 0 0 0 3px rgba(231,76,60,0.1); }
.contact-form button { width: 100%; }

footer { text-align: center; padding: 30px 20px; background: var(--nav-bg); border-top: 1px solid var(--border); font-size: 0.9rem; color: var(--text-light); margin-top: 50px; }

/* ════════ THEME TOGGLE ════════ */
.theme-toggle-btn { position: fixed; bottom: 30px; right: 30px; background: var(--primary); color: white; width: 50px; height: 50px; border-radius: 50%; font-size: 24px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(0,0,0,0.3); z-index: 1000; transition: transform 0.3s; }
.theme-toggle-btn:hover { transform: scale(1.1) rotate(15deg); }

/* ════════ ANIMATIONS ════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* ════════ RESPONSIVE ════════ */
@media (max-width: 900px) {
  .hero-inner, .about-grid { flex-direction: column; text-align: center; }
  .hero-text { order: 2; }
  .hero-image { order: 1; margin-bottom: 30px; }
  .hero-btns, .hero-stats { justify-content: center; }
  .about-card { margin-bottom: 30px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero-text h1 { font-size: 2.5rem; }
  .section { padding: 50px 20px; }
  .composer-foot { flex-direction: column; align-items: stretch; }
  .composer-foot button { width: 100%; }
}