/* ===================================================
   PORTFOLIO – Cool blue-grey palette
   =================================================== */

/* ---------- Variables ---------- */
:root {
  --sky-reflection: #87bcde;
  --dusty-lavender: #805e73;
  --charcoal: #4e4d5c;
  --charcoal-blue: #2d4654;
  --charcoal-blue-2: #243b4a;
  --dark: #243b4a;
  --navy: #2d4654;
  --white: #ffffff;
  --off-white: #e8f1f7;
  --text: #3a3d42;
  --radius: 6px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Montserrat', Arial, sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { text-decoration: none; color: inherit; }

/* ---------- Utility ---------- */
/* Scroll reveal animations */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.scroll-reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.scroll-reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.scroll-reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.scroll-reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}
.scroll-reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}
.btn-primary {
  background: var(--dusty-lavender);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--charcoal);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(128, 94, 115, 0.4);
}
.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--dark);
  transform: translateY(-2px);
}
.btn-sm { padding: 10px 22px; font-size: 0.78rem; }

/* Hash separator – actual //// characters */
.hash-separator {
  margin: 18px 0;
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--charcoal-blue);
  line-height: 1;
  user-select: none;
  overflow: hidden;
  white-space: nowrap;
}
.hash-separator--center { text-align: center; }
.hash-separator--gold {
  color: var(--sky-reflection);
  text-align: center;
}

/* Section common text */
.section-label {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dusty-lavender);
  text-align: center;
}
.section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  text-align: center;
  margin-bottom: 48px;
  color: var(--dark);
}

/* ================= NAVBAR ================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(45, 70, 84, 0.95);
  backdrop-filter: blur(8px);
  padding: 12px 48px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.25);
}
.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 3px;
  color: var(--white);
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: var(--white);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  transition: var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--sky-reflection);
  transition: var(--transition);
}
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--white); border-radius: 2px; }

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: 
    linear-gradient(135deg, rgba(40, 54, 85, 0.92) 0%, rgba(41, 50, 65, 0.95) 50%, rgba(75, 70, 92, 0.90) 100%),
    url('Images/E1 11F4.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: 
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Ccircle cx='50' cy='50' r='2' fill='rgba(255,255,255,0.1)'/%3E%3Ccircle cx='25' cy='75' r='1.5' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='75' cy='25' r='1.5' fill='rgba(255,255,255,0.08)'/%3E%3Ccircle cx='10' cy='30' r='1' fill='rgba(255,255,255,0.06)'/%3E%3Ccircle cx='90' cy='70' r='1' fill='rgba(255,255,255,0.06)'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.6;
}
.hero-deco {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  opacity: 0.12;
  pointer-events: none;
}
.hero-deco--left  { bottom: -120px; left: -100px; background: radial-gradient(circle, var(--sky-reflection), transparent 70%); }
.hero-deco--right { top: -100px; right: -80px;   background: radial-gradient(circle, var(--white), transparent 70%); }
.hero-content { position: relative; z-index: 2; }
.hero-greeting {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 12px;
}
.hero-name {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 16px;
}
.hero-tagline {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  letter-spacing: 3px;
  margin-bottom: 36px;
  min-height: 1.5em;
}
.typing-cursor {
  font-weight: 100;
  color: rgba(255,255,255,0.75);
  animation: blink 1s infinite;
}
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ================= ABOUT ================= */
.about {
  position: relative;
  padding: 100px 48px 80px;
  background: var(--white);
  overflow: hidden;
}

/* Decorative botanical-style background blobs */
.about-bg-deco {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.about-bg-deco::before {
  content: '';
  position: absolute;
  top: -60px; left: -80px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(128, 94, 115, 0.08), transparent 70%);
}
.about-bg-deco::after {
  content: '';
  position: absolute;
  bottom: -40px; right: -60px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(78, 77, 92, 0.07), transparent 70%);
}

.about-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 64px;
  align-items: start;
}

/* Photo */
.about-photo-wrapper {
  position: relative;
}
.about-photo-border {
  position: absolute;
  top: 20px; left: 20px;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--dusty-lavender), var(--charcoal));
  border-radius: var(--radius);
  z-index: 0;
}
.about-photo {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
}
.btn-cv {
  position: relative;
  z-index: 2;
  margin-top: 24px;
  width: 100%;
  text-align: center;
}

/* Text */
.about-text {
  padding-top: 20px;
}
.about-label {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dusty-lavender);
}
.about-name {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 10px;
}
.about-title {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 8px;
}
.about-bold {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: var(--dark);
}
.about-text p { margin-bottom: 14px; }

/* Bottom decorative stripe */
.about-bottom-stripe {
  margin-top: 48px;
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 4px;
  color: var(--sky-reflection);
  line-height: 1;
  user-select: none;
  overflow: hidden;
  white-space: nowrap;
}

/* ================= SKILLS ================= */
.skills {
  padding: 100px 48px;
  background: var(--off-white);
}
.skills-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.skill-card {
  background: var(--white);
  padding: 40px 28px;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: var(--transition);
  text-align: center;
  border-top: 4px solid var(--dusty-lavender);
}
/* Staggered animation delays for skill cards */
.skill-card:nth-child(1) { transition-delay: 0.1s; }
.skill-card:nth-child(2) { transition-delay: 0.2s; }
.skill-card:nth-child(3) { transition-delay: 0.3s; }
.skill-card:nth-child(4) { transition-delay: 0.4s; }
.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(128, 94, 115, 0.15);
}
.skill-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--dusty-lavender);
}
.skill-card h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  color: var(--dark);
}
.skill-card p { font-size: 0.9rem; color: #666; }

/* ================= PROJECTS ================= */
.projects {
  padding: 100px 48px;
  background: var(--white);
}
.projects-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 36px;
}
.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  transition: var(--transition);
  background: var(--white);
}
/* Staggered animation delays for project cards */
.project-card:nth-child(1) { transition-delay: 0.1s; }
.project-card:nth-child(2) { transition-delay: 0.2s; }
.project-card:nth-child(3) { transition-delay: 0.3s; }
.project-card:nth-child(4) { transition-delay: 0.4s; }
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.14);
}
.project-img {
  height: 220px;
  background-size: cover;
  background-position: center;
}
.project-img--contain {
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #fff;
}
.project-body {
  padding: 28px;
}
.project-body h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--dark);
}
.project-body p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 14px;
}
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.project-tags span {
  background: rgba(128, 94, 115, 0.12);
  color: var(--dusty-lavender);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

/* ================= WEB DEVELOPMENT PROJECTS ================= */
.webprojects {
  padding: 100px 48px;
  background: var(--off-white);
}

/* ================= ACADEMIC & RESEARCH PROJECTS ================= */
.academic {
  padding: 100px 48px;
  background: var(--white);
}

.accordion-wrapper {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.accordion-group {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.06);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 28px;
  background: var(--white);
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background var(--transition);
  border-left: 4px solid var(--dusty-lavender);
}
.accordion-header:hover {
  background: var(--off-white);
}

.accordion-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.accordion-title {
  flex: 1;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.3px;
}

.accordion-chevron {
  font-size: 0.7rem;
  color: var(--dusty-lavender);
  transition: transform 0.3s ease;
}

.accordion-group.open .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease, padding 0.3s ease;
  padding: 0 28px;
  border-left: 4px solid transparent;
}

.accordion-group.open .accordion-body {
  max-height: 3000px;
  padding: 8px 28px 28px;
  border-left: 4px solid rgba(128, 94, 115, 0.2);
}

.accordion-project {
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.accordion-project:last-child {
  border-bottom: none;
}

.accordion-project h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--charcoal-blue);
  margin-bottom: 10px;
  line-height: 1.4;
}

.accordion-project ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
}

.accordion-project ul li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 6px;
  line-height: 1.6;
}

.accordion-project ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dusty-lavender);
}

.accordion-media {
  margin: 8px 0 14px;
}

.accordion-media img {
  width: 72%;
  max-width: 520px;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 18px rgba(0,0,0,0.08);
}

.accordion-media figcaption {
  margin-top: 8px;
  font-size: 0.82rem;
  color: #666;
}

.accordion-project a {
  color: var(--dusty-lavender);
  font-weight: 600;
  text-decoration: underline;
  transition: var(--transition);
}
.accordion-project a:hover {
  color: var(--charcoal);
}

/* ================= CONTACT ================= */
.contact {
  padding: 100px 48px;
  background: var(--off-white);
}
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 16px 20px;
  border: 2px solid #ddd;
  border-radius: var(--radius);
  outline: none;
  transition: var(--transition);
  background: var(--white);
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--dusty-lavender);
  box-shadow: 0 0 0 3px rgba(128, 94, 115, 0.15);
}
.contact-form .btn { align-self: center; }

/* ================= FOOTER ================= */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  text-align: center;
  padding: 48px 24px 32px;
}
.footer p { margin-top: 18px; font-size: 0.85rem; }
.footer-socials { margin-top: 14px; display: flex; justify-content: center; gap: 24px; }
.footer-socials a {
  color: rgba(255,255,255,0.55);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: var(--transition);
}
.footer-socials a:hover { color: var(--sky-reflection); }

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-photo-wrapper {
    max-width: 380px;
    margin: 0 auto;
  }
  .navbar { padding: 14px 24px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; right: 0; background: rgba(45,70,84,0.97); padding: 24px 36px; gap: 18px; border-radius: 0 0 var(--radius) var(--radius); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero-name { font-size: clamp(2.4rem, 10vw, 4rem); }
  .about, .skills, .projects, .webprojects, .academic, .contact { padding: 72px 24px; }
}

@media (max-width: 600px) {
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .accordion-media img { width: 100%; }
}

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