/* --- CSS VARIABLES & THEME --- */
:root {
  --primary: #3a86ff;
  --secondary: #8338ec;
  --dark: #1a1a2e;
  --light: #f8f9fa;
  --gray: #6c757d;
}

/* --- GLOBAL & FONT STYLES --- */
body {
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--light);
  color: var(--dark);
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: none;
}

.logo,
h1,
h2,
h3 {
  font-family: "Manrope", sans-serif;
  letter-spacing: -0.02em;
}

/* Dark mode styles */
body.dark-mode {
  background-color: var(--dark);
  color: var(--light);
}

body.no-scroll {
  overflow: hidden;
}

/* --- CUSTOM CURSOR STYLES --- */
.cursor-dot,
.cursor-outline {
  pointer-events: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, transform 0.1s ease-in-out;
}

body:hover .cursor-dot,
body:hover .cursor-outline {
  opacity: 1;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary);
  transition: width 0.3s, height 0.3s, border-color 0.3s, background-color 0.3s;
}

.cursor-interact {
  width: 60px;
  height: 60px;
  background-color: rgba(58, 134, 255, 0.2);
  border-color: rgba(58, 134, 255, 0.5);
}

/* --- PRELOADER & BACKGROUND --- */
#constellation-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
}

#constellation-bg.hidden {
  display: none;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--light);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9998;
  transition: opacity 0.5s ease-out, background-color 0.3s ease;
}

#preloader.dark-mode {
  background-color: var(--dark);
}

#preloader.hidden {
  opacity: 0;
  pointer-events: none;
}

#preloader-three-bg {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- LAYOUT & SECTIONS --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
  font-weight: 700;
}

.section-title h2:after {
  content: "";
  position: absolute;
  width: 70px;
  height: 4px;
  background: var(--primary);
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.section-title p {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.dark-mode .section-title p {
  color: #adb5bd;
}

/* --- HEADER & NAVIGATION --- */
header {
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background-color: rgba(248, 249, 250, 0.85);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.dark-mode header {
  background-color: rgba(26, 26, 46, 0.85);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
}

.dark-mode .nav-links a {
  color: var(--light);
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s;
}

.nav-links a:hover:after {
  width: 100%;
}

.theme-toggle,
.background-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--dark);
  transition: transform 0.3s;
  margin-left: 10px;
}

.dark-mode .theme-toggle,
.dark-mode .background-toggle {
  color: var(--light);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

.dark-mode .mobile-menu-btn {
  color: var(--light);
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 0;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.hero-text h1 span {
  color: var(--primary);
}

.hero-text h1 .job-title {
  font-family: "Inter", sans-serif;
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--gray);
  display: block;
  letter-spacing: normal;
  margin-top: 8px;
}

.dark-mode .hero-text h1 .job-title {
  color: #adb5bd;
}

.hero-text p {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 30px;
  line-height: 1.7;
}

.dark-mode .hero-text p {
  color: #adb5bd;
}

.hero-image {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.hero-image img {
  width: 100%;
  height: auto;
  /* display: block; */
}

/* --- BUTTONS & SOCIAL LINKS --- */
.hero-btns {
  display: flex;
  gap: 15px;
}

.btn {
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: #2a75e6;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(58, 134, 255, 0.3);
}

.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(58, 134, 255, 0.3);
}

.dark-mode .btn-outline {
  color: var(--light);
  border-color: var(--light);
}

.dark-mode .btn-outline:hover {
  background-color: var(--light);
  color: var(--dark);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(58, 134, 255, 0.1);
  color: var(--primary);
  transition: all 0.3s;
}

.social-links a:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.dark-mode .social-links a {
  background-color: rgba(255, 255, 255, 0.1);
}

/* --- ABOUT SECTION --- */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text p {
  margin-bottom: 20px;
  line-height: 1.7;
  color: var(--dark);
}

.dark-mode .about-text p {
  color: var(--light);
}

.info-list {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.info-item i {
  width: 40px;
  height: 40px;
  background-color: rgba(58, 134, 255, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.info-item span {
  font-weight: 500;
}

/* --- SKILLS SECTION --- */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.skill-category {
  background-color: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.dark-mode .skill-category {
  background-color: #16213e;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.skill-category h3 {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  font-size: 1.3rem;
}

.skill-category h3 i {
  margin-right: 10px;
  color: var(--primary);
}

.skill-item {
  margin-bottom: 15px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
}

.skill-bar {
  height: 10px;
  background-color: #e9ecef;
  border-radius: 5px;
  overflow: hidden;
}

.dark-mode .skill-bar {
  background-color: #2d3748;
}

.skill-progress {
  height: 100%;
  background-color: var(--primary);
  border-radius: 5px;
  position: relative;
  width: 0;
  transition: width 1.5s ease-in-out;
}

/* --- PROJECTS SECTION --- */
.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
}

.dark-mode .project-card {
  background-color: #16213e;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(58, 134, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: white;
  color: var(--primary);
  margin: 0 10px;
  transition: all 0.3s;
}

.project-overlay a:hover {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.project-content {
  padding: 25px;
}

.project-content h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.project-content p {
  color: var(--gray);
  margin-bottom: 15px;
  line-height: 1.6;
}

.dark-mode .project-content p {
  color: #adb5bd;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
}

.tech-tag {
  background-color: rgba(58, 134, 255, 0.1);
  color: var(--primary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 15px;
}

.project-links a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.3s;
}

.project-links a:hover {
  color: #2a75e6;
  transform: translateX(3px);
}

.dark-mode .project-links a {
  color: var(--light);
}

.dark-mode .project-links a:hover {
  color: var(--primary);
}

/* --- CONTACT SECTION --- */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.contact-info-container {
  background-color: rgba(58, 134, 255, 0.05);
  border-radius: 15px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dark-mode .contact-info-container {
  background-color: rgba(255, 255, 255, 0.05);
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--primary);
}

.contact-info p {
  margin-bottom: 30px;
  line-height: 1.7;
  color: var(--dark);
}

.dark-mode .contact-info p {
  color: var(--light);
}

.contact-method {
  display: flex;
  margin-bottom: 20px;
}

.contact-method i {
  width: 50px;
  height: 50px;
  background-color: rgba(58, 134, 255, 0.1);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-right: 15px;
  flex-shrink: 0;
}

.contact-details h4 {
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.contact-details p {
  margin-bottom: 0;
  color: var(--gray);
}

.dark-mode .contact-details p {
  color: #adb5bd;
}

.contact-social {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.contact-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(58, 134, 255, 0.1);
  color: var(--primary);
  transition: all 0.3s;
}

.contact-social a:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--dark);
}

.dark-mode .contact-form label {
  color: var(--light);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s;
  background-color: white;
  color: var(--dark);
}

.dark-mode .contact-form input,
.dark-mode .contact-form textarea {
  background-color: #16213e;
  border-color: #2d3748;
  color: var(--light);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

/* --- FOOTER --- */
footer {
  background-color: var(--dark);
  color: white;
  padding: 30px 0;
  text-align: center;
}

.dark-mode footer {
  background-color: #0f0f1a;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 20px;
  margin: 20px 0;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary);
}

.copyright {
  font-size: 0.9rem;
  color: #adb5bd;
  margin-top: 10px;
}

/* --- ANIMATIONS --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fadeInUp {
  animation: fadeInUp 0.5s ease-out forwards;
}

/* --- RESPONSIVENESS (Media Queries) --- */
@media (max-width: 992px) {
  .hero-content,
  .about-content,
  .contact-container {
    grid-template-columns: 1fr;
  }

  .hero-text {
    order: 1;
    text-align: center;
  }

  .hero-image {
    order: 0;
    margin-bottom: 50px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-btns,
  .social-links {
    justify-content: center;
  }

  .about-image {
    max-width: 500px;
    margin: 0 auto 50px;
  }

  .info-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
    .hero-image{
    display: none;
  }
  .about-image{
    display: none;
  }
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: white;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
    gap: 15px;
    display: none;
  }

  .dark-mode .nav-links {
    background-color: #16213e;
  }

  .nav-links.active {
    transform: translateY(0);
    display: flex;
  }

  .nav-links a {
    padding: 10px 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-links .theme-toggle,
  .nav-links .background-toggle {
    display: block;
    margin-top: 15px;
    width: 95%;
    text-align: center;
    padding: 10px 0;
    font-size: 1.5rem;
    border: 1px solid var(--gray);
    border-radius: 5px;
  }

  .dark-mode .nav-links .theme-toggle,
  .dark-mode .nav-links .background-toggle {
    border-color: var(--light);
  }

  .nav-links .background-toggle {
    margin-top: 10px;
  }

  .hero-text h1 {
    font-size: 2.8rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .hero-text h1 .job-title {
    font-size: 1.8rem;
  }
}

@media (max-width: 576px) {
  .hero-btns {
    flex-direction: column;
    gap: 10px;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .projects-container {
    grid-template-columns: 1fr;
  }
}

@media (hover: none) and (pointer: coarse) {
  body {
    cursor: auto;
  }

  .cursor-dot,
  .cursor-outline {
    display: none !important;
  }
  .hero-image{
    display: none;
  }
  .about-image{
    display: none;
  }
}
