/* ===============================
   Global Styles
=============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: "Inter", sans-serif;
    background-color: #0d1117;
    color: #f0f6fc;
    line-height: 1.6;
    scroll-behavior: smooth;
  }
  
  h1, h2, h3 {
    font-weight: 700;
    margin-bottom: 1rem;
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  img {
    max-width: 100%;
    display: block;
  }
  
  /* ===============================
     Navbar
  =============================== */
  #navbar {
    position: sticky;
    top: 0;
    background: #161b22;
    z-index: 1000;
    border-bottom: 1px solid #30363d;
  }
  
  .nav-container {
    max-width: 90%;
    margin: auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #58a6ff;
  }
  
  .navbar-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
  }
  
  .navbar-links a {
    color: #f0f6fc;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  .navbar-links a:hover,
  .navbar-links a.active {
    color: #58a6ff;
  }
  
  /* Mobile menu toggle */
  .toggle {
    display: none;
    background: none;
    border: none;
    color: #f0f6fc;
    font-size: 1.5rem;
    cursor: pointer;
  }
  
  /* ===============================
     Sections
  =============================== */
  section {
    padding: 4rem 2rem;
    width: 100%;
    max-width: none;
    margin: 0;
  }
  
  section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #58a6ff;
  }

/* Parent container to align home and about side by side */
.landing-about-container {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    padding: 80px 5%;
    flex-wrap: wrap; /* stack on smaller screens */
}

/* Glow / Accent Background */
.landing-about-container::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, rgba(88,166,255,0.2) 0%, transparent 70%);
    border-radius: 30px;
}
  
  /* ===============================
     Home Section
  =============================== */
  
  /* Home and About card adjustments */
.home-section, .about-section {
    background-color: #242526; /* match card style */
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    flex: 1 1 450px; /* flexible width, min 450px */
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s forwards;
    margin-top: 100px;
}
/* Optional: stagger animation delay */
.home-section { 
    animation-delay: 0.1s;
    max-width: 30%; 
}
.about-section {
    animation-delay: 0.2s;
    max-width: 50%;
}


/* Card-like container */
.home-container {
    position: relative;
    z-index: 1; /* keep above glow */
    background-color: #242526;
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    max-width: none;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s forwards;
    animation-delay: 0.2s;
    text-align: center;
    margin: 0 auto;
}

/* Headings */
.home-container h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: #58a6ff;
}

.home-container h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #8b949e;
}

/* Paragraphs */
.home-container p {
    color: #B0B3B8;
    font-size: 16px;
    margin-bottom: 1rem;
}

/* CTA buttons */
.cta {
    margin-top: 2rem;
    gap: 1rem;
    justify-content: center;
}

.btn {
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-weight: 600;
    margin-right: 10px;
    transition: background 0.3s ease, transform 0.2s ease;
    text-decoration: none;
}

.li-btn {
    background: #0077b5;
    color: #fff;
}

.li-btn:hover {
    background: #005582;
    transform: scale(1.05);
}

.gh-btn {
    background: #333;
    color: #fff;
}

.gh-btn:hover {
    background: #24292e;
    transform: scale(1.05);
}

/* Slide-up animation */
@keyframes slideInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide-in animation for small screens */
@media (max-width: 1575px) {
    .landing-about-container {
        flex-direction: column;
        align-items: center;
        padding: 50px 3%;
    }

    .home-section, .about-section {
        max-width: 90%;
    }

    .about-container {
        flex-direction: column-reverse; /* image below text on mobile */
        text-align: center;
    }

    .about-img {
        transform: translateY(30px);
        animation: slideInUp 0.8s forwards;
        margin-bottom: 20px;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .home-container {
        padding: 40px 20px;
    }

    .home-container h1 {
        font-size: 2.25rem;
    }

    .home-container h2 {
        font-size: 1.5rem;
    }
}  
/* ===============================
   About Section
=============================== */
/* About Section */

.about-section h2 {
  font-family: sans-serif;
  font-size: 36px;
  font-weight: bold;
  color: #58a6ff;
  text-align: center;
  margin-bottom: 60px;
}

/* About Card / Container */
.about-container {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  flex-direction: row; /* ensures image on left, text on right */
  background-color: #242526;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
  max-width: none;
  margin: 0 auto;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Card hover effect */
.about-container:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

/* Image */
.about-img {
    width: 250px;
    border-radius: 15px;
    border: 2px solid #30363d;
    object-fit: cover;
    transform: translateX(-50px);
    opacity: 0;
    animation: slideInRight 0.8s forwards;
    transition: transform 0.3s ease;
}

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

/* Text */
.about-text {
  flex: 1;
  font-family: sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #B0B3B8;
  transform: translateX(50px);
  opacity: 0;
  animation: slideInRight 0.8s forwards;
  animation-delay: 0.2s;
}

.about-text p {
  margin-bottom: 1rem;
}

.about-text a {
  color: #58a6ff;
  text-decoration: none;
  font-weight: bold;
}

.about-text a:hover {
  color: #ffffff;
}

/* Slide-in keyframes */
@keyframes slideInLeft {
  0% { opacity: 0; transform: translateX(-50px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  0% { opacity: 0; transform: translateX(50px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Slide up for small screens */
@keyframes slideInUp {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 800px) {
  .about-container {
      flex-direction: column;
      align-items: center;
      text-align: center;
      padding: 20px;
  }

  .about-img {
      margin-bottom: 20px;
      transform: translateY(30px);
      animation: slideInUp 0.8s forwards;
  }

  .about-text {
      transform: translateY(30px);
      animation: slideInUp 0.8s forwards;
      animation-delay: 0.2s;
  }
}

/* ===============================
   Projects Section
=============================== *
/* Projects Section */
.projects-section {
    padding: 100px 5%;
    color: #E4E6EB;
    margin-top: 100px;
}

.projects-section h2 {
    font-family: sans-serif;
    font-size: 60px;
    font-weight: bold;
    color: #58a6ff;
    text-align: center;
    margin-bottom: 60px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    justify-items: center;
}

/* Wrap projects in a card container like About Me */
.projects-container {
    background-color: #242526;
    border-radius: 20px;
    padding: 90px;
    max-width: 80%;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    overflow: hidden;
}

/* Project Card */
.project-card {
    background-color: #242526;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    text-align: center;
    opacity: 0; /* Start hidden for scroll animation */
    transform: translateY(30px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Start hidden */
.project-card.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  
  /* Visible state */
  .project-card.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
  }
  

/* Hover 3D pop effect */
.project-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

/* Project Image */
.project-image {
    overflow: hidden;
    position: relative;
    height: 600px;
    border-radius: 15px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-image img:hover {
    transform: scale(1.1);
}

/* Emoji Project Image */
.project-image.emoji {
    background-color: #3A3B3C;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 80px; /* Increase size */
    height: 200px;
    width: 100%;
    border-radius: 15px;
}

/* Project Title */
.project-card h3 {
    font-family: sans-serif;
    font-size: 22px;
    margin: 20px 0 10px;
    font-weight: bold;
}

.project-card h3 a {
    color: #58a6ff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-card h3 a:hover {
    color: #ffffff;
}

/* Project Description */
.project-card p {
    font-family: sans-serif;
    font-size: 16px;
    padding: 0 15px 20px;
    color: #B0B3B8;
    line-height: 1.5;
}

/* Project Buttons */
.project-buttons {
    margin-bottom: 20px;
    opacity: 1; /* always visible */
    display: flex;
    justify-content: center;
    gap: 10px;
}

.project-buttons a {
    background-color: #58a6ff;
    color: #000000;
    padding: 10px 20px;
    border-radius: 10px;
    font-family: sans-serif;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.project-buttons a:hover {
    background-color: #ffffff;
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 800px) {
    .projects-section { padding: 60px 3%; }
    .project-card { max-width: 100%; }
    .project-image { height: 180px; }
}
  
  /* ===============================
     Skills Section
  =============================== */
/* Skills Section */

#skills {
    padding: 100px 5%;
}

.skills-section {
    padding: 100px 5%;
    color: #E4E6EB;
}

.skills-container {
    display: grid;
    gap: 20px;
    background-color: #242526;
    border-radius: 20px;
    padding: 30px;
    max-width: 80%;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}

.skills-section h2 {
    font-family: sans-serif;
    font-size: 60px;
    font-weight: bold;
    color: #58a6ff;
    text-align: center;
    margin-bottom: 60px;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    justify-items: center;
}

/* Skill Card */
.skill-card {
    background-color: #242526;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect */
.skill-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

/* Skill image */
.skill-image {
    background-color: #3A3B3C;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    height: 120px;
    margin-bottom: 15px;
}

/* Multi-logo skills */
.skill-image.multi-logos img {
    height: 60px;
    margin: 0 5px;
}

/* Skill name */
.skill-card h3 {
    font-family: sans-serif;
    font-size: 18px;
    color: #58a6ff;
    margin: 0;
}

/* Initial hidden state for animation */
.skill-card.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: transform 0.6s ease, opacity 0.6s ease;
}

/* When visible */
.skill-card.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Hover scale effect for skill cards */
.skill-card.animate-on-scroll:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: #58a6ff; /* match Projects highlight */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Optional: scale the logo image slightly on hover */
.skill-card.animate-on-scroll:hover img {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Responsive */
@media (max-width: 800px) {
    .skills-grid {
        gap: 20px;
    }

    .skill-card {
        max-width: 100%;
    }

    .skill-image {
        height: 100px;
    }

    .skill-image.multi-logos img {
        height: 50px;
    }
}

  
  /* ===============================
     Contact Section
  =============================== */
/* Contact Section Card */
.contact-section {
    padding: 100px 5%;
    color: #E4E6EB;
    text-align: center;
}

.contact-section h2 {
    font-family: sans-serif;
    font-size: 60px;
    font-weight: bold;
    color: #58a6ff;
    margin-bottom: 60px;
}

/* Card-like container */
.contact-container {
    background-color: #242526;
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Contact links styling */
.contact-container a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    font-family: sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #E4E6EB;
    text-decoration: none;
    transition: transform 0.2s ease, color 0.3s ease;
}

.contact-container a:hover {
    color: #58a6ff;
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .contact-container {
        padding: 30px 20px;
        gap: 15px;
    }

    .contact-container a {
        font-size: 16px;
    }
}

  
  /* ===============================
     Footer
  =============================== */
  footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid #30363d;
    font-size: 0.9rem;
    color: #8b949e;
  }
  
  /* ===============================
     Responsive
  =============================== */
  @media (max-width: 768px) {
    .navbar-links {
      display: none;
      flex-direction: column;
      gap: 1rem;
      background: #161b22;
      position: absolute;
      top: 60px;
      right: 0;
      width: 200px;
      padding: 1rem;
      border-left: 1px solid #30363d;
      border-bottom: 1px solid #30363d;
    }
  
    .navbar-links.active {
      display: flex;
    }
  
    .toggle {
      display: block;
    }
  
    .about-container {
      flex-direction: column;
      text-align: center;
    }
  }
  