/* ===========================
   GOOGLE FONTS IMPORT
   =========================== */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@600;700&display=swap");

/* ===========================
   COLOR VARIABLES
   =========================== */
:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --light-gradient: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  --dark-bg: #0d1117;
  --dark-text: #e6edf3;
  --dark-card: #161b22;
  --dark-border: #30363d;
  --accent-color: #58a6ff;
  --success-color: #3fb950;
}

/* ===========================
   DARK MODE
   =========================== */
body.dark-mode {
  background-color: var(--dark-bg);
  color: var(--dark-text);
}

body.dark-mode .navbar {
  background-color: var(--dark-card) !important;
  border-color: var(--dark-border) !important;
}

body.dark-mode .section {
  background-color: transparent;
}

body.dark-mode .bg-light {
  background-color: var(--dark-card) !important;
}

body.dark-mode .bg-white,
body.dark-mode .card {
  background-color: var(--dark-card) !important;
  border-color: var(--dark-border) !important;
  color: var(--dark-text);
}

body.dark-mode .text-secondary {
  color: #8b949e !important;
}

body.dark-mode .border {
  border-color: var(--dark-border) !important;
}

body.dark-mode .btn-outline-dark {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

body.dark-mode .btn-outline-dark:hover {
  background-color: var(--accent-color);
  color: var(--dark-bg);
}

body.dark-mode .alert-secondary {
  background-color: rgba(88, 166, 255, 0.1);
  border-color: var(--accent-color);
  color: var(--dark-text);
}

/* ===========================
   ENHANCED TYPOGRAPHY
   =========================== */
body {
  font-family: "Inter", sans-serif;
  letter-spacing: 0.3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Playfair Display", serif;
  letter-spacing: -0.5px;
}

.display-5 {
  font-size: 3.5rem;
  line-height: 1.2;
  font-weight: 700;
}

p.lead {
  font-size: 1.15rem;
  line-height: 1.7;
}

/* ===========================
   GRADIENT ACCENTS
   =========================== */
.section-light-gradient {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.05) 0%,
    rgba(118, 75, 162, 0.03) 100%
  );
}

.section-accent {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(102, 126, 234, 0.08) 100%
  );
}

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===========================
   PROFILE IMAGE
   =========================== */
.profile-image {
  width: 280px;
  height: 280px;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 3px solid rgba(102, 126, 234, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.3);
}

body.dark-mode .profile-image {
  border-color: var(--accent-color, rgba(88, 166, 255, 0.3));
}

/* ===========================
   CARD HOVER EFFECTS
   =========================== */
.card,
.rounded-4 {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover,
.rounded-4:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2) !important;
}

body.dark-mode .card:hover,
body.dark-mode .rounded-4:hover {
  box-shadow: 0 20px 50px rgba(88, 166, 255, 0.15) !important;
}

/* ===========================
   BUTTON ENHANCEMENTS
   =========================== */
.btn {
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.btn-dark {
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  border: none;
}

.btn-dark:hover {
  background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn-outline-dark {
  transition: all 0.3s ease;
  border-width: 2px;
}

.btn-outline-dark:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ===========================
   SKILL BADGES
   =========================== */
.badge {
  padding: 0.6rem 1rem;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-block;
}

.badge:hover {
  transform: scale(1.05) translateY(-2px);
}

.badge.text-bg-light {
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%) !important;
}

.badge.text-bg-dark {
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%) !important;
}

/* ===========================
   TIMELINE
   =========================== */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, #667eea, transparent);
}

@media (max-width: 768px) {
  .timeline::before {
    left: 0;
    width: 1px;
  }
}

.timeline-item {
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: var(--primary-gradient);
  border-radius: 50%;
  top: 0;
  z-index: 1;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2);
}

@media (max-width: 768px) {
  .timeline-item::before {
    left: -6px;
  }
}

.timeline-content {
  width: 48%;
  margin-left: auto;
  padding-left: 2rem;
}

@media (max-width: 768px) {
  .timeline-content {
    width: 100%;
    margin-left: 0;
    padding-left: 2rem;
  }

  .timeline-item:nth-child(odd) .timeline-content {
    margin-left: 0;
  }
}

/* ===========================
   TESTIMONIAL CARDS
   =========================== */
.testimonial-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-left: 4px solid var(--primary-gradient);
  padding: 2rem;
  border-radius: 0.75rem;
  position: relative;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.2);
}

body.dark-mode .testimonial-card {
  background: linear-gradient(135deg, var(--dark-card) 0%, #1f2937 100%);
}

.testimonial-card::before {
  content: '"';
  font-size: 3rem;
  color: var(--primary-gradient);
  opacity: 0.2;
  position: absolute;
  top: -10px;
  left: 10px;
}

.testimonial-author {
  font-weight: 600;
  color: #000;
  margin-top: 1rem;
}

body.dark-mode .testimonial-author {
  color: var(--dark-text);
}

.testimonial-role {
  color: #666;
  font-size: 0.9rem;
}

body.dark-mode .testimonial-role {
  color: #8b949e;
}

/* ===========================
   ENHANCED SPACING
   =========================== */
.section {
  padding: 5rem 0;
}

.container {
  max-width: 1200px;
}

.card-body {
  padding: 2.5rem;
}

/* ===========================
   SMOOTH SCROLL FEEDBACK
   =========================== */
.nav-link {
  position: relative;
  overflow: hidden;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: var(--primary-gradient);
  transition: left 0.3s ease;
}

.nav-link:hover::after {
  left: 0;
}

.nav-link.active::after {
  left: 0;
}

/* ===========================
   DARK MODE TOGGLE BUTTON
   =========================== */
.theme-toggle {
  background: none;
  border: 2px solid currentColor;
  color: inherit;
  cursor: pointer;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.theme-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
  transform: scale(1.1);
}

body.dark-mode .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

/* ===========================
   QUICK HIGHLIGHTS CARD
   =========================== */
.highlights-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
  border: 2px solid rgba(102, 126, 234, 0.1);
}

body.dark-mode .highlights-card {
  background: linear-gradient(135deg, var(--dark-card) 0%, #1f2937 100%);
  border-color: rgba(88, 166, 255, 0.2);
}

.highlights-card .list-unstyled li {
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.highlights-card .list-unstyled li:hover {
  padding-left: 0.5rem;
  color: #667eea;
}

body.dark-mode .highlights-card .list-unstyled li:hover {
  color: var(--accent-color);
}

/* ===========================
   SEEKING BANNER
   =========================== */
.seeking-banner {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.08) 100%
  );
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

body.dark-mode .seeking-banner {
  background: linear-gradient(
    135deg,
    rgba(88, 166, 255, 0.1) 0%,
    rgba(88, 166, 255, 0.05) 100%
  );
  border-color: rgba(88, 166, 255, 0.3);
}

/* ===========================
   LOADING & SCROLL ANIMATIONS
   =========================== */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   RESPONSIVE ADJUSTMENTS
   =========================== */
@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }

  .display-5 {
    font-size: 2.5rem;
  }

  p.lead {
    font-size: 1rem;
  }

  .profile-image {
    width: 200px;
    height: 200px;
    margin: 0 auto;
  }
}
