/* ===== Base palette & helpers ===== */
:root {
  --bg: #0A0A0A;
  --fg: #F0F0F0;
  --accent: #FF0033;
  --progress: #FF0033;
  --bg-secondary: #111111;
  --bg-tertiary: #1A1A1A;
  --border-color: #333333;
  --text-secondary: #B0B0B0;
  --text-muted: #808080;
  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-glow: rgba(255, 0, 51, 0.3);
  --gradient-primary: linear-gradient(135deg, #FF0033, #FF6B35);
}

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

html, body {
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  font-family: 'Orbitron', sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.loading-logo {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid var(--accent);
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  z-index: 1;
}

.loading-text {
  font-size: 1.2rem;
  color: var(--text-secondary);
  animation: pulse 2s ease-in-out infinite;
}

.loading-bar {
  width: 200px;
  height: 4px;
  background: var(--bg-secondary);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.loading-progress {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 2px;
  width: 0%;
  animation: loadingProgress 3s ease-in-out forwards;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

@keyframes loadingProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s ease;
  transform: translateY(-100%);
}

.navbar.visible {
  transform: translateY(0);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-brand .nav-logo {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-brand .nav-logo:hover {
  color: var(--fg);
  transform: scale(1.05);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--fg);
  background: var(--accent);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.bar {
  width: 25px;
  height: 3px;
  background: var(--fg);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* ===== HERO SECTION ===== */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

/* Particle Background */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 1;
  }
}

/* Typewriter Effect */
.typewriter-container {
  margin-bottom: 2rem;
}

.typewriter-subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: var(--text-secondary);
  margin-top: 1rem;
  min-height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.typewriter-text {
  color: var(--accent);
  font-weight: 600;
}

.cursor {
  color: var(--accent);
  animation: blink 1s infinite;
  margin-left: 2px;
}

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

/* Hero Description */
.hero-description {
  margin: 2rem 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-description p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.highlight-text {
  color: var(--accent) !important;
  font-weight: 600;
  font-size: 1.2rem !important;
}

/* Enhanced Buttons */
.btn-glow {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 0, 51, 0.4);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn-glow:hover .btn-shine {
  left: 100%;
}

/* Profile Ring Animations */
.profile-ring-container {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.profile-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 2px solid var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.3;
}

.ring-1 {
  width: 220px;
  height: 220px;
  animation: rotate 20s linear infinite;
}

.ring-2 {
  width: 240px;
  height: 240px;
  animation: rotate 15s linear infinite reverse;
}

.ring-3 {
  width: 260px;
  height: 260px;
  animation: rotate 25s linear infinite;
}

@keyframes rotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Enhanced Social Icons */
.icon-tooltip {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg);
  color: var(--fg);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  border: 1px solid var(--border-color);
}

.icon:hover .icon-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.scroll-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% {
    opacity: 0.4;
    transform: scaleY(1);
  }
  50% {
    opacity: 1;
    transform: scaleY(1.2);
  }
}

.scroll-hint {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1200px;
  width: 100%;
}

.hero-text {
  flex: 1;
  min-width: 300px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.name-part {
  display: inline-block;
}

.name-part.red {
  color: var(--accent);
}

.name-part.white {
  color: #fff;
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.5rem);
  color: #ccc;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent);
  color: #000;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: #fff;
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px var(--shadow-glow);
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: #000;
}

/* ===== PROFILE IMAGE ===== */
.profile-image-container {
  position: relative;
  width: 200px;
  height: 200px;
  display: grid;
  place-items: center;
}

.profile-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  box-shadow: 0 0 20px var(--shadow-glow);
  transition: all 0.3s ease;
}

.profile-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--shadow-glow);
}

.social-circle {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.social-circle .icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 45px;
  height: 45px;
  margin: -22.5px 0 0 -22.5px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(0, 0) scale(0.6);
  box-shadow: 0 0 15px var(--shadow-glow);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  font-size: 1.1rem;
}

.social-circle .icon:hover {
  background: #fff;
  color: var(--accent);
  transform: translate(0, 0) scale(1.2);
  box-shadow: 0 0 25px var(--shadow-glow);
}

.social-circle .icon1 { transform: translate(0, -80px) scale(0.6); }
.social-circle .icon2 { transform: translate(80px, 0) scale(0.6); }
.social-circle .icon3 { transform: translate(0, 80px) scale(0.6); }
.social-circle .icon4 { transform: translate(-80px, 0) scale(0.6); }

.profile-image-container:hover .social-circle .icon {
  opacity: 1;
  pointer-events: auto;
}

.profile-image-container:hover .social-circle .icon1 {
  transform: translate(0, -80px) scale(1);
}

.profile-image-container:hover .social-circle .icon2 {
  transform: translate(80px, 0) scale(1);
}

.profile-image-container:hover .social-circle .icon3 {
  transform: translate(0, 80px) scale(1);
}

.profile-image-container:hover .social-circle .icon4 {
  transform: translate(-80px, 0) scale(1);
}

.scroll-hint {
  color: var(--accent);
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(1rem, 4vw, 2rem);
  margin-top: 2rem;
}

/* ===== SECTIONS ===== */
section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 400px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

section.animate-in {
  opacity: 1;
  transform: translateY(0);
}

section h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

/* ===== ABOUT SECTION ===== */
.about-section {
  background: var(--bg-secondary);
  border-radius: 20px;
  margin: 2rem auto;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 0, 51, 0.03), rgba(255, 107, 53, 0.03));
  pointer-events: none;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

.title-icon {
  font-size: 1.2em;
  animation: bounce 2s ease-in-out infinite;
}

.title-text {
  position: relative;
}

.title-underline {
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  margin: 0 auto;
  border-radius: 2px;
  animation: expandWidth 1s ease-out 0.5s both;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 80px;
  }
}

.about-content {
  position: relative;
  z-index: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.about-card {
  background: var(--bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.about-card.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 0, 51, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(255, 0, 51, 0.15);
}

.about-card:hover::before {
  opacity: 1;
}

.card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.5rem;
}

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.card-icon i {
  font-size: 1.5rem;
  color: white;
}

.about-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 10px 20px rgba(255, 0, 51, 0.3);
}

.card-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.card-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
}

.card-content {
  position: relative;
  z-index: 1;
}

.about-text, .goal-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  text-align: center;
}

/* Interests Grid */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.interest-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.interest-item:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent);
  transform: translateX(5px);
}

.interest-item i {
  color: var(--accent);
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}

.interest-item span {
  font-weight: 500;
  color: var(--fg);
}

.interest-note {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.6;
  font-style: italic;
}

/* Availability Banner */
.availability-banner {
  background: var(--gradient-primary);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}

.availability-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: shine 3s ease-in-out infinite;
}

@keyframes shine {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

.availability-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.availability-icon i {
  color: white;
  font-size: 1.2rem;
}

.availability-text {
  color: white;
}

.availability-text strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.availability-text p {
  font-size: 0.9rem;
  opacity: 0.9;
  margin: 0;
}

/* Highlight List */
.highlight-list {
  display: grid;
  gap: 1rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: 8px;
  transition: all 0.3s ease;
  border-left: 4px solid transparent;
}

.highlight-item:hover {
  border-left-color: var(--accent);
  background: var(--bg-tertiary);
  transform: translateX(10px);
}

.highlight-item i {
  color: var(--accent);
  font-size: 1.3rem;
  width: 24px;
  text-align: center;
}

.highlight-item span {
  font-weight: 500;
  color: var(--fg);
}

/* Card-specific styles */
.main-card {
  grid-column: span 2;
}

@media (max-width: 768px) {
  .main-card {
    grid-column: span 1;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .interests-grid {
    grid-template-columns: 1fr;
  }
  
  .availability-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== SKILLS SECTION ===== */
.skills-section {
  padding: 4rem 2rem;
  background: var(--bg-secondary);
  border-radius: 20px;
  margin: 2rem auto;
  position: relative;
  overflow: hidden;
}

.skills-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 0, 51, 0.03), rgba(255, 107, 53, 0.03));
  pointer-events: none;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 1rem;
  font-style: italic;
}

/* Logo Loop Container */
.logo-loop-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  margin: 3rem 0;
  background: var(--bg);
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.logo-loop-track {
  display: flex;
  align-items: center;
  height: 100%;
  animation: scroll 30s linear infinite;
  gap: 3rem;
  padding: 0 2rem;
}

.logo-loop-track.paused {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Logo Items */
.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 1rem;
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  min-width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.logo-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 0, 51, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 14px;
}

.logo-item:hover {
  transform: translateY(-10px) scale(1.05);
  border-color: var(--accent);
  box-shadow: 0 20px 40px rgba(255, 0, 51, 0.2);
  background: var(--bg-tertiary);
}

.logo-item:hover::before {
  opacity: 1;
}

.logo-item img,
.logo-item i {
  width: 48px;
  height: 48px;
  object-fit: contain;
  filter: brightness(0.8);
  transition: all 0.3s ease;
  z-index: 1;
  position: relative;
}

.logo-item i {
  font-size: 2rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-item:hover img {
  filter: brightness(1);
  transform: scale(1.1);
}

.logo-item:hover i {
  color: var(--fg);
  transform: scale(1.1);
}

.logo-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  transition: color 0.3s ease;
  z-index: 1;
  position: relative;
}

.logo-item:hover .logo-label {
  color: var(--fg);
}

/* Proficiency Tooltip */
.proficiency-tooltip {
  position: fixed;
  background: var(--bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
  min-width: 200px;
}

.proficiency-tooltip.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.tooltip-content {
  text-align: center;
}

.tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.tooltip-skill {
  font-weight: 600;
  color: var(--fg);
  font-size: 1.1rem;
}

.tooltip-percentage {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.2rem;
}

.proficiency-bar {
  width: 100%;
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.proficiency-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 4px;
  transition: width 0.8s ease;
  width: 0%;
}

.proficiency-level {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
  .logo-loop-container {
    height: 150px;
  }
  
  .logo-item {
    min-width: 100px;
    height: 100px;
    padding: 1rem 0.75rem;
  }
  
  .logo-item img,
  .logo-item i {
    width: 36px;
    height: 36px;
  }
  
  .logo-item i {
    font-size: 1.5rem;
  }
  
  .logo-label {
    font-size: 0.7rem;
  }
  
  .logo-loop-track {
    gap: 2rem;
    padding: 0 1rem;
  }
}

/* ===== EXPERIENCE SECTION ===== */
#experience {
  background: var(--bg-secondary);
  border-radius: 20px;
  margin: 2rem auto;
  padding: 3rem 2rem;
}

.exp-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0;
}

.exp-card {
  flex: 0 0 320px;
  background: var(--bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.exp-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px var(--shadow);
}

.exp-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--fg);
}

.exp-card time {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.exp-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chips li {
  list-style: none;
  padding: 0.25rem 0.75rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.chips li:hover {
  background: var(--accent);
  color: var(--fg);
  transform: scale(1.05);
}

.chips img {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.chips i {
  font-size: 14px;
  margin-right: 0.25rem;
}

/* ===== PROJECTS SECTION ===== */
#projects {
  padding: 4rem 2rem;
}

.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.proj-card {
  background: var(--bg-secondary);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  border: 1px solid var(--border-color);
  opacity: 0;
  transform: translateY(50px) rotateX(10deg);
}

.proj-card.animate-in {
  opacity: 1;
  transform: translateY(0) rotateX(0deg);
}

.proj-card:hover {
  transform: translateY(-15px) rotateX(-5deg);
  box-shadow: 0 30px 60px rgba(255, 0, 51, 0.2);
  border-color: var(--accent);
}

.proj-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, transparent, rgba(255, 0, 51, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.proj-card:hover::before {
  opacity: 1;
}

.proj-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: all 0.3s ease;
}

.proj-card:hover img {
  transform: scale(1.05);
}

.proj-info {
  padding: 1.5rem;
  position: relative;
  z-index: 2;
}

.proj-info h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

.proj-info p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.hover-msg {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: var(--gradient-primary);
  color: var(--fg);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 3;
}

.proj-card:hover .hover-msg {
  opacity: 1;
  transform: translateY(0);
}

/* ===== CERTIFICATIONS SECTION ===== */
#certifications {
  background: var(--bg-secondary);
  border-radius: 20px;
  margin: 2rem auto;
  padding: 3rem 2rem;
}

#certifications ul {
  list-style: none;
  max-width: 600px;
  margin: 0 auto;
}

#certifications li {
  background: var(--bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#certifications li:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 5px 15px var(--shadow);
  color: var(--fg);
}

/* ===== CHATBOT SECTION ===== */
#chatbot {
  background: var(--bg-secondary);
  border-radius: 20px;
  margin: 2rem auto;
  padding: 3rem 2rem;
}

#chatbot h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

#chat-box {
  background: var(--bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  min-height: 200px;
  max-height: 300px;
  overflow-y: auto;
  padding: 1rem;
  margin-bottom: 1rem;
}

#user-input {
  width: 100%;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--fg);
  font-family: inherit;
  margin-bottom: 1rem;
}

#chatbot button {
  background: var(--gradient-primary);
  color: var(--fg);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

#chatbot button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow-glow);
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  margin-top: 2rem;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 1rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2rem;
    transition: all 0.3s ease;
    border-top: 1px solid var(--border-color);
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .hero-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .hero-text {
    order: 2;
  }
  
  .profile-image-container {
    order: 1;
    width: 180px;
    height: 180px;
  }
  
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }
  
  section {
    padding: 2rem 1rem;
  }
  
  .skill-grid {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 1rem;
  }
  
  .skill-logo {
    width: 60px;
    height: 60px;
  }
  
  .exp-card {
    flex: 0 0 280px;
    padding: 1rem;
  }
  
  .proj-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Mobile: Show social icons by default */
@media (hover: none) {
  .social-circle .icon {
    opacity: 1;
    pointer-events: auto;
  }
  
  .social-circle .icon1 {
    transform: translate(0, -80px) scale(1);
  }
  
  .social-circle .icon2 {
    transform: translate(80px, 0) scale(1);
  }
  
  .social-circle .icon3 {
    transform: translate(0, 80px) scale(1);
  }
  
  .social-circle .icon4 {
    transform: translate(-80px, 0) scale(1);
  }
}

/* ===== PAGE TRANSITIONS ===== */
body {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== ENHANCED HOVER EFFECTS ===== */
.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

/* ===== SMOOTH SCROLLING ===== */
html {
  scroll-behavior: smooth;
}

/* ===== ENHANCED FOCUS STATES ===== */
*:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.skill-logo,
.proj-card,
.exp-card {
  will-change: transform;
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}