/* Base Styles and Variables */
:root {
  --bg-primary: #111111;
  --bg-secondary: #171810;
  --accent-color: #03fa6e;
  --text-primary: #16a200;
  --text-secondary: #ffffff;
  --transition: all 0.3s ease;
  --shadow: 0 4px 28px rgba(0, 0, 0, 0.25);
  --card-bg: #1a1a1a;
  /* --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --accent-color: #64ffda;
  --text-primary: #e6e6e6;
  --text-secondary: #b3b3b3;
  --transition: all 0.3s ease;
  --shadow: 0 4px 28px rgba(0, 0, 0, 0.25);
  --card-bg: #1a1a1a; */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

a {
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
}

ul {
  list-style: none;
}

button,
.btn {
  cursor: pointer;
  border: none;
  outline: none;
  transition: var(--transition);
  background: transparent;
}

img {
  max-width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 0;
      background-color: rgb(23 24 16);
  /* background-color: rgba(10, 10, 10, 0.8); */
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: var(--transition);
}

header.sticky {
  padding: 10px 0;
  box-shadow: var(--shadow);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  /* font-size: 24px;
  font-weight: 700;
  color: var(--accent-color); */
  width: 40px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  position: relative;
  font-weight: 500;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-color);
}

.menu-btn {
  display: none;
  font-size: 24px;
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--bg-primary);
}

.hero-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.hero-text {
  flex: 1;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-img {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--accent-color);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.profile-img:hover {
  transform: scale(1.05);
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--accent-color);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.cta-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--accent-color);
  color: var(--bg-primary);
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow);
}

.cta-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(100, 255, 218, 0.3);
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.about-image::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 91%;
  border: 2px solid var(--accent-color);
  border-radius: 10px;
  z-index: -1;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.about-text h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 70px;
  height: 3px;
  background-color: var(--accent-color);
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.skills {
  margin-top: 30px;
}

.skills h3 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.skill-item {
  background-color: var(--card-bg);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.skill-item:hover {
  background-color: var(--accent-color);
  color: var(--bg-primary);
  transform: translateY(-3px);
}

/* Projects Section */
.section-title {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  display: inline-block;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background-color: var(--accent-color);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-info {
  padding: 20px;
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--accent-color);
}
/* Loader Overlay */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Spinner Loader */
.loader {
  border: 8px solid rgba(255, 255, 255, 0.2);
  border-top: 8px solid #64ffda;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  animation: spin 1s linear infinite;
}
/* Spinner Animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.project-desc {
  color: var(--text-secondary);
  margin-bottom: 15px;
  font-size: 0.9rem;
}

.project-links {
  display: flex;
  gap: 15px;
}

.project-link {
  font-size: 1rem;
  color: var(--text-primary);
}

.project-link:hover {
  color: var(--accent-color);
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.contact-info h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
}

.contact-details {
  margin-top: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-icon {
  font-size: 20px;
  color: var(--accent-color);
  margin-right: 15px;
}

.social-links {
  margin-top: 40px;
}

.social-links h3 {
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.social-links h3::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
}

.social-icons {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: var(--card-bg);
  color: var(--text-primary);
  border-radius: 50%;
  font-size: 20px;
  transition: var(--transition);
}

.social-icon:hover {
  background-color: var(--accent-color);
  color: var(--bg-primary);
  transform: translateY(-5px);
}

.contact-form {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid #333;
  border-radius: 4px;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 8px rgba(100, 255, 218, 0.3);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.submit-btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--accent-color);
  color: var(--bg-primary);
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.submit-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(100, 255, 218, 0.3);
}

.error-message {
  color: #ff6b6b;
  font-size: 0.9rem;
  margin-top: 5px;
  display: none;
}

/* Footer */
footer {
  background-color: var(--bg-secondary);
  padding: 30px 0;
  text-align: center;
}

.footer-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-content a {
  color: var(--accent-color);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #4cd9b9;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-image {
    text-align: center;
    margin-bottom: 30px;
  }

  .about-image::before {
    display: none;
  }

  .about-text h2,
  .about-text h2::after {
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .contact-info {
    order: 2;
  }

  .contact-form {
    order: 1;
    margin-bottom: 40px;
  }

  .contact-info h3,
  .social-links h3,
  .contact-info h3::after,
  .social-links h3::after {
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
  }

  .contact-details,
  .social-links,
  .social-icons {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media screen and (max-width: 768px) {
  .menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    flex-direction: column;
    background-color: var(--bg-secondary);
    padding: 20px 0;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
  }

  .nav-links.active {
    left: 0;
  }

  section {
    padding: 60px 0;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .profile-img {
    width: 250px;
    height: 250px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }
}
