:root {
  --primary-blue: #2563EB;
  --secondary-blue: #1E3A8A;
  --accent-blue: #3B82F6;
  --orange: #F59E0B;

  --white: #ffffff;
  --light-gray: #F3F4F6;
  --text-muted: #9CA3AF;
  --black-soft: rgba(0, 0, 0, 0.7);

  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-blur: blur(10px);
  --shadow-light: rgba(0, 0, 0, 0.05);
  --shadow-medium: rgba(0, 0, 0, 0.15);

  --navbar-bg: rgba(255, 255, 255, 0.15); 
  --navbar-blur: blur(12px);

  /* Text and Links */
  --navbar-gradient-start: #1E3A8A;
  --navbar-gradient-end: #2563EB;

  --navbar-link: #ffffff;
  --navbar-link-hover: #F59E0B;

  --navbar-button-bg: #ffffff;
  --navbar-button-text: #2563EB;
  --navbar-button-hover: #f3f4f6;

  --navbar-shadow: rgba(0, 0, 0, 0.1);
}

*{
    margin: 0;
    padding: 0;
}

body{
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden; /* Prevents horizontal scrollbars from off-screen animated content */
}

.navbar-nav .nav-link {
  font-weight:500; 
  font-size: 1rem;
  color: var(--navbar-link);
  transition: color 0.3s ease;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--navbar-link-hover);
  transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}
.navbar {
  background: linear-gradient(
    135deg,
    #003F8F 0%,
    #005FD8 50%,
    #3FA9F5 85%,
    #F59E0B 100%
  );
  border-bottom-left-radius: 1rem;
  border-bottom-right-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.navbar-nav .nav-link:hover {
  color: var(--navbar-link-hover);
}

.navbar-brand {
    font-family: 'Great Vibes', cursive;
    font-size: 30px;
    font-weight: 600; 
}

.hero {
  background-image: url('/img/Whisk_b9184a4b86.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  min-height: 100vh;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
  display: flex;
  border-bottom-left-radius:1rem;
  border-bottom-right-radius:1rem;
  box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
}

.hero-content {
  max-width: 700px;
  color: var(--white);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.6;
}

.highlight {
  color: var(--orange);
  font-weight: 600;
}

.btn-orange {
  background-color: var(--orange);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  border: none;
}

.btn-orange:hover {
  background-color: #d97706; 
  color: white;
  box-shadow: 0 4px 12px var(--glass-bg);
}

.about-section {
  color: black;
  padding: 5rem 2rem;
  text-align: center;
  position: relative; /* This is the key for transform animations */
}

.about-section .container {
  max-width: 960px;
  margin: 0 auto;
}

.about-section h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.about-section p {
  font-size: 1.2rem;
  line-height: 1.8;
}

.about-section .highlight {
  color: #F59E0B;
  font-weight: 600;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(
    135deg,
    #003F8F 0%,
    #005FD8 50%,
    #3FA9F5 85%,
    #F59E0B 100%
  );
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(19, 49, 183, 0.2);
}

.intro-text {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    line-height: 1.8;
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(
    135deg,
    #003F8F 0%,
    #005FD8 50%,
    #3FA9F5 85%,
    #F59E0B 100%
    );
    border-radius: 15px;
    color: white;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.education-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(19, 49, 183, 0.2);
    margin-top: 2rem;
}

.education-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.education-institution {
    color: #667eea;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.education-year {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.skills-section {
  background: linear-gradient(135deg, #003F8F, #005FD8);
  color: white;
  padding: 5rem 2rem;
  text-align: center;
  box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
  position: relative; /* This is the key for transform animations */
  border-radius:1rem;
}

.skills-section h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
}

.skills-subheading {
  font-size: 1.75rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: #F59E0B;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto 3rem;
}

.skill-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.skill-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.skill-card i {
  font-size: 2rem;
  color: #F59E0B;
  margin-bottom: 0.75rem;
}

.skill-card p {
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
}

.projects-section {
  color: #0f172a;
  padding: 5rem 2rem;
  text-align: center;
}

.projects-section h2 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 3rem;
  color: #1e3a8a;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.project-card {
  background: white;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.project-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 0.75rem;
}

.project-description {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tags span {
  background: #e0f2fe;
  color: #1e3a8a;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
}

.contact-section {
  background: var(--primary-blue);
  color: white;
  padding: 5rem 2rem;
  text-align: center;
  box-shadow: rgba(0, 0, 0, 0.56) 0px 22px 70px 4px;
  border-radius:1rem;
}

.contact-section h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
}

.contact-intro {
  font-size: 17px;
  font-weight: 200px;
  max-width: 500px;
  margin: 0 auto 2.5rem;
  color: var(--orange);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border-radius: 0.5rem;
  border: none;
  outline: none;
  font-size: 1rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: black;
}

.contact-form input,
.contact-form textarea {
  background: var(--light-gray);
  color: var(--text-muted);
}

.contact-form button {
  width: fit-content;
  margin: 0 auto;
}

.quick-contact {
  margin-top: 3rem;
  color: white;
  font-size: 0.95rem;
}

.quick-contact i {
  color: #f59e0b;
  margin-right: 0.5rem;
}

/* --- Animation Base Styles --- */
.hidden {
  opacity: 0;
}

/* --- Animation Final State --- */
.show {
  opacity: 1;
  transform: translateX(0) translateY(0); /* Resets any transform */
}

/* --- Animation Types --- */

/* For staggered cards (slide up) */
.slide-in {
  transform: translateY(40px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  /* The JS will set this custom property for the stagger effect */
  transition-delay: var(--stagger-delay, 0ms);
}

/* For the 'About' section */
.slide-in-left {
  transform: translateX(0);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* For the 'Skills' section */
.slide-in-right {
  transform: translateX(0);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* For 'Projects' and 'Contact' sections */
.fade-in {
  transition: opacity 1s ease-in, filter 1s ease-in;
}

.navbar.scrolled {
  background: linear-gradient(
    135deg,
    #003F8F 0%,
    #005FD8 50%,
    #3FA9F5 85%,
    #F59E0B 100%
  );
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}
