/* Base Styles */
:root {
  --primary-color: #3dcfd3;
  --dark-bg: #161616f0;
  --white: #fff;
  --black: #000;
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* Utility Classes */
.common-btn {
  width: 180px;
  background-color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 10px 20px;
  transition: all 0.3s ease;
  animation: fadeInUp 1.2s ease-in-out;
}

.common-btn:hover {
  background-color: transparent;
  color: var(--primary-color);
  font-weight: bold;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ----------- Navigation Styles ------------- */
.nav-container {
  background-color: var(--black);
  height: 70px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.main-nav {
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 100%;
}

.main-nav .left {
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: bold;
}

.nav-links {
  transition: all 0.3s ease;
}

.nav-links ul {
  display: flex;
  gap: 2rem;
}

.nav-links li {
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--white);
  font-size: 1.25rem;
  transition: color 0.2s ease;
}

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

/* ----------- Hamburger Menu Styles ------------- */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 24px;
  position: fixed;
  top: 30px;
  right: 20px;
  z-index: 1100;
}

.bar {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--white);
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 3px;
}

/* ----------- Responsive Navigation (Tablet) ------------- */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    position: fixed;
    top: 20px;
    right: 15px;
    z-index: 1100;
  }

  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--dark-bg);
    padding: 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1001;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links ul {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .nav-links a {
    display: block;
    padding: 1rem;
    font-size: 1.5rem;
  }

  .main-nav .left {
    font-size: 1.5rem;
  }

  /* Hamburger Animation */
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  /* Hide contact button on mobile */
  .main-nav .right {
    display: none;
  }
}

/* Mobile Friendly */
@media (max-width: 480px) {


  .hamburger {
    display: block;
    position: fixed;
    top: 20px;
    right: 15px;
    z-index: 1100;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--dark-bg);
    padding: 2rem;
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1001;
  }

  .nav-links.active {
    left: 0;
    display: flex;
  }

  .nav-links ul {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .nav-links a {
    display: block;
    font-size: 1.25rem;
    padding: 10px;
  }

  /* Fix for close animation */
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* -------------------Home Section -------------------------*/
.home {
  min-height: 110vh;
  background-color: var(--dark-bg);
  display: flex;
  justify-content: space-around;
  align-items: start;
  padding: 60px 20px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 40% 85%, 0 100%);
}

.home .left {
  width: 60%;
  color: var(--white);
}

.home #greet {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.home #developer {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.home #developer span {
  color: var(--primary-color);
}

.profile {
  width: 500px;
  height: 600px;
  background-color: rgb(248, 248, 65);
  border-radius: 5% 30% 30% 70%;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Social Links */
.account {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.acc-type {
  width: 50px;
  height: 50px;
  border: 2px solid var(--primary-color);
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
}

.acc-type:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.acc-type img {
  width: 30px;
  height: 30px;
  display: flex;
}
@media (max-width: 768px) {
  .home {
    flex-direction: column-reverse;
    text-align: center;
    align-items: center;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 40% 95%, 0 100%);
  }

  .account {
    justify-content: center;
  }

  .home .left {
    width: 100%;
    margin-bottom: 2rem;
  }

  .profile {
    width: 300px;
    height: 400px;
  }

  .about {
    flex-direction: column;
    text-align: center;
  }

  .project-item {
    flex-direction: column;
    text-align: center;
  }

  .project-item.reverse {
    flex-direction: column;
  }
}

/* -------------------About Section--------------------- */
.about {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 20px;
  display: flex;
  gap: 4rem;
  align-items: center;
}

.about-left {
  flex: 1;
}

.about-left img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.about-right {
  flex: 1;
}

.about-right h1 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.about-right h1 span {
  color: #000;
}

.about-right p {
  line-height: 1.8;
  margin-bottom: 1rem;
}

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

.skills-section {
  background-color: var(--dark-bg);
  padding: 5rem 2rem;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 40% 95%, 0 100%);
  margin-bottom: 5rem;
}

.skills-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 1rem;
}

.section-title span {
  color: var(--primary-color);
}

.section-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.skill-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 100%
  );
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: var(--primary-color);
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.skill-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  z-index: 2;
  position: relative;
}

.icon-background {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  border-radius: 50%;
  top: 0;
  left: 0;
  opacity: 0.2;
  transform: scale(0.9);
  transition: all 0.3s ease;
}

.skill-card:hover .icon-background {
  transform: scale(1.1);
  opacity: 0.3;
}

.skill-card h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.skill-level {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  position: relative;
  margin-top: 1rem;
}

.level-bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary-color), #ff7b00);
  position: relative;
  transition: width 1s ease;
}

.level-bar::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
  border-radius: 4px;
}

.skill-level span {
  position: absolute;
  right: 0;
  top: -25px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.projects-cta {
  text-align: center;
  margin-top: 3rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .skills-section {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 40% 98%, 0 100%);
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .skills-section {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 40% 98%, 0 100%);
    padding: 4rem 1.5rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
  }

  .skill-card {
    padding: 1.5rem 1rem;
  }

  .skill-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
  }

  .skill-card h3 {
    font-size: 1.1rem;
  }

  .cta-button {
    padding: 0.8rem 1.8rem;
    font-size: 1rem;
  }
}

/* -----------------Projects Section------------- */
/* Projects Showcase Section */
.projects-showcase {
  background-color: #fff;
  padding: 5rem 0;
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h1 {
  font-size: 2.8rem;
  color: #333;
  margin-bottom: 1rem;
}

.section-header h1 span {
  color: var(--primary-color);
}

.section-subtitle {
  color: #666;
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 1rem;
}

.project-card {
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.project-media {
  position: relative;
  height: 300px;
  overflow: hidden;
}

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

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

.project-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-hover {
  opacity: 1;
}

.project-logo {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.project-logo img {
  width: 60%;
  height: 60%;
  object-fit: contain;
}

.project-hover h3 {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
  padding: 0 20px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  color: #fff;
  background: var(--primary-color);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.project-link i {
  margin-right: 8px;
}

.project-link:hover {
  background: #fff;
  color: var(--primary-color);
  transform: translateY(-3px);
}

.project-details {
  padding: 1.5rem;
}

.project-details p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tech span {
  background: rgba(255, 166, 0, 0.1);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.cta-container {
  text-align: center;
  margin-top: 3rem;
}

.cta-container a {
  text-decoration: none;
  font-size: 1rem;
  padding: 10px;
  color: #000;
  font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .section-header h1 {
    font-size: 2.3rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .project-media {
    height: 220px;
  }
}

@media (max-width: 480px) {
  .projects-showcase {
    padding: 3rem 0;
  }

  .section-header h1 {
    font-size: 2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}
/* ------------ Freelancer Section----------------- */
.freelance {
  position: relative;
}

.freelance-container {
  position: relative;
  width: 100%;
  min-height: 400px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("laptop.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  /* clip-path: polygon(0 0, 100% 0, 100% 100%, 40% 90%, 0 100%); */
}

.freelance-container h1 {
  font-size: 3rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.8s ease;
}

.freelance-container p {
  color: var(--white);
  font-size: 1.3rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease;
}

.freelance-container .common-btn {
  width: 200px;
  background-color: var(--primary-color);
  color: var(--white);
  border: 2px solid var(--primary-color);
  font-size: 1.1rem;
  animation: fadeInUp 1.2s ease;
}

.freelance-container .common-btn:hover {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

/* ---------------------Contact Section---------------------- */

/* Contact Section */
.contact {
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  padding: 2rem 0;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("pattern.png") repeat;
  opacity: 0.1;
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

.contact h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-align: center;
}

.contact h1 span {
  color: var(--primary-color);
}

.contact p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #ccc;
}

#contact-form {
  background: rgba(255, 255, 255, 0.05);
  padding: 2.5rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.input-group {
  margin-bottom: 1.5rem;
}

.input-group label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  font-weight: 500;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--white);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--primary-color);
  outline: none;
}

.input-group textarea {
  min-height: 150px;
  resize: vertical;
}

#contact-form button {
  width: 100%;
  padding: 15px;
  background: var(--primary-color);
  border: 2px solid transparent;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

#contact-form button:hover {
  background: transparent;
  border: 2px solid var(--primary-color);
  transform: translateY(-2px);
}

/* ------------Footer Section------------------- */
.footer {
  background: var(--dark-bg);
  color: var(--white);
  padding: 4rem 20px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* Media Queries */

@media (max-width: 480px) {
  .nav-links {
    display: none;
  }

  .card-wrapper {
    grid-template-columns: 1fr;
  }
}

/* Footer Section */
.footer {
  background-color: #1a1a1a;
  color: var(--white);
  padding: 4rem 0 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.footer-section {
  padding: 0 1rem;
}

.footer-section h2 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50px;
  height: 2px;
  background: var(--primary-color);
}

.footer-section p {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.8rem;
}

.footer-section ul li a {
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-section ul li a:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.social-links img {
  width: 20px;
  height: 20px;
}

.footer-section.newsletter input {
  width: 100%;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-section.newsletter button {
  padding: 12px 25px;
  background: var(--primary-color);
  border: none;
  border-radius: 8px;
  color: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
}

.footer-section.newsletter button:hover {
  background: #2bbdc1;
}

.footer-bottom {
  background: #111;
  padding: 1.5rem 0;
  margin-top: 4rem;
  text-align: center;
}

.footer-bottom p {
  color: #888;
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Media Queries */
@media (max-width: 768px) {
  .freelance-container h1 {
    font-size: 2rem;
  }

  .freelance-container p {
    font-size: 1.1rem;
  }

  .contact h1 {
    font-size: 2rem;
  }

  #contact-form {
    padding: 1.5rem;
  }

  .footer-section {
    text-align: center;
  }

  .footer-section h2::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .freelance-container {
    padding: 3rem 15px;
  }

  .contact {
    padding: 4rem 0;
  }

  .contact-container {
    padding: 0 15px;
  }

  .footer {
    padding: 3rem 0 0;
  }

  .footer-container {
    gap: 2rem;
  }
}
