/* Global Styles */
:root {
  --main-padding: 20px;
  --main-margin: 60px;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(to bottom, #f3f3f3, #e2e2e2);
    color: #333;
    overflow-x: hidden;
}

/* Header Styles */
header {
    height: 100vh;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://via.placeholder.com/1920x1080') center center / cover;
    opacity: 0.2;
    z-index: 0;
}

header h1 {
    font-size: 4rem;
    margin: 0;
    font-weight: 600;
    animation: fadeIn 2s ease-in-out;
    z-index: 1;
    text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

header p {
    font-size: 1.2rem;
    margin: 10px 0;
    font-weight: 400;
    animation: fadeIn 1.2s ease-in-out;
    z-index: 1;
    text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    display: inline-block;
    will-change: transform;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 20px;
    background: linear-gradient(135deg, #ff7eb3, #ff569c);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 10;
  }
  
  .btn-primary:hover {
    transform: scale(1) !important;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.3);
  }

/* Navbar Styles */
nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: var(--main-padding);
    background-color: rgba(255, 255, 255, 0.9);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: color 0.3s, transform 0.3s;
    font-size: 1.1rem;
}

nav a:hover {
    color: #6a11cb;
    transform: scale(1.1);
}

/* Section Styles */
section {
    max-width: 1200px;
    margin: var(--main-margin) auto;
    padding: var(--main-padding);
    border-radius: 15px;
    background: rgb(255, 253, 253);
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-in-out;
}

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

section h2 {
    font-size: 3rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: #6a11cb;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}


.projects, .certificates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: var(--main-margin);
  padding: 5px;
  justify-items: center;
  align-items: start;
}
.project {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 350px;
  aspect-ratio: 4 / 3;
}
.project::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(135deg, #6a11cb, #ff569c);
}
.project:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.project img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}
.project a {
  display: block;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}
.project h3 {
  margin: 1rem 1rem 0.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  line-height: 1.2;
  color: #222;
}
.project p {
  margin: 0 1rem 1.5rem;
  flex-grow: 1;
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  text-align: center;
}

.project a:hover h3 {
  color: #6a11cb;
}

/* Social Links Section */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: var(--main-margin);
    z-index: 10;
    position: relative;
  }
  
  .social-links a {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .social-links a:hover {
    transform: scale(1.1.5);
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
  }
  
  .social-links img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    aspect-ratio: 1;
    display: block;
  }

/* Footer Styles */
footer {
    text-align: center;
    background-color: #f4f4f8;
    color: #333;
    padding: var(--main-padding);
    margin-top: var(--main-margin);
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

footer p {
    margin: 10px 0;
}

footer a {
    color: #ff7eb3;
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInText {
    0% {
      opacity: 0;
      transform: translateY(50px); /* start lower */
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(-45deg, #6a11cb, #2575fc, #ff7eb3, #ff569c);
    background-size: 400% 400%;
    animation: gradient 13s ease infinite;
    z-index: -1;
    pointer-events: non;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #6a11cb;
    color: white;
    border: none;
    border-radius: 70%;
    padding: 10px 15px;
    font-size: 1.2rem;
    cursor: pointer;
    display: none;
    box-shadow: 1px 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.back-to-top:hover {
    transform: scale(1.1);
    box-shadow: 2px 6px 15px rgba(24, 11, 31, 0.3);
}
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: #ff569c;
    width: 2%;
    z-index: 1000;
    transition: width 0.25s ease;
}
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 10000;
}
  
.fade-item {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInStagger 0.8s ease-out forwards;
  }
  
  .delay-1 { animation-delay: 0.2s; }
  .delay-2 { animation-delay: 0.6s; }
  .delay-3 { animation-delay: 1s; }
  .delay-4 { animation-delay: 1.4s; }
  
  @keyframes fadeInStagger {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* — Enhanced “About Me” Section — */
#about {
  background: #fff;
  border-radius: 15px;
  padding: 40px;
  max-width: 900px;
  margin: 60px auto;      /* adjust as needed */
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  position: relative;
  text-align: center;
}

#about h2 {
  font-size: 2.5rem;
  color: #6a11cb;
  margin-bottom: 20px;
  letter-spacing: 1.5px;
  position: relative;
}

#about p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  max-width: 760px;
  margin: 0 auto;
}

  /* --- Skills Section --- */

#skills {
    background: linear-gradient(135deg, #ffffff, #f4f4f8);
    color: #333;
    padding: 80px 20px;
    text-align: center;
  }
  
  #skills h2 {
    font-size: 3rem;
    margin-top: 10px;
    margin-bottom: 3rem;
    color: #6a11cb;
    text-transform: uppercase;
    letter-spacing: 2px;
  }
  
  .skill-rings {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
    align-items: stretch;
  }
  
  .skill-ring {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
    height: 380px;
    background: white;
    padding: var(--main-padding);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
  }
  
  .skill-ring:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
  }
  
  .circular-chart {
    width: 140px;
    height: 140px;
    transform: rotate(-90deg);
    margin-bottom: 15px;
  }
  
  .circle-bg {
    fill: none;
    stroke: #eee;
    stroke-width: 3.8;
  }
  
  .circle {
    fill: none;
    stroke-width: 3.8;
    stroke-linecap: round;
    animation: progress 1s ease-out forwards;
  }
  
  .circular-chart.purple .circle {
    stroke: url(#gradient-purple);
  }
  
  .circular-chart.green .circle {
    stroke: url(#gradient-green);
  }
  
  .circular-chart.pink .circle {
    stroke: url(#gradient-pink);
  }
  
  .percentage {
    fill: #333;
    font-family: 'Poppins', sans-serif;
    font-size: 0.5em;
    text-anchor: middle;
    transform: rotate(90deg);
    transform-origin: center;
  }
  
  .skill-ring > p {
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #6a11cb;
    text-transform: uppercase;
  }
  
  /* Skill Meta Info */
  .skill-meta {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #555;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
  }
  
  .skill-meta h4 {
    margin: 0;
    font-size: 0.95rem;
    color: #2575fc;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
  }
  
  .skill-meta p {
    margin: 5px 0 0;
    line-height: 1.5;
  }
  
  /* Tooltip Style */
  .skill-ring::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #6a11cb;
    color: #fff;
    font-size: 0.75rem;
    padding: 6px 10px;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    z-index: 10;
  }
  
  .skill-ring:hover::after {
    opacity: 1;
  }
  
  /* Gradients (matching theme) */
  .circular-chart.purple .circle {
    stroke: url(#gradient-purple);
  }
  
  .circular-chart.green .circle {
    stroke: url(#gradient-green);
  }
  
  .circular-chart.pink .circle {
    stroke: url(#gradient-pink);
  }
  
  @media (max-width: 768px) {
    .skill-rings {
      flex-direction: column;
      align-items: center;
    }
  }
  @media (max-width: 1024px) {
    .projects, .certificates {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .projects, .certificates {
        grid-template-columns: 1fr;
    }
}

/* Force 4 columns in Projects */
@media (min-width: 1024px) {
  .projects {
    grid-template-columns: repeat(4, 1fr) !important;
  }
}
