body {
    scroll-behavior: smooth;
}
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

section {
    padding-top: 80px;
    padding-bottom: 80px;
}
.nav-link {
    transition: color 0.3s ease;
}
.nav-link:hover {
    color: #0d6efd;
}
.card {
    transition: transform 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
}
.hero-section {
    height: 100vh;
    position: relative;
    background: radial-gradient(circle at top left, #3a0ca3, #000);
    overflow: hidden;
}

.gradient-bg {
    background: linear-gradient(120deg, #3a0ca3, #7209b7, #4361ee, #4cc9f0);
    background-size: 400% 400%;
    animation: gradientMove 12s ease infinite;
    opacity: 0.2;
    z-index: 1;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating glowing orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    z-index: 1;
}

.orb1 { width: 300px; height: 300px; background: #7209b7; top: 10%; left: -10%; animation: float 10s ease-in-out infinite; }
.orb2 { width: 250px; height: 250px; background: #4361ee; bottom: 15%; right: -5%; animation: float 12s ease-in-out infinite reverse; }
.orb3 { width: 200px; height: 200px; background: #4cc9f0; top: 60%; left: 40%; animation: float 14s ease-in-out infinite; }

@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); }
    50% { transform: translateY(-30px) translateX(20px); }
}

.hero-section h1, .hero-section h3 {
    position: relative;
    z-index: 3;
}
/* Canvas background effect */
#codeCanvas {
    z-index: 0;
    opacity: 0.4;
}

/* Text entrance animations */
.hero-title, .hero-subtitle, .hero-buttons {
    opacity: 0;
    transform: translateY(30px);
}

/* Optional: subtle shadow for readability */
.hero-title span {
    text-shadow: 0 0 10px rgba(13, 110, 253, 0.8);
}
/*          about me          about me        about me*         about me                */

/* About Section */
.about-section {
    padding: 60px 20px;
    background: linear-gradient(to bottom, #0f172a, #1e1b4b);
    color: #fff;
    font-family: Arial, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.about-image {
    flex: 1 1 300px;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #1a73e8;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.3);
    transition: transform 0.5s;
}

.image-wrapper:hover {
    transform: scale(1.05);
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text {
    flex: 1 1 400px;
}

.about-text h2 {
     font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to right, #1a73e8, #690975);
    -webkit-background-clip: text;   /* Correct */
    -webkit-text-fill-color: transparent;  /* Required for gradient text */
    background-clip: text; /* For future-proofing, some browsers */
    color: transparent;    /* Fallback */
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.about-text p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.highlight-cyan {
    color: #00ffff;
    font-weight: bold;
}

.highlight-blue {
    color: #1e90ff;
}




/* Responsive */
@media (max-width: 768px) {
    .about-grid {
        flex-direction: column;
        text-align: center;
    }

    .about-text h2 {
        font-size: 36px;
    }

    .image-wrapper {
        width: 220px;
        height: 220px;
    }
}

/*    skill                skill                              skill                  skill */

/* Skills Section */
.skills-section {
  background: linear-gradient(180deg, #1e1b4b 0%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}

/* Title gradient text */
.skills-title {
   font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(to right, #1a73e8, #690975);
    -webkit-background-clip: text;   /* Correct */
    -webkit-text-fill-color: transparent;  /* Required for gradient text */
    background-clip: text; /* For future-proofing, some browsers */
    color: transparent;    /* Fallback */
    animation: pulse 2s infinite;
}
@keyframes shine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Skill cards */
.skill-card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 25px 10px;
  text-align: center;
  box-shadow: 0 0 15px rgba(67,97,238,0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
}

.skill-card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 0 25px rgba(67,97,238,0.3);
}

/* Subtle glow layer */
.skill-card .glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(76,201,240,0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.skill-card:hover .glow {
  opacity: 1;
}

/* Skill name */
.skill-name {
  font-weight: 600;
  font-size: 1.1rem;
  color: #e0e7ff;
  letter-spacing: 0.5px;
}



/*          project           project            project                      project                 */
.section-title {
    font-size: 48px;
    font-weight: 800;
    background: linear-gradient(to right, #1a73e8, #690975);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text; /* for future-proof */
    color: transparent;    /* fallback */
    margin-bottom: 40px; /* Space between title and cards */
    text-align: center; /* Optional: center title */
}
.projects {
    background: rgb(0, 0, 0);
    color: #fff;
    text-align: center;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
   background: linear-gradient(#4b154b, #18053b);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 100px rgba(189, 87, 214, 0.2);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
}
.project-card img {
    width: 100%;
    max-height: 250px;
    object-fit: contain;
    background-color: #000; /* adds black background if image doesn't fill area */
    border-bottom: 1px solid #222;
}

.project-content {
    padding: 20px;
}

.btn1-group {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn1{
    padding: 8px 15px;
    border-radius: 6px;
    background: #a31164;;
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.btn1:hover {
    background: #c75b9a;;
}

.btn-outlin {
    background: transparent;
    border: 1px solid #1a73e8;;
}

.btn-outline:hover {
    background: #1a73e8;;
    color: #fff;
}

/* Modal Style */
/* Modal base */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.75);
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.modal[style*="display: flex"] { /* keep a11y */
  display: flex !important;
}

.modal-content {
  background: #0f1724;
  color: #fff;
  padding: 18px;
  border-radius: 12px;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  position: relative;
}

/* Close */
.close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  z-index: 20;
}

/* Slider container */
.slider {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-top: 12px;
  background: #0b1220;
}

/* Slides: flex row — each image takes 100% of slider width */
.slider .slides {
  display: flex;
  transition: transform 0.45s ease-in-out;
  will-change: transform;
}

.slider .slides img {
  width: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

/* Prev / Next buttons — visible and above images */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.06);
  color: #021b36;
  padding: 8px 12px;
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 30;
  backdrop-filter: blur(4px);
}
.prev { left: 12px; }
.next { right: 12px; }
.prev:hover, .next:hover {
  background: rgba(255,255,255,0.14);
}

/* Dots */
.dots {
  text-align: center;
  padding: 12px 0 6px;
}
.dots span {
  display: inline-block;
  height: 10px;
  width: 10px;
  margin: 0 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  cursor: pointer;
}
.dots span.active {
  background: #00d4ff;
}

/* Responsive: limit modal content width on small screens */
@media (max-width: 640px) {
  .modal-content { padding: 14px; }
  .prev, .next { padding: 6px 9px; font-size: 18px; }
}


/* Background Gradient */
.contact-bg {
    background: radial-gradient(circle at top left, rgba(13,110,253,0.15), transparent 70%),
                radial-gradient(circle at bottom right, rgba(111,66,193,0.15), transparent 70%);
    z-index: 0;
}

/* Gradient Button */
.btn-gradient {
    background: linear-gradient(90deg, #6a11cb 0%, #2575fc 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    background: linear-gradient(90deg, #2575fc 0%, #6a11cb 100%);
    transform: scale(1.03);
}

/* Text gradient for title */
.text-gradient {
    background: linear-gradient(90deg, #6a11cb, #2575fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Glassmorphism style for card */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(37,117,252,0.15);
}

@media (max-width: 992px) { /* Tablet */
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section h3 {
        font-size: 1.5rem;
    }
    .hero-buttons a {
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) { /* Mobile */
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section h3 {
        font-size: 1.2rem;
    }
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 992px) {
    .about-grid {
        flex-direction: column;
        text-align: center;
    }
    .about-text {
        margin-top: 20px;
    }
}


@media (max-width: 768px) {
    .skills-section {
        padding: 40px 15px;
    }
    .skill-card {
        padding: 15px 5px;
    }
    .skill-name {
        font-size: 0.9rem;
    }
}


@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr; /* single column */
    }
    .project-card img {
        max-height: 200px;
    }
}
@media (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 20% auto;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 40px 15px;
    }
    .contact-form {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .btn, .btn1 {
        width: 100%;
    }
}
