@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

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

:root {
  --bg-dark: #0a0a0f;
  --bg-light: #f8f9fa;
  --text-dark: #ffffff;
  --text-light: #1a1a1a;
  --accent: #f4a261;
  --gray: #8a8a9e;
}

html { overflow-x: hidden; }
body {
  font-family: 'Inter', sans-serif;
  transition: all 0.4s ease;
  overflow-x: hidden;
}
body.nav-locked { overflow: hidden; }

/* Dark Theme */
body.dark-theme {
  background: var(--bg-dark);
  color: var(--text-dark);
}

/* Light Theme */
body.light-theme {
  background: var(--bg-light);
  color: var(--text-light);
}

/* Navbar */
.navbar {
  display:flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 80px;
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

body.dark-theme .navbar {
  background: rgba(10, 10, 15, 0.8);
}

body.light-theme .navbar {
  background: rgba(248, 249, 250, 0.8);
}

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 35px;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-dark);
}

body.light-theme .nav-links a:hover,
body.light-theme .nav-links a.active {
  color: var(--text-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.theme-toggle {
  background: rgba(255,255,255,0.1);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--text-dark);
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.3s;
}

body.light-theme .theme-toggle {
  color: var(--text-light);
  background: rgba(0,0,0,0.08);
}

.btn-hire {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-hire:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(244, 162, 97, 0.4);
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 120px 80px 80px;
  gap: 60px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.subheading {
  color: var(--gray);
  font-size: 0.85rem;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
}

.highlight {
  color: var(--accent);
}

.hero-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--gray);
}

.role-text {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 25px;
}

#roleText {
  color: var(--accent);
}

.description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--gray);
  margin-bottom: 35px;
}

.hero-btns {
  display: flex;
  gap: 15px;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.btn-primary:hover {
  transform: translateX(5px);
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid rgba(255,255,255,0.2);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

body.light-theme .btn-outline {
  color: var(--text-light);
  border-color: rgba(0,0,0,0.2);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.announcements-section {
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 80px 30px;
}

.announcement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.announcement-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

body.light-theme .announcement-card {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.08);
}

.announcement-card:hover {
  transform: translateY(-4px);
  border-color: rgba(244, 162, 97, 0.8);
}

.announcement-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  object-fit: cover;
  display: block;
  background: rgba(255,255,255,0.03);
}

.announcement-content {
  padding: 20px;
}

.announcement-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 0.75rem;
  color: var(--gray);
}

.announcement-tag {
  display: inline-flex;
  background: rgba(244, 162, 97, 0.15);
  color: var(--accent);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 600;
}

.announcement-content h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.announcement-content p {
  color: var(--gray);
  line-height: 1.7;
}

.section-heading {
  margin-top: 10px;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 8px;
}

/* Hero Image */
.hero-image {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  box-shadow: 0 0 60px rgba(244, 162, 97, 0.3);
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  animation: float 3s ease-in-out infinite;
}

body.light-theme .floating-badge {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.1);
}

.badge-1 { top: 20px; right: 40px; animation-delay: 0s; }
.badge-2 { top: 150px; right: -20px; animation-delay: 1s; }
.badge-3 { bottom: 40px; right: 60px; animation-delay: 2s; }

@keyframes float {
 0%, 100% { transform: translateY(0px); }
 50% { transform: translateY(-15px); }
}

/* Responsive */
@media (max-width: 968px) {
 .navbar,.hero {
    padding: 20px 30px;
  }

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

 .hero-content h1 {
    font-size: 2.8rem;
  }

 .hero-image img {
    width: 280px;
    height: 280px;
  }
}
/* ============================================================
   Site-wide additions: mobile nav, footer, page header
   ============================================================ */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-dark);
  width: 44px;
  height: 44px;
  padding: 0;
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease;
}
body.light-theme .nav-toggle { color: var(--text-light); }

.nav-toggle .burger-line {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease;
}

.nav-toggle .burger-line:nth-child(1) { top: 14px; }
.nav-toggle .burger-line:nth-child(2) { top: 21px; }
.nav-toggle .burger-line:nth-child(3) { top: 28px; }

.nav-toggle.is-open .burger-line:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}
.nav-toggle.is-open .burger-line:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-open .burger-line:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

/* Page header used on inner pages (About, Projects, etc.) */
.page-header {
  padding: 160px 80px 60px;
  text-align: center;
}
.page-header .eyebrow {
  color: var(--accent);
  letter-spacing: 2px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.page-header h1 {
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.page-header p {
  color: var(--gray);
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* Generic section wrapper */
.section {
  padding: 40px 80px 100px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 40px 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--gray);
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 15px;
}
body.light-theme .site-footer { border-top-color: rgba(0,0,0,0.08); }
.site-footer .footer-socials { display: flex; gap: 16px; }
.site-footer .footer-socials a { color: var(--gray); font-size: 1.1rem; transition: color 0.3s; }
.site-footer .footer-socials a:hover { color: var(--accent); }

/* ============================================================
   About page
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: start;
}
.about-photo img {
  width: 100%;
  border-radius: 16px;
  border: 3px solid var(--accent);
  object-fit: cover;
  aspect-ratio: 4/5;
}
.about-photo-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 16px;
  border: 3px solid var(--accent);
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--gray);
}
.about-text h2 { font-size: 1.8rem; margin-bottom: 16px; }
.about-text p { color: var(--gray); line-height: 1.8; margin-bottom: 16px; font-size: 1.05rem; }
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}
.about-stat {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
}
body.light-theme .about-stat { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }
.about-stat h3 { color: var(--accent); font-size: 1.8rem; }
.about-stat span { color: var(--gray); font-size: 0.85rem; }

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Services page
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.service-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.3s, border-color 0.3s;
}
body.light-theme .service-card { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }
.service-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(244, 162, 97, 0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { color: var(--gray); line-height: 1.7; font-size: 0.95rem; }

/* ============================================================
   Skills page
   ============================================================ */
.skills-layout { max-width: 760px; margin: 0 auto; }
.skill-row { margin-bottom: 26px; }
.skill-row-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 600;
}
.skill-bar {
  height: 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
body.light-theme .skill-bar { background: rgba(0,0,0,0.08); }
.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ffbb85);
  border-radius: 6px;
  transition: width 0.6s ease;
}

/* ============================================================
   Experience page (timeline)
   ============================================================ */
.timeline {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  padding-left: 30px;
  border-left: 2px solid rgba(255,255,255,0.1);
}
body.light-theme .timeline { border-left-color: rgba(0,0,0,0.1); }
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(244,162,97,0.2);
}
.timeline-date { color: var(--accent); font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.timeline-item h3 { font-size: 1.15rem; margin-bottom: 4px; }
.timeline-item .timeline-org { color: var(--gray); font-size: 0.9rem; margin-bottom: 10px; }
.timeline-item p { color: var(--gray); line-height: 1.7; font-size: 0.95rem; }

/* ============================================================
   Projects page
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.project-category-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.project-category-label {
  color: var(--gray);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.project-category-list { display: flex; gap: 8px; flex-wrap: wrap; }
.project-category-btn {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 9px 15px;
  background: rgba(255,255,255,0.04);
  color: var(--gray);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.project-category-btn:hover { border-color: var(--accent); color: var(--text-dark); }
.project-category-btn.active { border-color: var(--accent); background: var(--accent); color: #000; }
body.light-theme .project-category-btn { border-color: rgba(0,0,0,0.14); background: rgba(0,0,0,0.03); }
body.light-theme .project-category-btn:hover { color: var(--text-light); }
@media (max-width: 700px) {
  .projects-grid { grid-template-columns: 1fr; }
  .project-category-bar { align-items: flex-start; flex-direction: column; gap: 10px; }
}
.project-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
}
body.light-theme .project-card { background: rgba(0,0,0,0.03); border-color: rgba(0,0,0,0.08); }
.project-card:hover { transform: translateY(-6px); border-color: var(--accent); }
.project-thumb { aspect-ratio: 16/10; overflow: hidden; }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; }
.project-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  color: var(--gray);
  font-size: 2rem;
}
.project-body { padding: 24px; }
.project-tag {
  display: inline-block;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.project-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.project-body p { color: var(--gray); font-size: 0.95rem; line-height: 1.6; margin-bottom: 16px; }
.project-link { color: var(--text-dark); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
body.light-theme .project-link { color: var(--text-light); }
.project-link:hover { color: var(--accent); }
.empty-state { color: var(--gray); text-align: center; grid-column: 1/-1; padding: 60px 0; }

/* ============================================================
   Contact page
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
body.light-theme .contact-item { border-bottom-color: rgba(0,0,0,0.08); }
.contact-item i { color: var(--accent); font-size: 1.2rem; width: 24px; margin-top: 2px; }
.contact-item span { color: var(--gray); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.contact-item p { font-weight: 600; margin-top: 2px; }
#contactSocials { display: flex; gap: 16px; margin-top: 20px; }
#contactSocials a {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dark);
  transition: all 0.3s;
}
body.light-theme #contactSocials a { background: rgba(0,0,0,0.06); color: var(--text-light); }
#contactSocials a:hover { background: var(--accent); color: #000; }

.application-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: 10px;
  background: rgba(244,162,97,0.1);
  border: 1px solid rgba(244,162,97,0.3);
}
.application-price-label {
  color: var(--gray);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.application-price-value {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input,
.contact-form textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 14px 16px;
  color: inherit;
  font-family: inherit;
  font-size: 0.95rem;
}
body.light-theme .contact-form input,
body.light-theme .contact-form textarea {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.12);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.form-status {
  display: none;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(244,162,97,0.12);
  color: var(--accent);
  font-size: 0.9rem;
}
.form-status.show { display: block; }

@media (max-width: 768px) {
  .contact-layout { grid-template-columns: 1fr; }
}

/* ============================================================
   Responsive nav for all inner pages
   ============================================================ */
@media (max-width: 968px) {
  .page-header, .section, .site-footer { padding-left: 24px; padding-right: 24px; }
}

/* Hamburger nav: collapses at 768px and below, keeps normal nav above it */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
  }
  .nav-toggle:hover, .nav-toggle:focus-visible { background: rgba(255,255,255,0.08); }
  body.light-theme .nav-toggle:hover, body.light-theme .nav-toggle:focus-visible { background: rgba(0,0,0,0.06); }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    background: var(--bg-dark);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.28s ease, visibility 0.28s;
    z-index: 950;
  }
  body.light-theme .nav-links { background: var(--bg-light); }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 15px 12px;
    border-radius: 8px;
    font-size: 1.02rem;
  }
  .nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,0.06); }
  body.light-theme .nav-links a:hover, body.light-theme .nav-links a.active { background: rgba(0,0,0,0.05); }

  .nav-overlay {
    position: fixed;
    inset: 0;
    top: 70px;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s;
    z-index: 940;
  }
  .nav-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }

  .btn-hire { padding: 10px 16px; font-size: 0.85rem; }
}

/* Fallback if hero image fails to load (e.g. assets/1.jpg not provided) */
.hero-image.no-img img { display: none; }
.hero-image.no-img::before {
  content: '\f007';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  border: 4px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: var(--gray);
  background: rgba(255,255,255,0.04);
}
@media (max-width: 968px) {
  .hero-image.no-img::before { width: 280px; height: 280px; font-size: 4rem; }
}

/* Small discreet admin link inside the footer */
.admin-link {
  color: var(--gray);
  opacity: 0.5;
  transition: opacity 0.3s, color 0.3s;
}
.admin-link:hover { opacity: 1; color: var(--accent); }
