@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Plus+Jakarta+Sans:wght@300;400;600;800&display=swap');

:root {
  --bg-main: #ffffff;
  --bg-soft: #f8fafc;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --primary: #6366f1;
  /* Indigo */
  --secondary: #06b6d4;
  /* Cyan */
  --accent-grad: linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
  --border: rgba(15, 23, 42, 0.08);
  --glass: rgba(255, 255, 255, 0.8);
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px;
}

/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 25px 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 15px 0;
  background: var(--glass);
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

.nav-menu {
  display: flex;
  gap: 35px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
}

.menu-footer {
  display: none;
}

/* HERO SECTION */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: radial-gradient(circle at 90% 10%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
}

.hero-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.hero-content .hero-title {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -2px;
  color: #f97316;
  /* Coral/Orange like Lauren Hom */
}

.hero-content .hero-title span {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.description {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 20px;
  font-weight: 500;
  line-height: 1.5;
}

.description.secondary {
  font-size: 18px;
  margin-bottom: 40px;
  color: var(--text-main);
  font-weight: 600;
}

.description small {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  font-weight: 400;
}

.hero-image {
  position: relative;
}

.profile-card {
  width: 100%;
  aspect-ratio: 1;
  background: #fff;
  border-radius: 40px;
  padding: 15px;
  box-shadow: var(--shadow-lg);
  transform: rotate(3deg);
  transition: var(--transition);
}

.profile-card:hover {
  transform: rotate(0deg) scale(1.02);
}

.profile-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  cursor: pointer;
}

.cta-buttons {
  display: flex;
  gap: 20px;
}

.btn {
  padding: 16px 36px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
  background: #fff;
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-soft);
  transform: translateY(-5px);
}

/* PROJECTS (Clean Grid) */
.projects {
  padding: 120px 0;
  background: var(--bg-soft);
}

h2 {
  font-size: 42px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 60px;
  letter-spacing: -1px;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.project-card {
  height: 480px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  transition: var(--transition);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.15);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(15, 23, 42, 0.95) 100%);
  z-index: 1;
}

.project-info {
  position: relative;
  z-index: 2;
  color: #fff;
}

.project-info h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.3;
}

.project-info p {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 20px;
}

.view-project-btn {
  background: transparent;
  border: none;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.5px;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.view-project-btn:hover {
  letter-spacing: 1px;
  color: var(--secondary);
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #fff;
  width: 90%;
  max-width: 800px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  transform: scale(0.9);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal.show .modal-content {
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
  color: var(--text-muted);
  line-height: 1;
  transition: var(--transition);
}

.close-modal:hover {
  color: var(--text-main);
  transform: rotate(90deg);
}

.modal-body {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 400px;
}

.modal-image {
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-text {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-text h3 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
  color: var(--text-main);
}

.modal-body.no-image {
  grid-template-columns: 1fr;
  max-width: 600px;
  margin: 0 auto;
}

.view-detail-btn {
  background: transparent;
  border: none;
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  padding: 10px 0;
  transition: var(--transition);
  display: inline-block;
}

.view-detail-btn:hover {
  letter-spacing: 0.5px;
  color: var(--secondary);
}

@media (max-width: 991px) {
  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-image {
    height: 300px;
  }

  .modal-text {
    padding: 40px;
  }

  .modal-text h3 {
    font-size: 24px;
  }
}

/* PROJECTS GRID RESPONSIVENESS */
@media (max-width: 1024px) {
  .projects-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* SERVICES */
.services {
  padding: 120px 0;
  background: #fff;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.service-card {
  padding: 50px 40px;
  background: var(--bg-soft);
  border-radius: 24px;
  border: 1px solid transparent;
  transition: var(--transition);
}

.service-card:hover {
  background: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.service-icon {
  font-size: 32px;
  margin-bottom: 24px;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.service-card h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.service-card p {
  color: var(--text-muted);
}

/* EDUCATION & EXPERIENCE TIMELINE */
.education,
.experience {
  padding: 120px 0;
}

.education {
  background: var(--bg-soft);
}

.experience {
  background: #fff;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 60px;
  position: relative;
}

.timeline-item.left {
  flex-direction: row;
}

.timeline-item.right {
  flex-direction: row-reverse;
}

.timeline-content {
  width: 44%;
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.timeline-dot {
  width: 32px;
  height: 32px;
  background: var(--primary);
  border-radius: 50%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 0 0 5px #fff, 0 0 0 7px var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}

.timeline-item::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 4%;
  height: 0;
  border-top: 2px dotted var(--border);
  z-index: 1;
}

.timeline-item.left::after {
  right: 50%;
  margin-right: 16px;
}

.timeline-item.right::after {
  left: 50%;
  margin-left: 16px;
}

.timeline-content .year {
  display: block;
  font-weight: 800;
  color: var(--primary);
  font-size: 14px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.timeline-content h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.timeline-content .institution {
  display: block;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.timeline-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .navbar {
    padding: 15px 0;
    background: var(--glass);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    display: flex;
    flex-direction: column;
    padding: 100px 40px;
    gap: 30px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu a {
    font-size: 18px;
    color: var(--text-main);
  }

  .menu-footer {
    display: block;
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    opacity: 0.5;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2000;
  }

  .hamburger span {
    width: 28px;
    height: 2px;
    background: var(--text-main);
    transition: 0.3s;
  }

  /* Hamburger to X animation */
  .nav-menu.active~.hamburger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-menu.active~.hamburger span:nth-child(2) {
    opacity: 0;
  }

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

  .container {
    padding: 0 24px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content .hero-title {
    font-size: 38px;
    margin-top: 60px;
    letter-spacing: -1px;
  }

  .hero-content .description {
    font-size: 16px;
    margin: 0 auto 20px;
    max-width: 100%;
  }

  .cta-buttons {
    justify-content: center;
  }

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

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

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .service-card {
    padding: 30px 20px;
  }

  .service-card h3 {
    font-size: 16px;
  }

  .service-card p {
    font-size: 12px;
  }

  .timeline-line {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline-item {
    margin-bottom: 30px;
  }

  .timeline-content {
    width: 40%;
    padding: 15px;
  }

  .timeline-content h3 {
    font-size: 12px;
  }

  .timeline-content p,
  .timeline-content .institution {
    font-size: 10px;
  }

  .timeline-dot {
    width: 24px;
    height: 24px;
    font-size: 10px;
    left: 50%;
  }

  .timeline-item::after {
    width: 6%;
  }
}

/* CONTACT */
.contact {
  padding: 120px 0;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.contact-form {
  background: var(--bg-soft);
  padding: 50px;
  border-radius: 30px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}

/* MOBILE */
@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .cta-buttons {
    justify-content: center;
  }

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

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

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .service-card {
    padding: 30px 20px;
  }

  .service-card h3 {
    font-size: 16px;
  }

  .service-card p {
    font-size: 12px;
  }
}