/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --primary-green: #117e23;
  --light-green: #81e696;
  --dark-gray: #252627;
  --white: #ffffff;
  --dark-green: #05240a;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--dark-gray);
  background: linear-gradient(135deg,
      var(--light-green) 0%,
      var(--white) 50%,
      var(--light-green) 100%);
  background-attachment: fixed;
  background-size: cover;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%,
      rgba(17, 126, 35, 0.1) 0%,
      transparent 50%),
    radial-gradient(circle at 80% 20%,
      rgba(148, 251, 171, 0.15) 0%,
      transparent 50%),
    radial-gradient(circle at 60% 60%,
      rgba(17, 126, 35, 0.05) 0%,
      transparent 40%);
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
  min-height: auto;
}

/* ===== TYPOGRAPHY ===== */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--dark-green);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(135deg,
      var(--primary-green) 0%,
      var(--light-green) 100%);
  border-radius: 2px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--primary-green);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(17, 126, 35, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary-green);
  border-color: var(--primary-green);
}

.btn-outline:hover {
  background: var(--light-green);
  border-color: var(--dark-gray);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(17, 126, 35, 0.3);
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark-green);
  text-decoration: none;
  background: linear-gradient(135deg,
      var(--primary-green) 0%,
      var(--light-green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--dark-gray);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-green);
  background: rgba(17, 126, 35, 0.1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background: #2c3e50;
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: transparent;
  padding-top: 70px;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-content {
  animation: fadeInLeft 1s ease;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark-green);
  line-height: 1.2;
}

.highlight {
  background: var(--primary-green);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--primary-green);
  margin-bottom: 1rem;
  font-weight: 500;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--dark-gray);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
  animation: fadeInRight 1s ease;
}

.hero-img-container {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid white;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.hero-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hero-img-container:hover img {
  transform: scale(1.1);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-link {
  color: #667eea;
  font-size: 1.5rem;
  text-decoration: none;
}

/* ===== ABOUT SECTION (WITH BACKGROUND) ===== */
.about {
  background: var(--white);
  position: relative;
  margin: 0 20px;
  padding: 80px 40px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(5, 36, 10, 0.15);
  border: 1px solid var(--light-green);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-description {
  font-size: 1.1rem;
  color: var(--dark-gray);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-info {
  margin: 2rem 0;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--dark-gray);
}

.info-item i {
  color: var(--primary-green);
  width: 20px;
}

.about-image img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

/* ===== SKILLS SECTION (TRANSPARENT) ===== */
.skills {
  background: transparent;
  position: relative;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.skill-category h3 {
  font-size: 1.5rem;
  color: var(--dark-green);
  margin-bottom: 1.5rem;
  text-align: center;
}

.skill-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(5, 36, 10, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--light-green);
}

.skill-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(17, 126, 35, 0.2);
  border-color: var(--primary-green);
}

.skill-item i {
  font-size: 2.5rem;
  color: var(--primary-green);
  margin-bottom: 0.5rem;
}

.skill-item span {
  font-weight: 500;
  color: var(--dark-gray);
  text-align: center;
}

/* ===== PROJECTS SECTION (WITH BACKGROUND) ===== */
.projects {
  background: var(--white);
  position: relative;
  margin: 0 20px;
  padding: 80px 40px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(5, 36, 10, 0.15);
  border: 1px solid var(--light-green);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.project-card {
  background: var(--white);
  border-radius: 15px;
  overflow: visible;
  box-shadow: 0 10px 30px rgba(5, 36, 10, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  border: 1px solid var(--light-green);
  z-index: 1;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-10px) scale(1.1);
  box-shadow: 0 20px 40px rgba(17, 126, 35, 0.2);
  border-color: var(--primary-green);
  z-index: 4;
}

.project-card:hover .project-media video,
.project-card:focus-within .project-media video {
  transform: scale(1.1) translate(-50%, -50% * 1.1);
  filter: saturate(1.1) contrast(1.1);
}

.project-media {
  position: relative;
  width: 100%;
  background-color: var(--primary-green);
  overflow: hidden;
  height: 200px;
}

.project-media video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
  pointer-events: none;
  display: block;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--white);
  color: var(--primary-green);
  border-radius: 50%;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.project-link:hover {
  transform: scale(1.1);
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  font-size: 1.3rem;
  color: var(--dark-green);
  margin-bottom: 0.5rem;
}

.project-content p {
  color: var(--dark-gray);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: rgba(17, 126, 35, 0.1);
  color: var(--primary-green);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.projects-cta {
  text-align: center;
}

/* ===== CONTACT SECTION (TRANSPARENT) ===== */
.contact {
  background: transparent;
  position: relative;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 2rem;
  color: var(--dark-green);
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--dark-gray);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item i {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg,
      var(--primary-green) 0%,
      var(--light-green) 100%);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.contact-item h4 {
  color: var(--dark-green);
  margin-bottom: 0.2rem;
}

.contact-item p {
  color: var(--dark-gray);
  margin: 0;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 50px;
  height: 50px;
  background: var(--white);
  color: var(--primary-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(5, 36, 10, 0.1);
  border: 1px solid var(--light-green);
}

.social-link:hover {
  background: var(--primary-green);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(17, 126, 35, 0.3);
}

/* ===== CONTACT FORM ===== */
.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 15px 35px rgba(5, 36, 10, 0.1);
  border: 1px solid var(--light-green);
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: transparent;
  transition: border-color 0.3s ease;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-green);
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: #999;
  font-size: 1rem;
  transition: all 0.3s ease;
  pointer-events: none;
  background: var(--white);
  padding: 0 0.5rem;
}

.form-group input:focus+label,
.form-group textarea:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:not(:placeholder-shown)+label {
  top: -0.7rem;
  left: 0.7rem;
  font-size: 0.8rem;
  color: var(--primary-green);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--dark-green);
  color: var(--white);
  padding: 2rem 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--light-green);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg,
      var(--primary-green) 0%,
      var(--light-green) 100%);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(17, 126, 35, 0.3);
}

/* ===== 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);
  }
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }

  40% {
    transform: translateY(-10px) translateX(-50%);
  }

  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {

  .hero-container,
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu li {
    margin: 1rem 0;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .skills-container {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .section {
    padding: 60px 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .hero-img-container {
    width: 250px;
    height: 250px;
  }

  .skill-item {
    padding: 1rem;
  }

  .skill-item i {
    font-size: 2rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mb-1 {
  margin-bottom: 0.5rem;
}

.mb-2 {
  margin-bottom: 1rem;
}

.mb-3 {
  margin-bottom: 1.5rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.mt-1 {
  margin-top: 0.5rem;
}

.mt-2 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: 1.5rem;
}

.mt-4 {
  margin-top: 2rem;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}