/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* overflow-x: hidden; */
}

body {
  font-family: "Poppins", sans-serif;
  background-color: rgb(0, 0, 0);
  /* background-image: url("download (7).jfif"); */
  /* opacity: 0.4; */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  height: 100vh;
  color: #fff;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 50px;
}

.logo {
  font-weight: bold;
  font-size: 24px;
  color: #9b59b6;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #9b59b6;
}

/* Hero Section */
.hero {
  /* background-image: url("5.jfif");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover; */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 50px;
  min-height: 30vh;
}

.hero-text {
  max-width: 600px;
  animation: fadeInLeft 1.5s ease;
}

.hero-text p:first-child {
  font-size: 50px;
  color: #fff;
  margin-bottom: 10px;
}

.hero-text h1 {
  font-size: 48px;
  margin: 10px 0;
}

.hero-text .typing {
  color: #9b59b6;
}

.hero-text p:last-of-type {
  font-size: 20px;
  color: #b0b0b0;
  margin: 20px 0;
}

/* Hero Image */
.hero-image img {
  max-width: 400px;
  border-radius: 10px;
  animation: fadeInRight 1.5s ease;
}

/* Animations */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive */
.breakline {
  display: none;
}

@media (max-width: 768px) {
  .breakline {
    display: inline;
  }
}
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-image {
    display: none;
  }

  .hero-image img {
    width: 80%;
  }
  .navbar {
    display: none;
  }
}

/* Skills Section */
.skills {
  background-color: #000000;
  padding: 100px 50px;
  text-align: center;
  color: #fff;
}

.skills h2 {
  font-size: 36px;
  margin-bottom: 10px;
}

.skills h2 span {
  color: #9b59b6;
}

.skills p {
  font-size: 16px;
  color: #b0b0b0;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.skill-card {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  animation: appear linear;
  animation-timeline: view();
  animation-range: entry 0;
}

.skill-card img {
  width: 50px;
  margin-bottom: 15px;
}

.skill-card h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.progress {
  background-color: #333;
  border-radius: 30px;
  padding: 5px;
}

.progress-bar {
  background-color: #9b59b6;
  padding: 8px 0;
  border-radius: 30px;
  font-size: 14px;
  font-weight: bold;
  width: 0;
  opacity: 0;
  animation: fillProgress 1s forwards;
}

/* Scroll animation */
@keyframes appear {
  from {
    opacity: 0;
    scale: 0.5;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

@keyframes fillProgress {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .skills {
    padding: 70px 20px;
  }
}

/* Scroll animation */
@keyframes appear {
  from {
    opacity: 0;
    scale: 0.5;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

/* Apply scroll animation to h2 and p */
.animate-on-scroll {
  animation: appear linear;
  animation-timeline: view();
  animation-range: entry 0;
}

/* About Section */

.about {
  background-color: #000000;

  padding: 80px 20px;

  color: #fff;
}

.about-container {
  display: flex;

  flex-wrap: wrap;

  align-items: center;

  justify-content: center;

  gap: 7em;

  max-width: 1200px;

  margin: 0 auto;
}

.about-image img {
  width: 350px;

  height: 350px;

  object-fit: cover;

  border-radius: 50%;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.about-content {
  max-width: 600px;
}

.about-content h2 {
  font-size: 28px;

  color: #9b59b6;

  margin-bottom: 10px;

  /* background: linear-gradient(45deg, #a259ff, #d46bff);

  -webkit-background-clip: text; */

  /* color: transparent; */
}

.about-content h3 {
  font-size: 24px;

  font-weight: bold;

  margin-bottom: 20px;
}

.about-content p {
  font-size: 16px;

  line-height: 1.7;

  margin-bottom: 30px;
}

.about-details {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 15px 30px;

  font-size: 16px;

  padding-top: 20px;

  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.about-details div {
  position: relative;
}

.about-details div::after {
  content: "";

  position: absolute;

  width: 0;

  height: 2px;

  background-color: #9b59b6;

  left: 0;

  bottom: -5px;

  transition: 0.3s ease;
}

.about-details div:hover::after {
  width: 100%;
}

/* Scroll animation */

@keyframes appear {
  from {
    opacity: 0;

    scale: 0.5;
  }

  to {
    opacity: 1;

    scale: 1;
  }
}

.animate-on-scroll {
  animation: appear linear;

  animation-timeline: view();

  animation-range: entry 0;
}

/* Responsive */

@media (max-width: 768px) {
  .about-container {
    flex-direction: column;

    text-align: center;
  }

  .about-details {
    grid-template-columns: 1fr;
  }
}

/* project Section Styling */

.projects-section {
  background-color: #000000;

  padding: 80px 20px;

  text-align: center;

  color: #fff;
}

.projects-title {
  font-size: 2.5rem;

  color: #9b59b6;

  margin-bottom: 10px;

  animation: appear linear;

  animation-timeline: view();

  animation-range: entry 0;
}

.projects-intro {
  font-size: 1rem;

  margin-bottom: 50px;

  max-width: 700px;

  margin-left: auto;

  margin-right: auto;

  animation: appear linear;

  animation-timeline: view();

  animation-range: entry 0;
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* Max 3 cards per row */
  gap: 20px;
}

.project-card {
  background-color: #1a1a1a;

  padding: 20px;

  border-radius: 12px;

  text-decoration: none;

  color: #fff;

  transition: transform 0.3s, box-shadow 0.3s;

  animation: appear linear;

  animation-timeline: view();

  animation-range: entry 0;
}

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

  box-shadow: 0 0 15px rgba(155, 89, 182, 0.7);
}

.project-thumbnail {
  width: 100%;

  height: 160px;

  background-color: #333;

  border-radius: 8px;

  margin-bottom: 20px;
}

.project-name {
  font-size: 1.5rem;

  margin-bottom: 10px;

  color: #9b59b6;
}

.project-description {
  font-size: 1rem;

  color: #ccc;
}

/* Scroll Animation */

@keyframes appear {
  from {
    opacity: 0;

    scale: 0.5;
  }

  to {
    opacity: 1;

    scale: 1;
  }
}

/* Responsive */

@media (max-width: 908px) {
  .projects-title {
    font-size: 2rem;
  }

  .project-name {
    font-size: 1.25rem;
  }
}
@media (max-width: 1024px) {
  .projects-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* SERVICES SECTION */
/* GENERAL STYLING */
.services {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* HEADER STYLING */
.services-header {
  text-align: right;
  margin-top: 4em;
  margin-bottom: -6em;
  padding-right: 7em;
}

/* HEADING & SUBHEADING */
.services .subheading {
  font-size: 14px;
  color: #aaaaaa;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: -0.4em;
}

.services .heading {
  font-size: clamp(32px, 5vw, 73px); /* Responsive heading size */
  font-weight: 800;
  letter-spacing: -1px;
  /* text-align: center; Default center alignment for better responsiveness */
}

/* FLEXBOX LAYOUT */
.services-container {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 2em;
}

/* LEFT COLUMN (Aligned with Heading) */
.left-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(-20px); /* Align perfectly with heading */
}

/* RIGHT COLUMN (Positioned Lower) */
.right-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(100px); /* Position lower */
}

/* SERVICE CARDS */
.service-card {
  background: #1a1a1a;
  padding: 24px;
  border-radius: 8px;
  width: 100%; /* Full width */
  max-width: 28em; /* Maximum width */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(50px);
}

/* Strong Purple Glow on Hover */
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(128, 0, 128, 1);
}

/* ICON */
.icon {
  font-size: 24px;
  color: #00adb5;
  margin-bottom: 10px;
}

/* Title */
h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Description */
.service-card p {
  font-size: 14px;
  color: #aaaaaa;
  line-height: 1.5;
}

/* LEARN MORE */
.service-card a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.service-card a:hover {
  color: #00adb5;
}

/* TEXT UNDER CARDS */
.text-undercards {
  font-family: "Poppins", sans-serif;
  padding: 1em 4.9em;
  font-size: 14px;
  color: white;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* SCROLL ANIMATION */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* JavaScript will add this class */
.service-card.show {
  animation: fadeInUp 1s ease-out forwards;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .services .heading {
    font-size: clamp(28px, 4vw, 50px); /* Reduce size for tablets */
  }

  .services-header {
    text-align: center;
    padding-right: 0;
    margin-bottom: 2em;
  }

  .services-container {
    gap: 4em; /* Reduce gap for smaller screens */
  }
}

@media (max-width: 900px) {
  .services-container {
    flex-direction: column;
    align-items: center; /* Center content */
    gap: 3em;
  }
  .text-undercards {
    text-align: center;
  }
}

@media (max-width: 800px) {
  .left-column,
  .right-column {
    transform: translateY(0); /* Remove staggered effect */
    margin-left: 0;
    margin-right: 0;
  }
  .text-undercards {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .services .heading {
    font-size: clamp(24px, 4vw, 40px);
  }

  .services-header {
    text-align: center;
    margin-bottom: 1em;
  }

  .services-container {
    gap: 2em;
  }
  .text-undercards {
    text-align: center;
  }
}
/* .contact {
  padding: 200px;
  text-align: center;
  font-size: 10em;
}
.contact span {
  color: #9b59b6;
} */

/* Contact Section Styling */

/* Contact Section Styling */
.contact-section {
  background-color: #000000; /* Dark Background */
  color: #fff; /* White text */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 20px;
  text-align: center;
}
#contact {
  width: 100%;
  max-width: 1024px;
  padding: 20px;
}

/* Heading styles */
#contact h2 {
  text-align: left;
  font-size: 5rem;
  color: #933ab6;
  margin-bottom: 37px;
}

/* Paragraph text styles */
#contact p {
  text-align: left;
  font-size: 3rem;
  color: #d1d5db; /* Light Gray Text */
  margin-bottom: 20px;
}

/* button */
/* From Uiverse.io by cssbuttons-io */
button {
  --glow-color: rgb(217, 176, 255);
  --glow-spread-color: rgba(191, 123, 255, 0.781);
  --enhanced-glow-color: rgb(231, 206, 255);
  --btn-color: rgb(100, 61, 136);
  border: 0.25em solid var(--glow-color);
  padding: 1em 3em;
  color: var(--glow-color);
  font-size: 15px;
  font-weight: bold;
  background-color: var(--btn-color);
  border-radius: 1em;
  outline: none;
  box-shadow: 0 0 1em 0.25em var(--glow-color),
    0 0 4em 1em var(--glow-spread-color),
    inset 0 0 0.75em 0.25em var(--glow-color);
  text-shadow: 0 0 0.5em var(--glow-color);
  position: relative;
  transition: all 0.3s;
}

button::after {
  pointer-events: none;
  content: "";
  position: absolute;
  top: 120%;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: var(--glow-spread-color);
  filter: blur(2em);
  opacity: 0.7;
  transform: perspective(1.5em) rotateX(35deg) scale(1, 0.6);
}

button:hover {
  color: var(--btn-color);
  background-color: var(--glow-color);
  box-shadow: 0 0 1em 0.25em var(--glow-color),
    0 0 4em 2em var(--glow-spread-color),
    inset 0 0 0.75em 0.25em var(--glow-color);
}

button:active {
  box-shadow: 0 0 0.6em 0.25em var(--glow-color),
    0 0 2.5em 2em var(--glow-spread-color),
    inset 0 0 0.5em 0.25em var(--glow-color);
}
button a {
  list-style-type: none;
}

/* animation */
#contact h2,
#contact p {
  opacity: 0; /* Initial state */
  transform: translateY(20px); /* Initially slightly offset */
  transition: all 0.5s ease-in-out; /* Smooth transition */
}
#contact h2.show,
#contact p.show {
  opacity: 1;
  transform: translateY(0); /* Reset the offset */
}

/* Responsive Design for Mobile */

@media (max-width: 768px) {
  .contact-section {
    flex-direction: column;
    padding: 40px 20px;
    height: auto;
    text-align: center;
  }

  #contact h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 20px;
  }

  #contact p {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 30px;
  }

  button {
    padding: 0.8em 2em;
    font-size: 1rem;
    border-radius: 0.75em;
  }
}
/* social media links */
.social-links {
  margin-top: 40px;
  display: flex;
  gap: 25px;
  justify-content: center;
}

.social-icon {
  font-size: 2.2rem;
  padding: 15px;
  border-radius: 50%;
  color: var(--glow-color);
  background-color: #111;
  border: 2px solid var(--glow-color);
  box-shadow: 0 0 0.8em var(--glow-color), 0 0 1.5em var(--glow-spread-color);
  transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s;
}

.social-icon:hover {
  transform: scale(1.2);
  background-color: var(--glow-color);
  color: var(--btn-color);
  box-shadow: 0 0 1.5em var(--glow-color), 0 0 2.5em var(--glow-spread-color);
}

/* Responsive size tweak */
@media (max-width: 768px) {
  .social-icon {
    font-size: 1.8rem;
    padding: 10px;
  }
}
@media (min-width: 769px) {
  .social-links {
    flex-direction: column; /* Stack icons vertically */
    align-items: center; /* Center-align them */
    gap: 20px; /* Add spacing between icons */
    padding-left: 1em;
  }
}

/* scroll down process */
/* Enable smooth scrolling */
html {
  scroll-behavior: smooth;
}
/* responsive design code for the whole website */
