/* custom.css */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  background: #0F172A;
}

/* ===== PRELOADER ===== */
#preloader {
  opacity: 1;
  visibility: visible;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* ===== NAVBAR ===== */
#navbar.visible {
  transform: translateY(0);
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  margin: 4px 0;
  transition: all 0.3s ease;
}

#mobileMenuBtn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

#mobileMenuBtn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

#mobileMenuBtn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, #2563EB, #7C3AED);
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #7C3AED, #2563EB);
  transition: left 0.6s ease;
  z-index: -1;
}

.btn-primary:hover::before {
  left: 0;
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  border: 2px solid #06B6D4;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  background: transparent;
}

.btn-secondary:hover {
  background: rgba(6, 182, 212, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.2);
}

/* ===== PROFILE ===== */
.profile-container {
  position: relative;
  width: 320px;
  height: 320px;
}

.profile-container img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 2;
}

.profile-glow {
  position: absolute;
  inset: -15px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #06B6D4, #7C3AED);
  filter: blur(25px);
  opacity: 0.7;
  z-index: 1;
}

.profile-border {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #06B6D4, #7C3AED);
  z-index: 1;
  animation: gradientShift 3s ease infinite;
}

.tech-badge {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.tech-badge:hover {
  transform: translateY(-5px) scale(1.1);
}

/* ===== SECTIONS ===== */
.section-title {
  font-size: 3rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff, #9CA3AF);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: #9CA3AF;
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== SKILLS ===== */
.skill-category {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.skill-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.8));
  border-radius: 16px;
  padding: 20px 15px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.skill-card:hover {
  transform: translateY(-8px);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.15);
}

.skill-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: rgba(255, 255, 255, 0.05);
}

.skill-card.text-only {
  font-weight: 500;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.skill-card.text-only:hover {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
}

/* ===== PROJECTS ===== */
.project-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
  border-radius: 20px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.15);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.project-tech-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.project-status {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: #9CA3AF;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}

.project-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #06B6D4;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}

.project-description {
  color: #9CA3AF;
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.project-features {
  margin-bottom: 24px;
}

.feature {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.feature i {
  margin-right: 10px;
  font-size: 0.9rem;
}

.feature span {
  font-size: 0.95rem;
  color: #D1D5DB;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.project-tags span {
  background: rgba(6, 182, 212, 0.1);
  color: #06B6D4;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  color: #9CA3AF;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  flex: 1;
}

.project-link:hover {
  background: rgba(6, 182, 212, 0.2);
  color: white;
  transform: translateY(-2px);
}

.project-link i {
  margin-right: 8px;
}

/* ===== CONTACT ===== */
.contact-form-container {
  background: rgba(30, 41, 59, 0.5);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  color: #9CA3AF;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #06B6D4;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

.form-input::placeholder {
  color: #6B7280;
}

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateX(5px);
}

.contact-icon {
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-title {
  font-size: 1rem;
  font-weight: 600;
  color: #9CA3AF;
  margin-bottom: 0.25rem;
}

.contact-info-link {
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info-link:hover {
  color: #06B6D4;
}

.contact-info-text {
  color: white;
  font-size: 1.1rem;
  font-weight: 500;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  color: #9CA3AF;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: #06B6D4;
  color: white;
  transform: translateY(-3px);
}

/* ===== ANIMATION UTILITIES ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .section-title {
    font-size: 2.2rem;
  }
  
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  }
  
  .profile-container {
    width: 260px;
    height: 260px;
  }
  
  .contact-form-container {
    padding: 1.5rem;
  }
  
  .project-card {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.8rem;
  }
  
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .btn-primary, .btn-secondary {
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  .project-links {
    flex-direction: column;
  }
}