@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* --- CSS Variables --- */
:root {
  --accent-gold: #ffbd39;
  --accent-gold-light: #ffd76e;
  --accent-blue: #4fc3f7;
  --accent-purple: #b388ff;
  --gradient-primary: linear-gradient(135deg, #ffbd39 0%, #ff9800 100%);
  --gradient-hero: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --dark-bg: #0f0f1a;
  --dark-card: #1a1a2e;
  --text-muted-custom: #a0a0b0;
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f0f1a;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ffbd39, #ff9800);
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ffd76e;
}

/* --- Particle Canvas --- */
#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero .home-slider {
  position: relative;
  z-index: 1;
}

/* --- Typing Effect --- */
.typing-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  background: linear-gradient(135deg, #ffbd39 0%, #ff9800 50%, #4fc3f7 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease infinite;
  display: inline-block;
  min-height: 1.4em;
}

.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1em;
  background: var(--accent-gold);
  animation: blink 0.8s infinite;
  vertical-align: text-bottom;
  margin-left: 2px;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@keyframes gradientShift {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* --- Gradient Section Titles --- */
.heading-section h2,
.resume-title {
  position: relative;
  display: inline-block;
}

.heading-section h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.heading-section.text-center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.heading-section h2:hover::after {
  width: 100px;
}

/* --- Floating Social Sidebar --- */
.social-sidebar {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.social-sidebar a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #fff;
  font-size: 18px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.social-sidebar a:hover {
  background: var(--accent-gold);
  color: #000;
  transform: translateX(5px) scale(1.1);
  box-shadow: 0 0 20px rgba(255, 189, 57, 0.4);
  text-decoration: none;
}

.social-sidebar::after {
  content: '';
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, rgba(255, 189, 57, 0.5), transparent);
  margin: 0 auto;
}

@media (max-width: 991px) {
  .social-sidebar {
    display: none;
  }
}

/* --- Scroll to Top Button --- */
.scroll-to-top {
  position: fixed;
  bottom: 90px;
  right: 100px;
  width: 46px;
  height: 46px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  color: #000;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 998;
  box-shadow: 0 4px 15px rgba(255, 189, 57, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(255, 189, 57, 0.5);
}

/* --- Modern Skill Pills --- */
.skills-modern {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.skill-category {
  flex: 1 1 280px;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 28px 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-category:hover {
  border-color: rgba(255, 189, 57, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.skill-category h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-gold);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.skill-category h4 i {
  font-size: 1rem;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: #d0d0e0;
  font-size: 0.82rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: default;
}

.skill-pill:hover {
  background: rgba(255, 189, 57, 0.12);
  border-color: rgba(255, 189, 57, 0.4);
  color: var(--accent-gold-light);
  transform: translateY(-2px);
}

.skill-pill i {
  font-size: 0.9rem;
}

/* --- Glassmorphism Project Cards --- */
.project-card-glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 30px;
}

.project-card-glass:hover {
  border-color: rgba(255, 189, 57, 0.3);
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 189, 57, 0.08);
}

.project-card-glass .project-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  width: 100%;
}

.project-card-glass .project-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card-glass:hover .project-img-wrap img {
  transform: scale(1.08);
}

.project-card-glass .project-img-wrap .project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.8) 100%);
}

.project-card-glass .project-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-card-glass .project-body h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.project-card-glass .project-body h4 a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s;
}

.project-card-glass .project-body h4 a:hover {
  color: var(--accent-gold);
  text-decoration: none;
}

.project-card-glass .project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.project-card-glass .tech-tag {
  font-size: 0.7rem;
  padding: 3px 10px;
  background: rgba(255, 189, 57, 0.1);
  border: 1px solid rgba(255, 189, 57, 0.25);
  border-radius: 12px;
  color: var(--accent-gold);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.project-card-glass .project-body p,
.project-card-glass .project-body ul {
  color: var(--text-muted-custom);
  font-size: 0.88rem;
  line-height: 1.6;
}

.project-card-glass .project-body ul {
  padding-left: 18px;
  margin-bottom: 0;
}

.project-card-glass .project-body ul li {
  margin-bottom: 6px;
}

.project-card-glass .project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  color: var(--accent-gold);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.3s;
}

.project-card-glass .project-link:hover {
  color: var(--accent-gold-light);
  gap: 10px;
  text-decoration: none;
}

/* --- Featured Project Badge --- */
.featured-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gradient-primary);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 2;
}

/* --- Stats Counter Section --- */
.stats-section {
  padding: 60px 0;
}

.stat-item {
  text-align: center;
  padding: 20px;
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-number span.stat-suffix {
  font-size: 1.8rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted-custom);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 500;
}

/* --- Achievement Cards Redesign --- */
.achievement-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.achievement-card:hover {
  border-color: rgba(255, 189, 57, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.achievement-card .achievement-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: block;
}

.achievement-card h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 10px;
  font-weight: 600;
}

.achievement-card p {
  color: var(--text-muted-custom);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* --- Resume Section Enhancement --- */
.resume-item {
  position: relative;
  padding-left: 25px;
  border-left: 2px solid rgba(255, 189, 57, 0.2);
  transition: border-color 0.3s;
}

.resume-item:hover {
  border-left-color: var(--accent-gold);
}

.resume-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 10px rgba(255, 189, 57, 0.4);
}

/* --- Cursor Glow Effect --- */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 189, 57, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

.cursor-glow.active {
  opacity: 1;
}

@media (max-width: 768px) {
  .cursor-glow {
    display: none;
  }
}

/* --- Hire Me Section Enhancement --- */
.ftco-hireme {
  position: relative;
  overflow: hidden;
}

.ftco-hireme::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.85), rgba(26, 26, 46, 0.9));
  z-index: 2;
}

.ftco-hireme .container {
  position: relative;
  z-index: 3;
}

/* --- Contact Form Enhancement --- */
.contact-form .form-control {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  transition: border-color 0.3s !important;
}

.contact-form .form-control:focus {
  border-color: var(--accent-gold) !important;
  box-shadow: 0 0 15px rgba(255, 189, 57, 0.1) !important;
}

.contact-form .form-control::placeholder {
  color: rgba(255,255,255,0.3) !important;
}

/* --- Button Enhancements --- */
.btn-primary {
  background: var(--gradient-primary) !important;
  border: none !important;
  color: #000 !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px;
  border-radius: 8px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(255, 189, 57, 0.35) !important;
}

.btn-white.btn-outline-white {
  border: 2px solid rgba(255,255,255,0.3) !important;
  color: #fff !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  background: transparent !important;
}

.btn-white.btn-outline-white:hover {
  background: rgba(255,255,255,0.1) !important;
  border-color: #fff !important;
  transform: translateY(-2px) !important;
}

/* --- Navbar Enhancement --- */
.ftco_navbar {
  transition: all 0.4s ease;
}

.ftco_navbar.scrolled {
  backdrop-filter: blur(20px);
  background: rgba(15, 15, 26, 0.9) !important;
}

.ftco_navbar .navbar-brand {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Footer Enhancement --- */
.ftco-footer {
  background: #0a0a14 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- About Section Enhancement --- */
.about-info li span:first-child {
  color: var(--accent-gold) !important;
  font-weight: 600;
  min-width: 140px;
}

/* --- Smooth Reveal Animations --- */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* --- Responsive adjustments --- */
@media (max-width: 767px) {
  .stat-number {
    font-size: 2.2rem;
  }
  
  .skill-category {
    max-width: 100%;
  }
  
  .project-card-glass .project-img-wrap {
    height: 160px;
  }

  .scroll-to-top {
    right: 20px;
    bottom: 80px;
  }
}
