/* =============================================
   PORTFOLIO - MAIN STYLESHEET
   Color Palette: Deep Navy + Warm Cream + Gold Accent
   Font: Cormorant Garamond (display) + DM Sans (body)
============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* ---- CSS Variables ---- */
:root {
  --navy: #0d1b2a;
  --navy-mid: #1a2e45;
  --navy-light: #243b55;
  --cream: #f5f0e8;
  --cream-dark: #e8e1d3;
  --gold: #c9a84c;
  --gold-light: #e2c27d;
  --white: #ffffff;
  --text-muted: #8a9bb0;
  --card-bg: #111f30;
  --border: rgba(201, 168, 76, 0.2);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
}

/* ---- Reset & Base ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--navy);
  color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }

/* =============================================
   NAVBAR
============================================= */
.navbar {
  background: rgba(13, 27, 42, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  transition: var(--transition);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--gold) !important;
  letter-spacing: 0.5px;
}

.navbar-brand span {
  color: var(--cream);
}

.navbar-nav .nav-link {
  font-family: var(--font-body);
  color: var(--text-muted) !important;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 0.5rem 1.1rem !important;
  transition: var(--transition);
  position: relative;
  text-transform: uppercase;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--gold) !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 60%;
}

.navbar-toggler {
  border-color: var(--border) !important;
  color: var(--gold) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23c9a84c' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* =============================================
   HERO SECTION
============================================= */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #0a1628 100%);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.07) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(36, 59, 85, 0.6) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.2s forwards;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--cream);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.4s forwards;
}

.hero-name .accent {
  color: var(--gold);
  font-style: italic;
}

.hero-role {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--text-muted);
  font-weight: 300;
  font-style: italic;
  margin: 1rem 0;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.8s forwards;
}

.hero-buttons {
  opacity: 0;
  animation: fadeInUp 0.8s ease 1s forwards;
}

.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  opacity: 0;
  animation: fadeInRight 0.8s ease 0.6s forwards;
}

.hero-avatar {
  width: 340px;
  height: 340px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  object-fit: cover;
  border: 3px solid var(--gold);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 60px rgba(201, 168, 76, 0.15);
}

.hero-avatar-fallback {
  width: 340px;
  height: 340px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
  border: 3px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--gold);
  font-weight: 600;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 60px rgba(201, 168, 76, 0.15);
}

.hero-image-wrapper .ring {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  border: 1px solid rgba(201, 168, 76, 0.2);
  animation: rotate 20s linear infinite;
  z-index: 0;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 1s ease 1.5s forwards;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease infinite;
}

/* =============================================
   BUTTONS
============================================= */
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  border: 2px solid var(--gold);
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-gold:hover {
  background: transparent;
  color: var(--gold);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.8rem 2rem;
  border-radius: 4px;
  border: 2px solid var(--gold);
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-outline-gold:hover {
  background: var(--gold);
  color: var(--navy);
}

/* =============================================
   SECTION COMMONS
============================================= */
.section-pad {
  padding: 6rem 0;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.1;
}

.section-divider {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 1.5rem 0 2rem;
}

.section-divider.centered {
  margin: 1.5rem auto 2rem;
}

/* =============================================
   PAGE HEADER (used on inner pages)
============================================= */
.page-header {
  padding: 5rem 0 3rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
}

.page-header-num {
  font-family: var(--font-display);
  font-size: 7rem;
  font-weight: 700;
  color: rgba(201, 168, 76, 0.06);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
}

/* =============================================
   CARDS
============================================= */
.portfolio-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
  height: 100%;
}

.portfolio-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

/* =============================================
   ABOUT PAGE
============================================= */
.about-intro-text {
  font-size: 1.05rem;
  color: var(--cream-dark);
  line-height: 1.9;
}

.about-stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.about-stat:hover {
  border-color: var(--gold);
}

.about-stat-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.about-stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--navy);
}

.timeline-year {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.timeline-school {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cream);
  margin: 0.2rem 0;
}

.timeline-degree {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* =============================================
   SKILLS PAGE
============================================= */
.skill-category-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.skill-bar-wrapper {
  margin-bottom: 1.2rem;
}

.skill-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--cream-dark);
  margin-bottom: 0.4rem;
}

.skill-bar-track {
  background: var(--navy-light);
  border-radius: 4px;
  height: 6px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 4px;
  width: 0%;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: var(--transition);
}

.skill-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
}

.skill-card i {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

.skill-card-name {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--cream-dark);
}

.soft-skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  color: var(--cream-dark);
  transition: var(--transition);
}

.soft-skill-badge:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.soft-skill-badge i {
  color: var(--gold);
  font-size: 0.75rem;
}

.profile-link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  transition: var(--transition);
}

.profile-link-card:hover {
  border-color: var(--gold);
  transform: translateX(6px);
}

.profile-link-card i {
  font-size: 1.5rem;
  color: var(--gold);
  width: 2rem;
  text-align: center;
}

.profile-link-card .plc-info span {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.profile-link-card .plc-info strong {
  font-size: 1rem;
  color: var(--cream);
}

/* =============================================
   PROJECTS PAGE
============================================= */
.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--gold);
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.project-card-thumb {
  height: 200px;
  background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: rgba(201, 168, 76, 0.3);
  position: relative;
  overflow: hidden;
}

.project-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--card-bg));
}

.project-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.project-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.75rem;
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0;
}

.tech-badge {
  font-size: 0.7rem;
  background: rgba(201, 168, 76, 0.1);
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.2);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* =============================================
   CERTIFICATES PAGE
============================================= */
.cert-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.cert-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.cert-thumb {
  height: 160px;
  background: linear-gradient(135deg, #1a2e45, #0d1b2a);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: rgba(201, 168, 76, 0.4);
  position: relative;
  overflow: hidden;
}

.cert-thumb::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(201, 168, 76, 0.15);
  border-radius: 4px;
}

.cert-body {
  padding: 1.25rem;
}

.cert-type {
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}

.cert-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.2rem;
}

.cert-issuer {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Modal */
.cert-modal-img-placeholder {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, var(--navy-light), var(--navy));
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 5rem;
  color: rgba(201, 168, 76, 0.3);
}

.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--cream);
}

.modal-header {
  border-bottom-color: var(--border);
}

.modal-footer {
  border-top-color: var(--border);
}

.btn-close {
  filter: invert(1) sepia(1) saturate(5) hue-rotate(5deg);
}

/* =============================================
   HOBBIES PAGE
============================================= */
.hobby-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.hobby-card:hover {
  border-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.hobby-icon {
  width: 70px;
  height: 70px;
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 1.25rem;
  transition: var(--transition);
}

.hobby-card:hover .hobby-icon {
  background: rgba(201, 168, 76, 0.2);
}

.hobby-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.hobby-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =============================================
   CONTACT PAGE
============================================= */
.contact-form-wrapper {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.form-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.form-control {
  background: var(--navy-light);
  border: 1px solid var(--border);
  color: var(--cream);
  border-radius: 6px;
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-control:focus {
  background: var(--navy-light);
  border-color: var(--gold);
  color: var(--cream);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

.form-control::placeholder {
  color: rgba(138, 155, 176, 0.5);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.contact-info-item:hover {
  border-color: var(--gold);
}

.contact-info-item i {
  font-size: 1.2rem;
  color: var(--gold);
  margin-top: 0.1rem;
}

.contact-info-item span {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 0.1rem;
}

.contact-info-item strong {
  font-size: 0.95rem;
  color: var(--cream);
}

.social-icon-link {
  width: 44px;
  height: 44px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

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

/* =============================================
   FOOTER
============================================= */
.footer {
  background: #08111c;
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-text span {
  color: var(--gold);
}

/* =============================================
   ANIMATIONS
============================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 991px) {
  .hero-image-wrapper {
    margin-top: 3rem;
  }
  .hero-avatar, .hero-avatar-fallback {
    width: 260px;
    height: 260px;
  }
  .hero-image-wrapper .ring {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 767px) {
  .section-pad { padding: 4rem 0; }
  .hero-section { text-align: center; }
  .hero-tagline { margin: 0 auto 2rem; }
  .hero-section::before { display: none; }
  .navbar-nav { padding: 1rem 0; background: var(--navy); }
}
