

:root {
  --primary: #C05850;       /* Warm Red - Buttons, Highlights */
  --primary-dark: #A8443D;  /* Darker Red for Hover */
  --secondary: #E2AB7F;     /* Peach - Accent / Links */
  --dark: #3A353F;          /* Dark Background */
  --darker: #2a272d;        /* Darker Shade */
  --light: #F1ECE1;         /* Soft Background */
  --lighter: #ffffff;       /* Pure White */
  --text: #505668;          /* Muted Blue Gray - Body Text */
  --text-light: #7a7f91;    /* Lighter Gray Text */
  --shadow: 0 10px 20px #E2AB7F;
  --transition: all 0.3s ease;
}



* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--primary) var(--light);
  scrollbar-width: thin;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--lighter);
  transition: var(--transition);
}

a {
  text-decoration: none;
  color: var(--primary);
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

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

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--primary);
  color: white;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  font-size: 2.5rem;
  color: var(--dark);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(249, 250, 251, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  transition: var(--transition);
}


.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-icons{
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

.logo span {
  color: var(--dark);
}

.nav-menu {
  display: flex;
}

.nav-menu li {
  margin-left: 30px;
}

.nav-menu a {
  color: var(--dark);
  font-weight: 500;
  transition: var(--transition);
}

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

.theme-toggle {
  background: none;
  border: none;
  color: var(--dark);
  font-size: 1.2rem;
  cursor: pointer;
  margin-left: 20px;
  transition: var(--transition);
}

.hamburger {
  display: none;
  cursor: pointer;
}

.mobile-menu{
  /* display: flex; */
  flex-direction: column;
  gap: 20px;
  position: relative;
  margin: 20px;
  padding: 20px;
  background: var(--lighter);
  box-shadow: var(--shadow);
  border-bottom: 9px solid var(--primary);
  border-radius: 10px;
  /* top: 70px; */
  display: none;
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 190px 0 80px; 
  background: var(--light);
  /* padding-top: 80px; */
  
  position: relative;
  overflow: hidden;
}



.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: var(--dark);
  line-height: 1.2;
}

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

.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text);
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  /* max-width: 100%; */
  /* height: auto; */
  width: 600px;
  height: 600px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--primary);
  box-shadow: var(--shadow);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--dark);
}

.about-text p {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: var(--text);
}

/* Skills Section */
.skills {
  background: var(--light);
  transition: var(--transition);
}

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

.skill-item {
  text-align: center;
  padding: 25px 20px;
  background: var(--lighter);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.skill-item:hover {
  transform: translateY(-5px);
}

.skill-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--primary);
}

.skill-name {
  font-weight: 600;
  color: var(--dark);
}

/* Projects Section */
.projects-grid , .allprojects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 60px;
}

.project-card {
  background: var(--lighter);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
}

.project-img {
  height: 200px;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.project-info {
  padding: 20px;
}

.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--dark);
}

.project-info p {
  margin-bottom: 15px;
  color: var(--text);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.project-tech span {
  background: var(--light);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 15px;
}

.learn-morebtn {
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  width: fit-content;
  margin: 60px auto auto auto ;
  /* margin-top: 20px; */
}

/* Resume Section */
.resume {
  text-align: center;
  background: var(--light);
  transition: var(--transition);
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: var(--dark);
}

.contact-info p {
  margin-bottom: 20px;
  color: var(--text);
}

.contact-details {
  margin-top: 30px;
}

.contact-details div {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.contact-details i {
  font-size: 1.2rem;
  color: var(--primary);
  margin-right: 15px;
  width: 30px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--light);
  color: var(--primary);
  border-radius: 50%;
  transition: var(--transition);
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1px solid var(--light);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--lighter);
  color: var(--text);
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 40px 0 20px;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-logo span {
  color: var(--primary);
}

.copyright {
  margin-top: 20px;
  font-size: 0.9rem;
  opacity: 0.8;
}

@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .hero-buttons {
    justify-content: center;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .hero-image img {
    width: 400px;
    height: 400px;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 120px 0 80px; /* Top space adjust for header */
    text-align: center;
  }

  .hero-text {
    margin-top: 40px;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-image img {
    width: 280px;
    height: 280px;
  }

  .about-image {
    display: none;
  }

  .container {
    padding: 0 15px;
  }

  /* Navigation */
  .nav-menu {
    position: fixed;
    top: 65px;
    right: -100%;
    width: 70%;
    height: calc(100vh - 65px);
    background: var(--lighter);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    display: block;
    margin: 0;
  }

  .hamburger {
    display: block;
  }

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

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-text p {
    font-size: 0.9rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
}
