/* ========== RESET & BASE ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #020617 100%);
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* ========== LOADING ANIMATION - NO TEXT ========== */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #020617 100%);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hide {
  opacity: 0;
  visibility: hidden;
}

/* Simple spinner animation */
.loader {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(56, 189, 248, 0.2);
  border-top: 3px solid #38bdf8;
  border-right: 3px solid #38bdf8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.3);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Pulsing dots animation - alternative simple loader */
.loader-dots {
  display: flex;
  gap: 12px;
}

.loader-dots span {
  width: 12px;
  height: 12px;
  background: #38bdf8;
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.loader-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.loader-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes pulse {

  0%,
  80%,
  100% {
    transform: scale(0.6);
    opacity: 0.5;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Custom Cursor Styles */
@media (min-width: 769px) {
  body {
    cursor: none;
  }

  .custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: #38bdf8;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transition: transform 0.2s ease, width 0.2s ease, height 0.2s ease, background 0.2s ease;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
    will-change: left, top;
  }

  .cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: 0.05s linear;
    will-change: left, top;
  }
}

@media (max-width: 768px) {
  body {
    cursor: auto;
  }

  .custom-cursor,
  .cursor-dot {
    display: none !important;
  }
}

/* 3D Background Container */
#three-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* Content above background */
.navbar,
main,
footer,
.scroll-top-btn {
  position: relative;
  z-index: 5;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 5rem 0;
}

/* ========== TYPOGRAPHY ========== */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
}

.accent {
  color: #38bdf8;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 0.3rem 1rem;
  border-radius: 40px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.section-header h2 {
  font-size: 2.2rem;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .section-header h2 {
    font-size: 1.8rem;
  }

  section {
    padding: 2.5rem 0;
  }

  .container {
    padding: 0 1.5rem;
  }

  .hero {
    min-height: auto;
  }

  .section-header {
    margin-bottom: 1.8rem;
  }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 40px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: #38bdf8;
  color: #020617;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.25);
}

.btn-primary:hover {
  background: #0ea5e9;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(56, 189, 248, 0.4);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid #38bdf8;
  color: #38bdf8;
}

.btn-outline:hover {
  background: rgba(56, 189, 248, 0.1);
  transform: translateY(-3px);
}

.full-width {
  width: 100%;
  justify-content: center;
}

/* ========== NAVBAR - FIXED POSITION ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(2, 6, 23, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  padding: 1rem 0;
  transition: all 0.3s;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-decoration: none;
  color: white;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.logo .dot {
  color: #38bdf8;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: #cbd5e1;
  font-weight: 500;
  transition: all 0.3s;
  font-size: 1rem;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #38bdf8;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: #38bdf8;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 5px;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: #0f172a;
    width: 100%;
    text-align: center;
    transition: 0.3s ease;
    gap: 1.5rem;
    padding: 2rem 0;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #38bdf8;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    font-size: 1.2rem;
  }
}

/* ========== HERO SECTION ========== */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  background: rgba(56, 189, 248, 0.15);
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 40px;
  font-size: 0.8rem;
  font-weight: 500;
  color: #38bdf8;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.2rem;
  margin-bottom: 1.2rem;
}

.hero-desc {
  font-size: 1.1rem;
  color: #94a3b8;
  margin-bottom: 2rem;
  max-width: 90%;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image-side {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-portrait-img {
  width: 100%;
  max-width: 380px;
  border-radius: 32px;

  /* Default shadow */
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.4),
    0 0 0 3px rgba(56, 189, 248, 0.3);

  transition: transform 0.3s ease, box-shadow 0.3s ease;
  object-fit: cover;
  aspect-ratio: 1 / 1;
}

/*HOVER EFFECT */
.hero-portrait-img:hover {
  transform: translateY(-10px) scale(1.05);

  /* Strong glowing shadow */
  box-shadow: 0 35px 65px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(56, 189, 248, 0.8),
    0 0 0 4px rgba(56, 189, 248, 0.6);
}

@media (hover: none) {
  .hero-portrait-img:active {
    transform: scale(0.97);
  }
}

@media (max-width: 768px) {
  .hero-image-side {
    display: none !important;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
  }

  .hero-desc {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero {
    min-height: auto;
    padding: 1rem 0 2.5rem 0;
  }
}

/* ========== ABOUT SECTION ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 2.5rem;
  background: #0f172a;
  padding: 2rem;
  border-radius: 32px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-grid:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 35px -12px rgba(56, 189, 248, 0.15);
  border-color: rgba(56, 189, 248, 0.4);
}

.about-left {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.about-text p {
  color: #94a3b8;
  margin-bottom: 0.9rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.personal-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0.5rem 0 0.25rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(56, 189, 248, 0.15);
  border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: #cbd5e1;
  font-size: 0.9rem;
  font-weight: 500;
}

.detail-item i {
  color: #38bdf8;
  font-size: 1rem;
  width: 24px;
}

.exp-highlight {
  background: rgba(56, 189, 248, 0.1);
  padding: 0.25rem 0.9rem;
  border-radius: 30px;
  font-weight: 600;
  color: #38bdf8;
}

.stats-container {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.25rem;
  background: #020617;
  border-radius: 24px;
  padding: 0.8rem 1rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 80px;
  transition: all 0.3s ease;
}

.stat-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: #38bdf8;
  display: block;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.65rem;
  color: #94a3b8;
  font-weight: 500;
}

.professional-img-wrapper {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.about-professional-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;

  /* Default shadow */
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.4),
    0 0 0 3px rgba(56, 189, 248, 0.3);

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/*HOVER EFFECT */
.about-professional-img:hover {
  transform: translateY(-10px) scale(1.05);

  /* Glow + deep shadow */
  box-shadow: 0 35px 65px rgba(0, 0, 0, 0.6),
    0 0 25px rgba(56, 189, 248, 0.8),
    0 0 0 4px rgba(56, 189, 248, 0.6);
}

@media (hover: none) {
  .about-professional-img:active {
    transform: scale(0.97);
  }
}

@media (max-width: 992px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }

  .about-right {
    order: -1;
  }

  .professional-img-wrapper {
    max-width: 250px;
  }
}

/* ========== SKILLS ========== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.8rem;
}

.skill-card {
  background: #0f172a;
  border-radius: 24px;
  padding: 1.8rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  border: 1px solid rgba(56, 189, 248, 0.1);
  cursor: pointer;
}

.skill-card:hover {
  border-color: #38bdf8;
  box-shadow: 0 20px 35px -10px rgba(56, 189, 248, 0.3);
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.skill-card i {
  font-size: 2.5rem;
  color: #38bdf8;
  margin-bottom: 1rem;
}

.skill-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.skill-card p {
  font-size: 0.85rem;
  color: #94a3b8;
}

/* ========== SERVICES ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #0f172a;
  border-radius: 28px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  border: 1px solid rgba(56, 189, 248, 0.1);
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: #38bdf8;
  box-shadow: 0 20px 35px -10px rgba(56, 189, 248, 0.2);
}

.service-icon {
  background: rgba(56, 189, 248, 0.1);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}

.service-icon i {
  font-size: 1.8rem;
  color: #38bdf8;
}

.service-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
}

.service-card p {
  color: #94a3b8;
  line-height: 1.5;
}

/* ========== PROJECTS ========== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  background: #0f172a;
  border-radius: 28px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  border: 1px solid rgba(56, 189, 248, 0.2);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 40px -12px rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
}

.project-img {
  height: 220px;
  border: 3px solid #ffffff;
  border-radius: 24px;
  margin: 12px;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.project-content p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

.project-tech span {
  background: rgba(56, 189, 248, 0.15);
  padding: 0.2rem 0.8rem;
  border-radius: 30px;
  font-size: 0.7rem;
  font-weight: 500;
  color: #38bdf8;
}

.project-links {
  display: flex;
  gap: 1.2rem;
}

.project-link {
  text-decoration: none;
  color: #38bdf8;
  font-weight: 500;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
}

.project-link:hover {
  color: white;
  gap: 12px;
}

.project-link.disabled {
  color: #64748b;
  cursor: default;
  pointer-events: none;
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
}

.contact-info-card {
  background: #0f172a;
  border-radius: 28px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-detail i {
  font-size: 1.5rem;
  color: #38bdf8;
  width: 40px;
}

.contact-detail a {
  color: #cbd5e1;
  text-decoration: none;
}

.contact-detail a:hover {
  color: #38bdf8;
}

.wh a {
  color: green;
}

.contact-form {
  background: #0f172a;
  border-radius: 28px;
  padding: 2rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 20px;
  color: #ffffff !important;
  font-family: 'Inter', sans-serif;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #64748b;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: rgba(56, 189, 248, 0.5);
}

.contact-form input:-webkit-autofill,
.contact-form input:-webkit-autofill:hover,
.contact-form input:-webkit-autofill:focus,
.contact-form input:-webkit-autofill:active,
.contact-form textarea:-webkit-autofill,
.contact-form textarea:-webkit-autofill:hover,
.contact-form textarea:-webkit-autofill:focus,
.contact-form textarea:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #020617 inset !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff !important;
}

@media (max-width: 800px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== FOOTER ========== */
.footer {
  border-top: 1px solid rgba(56, 189, 248, 0.2);
  padding: 2rem 0;
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer p {
  color: #64748b;
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: 1.2rem;
}

.footer-social a {
  color: #94a3b8;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  color: #38bdf8;
  transform: translateY(-3px);
}

/* ========== REVIEWS ========== */
.reviews-section {
  margin-top: 2rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.review-card {
  background: #0f172a;
  border-radius: 28px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  border: 1px solid rgba(56, 189, 248, 0.1);
  position: relative;
}

.review-card:hover {
  transform: translateY(-8px);
  border-color: #38bdf8;
}

.review-icon {
  position: absolute;
  top: 20px;
  right: 25px;
  opacity: 0.15;
  font-size: 3rem;
  color: #38bdf8;
}

.review-text p {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid rgba(56, 189, 248, 0.15);
  padding-top: 1.2rem;
}

.reviewer-avatar i {
  font-size: 3rem;
  color: #38bdf8;
}

.reviewer-info h4 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.reviewer-info p {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 0.3rem;
}

.review-stars {
  display: flex;
  gap: 0.25rem;
}

.review-stars i {
  font-size: 0.8rem;
  color: #fbbf24;
}

/* ========== SCROLL BUTTON & TOAST ========== */
.custom-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #38bdf8;
  color: #020617;
  padding: 12px 24px;
  border-radius: 40px;
  font-weight: 600;
  z-index: 9999;
  font-size: 0.9rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  transition: opacity 0.3s ease;
}

.scroll-top-btn {
  position: fixed;
  bottom: 70px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: #38bdf8;
  color: #020617;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top-btn:hover {
  background: #0ea5e9;
  transform: translateY(-4px);
}

@media (max-width: 768px) {
  .scroll-top-btn {
    bottom: 80px;
    right: 20px;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
  }
}
