/* ========== VARIABLES (Black & White) ========== */
:root {
  --black: #111111;
  --dark: #1a1a1a;
  --gray-800: #333333;
  --gray-600: #555555;
  --gray-500: #777777;
  --gray-400: #999999;
  --gray-300: #cccccc;
  --gray-200: #e5e5e5;
  --gray-100: #f5f5f5;
  --white: #ffffff;
  --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 6px 24px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --transition: all 0.25s ease;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--black);
}

a {
  text-decoration: none;
  transition: var(--transition);
  color: var(--black);
}

img {
  max-width: 100%;
  height: auto;
}

.section-padding {
  padding: 80px 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.3px;
}

.title-underline {
  width: 40px;
  height: 2px;
  background: var(--black);
  margin: 10px auto 0;
}

/* ========== BUTTONS ========== */
.btn-accent {
  background: var(--black);
  color: var(--white);
  border: none;
  font-weight: 500;
  border-radius: 6px;
  transition: var(--transition);
}

.btn-accent:hover {
  background: var(--gray-800);
  color: var(--white);
}

.btn-outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  color: var(--white);
  background: transparent;
  border-radius: 6px;
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

/* ========== NAVBAR ========== */
.navbar {
  background: transparent;
  padding: 1rem 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: var(--black);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
}

.navbar-brand {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.brand-accent {
  color: var(--white);
  font-weight: 700;
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.4rem 0.85rem !important;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #fff !important;
}

/* ========== HERO ========== */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: var(--black);
  color: var(--white);
  overflow: hidden;
}

.hero-overlay {
  display: none;
}

.hero-greeting {
  color: var(--gray-400);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-name {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: var(--white);
  font-weight: 700;
}

.hero-role {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.75);
}

.hero-role .typed-text {
  color: var(--white);
  font-weight: 600;
  border-bottom: 2px solid var(--gray-400);
  padding-bottom: 2px;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.6);
  max-width: 440px;
  font-size: 0.95rem;
}

.hero-img-wrapper {
  position: relative;
  display: inline-block;
}

.hero-img-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--gray-800);
  border-radius: 12px;
  top: 10px;
  left: 10px;
  z-index: 0;
}

.hero-img {
  position: relative;
  z-index: 1;
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  border: 3px solid rgba(255, 255, 255, 0.15);
}

.social-links {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-radius: 50%;
  font-size: 1rem;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--white);
  color: var(--black);
}

.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-indicator a {
  color: rgba(255, 255, 255, 0.35);
  font-size: 1.3rem;
}

.scroll-indicator a:hover {
  color: var(--white);
}

/* ========== ABOUT ========== */
.about-img-card {
  position: relative;
}

.about-img-card img {
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 360px;
  border-radius: 12px;
  
}

.about-badge {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: var(--black);
  color: var(--white);
  padding: 7px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  font-size: 0.8rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
}

.info-item i {
  font-size: 1.15rem;
  margin-top: 3px;
  color: var(--black);
}

/* ========== SKILLS ========== */
.skill-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  height: 100%;
}

.skill-card:hover {
  box-shadow: var(--shadow);
}

.progress {
  border-radius: 4px;
  background: var(--gray-200);
  height: 6px;
}

.progress-bar {
  border-radius: 4px;
  background: var(--black) !important;
}

.soft-skill-box {
  background: var(--gray-100);
  border-radius: var(--radius);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  padding: 1.2rem;
  text-align: center;
  height: 100%;
}

.soft-skill-box:hover {
  background: var(--white);
  box-shadow: var(--shadow);
}

.soft-skill-box i {
  font-size: 1.5rem;
  color: var(--black);
  margin-bottom: 6px;
}

/* ========== EDUCATION / TIMELINE ========== */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: var(--gray-300);
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -29px;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--black);
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--black);
}

.timeline-content {
  background: var(--white);
  padding: 1.2rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.timeline-content:hover {
  box-shadow: var(--shadow);
}

.timeline-year {
  display: inline-block;
  background: var(--gray-100);
  color: var(--gray-800);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 4px;
  margin-bottom: 6px;
  border: 1px solid var(--gray-200);
}

/* ========== PROJECTS ========== */
.project-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  height: 100%;
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
}

.project-img {
  position: relative;
  overflow: hidden;
  height: 150px;
}

.project-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gray-100);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-body {
  padding: 1.25rem;
}

.project-body h5 {
  margin-bottom: 0.35rem;
  font-size: 1rem;
}

/* ========== CONTACT ========== */
.contact-card {
  background: var(--white);
  padding: 1.5rem 1.2rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  height: 100%;
}

.contact-card:hover {
  box-shadow: var(--shadow);
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--gray-100);
  color: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 1px solid var(--gray-200);
}

.contact-form-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
}

.form-control {
  border-radius: 6px;
  padding: 0.65rem 0.95rem;
  border: 1px solid var(--gray-300);
  transition: var(--transition);
  font-size: 0.95rem;
}

.form-control:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 0.12rem rgba(0, 0, 0, 0.08);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.88rem;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border-radius: 50%;
  margin-left: 6px;
  transition: var(--transition);
}

.footer-social:hover {
  background: var(--white);
  color: var(--black);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 991.98px) {
  .hero-img {
    width: 240px;
    height: 240px;
  }

  .section-padding {
    padding: 60px 0;
  }
}

@media (max-width: 575.98px) {
  .hero-name {
    font-size: 1.9rem;
  }

  .hero-img {
    width: 200px;
    height: 200px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .contact-form-card {
    padding: 1.4rem;
  }

  .navbar-brand {
    font-size: 1.05rem;
  }
}
