:root {
  --primary: #5b21b6;
  --secondary: #9333ea;
  --accent: #22d3ee;

  --bg: #f0f0f0;
  --bg-dark: #0b0c10;

  --text: #111;
  --text-light: #e5e7eb;
  --text-muted: #9ca3af;

  --card-bg: #111321;
  --border: rgba(255,255,255,0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  background-color: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

header {
  background: var(--primary);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--accent);
}

/* .section {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: auto;
} */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.home {
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to right, #f0f9ff, #e0f7fa);
  padding: 2rem;
}

.home-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center; /* optional: center horizontally */
}

.intro-text {
  flex: 1;
  display: flex;
  flex-direction: column; /* stack elements vertically */
  align-items: flex-start; /* left align; change to center if you want */
}

#welcome-message {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 0.5rem;
  font-weight: 500;
  animation: fadeIn 1s ease-in;
}

.home h1 {
  font-size: 2.5rem;
  color: var(--primary);
}

.home h1 span {
  color: var(--accent);
}

.tagline {
  font-size: 1.1rem;
  color: #555;
  max-width: 600px;
}

.profile-photo {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-photo img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* for resume */
/* Ensure resume button is block-level and separated */
/* Resume Button */
.resume-btn {
  display: inline-block;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem; /* more space between resume and CTA buttons */
  padding: 0.8rem 1.6rem;
  background-color: var(--primary);
  color: #fff;
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* to enable resume button just remove this  */
.resume-btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}
.resume-btn:hover:not(.disabled) {
  background-color: var(--accent);
  transform: translateY(-3px);
}
/* upto  here */


.resume-btn:hover {
  background-color: var(--accent);
  transform: translateY(-3px);
}

/* CTA Buttons */
.home .cta-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem; /* space before social links */
}

/* Align intro text vertically and horizontally */
.home .intro-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* change to center if needed */
}

/* Individual CTA buttons */
.home .cta-buttons .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Primary Button */
.home .cta-buttons .primary-btn {
  background-color: var(--primary);
  color: #fff;
  border: none;
}

.home .cta-buttons .primary-btn:hover {
  background-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* Secondary Button */
.home .cta-buttons .secondary-btn {
  background-color: #f0f0f0;
  color: var(--primary);
  border: 2px solid var(--primary); /* added border */
  transition: all 0.3s ease;
}

.home .cta-buttons .secondary-btn:hover {
  border: var(--primary);
  background-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.home .cta-buttons .secondary-btn:hover span,
.home .cta-buttons .secondary-btn:hover i {
  color: #fff;
}

/* Button Icons */
.home .cta-buttons .btn i {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.home .cta-buttons .btn:hover i {
  transform: translateX(4px);
}


/* Social Links */
.home .social-links {
  display: flex;
  gap: 12px;
}

.home .social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15); /* slightly dark glass */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #494747;  /* white now visible on dark background */
  font-size: 1.2rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.home .social-links a:hover {
  background-color: var(--primary);
  color: #fff;
  transform: translateY(-3px);
}


/* Responsive */
@media (max-width: 768px) {
  .home .home-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .home .intro-text {
    align-items: center;
  }

  .home .cta-buttons {
    justify-content: center;
  }

  .home .social-links {
    justify-content: center;
  }

  .profile-photo {
    margin-top: 2rem;
  }
}


/* ========================
   About Section
======================== */
.about {
  padding: 4rem 2rem;
}

.about-card h2 {
  text-align: center;
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 0.3rem;
}

.about-subtitle {
  text-align: center;
  color: #555;
  margin-bottom: 2.5rem;
}

.about-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: stretch;
  margin-top: 40px;
}

.about-photo {
  background: white;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.about-info {
  background: white;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Info Cards */
.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.info-card {
  background: #f9fafb;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
  min-height: 170px;
}

.info-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.info-card .icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 15px;
}

@media (max-width: 600px) {
  .about-container {
    flex-direction: column;
    align-items: center;
  }

  .about-info {
    text-align: center;
  }
}


/* for projects */


.projects h2 {
  padding: 4rem 2rem;
  padding: 4rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.projects .project-list {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.project-card:hover {
  transform: scale(1.03);
}
.project-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  color: #232323;
  list-style: none;
}


.tech {
  display: inline-block;
  margin-top: 0.5rem;
  background: var(--secondary);
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  font-size: 0.8rem;
}

/* PROJECT MODAL */
.project-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.modal-content {
  background: white;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  border-radius: 14px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--primary);
}

.modal-tech {
  margin-top: 1rem;
  font-weight: 500;
  color: var(--secondary);
}

.modal-links {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.modal-links a {
  flex: 1;
  text-align: center;
  padding: 0.6rem;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}

.modal-links a:hover {
  background: var(--accent);
}

/* Improve project cards */
.project-card {
  cursor: pointer;
  border-left: 1px solid var(--primary);
  border-right: 1px solid var(--primary);
}

/* ggg */

.project-card .project-img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-modal .modal-img {
  max-height: 250px;
  object-fit: cover;
}

.modal-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  margin: 0.5rem 0.3rem 0 0;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s;
}

.modal-btn:hover {
  background: var(--accent);
}

/* education */
/* Education Section */
/* Timeline Container */

.section-header.center {
  text-align: center;
  margin-bottom: 2rem; /* optional spacing below header */
}

.section-header.center .section-subtitle,
.section-header.center .section-title {
  margin: 0 auto; /* ensure proper centering */
}

/* line rw year gap */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* Vertical Line */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50px; /* Adjust line position */
    width: 4px;
    height: 100%;
    background: #2563eb; /* Blue line */
}

/* Timeline Item */
.timeline-item {
    position: relative;
    margin-bottom: 50px;
    display: flex;
    align-items: flex-start;
}

/* Date (Left Side) */
.timeline-date {
    font-weight: 600;
    color: #ffffff;
    background: #2563eb;
    left: 24px;
    padding: 6px 14px;
    border-radius: 12px;
    text-align: center;
    min-width: 100px;
}


/* Content (Right Side) */
.timeline-content {
    flex: 1;
    margin-left: 40px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


.timeline-content:hover {
    transform: translateX(8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}



.timeline-content h4 {
    margin-bottom: 5px;
    color: #2563eb;
}

.timeline-content h5 {
    margin-bottom: 10px;
    opacity: 0.8;
}

.timeline-content p {
    line-height: 1.6;
    opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {

    .timeline {
        padding-left: 30px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-date {
        margin-bottom: 10px;
    }

    .timeline-item::before {
        left: 13px;
        top: 10px;
        width: 12px;
    height: 12px;
    }

    .timeline-content {
        margin-left: 0;
    }
}



/* ABOUT SECTION */

.about {
  padding: 4rem 2rem;
}

.about-card h2 {
  text-align: center;
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 0.3rem;
}

.about-subtitle {
  text-align: center;
  color: #555;
  margin-bottom: 2.5rem;
}
.about-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: stretch; /* makes equal height */
  margin-top: 40px;
}

/* LEFT SIDE */
.about-photo {
  background: white;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;   /* vertical center */
  justify-content: center; /* horizontal center */
  padding: 30px;
}

.about-photo img {
  width: 100%;
  max-width: 280px;
  border-radius: 12px;
  object-fit: cover;
}

/* RIGHT SIDE */
.about-info {
  background: white;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* push top & bottom */
}

/* INFO CARDS */
.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
}

.info-card {
  background: #f9fafb;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.06);
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 170px; /* keeps both cards equal */
  word-wrap: break-word;
  overflow-wrap: break-word;
}


.info-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.info-card .icon {
  font-size: 28px;
  margin-bottom: 10px;
}

.info-card p {
  margin: 4px 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--text);
}

.info-card p:first-of-type {
  font-weight: 600;
}


/* DESCRIPTION */
.about-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 15px;
}

@media (max-width: 900px) {
  .about-container {
    grid-template-columns: 1fr;
  }

  .info-cards {
    grid-template-columns: 1fr;
  }
}


/* contact me  */
.contact-section {
  background: var(--bg); /* match rest of site */
  padding: 80px 20px;
  color: var(--text);
}

.container {
  max-width: 1100px;
  margin: auto;
}

.section-title {
  text-align: center;
  font-size: 42px;
  margin-bottom: 60px;
  color: var(--text);
}

.section-title span {
  color: var(--accent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
}

/* Info cards */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card,
.info-card {
  background: white; /* light card */
  border: 1px solid rgba(0, 0, 0, 0.1); /* subtle border */
  border-radius: 16px; /* rounded corners */
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); /* soft shadow for depth */
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.contact-card:hover,
.info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--accent); /* subtle accent on hover */
}

.info-card .icon,
.contact-card .icon {
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.info-card h4 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--text);
}

.info-card p {
  margin: 0 0 8px;
  color: var(--text-muted);
}

.info-card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

/* Form */
.contact-form {
  background: white; /* light form */
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  padding: 32px;
  color: var(--text);
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}


.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
}

.form-group label {
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  background: #fff; /* light input */
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
}


.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 5px rgba(34,211,238,0.3);
}

.contact-form button {
  margin-top: 10px;
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: var(--accent);
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.contact-form button:hover {
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .about-container, .contact-grid {
    gap: 20px;
    padding: 0 10px;
  }
}


/* footer  */
footer {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 1rem;
}

/* Arrow up  */
/* Scroll To Top Button */
#scrollTopBtn {
  position: fixed;
  bottom: 95px; /* sits above chat icon */
  right: 25px;
  width: 50px;
  height: 50px;
  background-color: var(--secondary);
  color: white;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 9999;
  transition: all 0.3s ease;
}

#scrollTopBtn:hover {
  background-color: var(--accent);
  transform: translateY(-5px);
}



/* Chatbot Styles */
#chat-toggle {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: var(--primary);
  color: #fff;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  cursor: pointer;
  z-index: 9999;
}

.chatbot-container {
  position: fixed;
  bottom: 90px;
  right: 25px;
  width: 300px;
  max-height: 400px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
}

.chat-header {
  background-color: var(--primary);
  color: white;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header .bot-avatar {
  width: 30px;
  height: 30px;
  margin-right: 8px;
  border-radius: 50%;
}

.chat-body {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  font-size: 0.95rem;
  scroll-behavior: smooth;
}

.chat-input-area {
  display: flex;
  border-top: 1px solid #ccc;
}

.chat-input-area input {
  flex: 1;
  border: none;
  padding: 0.6rem;
  font-size: 1rem;
}

.chat-input-area button {
  background-color: var(--accent);
  color: white;
  border: none;
  padding: 0 1rem;
  cursor: pointer;
}

.chat-message {
  margin-bottom: 0.6rem;
}

.chat-message.user {
  text-align: right;
  color: var(--primary);
}

.chat-message.bot {
  text-align: left;
  color: #333;
}
