/* ========== GLOBAL STYLES ========== */
:root {
    --primary-color: #007bff;
    --accent-color: #00cfff;
    --text-color: #212529;
    --background-color: #ffffff;
    --section-bg: #f8f9fa;
    --transition: all 0.3s ease;
  }
  
  * {
    box-sizing: border-box;
  }
  
  body {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--background-color);
    scroll-behavior: smooth;
  }
  
  /* Utility classes */
  .container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
  }
  
  h1, h2, h3 {
    margin-bottom: 10px;
    color: var(--text-color);
    text-align: center;
  }
  
  /* ========== SECTION STYLING ========== */
section {
  padding: 60px 0; /* reduced for denser look */
  opacity: 1;
  transform: translateY(0);
}

/* ========== NAVBAR ========== */
header {
  background-color: var(--background-color);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 8%;
}

.logo {
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary-color);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
}

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



/* Theme button */
.theme-btn {
  background: var(--primary-color);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
}

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

/* ========== HERO SECTION ========== */
#hero {
  position: relative;
  height: 100vh;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

/* Hero Background Image */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("images/hero-bg.jpg") center/cover no-repeat;
  filter: brightness(0.4);
  transform: scale(1);
  animation: zoomBg 20s ease-in-out infinite alternate;
  z-index: 1;
}

/* Subtle gradient overlay */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom right,
    rgba(0, 0, 0, 0.7),
    rgba(0, 0, 40, 0.6)
  );
  z-index: 2;
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 3;
  animation: fadeSlideUp 1.2s ease forwards;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #ffffff;
}

.hero-content h2 {
  font-size: 1.3rem;
  color: #d3e3ff;
  font-weight: 400;
}

#typed-text {
  color: var(--accent-color);
  font-weight: 600;
  border-right: 2px solid var(--accent-color);
  animation: blink 0.7s step-end infinite, glowPulse 2.5s ease-in-out infinite;
  text-shadow: 0 0 8px rgba(0, 191, 255, 0.6);
}

@keyframes glowPulse {
  0% {
    text-shadow: 0 0 5px rgba(0, 191, 255, 0.5),
                 0 0 10px rgba(0, 191, 255, 0.4);
  }
  50% {
    text-shadow: 0 0 15px rgba(0, 191, 255, 0.8),
                 0 0 30px rgba(0, 191, 255, 0.6);
  }
  100% {
    text-shadow: 0 0 5px rgba(0, 191, 255, 0.5),
                 0 0 10px rgba(0, 191, 255, 0.4);
  }
}


.hero-buttons {
  margin-top: 25px;
}

.hero-buttons a {
  text-decoration: none;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  color: #fff;
  padding: 10px 20px;
  border-radius: 25px;
  margin: 0 8px;
  transition: all 0.3s ease;
}

.hero-buttons a:hover {
  transform: translateY(-3px);
  background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
}

/* Social icons */
.social-icons {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 18px;
}

.social-icons a {
  color: #fff;
  font-size: 1.4rem;
  transition: 0.3s;
}

.social-icons a:hover {
  color: var(--accent-color);
}

/* Animations */
@keyframes zoomBg {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.08);
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}



/* ========== SECTION BACKGROUNDS ========== */
#about {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

#skills {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

#projects {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

#contact {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

/* ========== ABOUT SECTION ========== */
.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

#about img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-color);
}

#about p {
  line-height: 1.7;
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ========== SKILLS SECTION ========== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.skill {
  font-weight: 500;
}

.bar {
  background: #e9ecef;
  height: 8px;
  border-radius: 10px;
  margin-top: 5px;
  overflow: hidden;
}

.fill {
  height: 8px;
  width: 0;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 10px;
  transition: width 3s cubic-bezier(0.25, 0.1, 0.25, 1.0); /* smoother, longer easing */
}




/* ========== PROJECTS SECTION ========== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.project {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: var(--transition);
}

.project img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 123, 255, 0.9);
  color: #fff;
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: var(--transition);
}

.project:hover .overlay {
  opacity: 1;
}

.overlay h3 {
  margin-bottom: 5px;
  font-size: 1.2rem;
}

.overlay a {
  color: #fff;
  margin-top: 8px;
  text-decoration: underline;
}

/* ========== CONTACT SECTION ========== */

#contact {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  padding: 80px 0;
}

#contact h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 30px;
}

/* Contact card container */
.contact-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.1);
  padding: 40px;
  max-width: 550px;
  margin: 0 auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 123, 255, 0.15);
}

.contact-card form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: 1rem;
  background-color: #f9fafc;
  transition: all 0.3s ease;
}

.contact-card input:focus,
.contact-card textarea:focus {
  border-color: var(--accent-color);
  background-color: #fff;
  box-shadow: 0 0 6px rgba(0, 191, 255, 0.2);
  outline: none;
}

.contact-card button {
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.contact-card button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 191, 255, 0.3);
}

/* Social Links */
.socials {
  text-align: center;
  margin-top: 40px;
}

.socials a {
  color: var(--primary-color);
  text-decoration: none;
  margin: 0 12px;
  font-weight: 600;
  transition: 0.3s;
}

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

/* Fade-in animation */
.contact-card {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}

.contact-card.visible {
  opacity: 1;
  transform: translateY(0);
}




/* ===== Two-Column Contact Layout (Updated) ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 30px;
}

/* Left side contact info */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* Reusable info box style */
.contact-info .info-box {
  background: #ffffff;
  border-radius: 15px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.08);
  transition: all 0.3s ease;
}

.contact-info .info-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 191, 255, 0.15);
}

/* Icon style */
.contact-info .info-box i {
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  color: #fff;
  border-radius: 50%;
  font-size: 1.2rem;
  padding: 10px;
}

.contact-info .info-box h3 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.contact-info .info-box p {
  margin: 0;
  color: #333;
  font-size: 0.95rem;
}

.contact-info a {
  color: var(--accent-color);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* --- Intro card (top left) --- */
.intro-card {
  background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.08);
  border-radius: 15px;
  padding: 20px;
}

.intro-card i {
  color: var(--accent-color);
  background: #e9f6ff;
  padding: 12px;
  border-radius: 50%;
  font-size: 1.3rem;
}

.intro-card h3 {
  color: var(--primary-color);
  margin-bottom: 8px;
}

.intro-card p {
  color: #444;
  font-size: 0.95rem;
  line-height: 1.6;
}

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

  .contact-info {
    order: 2;
  }

  .contact-card {
    order: 1;
  }
}




/* =====  Clickable Info Boxes ===== */

/* Make form column visually equal */
.contact-card.balanced {
  max-width: 100%;
  width: 100%;
  padding: 50px 50px;
  box-shadow: 0 12px 30px rgba(0, 123, 255, 0.08);
}

/* Make both sides take similar width */
.contact-grid {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

/* Clickable info boxes */
.info-box.clickable {
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-box.clickable:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.15);
}

/* Remove underline and keep text same color */
.info-box.clickable h3 {
  margin: 0;
  color: var(--primary-color);
  font-weight: 600;
}

.info-box.clickable i {
  font-size: 1.4rem;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  color: #fff;
  border-radius: 50%;
  padding: 10px;
}

/* Make intro card stand out a bit more */
.intro-card {
  background: linear-gradient(135deg, #f3f8ff 0%, #ffffff 100%);
  box-shadow: 0 4px 20px rgba(0, 123, 255, 0.08);
}

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

  .contact-card.balanced {
    padding: 40px 30px;
  }
}

/* ===== EXPERIENCE SECTION ===== */
#experience {
  background: linear-gradient(180deg, var(--section-bg) 0%, var(--background-color) 100%);
  padding: 80px 0;
}

#experience h2 {
  text-align: center;
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 50px;
}

/* Timeline container */
.timeline {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
  padding-left: 30px;
  border-left: 3px solid var(--accent-color);
}

/* Each experience item */
.timeline-item {
  position: relative;
  margin-bottom: 50px;
  padding-left: 25px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 0;
  width: 20px;
  height: 20px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0, 191, 255, 0.4);
}

/* Experience card */
.timeline-content {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px 30px;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 191, 255, 0.15);
}

.timeline-content h3 {
  color: var(--primary-color);
  margin-bottom: 6px;
  font-size: 1.2rem;
}

.timeline-content h4 {
  color: #666;
  font-weight: 500;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.timeline-content p {
  color: #333;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .timeline {
    border-left: none;
    padding-left: 0;
  }
  .timeline-item::before {
    display: none;
  }
  .timeline-content {
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.08);
  }
}

/* ===== Dark Mode Support ===== */
body.dark #experience {
  background: linear-gradient(180deg, #121212 0%, #1a1a1a 100%);
}

body.dark .timeline-content {
  background: #1e1e1e;
  color: #ddd;
  box-shadow: 0 5px 15px rgba(0, 191, 255, 0.1);
}

body.dark .timeline-item::before {
  background: var(--accent-color);
}


/* ========== FOOTER ========== */
footer {
  background: var(--section-bg);
  text-align: center;
  padding: 25px 10px;
  font-size: 0.9rem;
  border-top: 1px solid #e0e0e0;
}

/* ========== FLOATING BACKGROUND SHAPES ========== */
.background-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.background-shapes span {
  position: absolute;
  display: block;
  width: 20px;
  height: 20px;
  background: var(--accent-color);
  opacity: 0.2;
  border-radius: 50%;
  animation: float 10s infinite ease-in-out;
}

.background-shapes span:nth-child(1) { left: 10%; animation-delay: 0s; }
.background-shapes span:nth-child(2) { left: 30%; width: 15px; height: 15px; animation-delay: 2s; }
.background-shapes span:nth-child(3) { left: 50%; animation-delay: 4s; }
.background-shapes span:nth-child(4) { left: 70%; width: 25px; height: 25px; animation-delay: 6s; }
.background-shapes span:nth-child(5) { left: 90%; width: 12px; height: 12px; animation-delay: 8s; }

@keyframes float {
  0% { transform: translateY(100vh) scale(0); opacity: 0.2; }
  50% { opacity: 0.4; }
  100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

/* ========== DARK MODE ========== */
body.dark {
  --background-color: #121212;
  --section-bg: #1e1e1e;
  --text-color: #e4e4e4;
  --card-bg: #1c1f22;
  --box-shadow-dark: 0 2px 10px rgba(255, 255, 255, 0.05);
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Global dark background + text color */
body.dark,
body.dark section,
body.dark footer {
  background-color: var(--background-color);
  color: var(--text-color);
}

/* Navbar */
body.dark header {
  background-color: #1e1e1e;
  box-shadow: var(--box-shadow-dark);
}

/* Project cards */
body.dark .project {
  background: var(--card-bg);
  box-shadow: var(--box-shadow-dark);
}
body.dark .project .overlay {
  background: rgba(0, 191, 255, 0.85);
}

/* Contact section cards */
body.dark .contact-card,
body.dark .info-box {
  background: var(--card-bg);
  color: var(--text-color);
  box-shadow: var(--box-shadow-dark);
}
body.dark .contact-card input,
body.dark .contact-card textarea {
  background: #2a2d31;
  color: var(--text-color);
  border-color: #444;
}
body.dark .contact-card input::placeholder,
body.dark .contact-card textarea::placeholder {
  color: #aaa;
}

/* Headings and text */
body.dark h1, 
body.dark h2, 
body.dark h3, 
body.dark p {
  color: var(--text-color);
}

/* Info icons and accents */
body.dark .info-box i {
  background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
  color: #fff;
}

/* Footer */
body.dark footer {
  background-color: #1a1a1a;
  color: #ccc;
  border-top-color: #333;
}

/* Smooth color transitions */
body, section, header, .contact-card, .info-box, footer {
  transition: background-color 0.4s ease, color 0.4s ease;
}


/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  #hero h1 {
    font-size: 2rem;
  }

  .about-content {
    flex-direction: column;
  }

  .project img {
    height: 180px;
  }
}




/* ---------- ABOUT ME CARD STYLE  ---------- */
.about-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
}

.profile-card {
  background: #111418;
  color: #fff;
  border-radius: 20px;
  padding: 30px;
  width: 380px;
  text-align: center;
  box-shadow: 0 0 25px rgba(0, 123, 255, 0.1);
  transform: translateY(40px);
  opacity: 0;
  transition: all 1s ease;
}

.profile-card.visible {
  transform: translateY(0);
  opacity: 1;
}

.profile-card img {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-color);
}

.profile-card h3 {
  margin-top: 15px;
}

.profile-card .role {
  color: var(--accent-color);
  font-weight: 500;
}

.profile-card .stats {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
}

.profile-card .stats span {
  font-size: 1.2rem;
  color: var(--accent-color);
  font-weight: 600;
}

.profile-card .social-links {
  margin-top: 15px;
}

.profile-card .social-links a {
  color: #fff;
  margin: 0 5px;
  font-size: 1.2rem;
  transition: 0.3s;
}

.profile-card .social-links a:hover {
  color: var(--accent-color);
}

/* ===== Profile Card Buttons ===== */
.button-group {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.profile-btn {
  text-decoration: none;
  font-weight: 500;
  border-radius: 25px;
  padding: 10px 22px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

/* Gradient primary button */
.profile-btn.primary {
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.15);
}

.profile-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 123, 255, 0.25);
}

/* Outlined secondary button */
.profile-btn.secondary {
  background: transparent;
  border: 1.5px solid var(--accent-color);
  color: var(--accent-color);
}

.profile-btn.secondary:hover {
  background: var(--accent-color);
  color: #fff;
  transform: translateY(-2px);
}

/* Responsive stacking for smaller screens */
@media (max-width: 600px) {
  .button-group {
    flex-direction: column;
    align-items: center;
  }
}


.about-info {
  flex: 1;
  min-width: 320px;
  color: #fff;
  background: #1a1d21;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 0 25px rgba(0, 123, 255, 0.1);
  transform: translateY(40px);
  opacity: 0;
  transition: all 1s ease;
}

.about-info.visible {
  transform: translateY(0);
  opacity: 1;
}

.about-info h2 {
  color: var(--accent-color);
  margin-bottom: 15px;
}


.interests {
  margin-top: 25px;
  text-align: center;
}

.interests h3 {
  color: var(--accent-color);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.interests p {
  color: #e6e6e6; 
  font-size: 1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

/* Dark mode adjustment */
body.dark .interests p {
  color: #ddd;
}


.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.info-box {
  background: #23272b;
  padding: 20px;
  border-radius: 12px;
  text-align: left;
  color: #ddd;
  transition: transform 0.3s ease;
}

.info-box:hover {
  transform: translateY(-5px);
}

.info-box i {
  font-size: 1.5rem;
  color: var(--accent-color);
}


.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: all 1s ease;
}


/* ===== Scroll Reveal Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1.2s ease-out;
}

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



@keyframes zoomBg {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}


/* ===== Directional Reveal Animations ===== */
.reveal-left, .reveal-right, .reveal-up {
  opacity: 0;
  transition: all 1s ease-out;
}

.reveal-left {
  transform: translateX(-80px);
}
.reveal-right {
  transform: translateX(80px);
}
.reveal-up {
  transform: translateY(60px);
}

.reveal-left.visible,
.reveal-right.visible,
.reveal-up.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* --- Enhanced Info Boxes (Sharper Text, Better Contrast) --- */
.info-box {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  color: #222;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  text-align: left;
}

.info-box h3 {
  color: #000;
  font-weight: 600;
  margin-bottom: 10px;
}

.info-box p {
  color: #444;
  line-height: 1.5;
}

.info-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 16px rgba(0, 123, 255, 0.15);
}

.info-box i {
  font-size: 1.6rem;
  color: var(--accent-color);
  margin-bottom: 10px;
  display: block;
}

body, h1, h2, h3, p {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}



/* ===== Project Scroll Animation ===== */
.project {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}

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

/* Staggered delay for each card */
.project:nth-child(1) { transition-delay: 0.2s; }
.project:nth-child(2) { transition-delay: 0.4s; }
.project:nth-child(3) { transition-delay: 0.6s; }
.project:nth-child(4) { transition-delay: 0.8s; }

/* Hover interaction */
.project:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
