:root {
  /* Modern Professional Palette (Navy/Teal/Slate) */
  --primary-color: #3b82f6;
  /* Teal 400 */
  --secondary-color: #8b5cf6;
  /* Teal 700 */
  --bg-color: #f1f5f9;
  /* Slate 50 */
  --text-color: #0f172a;
  /* Slate 700 */
  --heading-color: #0f172a;
  /* Slate 900 */
  --card-bg: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.9);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-color: #e2e8f0;
}

[data-theme="dark"] {
  --primary-color: #d4af37;
  /* Teal 400 */
  --secondary-color: #111111;
  /* Teal 500 */
  --bg-color: #0a0a0a;
  /* Slate 900 */
  --text-color: #cfcfcf;
  /* Slate 300 */
  --heading-color: #e8e8e8;
  /* Slate 100 */
  --card-bg: #1e293b;
  /* Slate 800 */
  --nav-bg: rgba(15, 23, 42, 0.9);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3),
    0 2px 4px -1px rgba(0, 0, 0, 0.18);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.4),
    0 10px 10px -5px rgba(0, 0, 0, 0.2);
  --border-color: #334155;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Outfit", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  transition: background-color 0.3s ease, color 0.3s ease;
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-weight: 700;
  line-height: 1.2;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--nav-bg);
  backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-color);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

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

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

#theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: var(--text-color);
  transition: var(--transition);
  padding: 0.5rem;
  border-radius: 50%;
}

#theme-toggle:hover {
  color: var(--primary-color);
  background-color: rgba(45, 212, 191, 0.1);
  transform: rotate(15deg);
}

.mobile-menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

.mobile-nav {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  background-color: var(--card-bg);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateY(-150%);
  transition: var(--transition);
  z-index: 999;
  box-shadow: var(--shadow);
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav.active {
  transform: translateY(0);
}

.mobile-nav a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  text-align: center;
  padding: 0.8rem;
  border-radius: 0.5rem;
}

.mobile-nav a:hover {
  background-color: rgba(45, 212, 191, 0.1);
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  background: radial-gradient(
      circle at top right,
      rgba(45, 212, 191, 0.1),
      transparent 40%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(15, 23, 42, 0.05),
      transparent 40%
    );
}

.hero-content {
  max-width: 800px;
  animation: fadeIn 1s ease-out;
}

.profile-img-container {
  width: 200px;
  height: 200px;
  margin: 0 auto 2.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: solid var(--secondary-color);
  box-shadow: 0 0 20px rgba(45, 212, 191, 0.3);
  position: relative;
}

.profile-img-container::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.2);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.profile-img:hover {
  transform: scale(1.1);
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  letter-spacing: -1px;
}

.typing-text {
  color: var(--primary-color);
  position: relative;
}

.cursor {
  display: inline-block;
  width: 3px;
  background-color: var(--text-color);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.subtitle {
  font-size: 1.5rem;
  color: var(--text-color);
  opacity: 0.9;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.btn {
  padding: 0.8rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: #ffffff;
  /* Always white text on primary button */
  box-shadow: 0 4px 15px rgba(45, 212, 191, 0.3);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(45, 212, 191, 0.4);
}

.btn-secondary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-secondary:hover {
  background-color: rgba(45, 212, 191, 0.1);
  transform: translateY(-3px);
}

/* Sections */
.section {
  padding: 6rem 2rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
  color: var(--heading-color);
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: "";
  position: absolute;
  width: 60px;
  height: 4px;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  border-radius: 2px;
}

/* About Section & Timeline */
.about-text {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
  font-size: 1.2rem;
  color: var(--text-color);
}

.timeline-section {
  margin-bottom: 4rem;
}

.timeline-title {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--primary-color);
}

.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--border-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
}

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

.timeline-dot {
  position: absolute;
  left: -2.6rem;
  top: 0.5rem;
  width: 1.2rem;
  height: 1.2rem;
  background-color: var(--primary-color);
  border-radius: 50%;
  border: 4px solid var(--bg-color);
  box-shadow: 0 0 0 2px var(--primary-color);
}

.timeline-content {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

.timeline-content h4 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--heading-color);
}

.institution {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.period {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.8;
  margin-bottom: 1rem;
}

.experience-list {
  list-style-position: inside;
  margin-top: 1rem;
}

.experience-list li {
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category {
  background-color: var(--card-bg);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

.skill-category h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.3rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.skill-tags span {
  background-color: rgba(45, 212, 191, 0.1);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.skill-tags span:hover {
  background-color: var(--primary-color);
  color: #ffffff;
  transform: scale(1.05);
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.project-card {
  background-color: var(--card-bg);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.project-img-container {
  width: 100%;
  height: 220px;

  overflow: hidden;
  position: relative;
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-img {
  transform: scale(1.1);
}

.project-content {
  /* padding: 2rem; */
  padding: 1rem 2rem 2rem;
  /* Less top padding */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0rem;
}

.project-card .project-tech {
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-grow: 0;
}

.project-card p {
  margin-bottom: 0rem;
  font-size: 1rem;
  color: var(--text-color);
  flex-grow: 1;
}

.project-card ul {
  flex-grow: 1;
  color: var(--text-color);
  margin-bottom: 0rem;
  padding-left: 1.2rem;
}

.project-links {
  display: flex;
  gap: 1.5rem;
  margin-top: auto;
}

.project-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.project-links a:hover {
  color: var(--primary-color);
}

/* Contact Section */
.contact-content {
  text-align: center;
}

.contact-content p {
  margin-bottom: 3rem;
  font-size: 1.3rem;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-color);
  padding: 2.5rem;
  background-color: var(--card-bg);
  border-radius: 1rem;
  box-shadow: var(--shadow);
  min-width: 220px;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.contact-item:hover {
  transform: translateY(-8px);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-hover);
}

.contact-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
}

.contact-item span {
  font-weight: 500;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 2rem;
  background-color: var(--card-bg);
  margin-top: 4rem;

  font-size: 0.9rem;
  color: var(--text-color);
  border-top: 1px solid var(--border-color);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-btns {
    flex-direction: column;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-dot {
    left: -2.1rem;
  }
}

/* Scroll Reveal Classes */
.hidden {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.revealed {
  opacity: 1;
  transform: translateY(0);
}

.project-card.hidden,
.skill-category.hidden,
.contact-item.hidden {
  transform: translateY(50px);
}
