/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  scroll-behavior: smooth;
}

body {
  background: #0f172a;
  color: #f1f5f9;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

a {
  color: #38bdf8;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  padding: 2rem;
}

.avatar-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  max-width: 400px;
  margin: auto;
}

.avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 2px solid #94a3b8;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.hero p {
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.social-icons a {
  color: #38bdf8;
  margin: 0 0.5rem;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #0ea5e9;
}

.cta-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  background-color: #38bdf8;
  color: #0f172a;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background-color: #0ea5e9;
}

/* Section Titles */
section h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-align: center;
}

/* About Section */
.about {
  padding: 4rem 1rem;
  background-color: #1e293b;
  text-align: center;
}

.about-card {
  max-width: 700px;
  margin: auto;
  background-color: #0f172a;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.skills .chip {
  display: inline-block;
  background-color: #334155;
  color: #f1f5f9;
  padding: 0.4rem 0.8rem;
  margin: 0.3rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

.skill-icon {
  font-size: 2.2rem;
  margin: 0.4rem;
  transition: transform 0.2s ease;
  cursor: default;
}

.skill-icon:hover {
  transform: scale(1.2);
}


.resume-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.6rem 1.2rem;
  background-color: #38bdf8;
  color: #0f172a;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
}

.resume-button:hover {
  background-color: #0ea5e9;
}

/* Projects Section */
.projects {
  padding: 4rem 1rem;
  background-color: #1e293b;;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: auto;
}

.project-card {
  background-color: #1e293b;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-card h3 {
  margin-bottom: 0.5rem;
}

.project-card a {
  display: inline-block;
  margin-top: 0.5rem;
  color: #38bdf8;
  text-decoration: none;
  font-weight: bold;
}

.timeline {
  position: relative;
  margin: 2rem auto;
  padding: 0 1rem;
  max-width: 900px;
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 2.5rem;
  border-left: 2px solid #38bdf8;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.timeline-dot {
  position: absolute;
  top: 0.4rem;
  left: -0.5rem;
  width: 1rem;
  height: 1rem;
  background-color: #38bdf8;
  border-radius: 50%;
  box-shadow: 0 0 0 4px #0f172a;
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.timeline-dot.visible {
  opacity: 1;
  transform: scale(1.2);
}

.timeline-content {
  background-color: #0f172a;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  color: #f1f5f9;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  border-radius: 1rem;
}

.timeline-content {
  transform: translateY(-5px);
}

.timeline-content h4 {
  margin: 0;
  font-size: 1.2rem;
  color: #e0f2fe;
}

.timeline-content .timeline-date {
  display: block;
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.timeline-content ul {
  padding-left: 1.2rem;
  list-style: disc;
}

.timeline-content ul li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}


/* Experience Section */
.experience {
  padding: 4rem 1rem;
  background-color: #0f172a;
}

.experience-timeline-content {
  background-color: #1e293b;
}

.timeline-entry {
  max-width: 700px;
  margin: 1rem auto;
  padding: 1.5rem;
  background-color: #0f172a;
  border-left: 4px solid #38bdf8;
  border-radius: 0 1rem 1rem 0;
}

/* Contact Section */
.contact {
  padding: 4rem 1rem;
  background-color: #0f172a;
  text-align: center;
}

.contact-form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 0.5rem;
  background-color: #1e293b;
  color: #f1f5f9;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-button {
  padding: 0.6rem 1.2rem;
  background-color: #38bdf8;
  color: #0f172a;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
}

.submit-button:hover {
  background-color: #0ea5e9;
}

/* Footer */
.footer {
  background-color: #1e293b;
  text-align: center;
  padding: 2rem 1rem;
  color: #94a3b8;
}

.footer-links a {
  color: #38bdf8;
  margin: 0 0.5rem;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.5rem;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }
}
