@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@600;700&family=Inter:wght@400;500&display=swap');

:root {
  /* Colors from specification */
  --primary: #7C3AED;
  --primary-dark: #6D28D9;
  --primary-light: #F5F3FF;
  --bg: #F9FAFB;
  --text-muted: #6B7280;
  
  /* Additional UI colors for light mode */
  --surface: #FFFFFF;
  --border: #E5E7EB;
  --text-main: #111827;
}

* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

html { 
  scroll-behavior: smooth; 
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { 
  font-family: 'Manrope', sans-serif; 
}

a { 
  color: var(--primary); 
  text-decoration: none; 
}

a:hover { 
  text-decoration: underline; 
}

/* --- Hero Section (The Mockup part) --- */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg); /* Light background instead of galaxy */
}

.mockup-box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 500px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  border: 1px solid #D1D5DB;
}

.box {
  background: var(--surface);
  border: 1px solid var(--border);
  width: 100%;
  text-align: center;
  border-radius: 4px;
}

.name-box { 
  padding: 16px; 
}
.name-box h1 { 
  font-weight: 700; 
  font-size: 2rem; 
  letter-spacing: -0.02em;
}

.desc-box { 
  padding: 12px; 
}
.desc-box p { 
  color: var(--text-muted); 
  font-size: 0.95rem; 
}

.nav-menu {
  display: flex;
  gap: 10px;
  width: 100%;
  justify-content: center;
  padding: 15px;
  background: transparent;
  border: 1px solid #D1D5DB;
  border-radius: 4px;
  flex-wrap: wrap;
}

.btn {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 8px 16px;
  background: var(--surface);
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn:hover {
  background: #F3F4F6;
  text-decoration: none;
}

.btn.primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

.btn.primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}


/* --- Below Fold Sections --- */
.section {
  padding: 100px 20px;
  border-bottom: 1px solid var(--border);
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

.section h2 {
  font-weight: 600;
  font-size: 1.8rem;
  margin-bottom: 30px;
  color: var(--primary);
}

.section p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Timeline */
.timeline {
  list-style: none;
}

.timeline li {
  margin-bottom: 30px;
  padding-left: 20px;
  border-left: 2px solid var(--border);
}

.timeline strong {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-main);
}

.timeline .date {
  font-size: 0.85rem;
  color: var(--primary);
}

.timeline p {
  margin-top: 8px;
  font-size: 0.95rem;
}

/* Contact Links */
.contact-links {
  list-style: none;
  margin-top: 20px;
}

.contact-links li {
  margin-bottom: 10px;
  color: var(--text-muted);
}

/* Footer */
footer {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Projects Page --- */
.header {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.header-inner {
  max-width: 1000px;
  margin: 0 auto;
  min-height: 60px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-main);
}

.header-nav {
  display: flex;
  gap: 10px;
}

.main-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 60px 20px 100px;
}

.page-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.page-subtitle {
  color: var(--text-muted);
  margin-bottom: 40px;
}

.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 6px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: #F3F4F6;
  color: var(--text-main);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.card-badge {
  font-size: 0.75rem;
  color: var(--primary);
  text-transform: uppercase;
  font-weight: 500;
}

.card-year {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.card-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  flex-grow: 1;
}

.card-footer {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-tech {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-link {
  font-size: 0.9rem;
  font-weight: 500;
}

/* --- Contact Page --- */
.contact-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  font-weight: 400;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  color: var(--text-main);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.contact-form .btn {
  align-self: flex-start;
  cursor: pointer;
}

.form-status {
  color: var(--primary);
  font-size: 0.9rem;
}

.contact-layout .contact-links {
  margin-top: 0;
}

@media (max-width: 700px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* --- Phone navbar --- */
@media (max-width: 700px) {
  .header-inner {
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
  }

  .header-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .header-nav .btn,
  .nav-menu .btn {
    padding: 6px 12px;
    font-size: 0.85rem;
  }

  .mockup-box {
    width: calc(100% - 32px);
    padding: 20px;
  }
}
