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

:root {
  --navy:        #0a192f;
  --navy-light:  #112240;
  --navy-card:   #0d2137;
  --green:       #64ffda;
  --green-tint:  rgba(100, 255, 218, 0.1);
  --slate:       #8892b0;
  --slate-light: #a8b2d8;
  --white:       #ccd6f6;
  --white-bright:#e6f1ff;
  --font-mono:   'Fira Code', monospace;
  --font-sans:   'Inter', sans-serif;
  --transition:  all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
  --shadow:      0 10px 30px -10px rgba(2, 12, 27, 0.7);
  --border-radius: 4px;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--navy);
  color: var(--slate);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
ul { list-style: none; }

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1, h2, h3, h4 { color: var(--white-bright); font-weight: 600; }

/* =============================================
   LAYOUT
   ============================================= */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 100px 0;
}

/* =============================================
   NAVBAR
   ============================================= */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  background: rgba(10, 25, 47, 0.92);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

#navbar.scrolled {
  padding: 14px 48px;
  box-shadow: 0 4px 30px rgba(2, 12, 27, 0.6);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 2px;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate-light);
  counter-increment: nav-counter;
}

.nav-links a:hover { color: var(--green); }

.nav-cta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green);
  border: 1px solid var(--green);
  padding: 10px 18px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.nav-cta:hover {
  background: var(--green-tint);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--green);
  font-size: 22px;
  cursor: pointer;
}

/* =============================================
   HERO
   ============================================= */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.hero-content {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--green);
  margin-bottom: 16px;

}

.hero-intro {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--green);
  margin-bottom: 8px;
}

.hero-name {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 700;
  color: var(--white-bright);
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-subtitle {
  font-size: clamp(26px, 4vw, 52px);
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 28px;
  line-height: 1.2;
}

.hero-desc {
  max-width: 100%;
  font-size: 17px;
  line-height: 1.8;
  color: var(--slate);
  margin-bottom: 48px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--green);
  background: transparent;
  border: 1px solid var(--green);
  padding: 16px 32px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--green-tint);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--slate-light);
  background: transparent;
  border: 1px solid var(--slate);
  padding: 16px 32px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  color: var(--white);
  border-color: var(--slate-light);
  transform: translateY(-2px);
}


/* =============================================
   SECTION HEADINGS
   ============================================= */
.section-heading {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 700;
  color: var(--white-bright);
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  white-space: nowrap;
}


.section-number {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--green);
  font-weight: 400;
}

/* =============================================
   ABOUT
   ============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 64px;
  align-items: start;
}

.about-text p {
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.8;
}

.about-text strong { color: var(--white); }

.about-highlights {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.highlight {
  display: flex;
  flex-direction: column;
}

.highlight-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--green);
  font-family: var(--font-mono);
  line-height: 1;
}

.highlight-label {
  font-size: 12px;
  color: var(--slate);
  margin-top: 4px;
  max-width: 100px;
}

.about-image-wrapper {
  display: flex;
  justify-content: center;
}

.about-image-box {
  position: relative;
  width: 220px;
  height: 220px;
}

.about-image-box::after {
  content: '';
  display: block;
  position: absolute;
  top: 14px;
  left: 14px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--green);
  border-radius: 6px;
  transition: var(--transition);
  z-index: 0;
}

.about-image-box:hover::after {
  top: 10px;
  left: 10px;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  background: var(--navy-light);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  border: 1px solid var(--navy-card);
}

.initials {
  font-size: 52px;
  font-weight: 700;
  color: var(--green);
  font-family: var(--font-mono);
  letter-spacing: 4px;
}

/* =============================================
   EXPERIENCE
   ============================================= */
.experience-block {
  background: var(--navy-light);
  border-radius: 8px;
  padding: 40px;
  border: 1px solid rgba(100, 255, 218, 0.08);
  transition: var(--transition);
}

.experience-block:hover {
  border-color: rgba(100, 255, 218, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 4px;
}

.exp-role {
  font-size: 20px;
  font-weight: 600;
  color: var(--white-bright);
}

.exp-company {
  font-size: 18px;
  color: var(--green);
  font-weight: 500;
  margin-top: 2px;
}

.exp-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate);
  white-space: nowrap;
  padding-top: 4px;
}

.exp-location {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.exp-bullets {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 28px;
}

.exp-bullets li {
  position: relative;
  padding-left: 24px;
  font-size: 15px;
  line-height: 1.7;
}

.exp-bullets li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--green);
  font-size: 13px;
  top: 2px;
}

.exp-bullets strong { color: var(--white); }

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.exp-tags span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
  background: var(--green-tint);
  padding: 4px 12px;
  border-radius: 20px;
}

/* =============================================
   PROJECTS
   ============================================= */
.section-subheading {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--slate);
  margin-top: -36px;
  margin-bottom: 48px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.project-card {
  background: var(--navy-light);
  border-radius: 8px;
  padding: 32px;
  border: 1px solid rgba(100, 255, 218, 0.07);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-card:hover {
  border-color: rgba(100, 255, 218, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.project-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--navy-light) 0%, rgba(13, 33, 55, 0.9) 100%);
  border-color: rgba(100, 255, 218, 0.15);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 0;
}

.project-folder-icon {
  position: relative;
  width: 36px;
  height: 36px;
}

.folder-closed,
.folder-open {
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.2s ease;
}

.folder-open {
  opacity: 0;
}

.project-card-header:hover .folder-closed {
  opacity: 0;
}

.project-card-header:hover .folder-open {
  opacity: 1;
}

.project-folder-icon svg {
  width: 36px;
  height: 36px;
  color: var(--green);
}

.project-links-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 20px;
  background: var(--navy);
  color: var(--slate);
  border: 1px solid var(--slate);
}

.project-badge.live {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-tint);
}

.project-link-icon {
  color: var(--slate);
  transition: var(--transition);
}

.project-link-icon:hover { color: var(--green); }

.project-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--white-bright);
}

.project-tagline a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-tagline a:hover {
  opacity: 0.75;
}

.project-tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
  letter-spacing: 0.5px;
}

.project-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate);
  flex-grow: 1;
}

.project-desc strong { color: var(--white); }

.project-tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.project-tech-list span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate-light);
  background: rgba(136, 146, 176, 0.1);
  padding: 3px 10px;
  border-radius: 3px;
}

.project-dates {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--slate);
  margin-top: 4px;
}

/* =============================================
   SKILLS
   ============================================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.skill-category {
  background: var(--navy-light);
  border: 1px solid rgba(100, 255, 218, 0.07);
  border-radius: 8px;
  padding: 28px 32px;
  transition: var(--transition);
}

.skill-category:hover {
  border-color: rgba(100, 255, 218, 0.18);
  transform: translateY(-2px);
}

.skill-cat-title {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--green);
  margin-bottom: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tags span {
  font-size: 13px;
  color: var(--slate-light);
  background: rgba(168, 178, 216, 0.08);
  border: 1px solid rgba(168, 178, 216, 0.15);
  padding: 5px 14px;
  border-radius: 4px;
  transition: var(--transition);
}

.skill-tags span:hover {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-tint);
}

/* =============================================
   EDUCATION
   ============================================= */
.education-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.edu-card {
  background: var(--navy-light);
  border: 1px solid rgba(100, 255, 218, 0.07);
  border-radius: 8px;
  padding: 32px 40px;
  transition: var(--transition);
}

.edu-card:hover {
  border-color: rgba(100, 255, 218, 0.2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 6px;
}

.edu-degree {
  font-size: 17px;
  font-weight: 600;
  color: var(--white-bright);
  margin-bottom: 4px;
}

.edu-school {
  font-size: 15px;
  color: var(--green);
  font-weight: 500;
}

.edu-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
  white-space: nowrap;
  padding-top: 4px;
}

.edu-location {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate);
  margin-top: 4px;
}

/* =============================================
   CONTACT
   ============================================= */
.contact-container {
  text-align: center;
  max-width: 600px;
}

.contact-overline {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--green);
  margin-bottom: 16px;
}

.contact-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: var(--white-bright);
  margin-bottom: 24px;
}

.contact-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--slate);
  margin-bottom: 40px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
}

.social-icon {
  color: var(--slate);
  transition: var(--transition);
  display: flex;
  align-items: center;
  padding: 8px;
}

.social-icon:hover {
  color: var(--green);
  transform: translateY(-3px);
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  text-align: center;
  padding: 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--slate);
  border-top: 1px solid rgba(100, 255, 218, 0.05);
}

footer strong { color: var(--slate-light); }

.footer-sub {
  font-size: 11px;
  margin-top: 6px;
  color: var(--green);
  opacity: 0.6;
}

/* =============================================
   FADE-IN ANIMATION
   ============================================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  #navbar { padding: 16px 24px; }
  #navbar.scrolled { padding: 12px 24px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }

  #hero { min-height: 100vh; }

  section { padding: 70px 0; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image-wrapper { display: none; }

  .exp-header { flex-direction: column; gap: 4px; }

  .projects-grid { grid-template-columns: 1fr; }
  .project-card.featured { grid-column: span 1; }

  .skills-grid { grid-template-columns: 1fr; }

  .edu-header { flex-direction: column; gap: 6px; }

}

@media (max-width: 480px) {
  .hero-name { font-size: 36px; }
  .hero-subtitle { font-size: 22px; }
  .about-highlights { gap: 20px; }
  .highlight-number { font-size: 22px; }
}
