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

:root {
  --dark: #1b1b1b;
  --dark2: #2a2a2a;
  --white: #ffffff;
  --light: #f5f5f5;
  --accent: #3d7ab5;
  --text: #333;
  --text-light: #666;
  --text-white: #e0e0e0;
  --font-body: 'Montserrat', sans-serif;
  --font-heading: 'Cormorant Garamond', serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

/* === Navigation (Wix-style centered horizontal) === */
#navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid #e0e0e0;
  padding: 0;
}

.nav-container {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: center; align-items: center;
  padding: 0 20px; position: relative;
}

.nav-links {
  display: flex; list-style: none; gap: 0;
  align-items: center;
}

.nav-links > li > a {
  display: block; padding: 18px 16px;
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text); text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Dropdown */
.nav-more-wrap { position: relative; }

.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--white); border: 1px solid #e0e0e0;
  list-style: none; min-width: 160px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nav-more-wrap:hover .dropdown { display: block; }

.dropdown a {
  display: block; padding: 12px 20px;
  font-size: 0.75rem; letter-spacing: 1px;
  text-transform: uppercase; color: var(--text);
  text-decoration: none; transition: background 0.2s;
}

.dropdown a:hover { background: var(--light); color: var(--accent); }

.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 8px;
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
}

.menu-toggle span {
  width: 22px; height: 2px; background: var(--dark);
  transition: 0.3s;
}

/* === Hero Section (Split: Dark Left + White Right) === */
.hero {
  display: flex; min-height: 100vh;
  margin-top: 56px; /* navbar height */
}

.hero-left {
  flex: 1.1; background: var(--dark);
  display: flex; align-items: center; justify-content: center;
  padding: 80px 60px;
}

.hero-left-content { max-width: 500px; }

.hero-label {
  font-size: 0.8rem; letter-spacing: 4px;
  color: #888; margin-bottom: 16px;
  font-weight: 500; text-transform: uppercase;
}

.hero-name {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  color: var(--white); font-weight: 700;
  line-height: 1.1; margin-bottom: 20px;
}

.hero-role {
  font-size: 0.9rem; color: #aaa;
  font-weight: 300; line-height: 1.8;
}

.hero-right {
  flex: 0.9; background: var(--light);
  display: flex; align-items: center; justify-content: center;
  padding: 80px 40px;
}

/* Profile Card */
.profile-card {
  background: var(--white);
  border-radius: 2px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 48px 36px;
  text-align: center;
  max-width: 340px; width: 100%;
}

.profile-avatar {
  width: 110px; height: 110px; margin: 0 auto 20px;
  background: var(--light); border-radius: 50%;
  overflow: hidden; display: flex;
  align-items: center; justify-content: center;
}

.profile-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.profile-name {
  font-family: var(--font-heading);
  font-size: 1.6rem; font-weight: 600;
  color: var(--dark); margin-bottom: 14px;
}

.profile-bio {
  font-size: 0.82rem; color: var(--text-light);
  line-height: 1.7; margin-bottom: 14px;
  font-weight: 400;
}

.profile-email {
  font-size: 0.82rem; color: var(--accent);
  margin-bottom: 24px; font-weight: 500;
}

.profile-buttons { display: flex; flex-direction: column; gap: 10px; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 24px;
  font-family: var(--font-body); font-size: 0.72rem;
  letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  text-align: center; transition: all 0.2s;
  font-weight: 600; border: none;
}

.btn-dark {
  background: var(--dark); color: var(--white);
}

.btn-dark:hover {
  background: var(--accent);
}

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

.btn-outline-dark:hover {
  background: var(--dark); color: var(--white);
}

.btn-white {
  background: var(--white); color: var(--dark);
}

.btn-white:hover {
  background: var(--accent); color: var(--white);
}

/* === Sections === */
.section { padding: 100px 0; }
.section-white { background: var(--white); }
.section-light { background: var(--light); }
.section-dark { background: var(--dark); color: var(--text-white); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.section-heading {
  font-family: var(--font-heading);
  font-size: 2.2rem; font-weight: 600;
  color: var(--dark); text-align: center;
  margin-bottom: 8px;
}

.section-heading.left { text-align: left; }
.section-heading.light { color: var(--white); }

.heading-line {
  width: 50px; height: 2px;
  background: var(--accent);
  margin: 0 auto 40px;
}

.heading-line.left { margin-left: 0; }
.heading-line.light { background: var(--accent); }

.section-sub {
  text-align: center; max-width: 600px;
  margin: -20px auto 40px;
  color: var(--text-light); font-size: 0.9rem;
}

/* === Skills Grid === */
.skills-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.skill-card {
  text-align: center; padding: 36px 20px;
  border: 1px solid #e8e8e8; border-radius: 2px;
  transition: all 0.3s;
}

.skill-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.skill-icon { font-size: 2rem; margin-bottom: 16px; }

.skill-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem; font-weight: 600;
  color: var(--dark); margin-bottom: 10px;
}

.skill-card p {
  font-size: 0.82rem; color: var(--text-light);
  line-height: 1.7;
}

/* === Domain Expertise Grid === */
.domain-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.domain-card {
  padding: 28px 24px; background: var(--white);
  border: 1px solid #e8e8e8; border-radius: 2px;
  transition: all 0.3s;
}

.domain-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.domain-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem; font-weight: 600;
  color: var(--dark); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}

.domain-years {
  font-family: var(--font-body);
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent); background: #e8f0fe;
  padding: 3px 10px; border-radius: 20px;
}

.domain-card p {
  font-size: 0.82rem; color: var(--text-light); line-height: 1.7;
}

/* === Tech Proficiency Grid === */
.tech-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tech-card {
  padding: 22px 20px; background: var(--white);
  border: 1px solid #e8e8e8; border-radius: 2px;
  transition: all 0.3s;
}

.tech-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  border-color: var(--accent);
}

.tech-card h3 {
  font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}

.tech-card p {
  font-size: 0.82rem; color: var(--text); line-height: 1.6;
}

/* === Timeline === */
.timeline {
  max-width: 700px; margin: 0 auto;
  position: relative; padding-left: 36px;
}

.timeline::before {
  content: ''; position: absolute; left: 7px; top: 0;
  width: 2px; height: 100%; background: #ddd;
}

.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-item:last-child { margin-bottom: 0; }

.timeline-marker {
  position: absolute; left: -36px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--accent);
}

.timeline-date {
  font-size: 0.72rem; letter-spacing: 2px;
  color: var(--accent); text-transform: uppercase;
  font-weight: 600; display: block; margin-bottom: 4px;
}

.timeline-body h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem; font-weight: 600;
  color: var(--dark); margin-bottom: 6px;
}

.timeline-body p {
  font-size: 0.85rem; color: var(--text-light); line-height: 1.7;
}

/* === Publications === */
.pub-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.pub-card {
  padding: 32px; background: var(--white);
  border: 1px solid #e8e8e8; border-radius: 2px;
  transition: all 0.3s;
}

.pub-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.pub-tag {
  font-size: 0.65rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent);
  font-weight: 700; display: block; margin-bottom: 12px;
}

.pub-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem; font-weight: 600;
  color: var(--dark); margin-bottom: 10px;
  line-height: 1.4;
}

.pub-card p {
  font-size: 0.82rem; color: var(--text-light);
  margin-bottom: 16px; line-height: 1.7;
}

.pub-link {
  font-size: 0.78rem; color: var(--accent);
  text-decoration: none; font-weight: 600;
  letter-spacing: 0.5px; transition: color 0.2s;
}

.pub-link:hover { color: var(--dark); }

/* === Portfolio Grid === */
.portfolio-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.portfolio-card {
  border: 1px solid #e8e8e8; border-radius: 2px;
  overflow: hidden; transition: all 0.3s;
}

.portfolio-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.portfolio-thumb { height: 180px; }

.portfolio-card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem; font-weight: 600;
  color: var(--dark); padding: 16px 16px 4px;
}

.portfolio-card p {
  font-size: 0.75rem; color: var(--text-light);
  padding: 0 16px 16px; letter-spacing: 0.5px;
}

/* === Blog Grid === */
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-card {
  border: 1px solid #e8e8e8; border-radius: 2px;
  overflow: hidden; background: var(--white);
  transition: all 0.3s;
}

.blog-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transform: translateY(-4px);
}

.blog-thumb { height: 160px; }

.blog-body { padding: 20px; }

.blog-date {
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent); display: block;
  margin-bottom: 8px;
}

.blog-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem; font-weight: 600;
  color: var(--dark); margin-bottom: 10px;
  line-height: 1.4;
}

.blog-card p {
  font-size: 0.82rem; color: var(--text-light);
  line-height: 1.7; margin-bottom: 14px;
}

.blog-read-more {
  font-size: 0.78rem; color: var(--accent);
  text-decoration: none; font-weight: 600;
  letter-spacing: 0.5px; transition: color 0.2s;
}

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

.blog-external-link {
  color: var(--accent); text-decoration: none;
  font-weight: 600;
}

.blog-external-link:hover { text-decoration: underline; }

/* === Contact === */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info p {
  color: #bbb; margin-bottom: 24px;
  font-size: 0.9rem; line-height: 1.7;
}

.contact-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px; font-size: 0.9rem; color: #ccc;
}

#contact-form { display: flex; flex-direction: column; gap: 14px; }

#contact-form input,
#contact-form textarea {
  width: 100%; padding: 14px 16px;
  background: var(--dark2); border: 1px solid #444;
  color: var(--white); font-family: var(--font-body);
  font-size: 0.85rem; border-radius: 2px;
  outline: none; transition: border 0.2s;
}

#contact-form input:focus,
#contact-form textarea:focus { border-color: var(--accent); }

#contact-form textarea { resize: vertical; }

#contact-form .btn { align-self: flex-start; }

/* === Footer === */
footer {
  padding: 24px 0; text-align: center;
  background: var(--dark); border-top: 1px solid #333;
}

footer p {
  font-size: 0.72rem; color: #777;
  letter-spacing: 1px;
}

/* === Animations === */
.fade-up {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* === Responsive === */
@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .pub-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links > li > a { padding: 18px 10px; font-size: 0.68rem; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .nav-links {
    position: fixed; top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: var(--white);
    flex-direction: column; padding: 70px 30px 30px;
    gap: 0; transition: 0.3s;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    align-items: flex-start;
  }

  .nav-links.open { right: 0; }

  .nav-links > li > a { padding: 12px 0; }

  .dropdown {
    position: static; box-shadow: none;
    border: none; padding-left: 16px;
    display: block;
  }

  .hero { flex-direction: column; margin-top: 56px; }
  .hero-left { padding: 60px 30px; min-height: 50vh; }
  .hero-right { padding: 40px 30px; }
  .profile-card { max-width: 100%; }

  .blog-grid { grid-template-columns: 1fr; }
  .domain-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: 1fr; }
  .pub-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .portfolio-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .hero-name { font-size: 2.2rem; }
}
