/* Base Styles */
:root {
  --black: #000000;
  --accent: #D2B48C; /* Tan */
  --cream: #F5F5DC;
  --white: #FFFFFF;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  margin: 0;
  line-height: 1.6;
}

/* Thank You Page Styles */
.thank-you-message {
  text-align: center;
  margin: 100px auto;
  padding: 40px;
  max-width: 500px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: rgba(210, 180, 140, 0.05);
  animation: fadeIn 0.8s ease-out;
}

.thank-you-message h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.thank-you-message p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.thank-you-message a {
  display: inline-block;
  margin-top: 2rem;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid var(--accent);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  transition: all 0.3s;
}

.thank-you-message a:hover {
  background: rgba(210, 180, 140, 0.1);
  transform: translateY(-2px);
}

/* Intro Animation */
.intro-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--black);
  z-index: 100;
  animation: fadeOut 0.8s 1.5s forwards;
}

.hello-world {
  font-size: 5vw;
  font-weight: 700;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeIn 0.8s 0.2s forwards;
  color: var(--accent);
}

.intro-line {
  width: 0;
  height: 2px;
  background: var(--accent);
  animation: grow 1s 0.5s forwards;
}

@keyframes fadeIn { to { opacity: 1; } }
@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }
@keyframes grow { to { width: 20vw; } }

/* Main Content */
main {
  opacity: 0;
  animation: fadeInMain 0.8s 2s forwards;
}

@keyframes fadeInMain { to { opacity: 1; } }

/* Typography */
h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  position: relative;
}

h2:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 60px;
  height: 2px;
  background: var(--accent);
}

h3 {
  font-size: 1.8rem;
  margin: 1rem 0;
}

.accent { color: var(--accent); }

/* Navigation */
nav {
  display: flex;
  justify-content: space-between;
  padding: 3rem 5vw;
  position: sticky;
  top: 0;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 100;
}

.nav-left { font-size: 1.5rem; }

.nav-right a {
  color: var(--white);
  text-decoration: none;
  margin-left: 2rem;
  position: relative;
}

.nav-right a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background: var(--accent);
  transition: width 0.3s;
}

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

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.intro-greeting h2 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.role {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 2rem;
  display: inline-block;
  background: rgba(210, 180, 140, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 50px;
}

.role-slash {
  color: rgba(210, 180, 140, 0.4);
  padding: 0 0.5rem;
}

.intro-pitch .lead {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  position: relative;
  padding-left: 1.5rem;
}

.intro-pitch .lead::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 3px;
  width: 1rem;
  background: var(--accent);
}

.profile-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  border: 2px solid var(--accent);
  box-shadow: 0 4px 20px rgba(210, 180, 140, 0.2);
  transition: transform 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.02);
}

.resume-btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  text-decoration: none;
  margin-top: 2rem;
  transition: all 0.3s;
  border-radius: 50px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.resume-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 0.4s;
  z-index: -1;
}

.resume-btn:hover {
  color: var(--black);
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(210, 180, 140, 0.3);
}

.resume-btn:hover::before {
  width: 100%;
}

/* Experience Section */
#work.section {
  padding-bottom: 4rem;
}

.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 1px solid rgba(210, 180, 140, 0.3);
  margin-top: 2rem;
}

.timeline-item {
  position: relative;
  padding: 0 0 2.5rem 2rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  left: -0.5rem;
  top: 0.4rem;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(210, 180, 140, 0.1);
  transition: all 0.3s ease;
}

.timeline-item:hover::before {
  box-shadow: 0 0 0 6px rgba(210, 180, 140, 0.2);
  transform: scale(1.1);
}

.timeline-item h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
  font-weight: 600;
}

.timeline-item h3 .accent {
  color: var(--accent);
  font-weight: 400;
}

.timeline-item .date {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
  display: inline-block;
  background: rgba(210, 180, 140, 0.1);
  padding: 0.3rem 1rem;
  border-radius: 50px;
  font-family: 'Space Grotesk', sans-serif;
}

.timeline-item ul {
  padding-left: 1.5rem;
  list-style-type: none;
}

.timeline-item li {
  margin-bottom: 0.75rem;
  position: relative;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
}

.timeline-item li::before {
  content: '▹';
  position: absolute;
  left: -1.5rem;
  color: var(--accent);
  font-size: 1.1rem;
}

.timeline-item:hover {
  transform: translateX(5px);
}

/* Education Section */
#education.section {
  padding-bottom: 4rem;
}

.education-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  margin-top: 2rem;
}

.education-main {
  padding: 2rem;
  border-radius: 8px;
  background: rgba(210, 180, 140, 0.03);
  border: 1px solid rgba(210, 180, 140, 0.1);
}

.education-main h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.education-main p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

.education-highlights {
  padding: 2rem;
  border-radius: 8px;
  background: rgba(210, 180, 140, 0.03);
  border: 1px solid rgba(210, 180, 140, 0.1);
}

.education-highlights h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
}

.education-highlights ul {
  padding-left: 1.5rem;
  list-style-type: none;
}

.education-highlights li {
  margin-bottom: 1rem;
  position: relative;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

.education-highlights li::before {
  content: '▹';
  position: absolute;
  left: -1.5rem;
  color: var(--accent);
}

/* Hover effects */
.education-main,
.education-highlights {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.education-main:hover,
.education-highlights:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(210, 180, 140, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .education-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.project-card {
  padding: 2rem;
  border: 1px solid rgba(210, 180, 140, 0.2);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: linear-gradient(
    to bottom right,
    rgba(210, 180, 140, 0.03),
    rgba(0, 0, 0, 0.3)
  );
  position: relative;
  overflow: hidden;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(210, 180, 140, 0.1);
  border-color: var(--accent);
}

.tech {
  color: var(--accent);
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

/* Achievements */
.achievements-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.achievement-card {
  padding: 2rem;
  border: 1px solid rgba(210, 180, 140, 0.2);
  border-radius: 12px;
  transition: all 0.3s;
}

.achievement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(210, 180, 140, 0.1);
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(210, 180, 140, 0.3);
  border-radius: 8px;
  padding: 0.8rem;
  margin-bottom: 1rem;
  color: var(--white);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(210, 180, 140, 0.2);
}

.contact-form textarea { min-height: 150px; }

.contact-form ::placeholder {
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Space Grotesk', sans-serif;
}

.submit-btn {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  transition: all 0.3s;
  align-self: flex-start;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--accent);
  transition: width 0.4s;
  z-index: -1;
}

.submit-btn:hover {
  color: var(--black);
}

.submit-btn:hover::before {
  width: 100%;
}

.contact-info p {
  margin-bottom: 1rem;
}

.clean-link {
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s;
}

.clean-link:hover {
  text-decoration: underline;
  color: var(--white); /* Force white instead of --accent */
}

/* === Phone number link (update to match others) === */
.rajguru-contact-phone-link {
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s;
}

.rajguru-contact-phone-link:hover {
  color: var(--white);
  text-decoration: underline;
}

/* === Remove these entirely (redundant now) === */
a[href^="tel"] {
  color: inherit !important;
  text-decoration: none !important;
}

/* Animations */
.section {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
  padding: 6rem 5vw;
  max-width: 1200px;
  margin: 0 auto;
}

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

.timeline-item {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-item:nth-child(even).visible {
  transition-delay: 0.2s;
}

/* Responsive */
@media (max-width: 768px) {
  .about-grid,
  .education-container,
  .projects-grid,
  .achievements-grid,
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .timeline { width: 90%; }
  
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  
  nav {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .nav-right {
    margin-top: 1.5rem;
  }
  
  .nav-right a {
    margin: 0 1rem 0 0;
  }
  
  .intro-greeting h2 {
    font-size: 2.3rem;
  }
  
  .role {
    font-size: 1.2rem;
  }
  
  .intro-pitch .lead {
    font-size: 1.2rem;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}