:root {
    --primary-color: #222;
    --accent-color: #1e2a38;
    --highlight-color: #ffcc99;
    --text-light: #f5f5f5;
    --text-dark: #222;

    --font-title: 'Poppins', sans-serif;
    --font-body: 'Lato', sans-serif;
    --font-script: 'Parisienne', cursive;
}

/* Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-light); background-color: var(--accent-color); overflow-x: hidden; }
a { color: var(--highlight-color); text-decoration: none; transition: color 0.3s ease; }
a:hover { color: #ffd6ad; }

/* Landing Page */
#landing-page { position: fixed; top:0; left:0; width:100%; height:100vh; display:flex; justify-content:center; align-items:center; background-color:#f5f5f5; z-index:100; transition: opacity 0.8s ease, transform 0.8s ease; }
#landing-page.hidden { opacity:0; transform: translateY(-100%); pointer-events:none; }
.landing-content { text-align:center; position:relative; z-index:3; }
.circle-bg { position:absolute; width:400px; height:400px; border-radius:50%; background-color:var(--highlight-color); left:20%; top:50%; transform:translate(-50%, -50%); opacity:0.7; z-index:1; }
#portfolio-text { font-family: var(--font-title); font-size:10rem; font-weight:800; color:var(--text-dark); position:relative; z-index:4; }
#name-text { font-family: 'Lato', sans-serif; font-size:3.5rem; font-weight:700; color:var(--primary-color); position:relative; z-index:4; margin-top:30px; }

/* Main Content */
#main-content { display:none; overflow-y:auto; padding:0; }
#main-content.active { display:block; height:auto; }

/* Navigation Bar */
.navbar { position: fixed; top: 0; left: 0; width: 100%; text-align: center; padding: 15px 0; background-color: rgba(30, 42, 56, 0.8); backdrop-filter: blur(5px); z-index: 50; transition: top 0.3s ease-in-out; }
.navbar a { color: var(--text-light); font-weight: 600; margin: 0 15px; font-size: 1rem; }
.navbar a:hover { color: var(--highlight-color); }

/* Sections */
.content-section { min-height:100vh; display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:5%; padding: 10% 5%; }
.text-block { flex:1; max-width:500px; text-align:left; }
.image-block { flex:1; max-width:400px; border-radius:10px; overflow:hidden; }
.section-image { width:100%; display:block; border-radius:10px; }
.section-title { font-family: var(--font-title); font-size:3rem; font-weight:700; color:var(--highlight-color); margin-bottom:20px; text-align: left; width: 100%; }
.greeting { font-family: 'Lato', sans-serif; font-weight:300; font-size:2.5rem; color:var(--highlight-color); margin-bottom:10px; }
#about .text-block { max-width: 600px; }
#about .section-title { margin-bottom: 20px; }
#about .text-block p { line-height: 1.6; }

/* Education Section */
#education {
  min-height: 50vh;
}
#education .section-title {
  text-align: center;
  margin-bottom: 40px;
}

/* Timeline Container */
.timeline-container {
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}

/* Remove vertical line */
/* (deleted the ::before line styling) */

/* Timeline Entry */
.timeline-entry {
  position: relative;
  margin-bottom: 60px;
  display: flex;
  align-items: flex-start;
}

/* Diamond Date Node */
.timeline-date {
  position: absolute;
  left: -5px;
  top: 20px;   /* ✅ add this */
  background: var(--highlight-color);
  color: var(--text-dark);
  font-weight: 700;
  padding: 10px 20px;
  transform: rotate(45deg);
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}


.timeline-date span {
  transform: rotate(-45deg);
  display: block;
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.2;
}

/* Content Box */
.timeline-content {
  margin-left: 120px;
  background: var(--primary-color);
  padding: 20px 25px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  flex: 1;
}

.education-entry-main {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.edu-icon {
  font-size: 22px;
  margin-right: 12px;
  color: var(--highlight-color);
}

/* Responsive */
@media (max-width: 768px) {
  .timeline-container {
    padding-left: 30px;
  }
  .timeline-date {
    width: 70px;
    height: 70px;
    font-size: 0.7rem;
  }
  .timeline-content {
    margin-left: 100px;
  }
}


/* Responsive */
@media (max-width: 768px) {
  .timeline-container {
    padding-left: 30px;
  }
  .timeline-date {
    width: 70px;
    height: 70px;
    font-size: 0.7rem;
  }
  .timeline-content {
    margin-left: 100px;
  }
}
/* Extra Curricular Activities Section */
#activities {
  min-height: 50vh;
}
#activities .section-title {
  text-align: center;
  margin-bottom: 40px;
}

/* Activity Container */
.activities-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Activity Entry */
.activity-entry {
  display: flex;
  align-items: flex-start;
  background: var(--primary-color);
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-entry:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

/* Icon */
.activity-icon {
  font-size: 28px;
  margin-right: 18px;
  color: var(--highlight-color);
}

/* Content */
.activity-content h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--highlight-color);
}

.activity-content p {
  margin: 4px 0;
  font-size: 0.95rem;
  color: var(--text-light);
}


/* Skills */
#expertise .section-title { text-align: center; }
#expertise .text-block { max-width: 600px; text-align: left; }
.skills-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 15px; }
.skill-badge { background-color: var(--primary-color); padding: 10px 15px; border-radius: 20px; font-weight: 600; font-size: 0.9rem; }

/* Projects */
#projects .section-title { text-align: center; }
#projects .text-block { max-width: 600px; text-align: left; }
.project-entry { background-color: var(--primary-color); padding:25px; border-radius:10px; margin-bottom:25px; box-shadow:0 4px 10px rgba(0,0,0,0.2); transition:transform 0.3s ease; }
.project-entry:hover { transform:translateY(-5px); }
.project-title { display:flex; align-items:center; font-family: var(--font-title); font-size:1.5rem; font-weight:600; margin-bottom:15px; }
.project-icon { font-size:24px; margin-right:15px; color:var(--text-light); }
.project-desc { font-size:0.95rem; line-height:1.5; padding-left:39px; margin:0; }
.project-desc a { display:block; margin-top:10px; padding-left:0; }
.project-desc .project-github { font-size: 1.2rem; margin-right: 5px; }

/* Contact Section - Centered & Column-aligned */
#contact .text-block {
    max-width: 500px; /* smaller width for better centering */
    text-align: left;
    margin: 0 auto; /* center the whole block */
    display: flex;
    flex-direction: column;
    gap: 15px; /* space between entries */
}

.contact-entry {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    gap: 15px; /* space between icon and text */
}

.contact-entry img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1); /* white icons */
    flex-shrink: 0;
}

.contact-entry a {
    color: var(--text-light);
}

.contact-entry a:hover {
    color: var(--highlight-color);
}

/* Mobile adjustments */
@media (max-width:480px) {
    #contact .text-block {
        text-align: center;
    }
    .contact-entry {
        justify-content: center;
    }
}
//* Thank You Section */
#thank-you {
    min-height: 50vh;                /* same as other sections */
    display: flex;                   /* enable flexbox */
    justify-content: center;         /* center horizontally */
    align-items: center;             /* center vertically */
    text-align: center;
    background-color: var(--accent-color); /* optional: same as other sections */
    padding: 50px 20px;
}

#thank-you .thank-you {
    font-family: var(--font-script); /* fancy script font */
    font-size: 3rem;
    color: var(--highlight-color);
    max-width: 500px;                /* optional: prevent text from being too wide */
    margin: 0 auto;
}


/* Responsive */
@media (max-width:768px) {
    #portfolio-text { font-size:5rem; }
    #name-text { font-size:2rem; }
    .circle-bg { width:250px; height:250px; left:50%; transform:translate(-50%, -50%); }
    .content-section { flex-direction: column; text-align: center; padding: 10% 5%; }
    .text-block, .image-block { max-width: 100%; text-align: center; }
    .section-title { margin-top: 50px; text-align: center; }
    .timeline-entry { flex-direction: column !important; }
    .timeline-entry:nth-child(even) .timeline-item { flex-direction: column !important; }
    .timeline-entry:not(:last-child)::after { left: 50%; }
    .education-details { margin: 20px 0; }
    .skills-container { justify-content: center; }
.timeline-date {
  width: 70px;
  height: 70px;
  font-size: 0.7rem;
  top: 15px;   /* ✅ adjust lower for mobile */
  left: -2px;  /* ✅ optional: keeps closer to content */
}
}
@media (max-width:480px) {
    #portfolio-text { font-size:3rem; }
    #name-text { font-size:1.5rem; }
    .circle-bg { width:180px; height:180px; left:50%; transform:translate(-50%, -50%); }
    .contact-entry { justify-content: center; }
    .skills-container { flex-direction: column; }

}
