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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  font-size: 16px;
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 25%, #2d2d2d 50%, #1a1a1a 75%, #000000 100%);
  background-attachment: fixed;
  color: #f5f5f5;
  padding-top: 140px; /* Offset for sticky header - desktop */
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}

/* ===================== TYPOGRAPHY ===================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@500;700;900&display=swap');

h1, h2, h3 {
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.03em;
  text-shadow: 
    0 0.25px 0.25px rgba(255, 215, 0, 0.3),
    0 0.5px 0.5px rgba(255, 215, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.8);
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 2.4rem;
  line-height: 1.2;
}

h2 {
  font-size: 1.8rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.4rem;
  line-height: 1.4;
}

/* ===================== STICKY HEADER STYLES ===================== */
.sticky-header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.95);
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  z-index: 1000;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.8),
    0 0 40px rgba(255, 215, 0, 0.1);
  padding: 1rem 0;
  backdrop-filter: blur(15px);
  text-align: center;
}

.name-header {
  font-size: 2.5rem;
  font-weight: 900 !important;
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ffffff, #ffd700, #ffb700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  text-align: center;
}

/* ===================== NAVIGATION ===================== */
nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
  gap: 1.2rem;
  margin-top: 1rem;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #d4d4d4;
  font-size: 1rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

nav a:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: rgba(255, 215, 0, 0.3);
  color: #ffffff;
  transform: translateY(-1px);
}

/* ===================== ABOUT SECTION LAYOUT ===================== */
.about-container {
  display: flex;
  gap: 3rem;
  align-items: center;
  margin: 3rem 0;
}

.about-text {
  flex: 1;
  max-width: 600px;
}

.about-text p {
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #d4d4d4;
}

.profile-photo {
  width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.8),
    0 0 60px rgba(255, 215, 0, 0.3);
  border: 3px solid rgba(255, 215, 0, 0.5);
}

/* ===================== ENHANCED PROJECT CARDS ===================== */
.project-card,
.work-item {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 16px;
  padding: 1.8rem;
  transition: all 0.4s ease;
  cursor: default;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.project-card:hover,
.work-item:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.8),
    0 0 80px rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.5);
  background: rgba(0, 0, 0, 0.8);
}

.project-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-content h3 {
  margin-bottom: 1rem;
  color: #ffffff;
}

.project-content p {
  margin-bottom: 0.8rem;
  flex-grow: 1;
  color: #d4d4d4;
}

/* Enhanced project links with black and gold styling */
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  background: linear-gradient(135deg, #ffd700, #ffb700);
  color: #000000 !important;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  align-self: flex-start;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
  border: 1px solid rgba(255, 215, 0, 0.3);
}

.project-link:hover {
  background: linear-gradient(135deg, #ffb700, #ff8c00);
  transform: translateY(-3px);
  box-shadow: 
    0 8px 25px rgba(255, 215, 0, 0.5),
    0 0 30px rgba(255, 215, 0, 0.3);
  border-color: rgba(255, 215, 0, 0.7);
}

.project-link i {
  font-size: 1rem;
}

/* Status indicators for projects without external links */
.project-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.8rem 1.5rem;
  background: rgba(0, 0, 0, 0.8);
  color: #ffd700;
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  align-self: flex-start;
}

.project-status i {
  font-size: 1rem;
  color: #ffb700;
}

/* ===================== GRIDS ===================== */
.projects-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ===================== LAYOUT ===================== */
main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

section {
  margin: 4rem 0;
}

/* ===================== WORK EXPERIENCE ===================== */
.experience {
  display: grid;
  gap: 2rem;
}

.work-item h2 {
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.work-item ul {
  padding-left: 1.2rem;
  list-style: disc;
  margin-top: 0.5rem;
  color: #d4d4d4;
}

.work-item p {
  color: #d4d4d4;
}

/* ===================== CONTACT SECTION ===================== */
.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.contact-card {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 215, 0, 0.2);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 16px 50px rgba(0, 0, 0, 0.8),
    0 0 60px rgba(255, 215, 0, 0.2);
  border-color: rgba(255, 215, 0, 0.5);
  background: rgba(0, 0, 0, 0.8);
}

.contact-icon {
  font-size: 2.5rem;
  color: #ffd700;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.contact-card h3 {
  color: #ffffff;
}

.contact-link {
  display: block;
  color: #d4d4d4;
  font-size: 1.1rem;
  text-decoration: none;
  margin-top: 1rem;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: #ffd700;
}

.profile-links {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.profile-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 215, 0, 0.2);
  color: #d4d4d4;
  text-decoration: none;
  transition: all 0.3s ease;
}

.profile-link:hover {
  background: linear-gradient(135deg, #ffd700, #ffb700);
  color: #000000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.profile-link i {
  width: 25px;
  text-align: center;
}

/* ===================== FOOTER ===================== */
footer {
  border-top: 1px solid rgba(255, 215, 0, 0.3);
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  padding: 3rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #ffd700;
}

/* ===================== DESKTOP MEDIA QUERIES ===================== */
@media (min-width: 1024px) {
  h1 {
    font-size: 2.4rem;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .experience {
    grid-template-columns: 1fr;
  }
}

/* ===================== MOBILE/TABLET MEDIA QUERIES ===================== */
@media (max-width: 768px) {
  /* Adjust body padding for smaller header */
  body {
    padding-top: 70px;
  }

  /* Optimize sticky header for mobile */
  .sticky-header {
    height: 70px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.98);
  }

  /* Reduce header text size */
  .name-header {
    font-size: 1.8rem;
    margin-bottom: 0;
    text-align: center;
  }

  /* Hide navigation on mobile */
  nav {
    display: none;
  }

  /* Adjust about section for mobile */
  .about-container {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    margin: 2rem 0;
  }

  /* Resize profile photo */
  .profile-photo {
    width: 180px;
    height: 180px;
  }

  /* Single column layouts for mobile */
  .projects-grid,
  .experience,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  /* Section spacing */
  section {
    margin: 2.5rem 0;
  }

  /* Typography adjustments */
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  /* Contact section adjustments */
  .contact-container {
    padding: 2rem 1rem;
  }

  .contact-card {
    padding: 1.5rem 1rem;
  }

  /* Mobile project link adjustments */
  .project-link {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
  }
}
