﻿/* ============================================
   PORTFOLIO WEBSITE STYLESHEET
   Author: Riski Pratama
   Description: Main stylesheet for portfolio website
   
   Table of Contents:
   1. Theme Variables
   2. Base Styles
   3. Preloader & Loading Animation
   4. Particle Background
   5. Navigation
   6. Buttons
   7. Sections & Layout
   8. Cards & Components
   9. Orbit Animation System
   10. Typography
   11. Utilities
   12. Responsive Design
   ============================================ */

/* ============================================
   1. THEME VARIABLES
   ============================================ */
/* Disable transitions on page load */
.no-transition,
.no-transition *,
.no-transition *::before,
.no-transition *::after {
  transition: none !important;
  animation-duration: 0s !important;
}

/* Theme Variables */
:root {
  /* Common variables */
  --primary-color: #f59e0b;
  --transition-default: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --yellow-color: #f59e0b;

  /* Light theme (default) */
  --bg-color: #ffffff;
  --navbar-bg: rgba(255, 255, 255, 0.95);
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --border-color: #e5e7eb;
  --card-bg: #ffffff;
  --card-hover: #f9fafb;
  --glass-effect-bg: rgba(255, 255, 255, 0.9);
  --nav-text: #111827;
  --nav-hover: #000000;
  --section-bg: #ffffff;
  --gradient-start: #ffffff;
  --gradient-end: #f9fafb;
  --text-light: #111827;
  --text-gray: #4b5563;
  --home-bg-start: #ffffff;
  --home-bg-end: #f3f4f6;
  --about-bg-start: #ffffff;
  --about-bg-end: #f3f4f6;
}

/* Dark theme */
[data-theme="dark"] {
  --bg-color: #111827;
  --navbar-bg: rgba(17, 24, 39, 0.95);
  --text-primary: #ffffff;
  --text-secondary: #e5e7eb;
  --border-color: rgba(255, 255, 255, 0.1);
  --card-bg: #1f2937;
  --card-hover: #374151;
  --glass-effect-bg: rgba(17, 24, 39, 0.9);
  --nav-text: #ffffff;
  --nav-hover: #f9fafb;
  --section-bg: #1f2937;
  --gradient-start: #111827;
  --gradient-end: #1f2937;
  --text-light: #ffffff;
  --text-gray: #d1d5db;
  --home-bg-start: #111827;
  --home-bg-end: #1f2937;
  --about-bg-start: #111827;
  --about-bg-end: #1f2937;
}

/* Smooth Scroll Behavior */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: filter 0.3s ease;
}

/* Prevent scrolling when drawer is open */
body.drawer-open {
  overflow: hidden;
}

/* Modern Gradient Mesh Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(245, 158, 11, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 40% 90%, rgba(251, 191, 36, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s ease;
}

body > * {
  position: relative;
  z-index: 1;
}

/* ============================================
   3. PRELOADER & LOADING ANIMATION
   ============================================ */

/* Skeleton Loader for Page Transitions */
.skeleton-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-color);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  overflow: hidden;
}

.skeleton-loader.active {
  opacity: 1;
  visibility: visible;
}

.skeleton-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  height: 100%;
}

/* Skeleton Header */
.skeleton-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  margin-bottom: 3rem;
}

.skeleton-logo {
  width: 150px;
  height: 40px;
  background: linear-gradient(
    90deg,
    var(--border-color) 0%,
    rgba(245, 158, 11, 0.1) 50%,
    var(--border-color) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 8px;
}

.skeleton-nav {
  display: flex;
  gap: 2rem;
}

.skeleton-nav-item {
  width: 80px;
  height: 20px;
  background: linear-gradient(
    90deg,
    var(--border-color) 0%,
    rgba(245, 158, 11, 0.1) 50%,
    var(--border-color) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
}

.skeleton-nav-item:nth-child(2) {
  animation-delay: 0.1s;
}

.skeleton-nav-item:nth-child(3) {
  animation-delay: 0.2s;
}

.skeleton-nav-item:nth-child(4) {
  animation-delay: 0.3s;
}

/* Skeleton Main Content */
.skeleton-main {
  padding: 2rem;
}

.skeleton-hero {
  display: flex;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
  padding: 3rem;
  background: var(--card-bg);
  border-radius: 20px;
}

.skeleton-profile-circle {
  width: 200px;
  height: 200px;
  min-width: 200px;
  border-radius: 50%;
  background: linear-gradient(
    90deg,
    var(--border-color) 0%,
    rgba(245, 158, 11, 0.15) 50%,
    var(--border-color) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-text-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skeleton-title {
  width: 60%;
  height: 40px;
  background: linear-gradient(
    90deg,
    var(--border-color) 0%,
    rgba(245, 158, 11, 0.1) 50%,
    var(--border-color) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 8px;
}

.skeleton-subtitle {
  width: 40%;
  height: 25px;
  background: linear-gradient(
    90deg,
    var(--border-color) 0%,
    rgba(245, 158, 11, 0.1) 50%,
    var(--border-color) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  animation-delay: 0.1s;
  border-radius: 6px;
}

.skeleton-description {
  width: 100%;
  height: 15px;
  background: linear-gradient(
    90deg,
    var(--border-color) 0%,
    rgba(245, 158, 11, 0.1) 50%,
    var(--border-color) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  animation-delay: 0.2s;
  border-radius: 4px;
}

.skeleton-description.short {
  width: 80%;
  animation-delay: 0.3s;
}

/* Skeleton Cards */
.skeleton-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skeleton-card {
  height: 250px;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.skeleton-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(245, 158, 11, 0.1),
    transparent
  );
  animation: skeleton-slide 1.5s infinite;
}

.skeleton-card:nth-child(2)::before {
  animation-delay: 0.2s;
}

.skeleton-card:nth-child(3)::before {
  animation-delay: 0.4s;
}

/* Skeleton Animations */
@keyframes skeleton-shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes skeleton-slide {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Responsive Skeleton */
@media (max-width: 768px) {
  .skeleton-nav {
    display: none;
  }
  
  .skeleton-hero {
    flex-direction: column;
    text-align: center;
  }
  
  .skeleton-profile-circle {
    width: 150px;
    height: 150px;
    min-width: 150px;
  }
  
  .skeleton-title {
    width: 80%;
    margin: 0 auto;
  }
  
  .skeleton-subtitle {
    width: 60%;
    margin: 0 auto;
  }
  
  .skeleton-cards {
    grid-template-columns: 1fr;
  }
}

.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.preloader-content {
  text-align: center;
  position: relative;
}

/* Loader Circles */
.loader {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.loader-circle {
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.loader-circle:nth-child(1) {
  animation-delay: -0.32s;
}

.loader-circle:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Animated Text */
.preloader-text {
  font-size: 3rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.1rem;
}

.preloader-text .letter {
  display: inline-block;
  animation: wave 1.5s infinite ease-in-out;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.preloader-text .letter:nth-child(1) { animation-delay: 0s; }
.preloader-text .letter:nth-child(2) { animation-delay: 0.1s; }
.preloader-text .letter:nth-child(3) { animation-delay: 0.2s; }
.preloader-text .letter:nth-child(4) { animation-delay: 0.3s; }
.preloader-text .letter:nth-child(5) { animation-delay: 0.4s; }
.preloader-text .letter:nth-child(6) { animation-delay: 0.5s; }
.preloader-text .letter:nth-child(7) { animation-delay: 0.6s; }
.preloader-text .letter:nth-child(8) { animation-delay: 0.7s; }
.preloader-text .letter:nth-child(9) { animation-delay: 0.8s; }
.preloader-text .letter:nth-child(10) { animation-delay: 0.9s; }
.preloader-text .letter:nth-child(11) { animation-delay: 1s; }
.preloader-text .letter:nth-child(12) { animation-delay: 1.1s; }

@keyframes wave {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.preloader-subtitle {
  font-size: 1.1rem;
  color: #9ca3af;
  font-weight: 300;
  letter-spacing: 0.1em;
  animation: fadeInOut 2s infinite;
}

@keyframes fadeInOut {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Mobile responsive preloader */
@media (max-width: 768px) {
  .preloader-text {
    font-size: 2rem;
  }
  
  .preloader-subtitle {
    font-size: 0.9rem;
  }
  
  .loader-circle {
    width: 12px;
    height: 12px;
  }
}

/* ============================================
   4. PARTICLE BACKGROUND
   ============================================ */
.particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
  will-change: opacity;
}

.particle-canvas.active {
  opacity: 1;
}

/* Hero Section Entrance Animation */
.hero-section {
  opacity: 0;
  transform: translateY(30px);
  animation: heroEntrance 1s ease forwards;
  animation-delay: 0.3s;
}

@keyframes heroEntrance {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Smooth content reveal on scroll */
[data-aos] {
  pointer-events: auto;
}

/* Add subtle glow effect to interactive elements */
.btn-download,
.btn-download-mobile {
  position: relative;
  overflow: hidden;
}

.btn-download::before,
.btn-download-mobile::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-download:hover::before,
.btn-download-mobile:hover::before {
  width: 300px;
  height: 300px;
}

/* Profile image entrance */
.profile-wrapper {
  animation: profileEntrance 1s ease forwards;
  animation-delay: 0.8s;
  opacity: 1;
}

@keyframes profileEntrance {
  0% {
    opacity: 0;
    transform: scale(0.8) rotate(-10deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

/* Orbit skills fade in */
.orbit {
  animation: orbitFadeIn 1s ease forwards;
  animation-delay: 1.2s;
  opacity: 0;
}

@keyframes orbitFadeIn {
  to {
    opacity: 1;
  }
}

/* Text reveal animation */
.hero-section h3,
.hero-section h1,
.hero-section h2 {
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInLeft 0.8s ease forwards;
}

.hero-section h3 {
  animation-delay: 1s;
}

.hero-section h1 {
  animation-delay: 1.2s;
}

.hero-section h2 {
  animation-delay: 1.4s;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Optimize scrolling performance on mobile */
@media (max-width: 768px) {
  * {
    -webkit-tap-highlight-color: transparent;
  }
  
  body {
    scroll-behavior: auto;
  }
}

/* Only add transitions to specific elements that need them */
body,
.navbar,
.nav-link,
.card,
.project-card,
.certificate-item,
.social-link,
.skill-icon,
#mobile-menu,
.chatbot-modal,
.chatbot-modal-content,
.chatbot-tooltip {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Disable transitions during scroll on mobile for better performance */
@media (max-width: 768px) {
  body,
  .navbar,
  .card,
  .project-card {
    transition: none !important;
  }
  
  /* Keep only essential transitions */
  button,
  a,
  .nav-link {
    transition: color 0.15s ease, background-color 0.15s ease !important;
  }
}

/* Logo Text - Modern Gradient */
.logo-text {
  font-family: 'Poppins', sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.logo-text a {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.logo-text a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #f59e0b, #d97706);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.logo-text a:hover::after {
  transform: scaleX(1);
}

/* Navigation - Modern Glassmorphism */
.navbar {
  background-color: var(--navbar-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 50;
}

.navbar.scrolled {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.nav-link {
  position: relative;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  color: var(--nav-text);
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  border-radius: 10px;
}

.nav-link:hover {
  background: rgba(245, 158, 11, 0.08);
  color: #f59e0b;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .nav-link {
    color: var(--text-primary);
  }
  .nav-link:hover {
    color: #f59e0b;
  }
  .nav-link.active {
    color: #f59e0b;
  }
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  bottom: 0.5rem;
  left: 50%;
  background-color: #f59e0b;
  transition: var(--transition-default);
  transform: translateX(-50%) scale(0);
  border-radius: 50%;
  opacity: 0;
}

.nav-link:hover::after {
  transform: translateX(-50%) scale(1);
  opacity: 1;
}

.nav-link:hover {
  color: var(--nav-hover);
}

.nav-link.active {
  color: #f59e0b;
  font-weight: 600;
}

/* Mobile responsive navbar */
@media (max-width: 768px) {
  .navbar {
    background-color: var(--navbar-bg);
  }
}

/* ============================================
   DRAWER MENU STYLES
   ============================================ */
/* Drawer Overlay */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh; /* Use dynamic viewport height for mobile */
  background: rgba(0, 0, 0, 0.8);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  overflow: hidden;
  pointer-events: none;
}

.drawer-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Drawer Content */
.drawer-content {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  max-width: 80%;
  height: 100vh;
  height: 100dvh;
  background: var(--card-bg);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.4);
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100000;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  pointer-events: auto;
}

.drawer-overlay.active .drawer-content {
  right: 0;
}

/* Drawer Header */
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: var(--glass-effect-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.drawer-close-btn:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: #f59e0b;
  color: #f59e0b;
  transform: rotate(90deg);
}

/* Drawer Navigation */
.drawer-nav {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: auto;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
  pointer-events: auto;
  cursor: pointer;
}

.drawer-link i {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.drawer-link:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
  color: #f59e0b;
  transform: translateX(8px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
}

.drawer-link:hover i {
  transform: scale(1.15);
}

.drawer-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 3px;
  background: linear-gradient(180deg, #f59e0b, #d97706);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.drawer-link:hover::before {
  transform: scaleY(1);
}

.drawer-link.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(245, 158, 11, 0.08));
  color: #f59e0b;
}

.drawer-link.active::before {
  transform: scaleY(1);
}

/* Drawer Footer */
.drawer-footer {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--glass-effect-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 100;
  pointer-events: auto;
}

.drawer-theme-btn,
.drawer-cv-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  -webkit-tap-highlight-color: rgba(245, 158, 11, 0.3);
  touch-action: manipulation;
}

.drawer-theme-btn {
  background: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  outline: none;
}

.drawer-theme-btn:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: #f59e0b;
  color: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.drawer-cv-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white !important;
  border: none;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.drawer-cv-btn i,
.drawer-cv-btn span {
  pointer-events: none;
}

.drawer-cv-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.drawer-cv-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Drawer Animation Stagger Effect */
.drawer-overlay.active .drawer-link {
  animation: slideInDrawer 0.4s ease forwards;
  opacity: 0;
}

.drawer-overlay.active .drawer-link:nth-child(1) { animation-delay: 0.1s; }
.drawer-overlay.active .drawer-link:nth-child(2) { animation-delay: 0.15s; }
.drawer-overlay.active .drawer-link:nth-child(3) { animation-delay: 0.2s; }
.drawer-overlay.active .drawer-link:nth-child(4) { animation-delay: 0.25s; }
.drawer-overlay.active .drawer-link:nth-child(5) { animation-delay: 0.3s; }

@keyframes slideInDrawer {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Drawer */
@media (max-width: 480px) {
  .drawer-content {
    width: 280px;
  }
}

/* Drawer Toggle Button Styling */
#drawer-toggle {
  position: relative;
  z-index: 50;
}

/* Hide drawer on desktop (lg and above) */
@media (min-width: 1024px) {
  .drawer-overlay {
    display: none !important;
  }
  
  #drawer-toggle {
    display: none !important;
  }
}

/* Buttons - Modern Design */
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: 14px;
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25),
              0 8px 40px rgba(245, 158, 11, 0.1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  border: none;
}

.btn-download::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.btn-download:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 35px rgba(245, 158, 11, 0.35),
              0 20px 60px rgba(245, 158, 11, 0.15);
}

.btn-download:active {
  transform: translateY(-2px) scale(1.01);
  transition: all 0.1s ease;
}

.btn-download-mobile {
  display: block;
  width: 100%;
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  color: white !important;
  font-weight: 600;
  text-align: center;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3),
              0 8px 32px rgba(245, 158, 11, 0.15);
  text-decoration: none;
  position: relative;
  z-index: 10;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: rgba(245, 158, 11, 0.3);
  touch-action: manipulation;
  user-select: none;
}

.btn-download-mobile:hover,
.btn-download-mobile:active {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 6px 25px rgba(245, 158, 11, 0.4),
              0 12px 40px rgba(245, 158, 11, 0.2);
  transform: translateY(-2px);
}

/* Mobile specific optimizations */
@media (max-width: 1023px) {
  .btn-download-mobile {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 50px;
    font-size: 16px;
  }
}

.btn-primary {
  transition: var(--transition-default);
  background-color: var(--primary-color);
  color: var(--dark-bg);
  border: none;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border-radius: 4px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-color: #d97706;
  box-shadow: 0 5px 15px rgba(245, 158, 11, 0.2);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Sections */
section {
  padding: 6rem 1.5rem;
  margin: 1rem 0;
  border-radius: 20px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  will-change: transform, opacity;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(245, 158, 11, 0.02), transparent);
  border-radius: 20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

section:hover::before {
  opacity: 1;
}

/* Optimize sections on mobile */
@media (max-width: 768px) {
  section {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    will-change: auto;
  }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Cards */
.project-card {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  position: relative;
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.project-card:hover::after {
  opacity: 1;
}

.project-card:hover {
  transform: translateY(-12px);
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 30px 60px rgba(245, 158, 11, 0.12), 0 12px 24px rgba(0, 0, 0, 0.08);
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  filter: grayscale(10%);
}

.project-card:hover img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

/* Certificates - Main styles in certificates.css */

/* Social Links */
.social-link,
.social-icon-link {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-gray);
  position: relative;
  overflow: hidden;
}

.social-link::before,
.social-icon-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.2), transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.social-link:hover::before,
.social-icon-link:hover::before {
  opacity: 1;
}

.social-link:hover,
.social-icon-link:hover {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.5);
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.25);
}

/* Orbit Animation Styles - Removed old duplicate, keeping main definition below */

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Floating Icons Animation - Removed duplicate, see main orbit animation below */

/* Code Editor Box */
.code-editor {
  background: rgba(30, 30, 30, 0.95);
  border-radius: 8px;
  padding: 1.5rem;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.85rem;
  line-height: 1.4;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  max-width: 100%;
  text-align: justify;
}

.code-editor pre {
  margin: 0;
  text-align: justify;
}

.code-string {
  display: inline-block;
  text-align: justify;
  width: 100%;
  padding-left: 1rem;
  text-indent: -1rem;
}

.code-keyword {
  color: #ff8f40;
}

.code-string {
  color: #ff8fa3;
}

.code-punctuation {
  color: #d4d4d4;
}

.code-property {
  color: #9cdcfe;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-light);
  transition: color 0.3s ease;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  color: var(--text-light);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 2rem;
  height: 2px;
  background-color: #f59e0b;
}

/* Text & Paragraphs */
p {
  color: var(--text-gray);
  font-size: 1rem;
  line-height: 1.8;
  transition: color 0.3s ease;
}

.text-content {
  color: var(--text-gray);
  transition: color 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  section {
    padding: 4rem 1rem;
    margin: 0.5rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  .nav-link::after {
    display: none;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  .logo-text {
    font-size: 1.5rem;
  }

  .orbit-container {
    width: 350px !important;
    height: 350px !important;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Smooth Reveal Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes blurIn {
  from {
    opacity: 0;
    filter: blur(10px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

/* Smooth Reveal Classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* Stagger Animation Delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }
.stagger-6 { transition-delay: 0.6s; }

/* Orbit Animation */
@keyframes orbit {
  0% {
    transform: rotate(0deg) translateX(150px) rotate(0deg);
  }
  100% {
    transform: rotate(360deg) translateX(150px) rotate(-360deg);
  }
}

.orbit-container {
  position: relative;
  width: 450px;
  height: 450px;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  will-change: transform;
  transform: translateZ(0); /* promote to GPU compositing layer */
}

/* Animated ring effect around profile */
.orbit-container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  margin: -100px 0 0 -100px;
  border-radius: 50%;
  border: 2px solid rgba(245, 158, 11, 0.2);
  animation: ringPulse 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

.orbit-container::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px;
  height: 240px;
  margin: -120px 0 0 -120px;
  border-radius: 50%;
  border: 1px solid rgba(245, 158, 11, 0.1);
  animation: ringPulse 4s ease-in-out infinite 0.5s;
  pointer-events: none;
  z-index: 1;
}

/* ============================================
   ORBIT ANIMATION SYSTEM
   Main styles for orbiting skill icons around profile
   ============================================ */

/* Ring Pulse Animation */
@keyframes ringPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Profile Floating Animation - Enhanced */
.profile-wrapper {
  animation: floatProfile 6s ease-in-out infinite;
  position: relative;
  will-change: transform;
}

.profile-wrapper img {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.orbit-container:hover .profile-wrapper img {
  transform: scale(1.05);
}

@keyframes floatProfile {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Orbit Container */
.orbit {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Skill Icon Base Styles - Modern */
.skill-icon {
  position: absolute;
  width: 56px;
  height: 56px;
  top: 50%;
  left: 50%;
  margin: -28px 0 0 -28px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(245, 158, 11, 0.3);
  border-radius: 50%;
  padding: 10px;
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.2),
              0 2px 8px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .skill-icon {
  background: rgba(31, 41, 55, 0.95);
  border-color: rgba(245, 158, 11, 0.4);
}

.skill-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%) brightness(1.1) contrast(1.05) opacity(0.85);
  transition: filter 0.4s ease;
}

.skill-icon:hover img {
  filter: grayscale(0%) brightness(1.1) contrast(1.05) opacity(1);
}

/* Subtle animation for each icon */
@keyframes iconPulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.3),
                0 0 40px rgba(245, 158, 11, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
  }
  50% {
    box-shadow: 0 4px 25px rgba(245, 158, 11, 0.4),
                0 0 50px rgba(245, 158, 11, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }
}

/* Orbit animation for all icons (15 icons, 45s / 15 = 3s spacing) */
.skill-icon:nth-child(1) {
  animation: orbit 45s linear infinite, iconPulse 3s ease-in-out infinite;
  animation-delay: 0s, 0s;
}
.skill-icon:nth-child(2) {
  animation: orbit 45s linear infinite, iconPulse 3s ease-in-out infinite;
  animation-delay: -3s, 0.2s;
}
.skill-icon:nth-child(3) {
  animation: orbit 45s linear infinite, iconPulse 3s ease-in-out infinite;
  animation-delay: -6s, 0.4s;
}
.skill-icon:nth-child(4) {
  animation: orbit 45s linear infinite, iconPulse 3s ease-in-out infinite;
  animation-delay: -9s, 0.6s;
}
.skill-icon:nth-child(5) {
  animation: orbit 45s linear infinite, iconPulse 3s ease-in-out infinite;
  animation-delay: -12s, 0.8s;
}
.skill-icon:nth-child(6) {
  animation: orbit 45s linear infinite, iconPulse 3s ease-in-out infinite;
  animation-delay: -15s, 1s;
}
.skill-icon:nth-child(7) {
  animation: orbit 45s linear infinite, iconPulse 3s ease-in-out infinite;
  animation-delay: -18s, 1.2s;
}
.skill-icon:nth-child(8) {
  animation: orbit 45s linear infinite, iconPulse 3s ease-in-out infinite;
  animation-delay: -21s, 1.4s;
}
.skill-icon:nth-child(9) {
  animation: orbit 45s linear infinite, iconPulse 3s ease-in-out infinite;
  animation-delay: -24s, 1.6s;
}
.skill-icon:nth-child(10) {
  animation: orbit 45s linear infinite, iconPulse 3s ease-in-out infinite;
  animation-delay: -27s, 1.8s;
}
.skill-icon:nth-child(11) {
  animation: orbit 45s linear infinite, iconPulse 3s ease-in-out infinite;
  animation-delay: -30s, 2s;
}
.skill-icon:nth-child(12) {
  animation: orbit 45s linear infinite, iconPulse 3s ease-in-out infinite;
  animation-delay: -33s, 2.2s;
}
.skill-icon:nth-child(13) {
  animation: orbit 45s linear infinite, iconPulse 3s ease-in-out infinite;
  animation-delay: -36s, 2.4s;
}
.skill-icon:nth-child(14) {
  animation: orbit 45s linear infinite, iconPulse 3s ease-in-out infinite;
  animation-delay: -39s, 2.6s;
}
.skill-icon:nth-child(15) {
  animation: orbit 45s linear infinite, iconPulse 3s ease-in-out infinite;
  animation-delay: -42s, 2.8s;
}

/* Modern Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #f59e0b, #d97706);
  border-radius: 5px;
  border: 2px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #d97706, #b45309);
}

/* Selection Color */
::selection {
  background: rgba(245, 158, 11, 0.3);
  color: var(--text-primary);
}

::-moz-selection {
  background: rgba(245, 158, 11, 0.3);
  color: var(--text-primary);
}

/* Loading State */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

/* Smooth Image Transitions */
img {
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Clean Link Transitions */
a {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Smooth Button Interactions */
button {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

button:active {
  transform: scale(0.97);
}

@keyframes spin-slow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Additional Utilities */
.glass-effect {
  background: var(--glass-effect-bg);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: var(--text-primary);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-effect:hover {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.3);
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 16px 48px rgba(245, 158, 11, 0.15);
}

#home {
  background: transparent;
  transition: background 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#home .bg-gradient-to-r {
  background: var(--card-bg) !important;
  border: 1px solid rgba(245, 158, 11, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 24px;
}

#home .bg-gradient-to-r:hover {
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1), 0 16px 40px rgba(245, 158, 11, 0.08);
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.15);
}

#about {
  background: transparent;
  transition: background 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

#about .bg-gradient-to-r {
  background: var(--card-bg) !important;
  border: 1px solid rgba(245, 158, 11, 0.08);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.06), 0 8px 24px rgba(0, 0, 0, 0.04);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 24px;
}

#about .bg-gradient-to-r:hover {
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1), 0 16px 40px rgba(245, 158, 11, 0.08);
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.15);
}

.text-gradient {
  background: linear-gradient(45deg, #f59e0b, #d97706);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Responsive adjustments for orbiting skill icons so they stay inside the profile on small screens */
@media (max-width: 768px) {
  .orbit-container {
    width: 400px !important;
    height: 400px !important;
  }

  .orbit {
    width: 100% !important;
    height: 100% !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  /* Make icons visible with modern glassmorphism effect */
  .skill-icon {
    width: 40px !important;
    height: 40px !important;
    padding: 6px !important;
    margin: -20px !important;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(251, 191, 36, 0.08)) !important;
    border: 2px solid rgba(245, 158, 11, 0.3) !important;
    z-index: 10 !important;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    pointer-events: none !important;
  }

  .skill-icon img {
    width: 24px !important;
    height: 24px !important;
    filter: none !important;
  }

  /* Increased orbit radius with GPU acceleration */
  @keyframes orbit {
    0% {
      transform: rotate(0deg) translateX(140px) rotate(0deg) translateZ(0);
    }
    100% {
      transform: rotate(360deg) translateX(140px) rotate(-360deg) translateZ(0);
    }
  }
  
  /* Reduce animation complexity when scrolling */
  body.scrolling .skill-icon {
    animation-play-state: paused !important;
  }
}

@media (max-width: 480px) {
  .orbit-container {
    width: 320px !important;
    height: 320px !important;
  }

  .skill-icon {
    width: 36px !important;
    height: 36px !important;
    padding: 5px !important;
    margin: -18px !important;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(251, 191, 36, 0.08)) !important;
    border: 2px solid rgba(245, 158, 11, 0.25) !important;
    z-index: 10 !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.18),
                inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    pointer-events: none !important;
  }

  .skill-icon img {
    width: 22px !important;
    height: 22px !important;
    filter: none !important;
  }

  /* Increased orbit radius with GPU acceleration */
  @keyframes orbit {
    0% {
      transform: rotate(0deg) translateX(110px) rotate(0deg) translateZ(0);
    }
    100% {
      transform: rotate(360deg) translateX(110px) rotate(-360deg) translateZ(0);
    }
  }

  /* Maintain normal animation speed */
  .skill-icon {
    animation-duration: 45s !important;
  }
  
  /* Pause animations when scrolling */
  body.scrolling .skill-icon {
    animation-play-state: paused !important;
  }
}

/* ============================================
   FLOATING CHATBOT BUTTON
   ============================================ */
#chatbot-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
}

.chatbot-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-radius: 50%;
  border: none;
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.35),
              0 0 0 0 rgba(245, 158, 11, 0.4);
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  animation: chatbotPulse 3s infinite cubic-bezier(0.4, 0, 0.6, 1);
  position: relative;
}

.chatbot-button:hover {
  transform: scale(1.15) translateY(-4px);
  box-shadow: 0 16px 50px rgba(245, 158, 11, 0.45);
  animation: none;
}

.chatbot-icon {
  width: 32px;
  height: 32px;
  color: white;
}

.chatbot-tooltip {
  position: absolute;
  right: -170px;
  background: var(--card-bg);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 8px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--border-color);
}

.chatbot-button:hover .chatbot-tooltip {
  opacity: 1;
}

/* Chatbot Modal */
.chatbot-modal {
  display: none;
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 9998;
  width: 400px;
  height: 600px;
  animation: slideUp 0.3s ease-out;
}

.chatbot-modal.active {
  display: block;
}

.chatbot-modal-content {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color);
}

.chatbot-header {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.chatbot-close-btn {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
}

.chatbot-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chatbot-close-btn svg {
  width: 24px;
  height: 24px;
}

.chatbot-body {
  flex: 1;
  overflow: hidden;
}

.chatbot-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@keyframes chatbotPulse {
  0% {
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4),
                0 0 0 0 rgba(245, 158, 11, 0.5);
  }
  50% {
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4),
                0 0 0 15px rgba(245, 158, 11, 0);
  }
  100% {
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4),
                0 0 0 0 rgba(245, 158, 11, 0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Enhanced Page Transitions */
@keyframes pageLoad {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body {
  animation: pageLoad 0.6s ease-out;
}

/* Smooth Focus States */
a:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(245, 158, 11, 0.5);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Improved Loading States */
.loading {
  position: relative;
  overflow: hidden;
}

.loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.1), transparent);
  animation: shimmer 1.5s infinite;
}

/* ============================================
   RESPONSIVE DESIGN - ADDITIONAL BREAKPOINTS
   ============================================ */

/* Tablet Portrait (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
  
  .orbit-container {
    width: 380px;
    height: 380px;
  }
  
  section {
    padding: 3rem 1rem;
  }
}

/* Mobile Landscape (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  .logo-text {
    font-size: 1.5rem;
  }
  
  .orbit-container {
    width: 360px;
    height: 360px;
  }
  
  .btn-download,
  .btn-download-mobile {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* Small Mobile (320px - 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }
  
  .logo-text {
    font-size: 1.25rem;
  }
  
  .navbar {
    padding: 0.75rem 1rem;
  }
  
  /* Optimize text sizes */
  h1 {
    font-size: 1.75rem !important;
  }
  
  h2 {
    font-size: 1.5rem !important;
  }
  
  h3 {
    font-size: 1.25rem !important;
  }
  
  p {
    font-size: 0.9rem;
  }
  
  /* Smaller buttons on very small screens */
  .btn-download-mobile {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
  
  /* Reduce stats card padding */
  .grid.grid-cols-3 > div {
    padding: 0.75rem 0.5rem !important;
  }
  
  .grid.grid-cols-3 > div > div:first-child {
    font-size: 1.5rem !important;
  }
  
  .grid.grid-cols-3 > div > div:last-child {
    font-size: 0.7rem !important;
  }
  
  /* Social icons */
  .social-icon-link {
    font-size: 1.25rem;
  }
}

/* Extra Small Mobile (< 375px) */
@media (max-width: 374px) {
  .orbit-container {
    width: 280px !important;
    height: 280px !important;
  }
  
  .profile-wrapper img {
    width: 120px !important;
    height: 120px !important;
  }
  
  .skill-icon {
    width: 32px !important;
    height: 32px !important;
    padding: 4px !important;
  }
  
  .skill-icon img {
    width: 20px !important;
    height: 20px !important;
  }
  
  @keyframes orbit {
    0% {
      transform: rotate(0deg) translateX(90px) rotate(0deg) translateZ(0);
    }
    100% {
      transform: rotate(360deg) translateX(90px) rotate(-360deg) translateZ(0);
    }
  }
  
  h1 {
    font-size: 1.5rem !important;
  }
  
  .logo-text {
    font-size: 1.1rem;
  }
  
  .navbar {
    padding: 0.5rem 0.75rem;
  }
}

/* Large Desktop (> 1440px) */
@media (min-width: 1441px) {
  .container {
    max-width: 1400px;
  }
  
  .orbit-container {
    width: 550px;
    height: 550px;
  }
  
  .profile-wrapper img {
    width: 220px;
    height: 220px;
  }
}

/* Ultra Wide (> 1920px) */
@media (min-width: 1921px) {
  .container {
    max-width: 1600px;
  }
  
  section {
    padding: 5rem 2rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  #chatbot-container,
  .chatbot-modal,
  footer {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  section {
    page-break-inside: avoid;
  }
}

/* Chatbot Responsive */
@media (max-width: 768px) {
  #chatbot-container {
    bottom: 20px;
    right: 20px;
    left: auto;
  }
  
  .chatbot-button {
    width: 50px;
    height: 50px;
  }
  
  .chatbot-icon {
    width: 26px;
    height: 26px;
  }
  
  .chatbot-tooltip {
    display: none;
  }

  .chatbot-modal {
    bottom: 80px;
    right: 20px;
    left: 20px;
    width: auto;
    height: 500px;
  }
}

/* ============================================
   MUSIC PLAYER BUTTON
   ============================================ */
#music-player-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), #d97706);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

#music-player-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(245, 158, 11, 0.65);
}

#music-player-btn .music-icon {
  font-size: 1.35rem;
  transition: opacity 0.2s ease;
}

/* Pulsing ring when music is playing */
#music-player-btn.playing::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 3px solid rgba(245, 158, 11, 0.55);
  animation: music-pulse 1.6s ease-out infinite;
}

#music-player-btn.playing::after {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 2px solid rgba(245, 158, 11, 0.25);
  animation: music-pulse 1.6s ease-out infinite 0.5s;
}

@keyframes music-pulse {
  0%   { transform: scale(0.95); opacity: 1; }
  100% { transform: scale(1.45); opacity: 0; }
}

/* Music button responsive */
@media (max-width: 768px) {
  #music-player-btn {
    width: 48px;
    height: 48px;
    bottom: 1.25rem;
    left: 1.25rem;
  }
  #music-toast {
    bottom: 4.5rem;
    left: 1.25rem;
    font-size: 0.75rem;
    max-width: 180px;
  }
}

/* Vinyl spin animation on the icon when playing */
#music-player-btn.playing .music-icon {
  animation: spin-icon 3s linear infinite;
}

@keyframes spin-icon {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Music toast notification */
#music-toast {
  position: fixed;
  bottom: 5.5rem;
  left: 2rem;
  background: rgba(17, 24, 39, 0.92);
  color: #fff;
  padding: 0.55rem 1rem;
  border-radius: 0.65rem;
  font-size: 0.8rem;
  font-family: 'Poppins', sans-serif;
  max-width: 220px;
  line-height: 1.4;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  border-left: 3px solid var(--primary-color);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  z-index: 9998;
}

#music-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 600px) {
  .orbit-container {
    width: 300px;
    height: 300px;
  }
  
  section {
    padding: 2rem 1rem;
  }
  
  .navbar {
    padding: 0.5rem 1rem;
  }
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9990;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease, background 0.3s ease;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(245, 158, 11, 0.5);
}

#back-to-top:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  #back-to-top {
    width: 42px;
    height: 42px;
    bottom: 1.25rem;
    right: 1.25rem;
    font-size: 1rem;
  }
}

/* ============================================
   SKIP TO CONTENT (Accessibility)
   ============================================ */
.skip-to-content {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  background: #f59e0b;
  color: #111827;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 0.75rem 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.skip-to-content:focus {
  top: 0;
  outline: none;
}

/* ============================================
   KEYBOARD FOCUS STYLES (Accessibility)
   ============================================ */
*:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 3px;
  border-radius: 4px;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid #f59e0b;
  outline-offset: 3px;
}

/* ============================================
   BREADCRUMB NAVIGATION
   ============================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.breadcrumb a:hover {
  color: #f59e0b;
}

.breadcrumb .separator {
  color: var(--text-secondary);
  opacity: 0.5;
  font-size: 0.75rem;
}

.breadcrumb .current {
  color: #f59e0b;
  font-weight: 500;
}

/* ============================================
   SKILL CARD NAME LABEL
   ============================================ */
.skill-card .skill-name {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  transition: color 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skill-card:hover .skill-name {
  color: #f59e0b;
}

@media (max-width: 480px) {
  .skill-card .skill-name {
    font-size: 0.65rem;
  }
}

/* ============================================
   CERTIFICATE SEARCH & FILTER
   ============================================ */
.cert-search-container {
  max-width: 500px;
  margin: 0 auto 2rem;
  padding: 0 1.5rem;
}

.cert-search-wrapper {
  position: relative;
}

.cert-search-wrapper i {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 0.9rem;
  pointer-events: none;
  transition: color 0.3s;
}

.cert-search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  background: var(--card-bg);
  color: var(--text-primary);
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}

.cert-search-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.cert-search-input:focus + i {
  color: #f59e0b;
}

.cert-search-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

.cert-no-results {
  text-align: center;
  color: var(--text-secondary);
  padding: 2rem 1rem;
  font-size: 0.95rem;
  display: none;
}

.cert-no-results i {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

/* Certificate card with label */
.cert-card {
  display: block;
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.cert-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 20px 40px rgba(245, 158, 11, 0.12), 0 8px 16px rgba(0,0,0,0.08);
}

.cert-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

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



/* Certificate lightbox */
.cert-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
}

.cert-lightbox.open {
  display: flex;
}

.cert-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  z-index: 0;
}

.cert-lightbox-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  animation: lightbox-in 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
}

.cert-lightbox-content img {
  max-width: 90vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.cert-lightbox-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

.cert-lightbox-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cert-lightbox-nav button:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1);
}

.cert-lightbox-close {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.cert-lightbox-close:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.1);
}

.cert-lightbox-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  background: rgba(245, 158, 11, 0.85);
  border: 1px solid #f59e0b;
  border-radius: 0.6rem;
  transition: all 0.3s ease;
  cursor: pointer;
  z-index: 10;
  position: relative;
}

.cert-lightbox-link:hover {
  background: #f59e0b;
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

@media (max-width: 768px) {
  .cert-card:hover {
    transform: translateY(-4px);
  }
}

/* ============================================
   PROFESSIONAL FOOTER
   ============================================ */
.site-footer {
  margin-top: 3rem;
  padding: 3rem 0 1.5rem;
  background: var(--card-bg, rgba(17, 24, 39, 0.85));
  border-top: 1px solid var(--border-color, rgba(245, 158, 11, 0.1));
  backdrop-filter: blur(12px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-heading {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #f59e0b;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary, #9ca3af);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.25s ease, padding-left 0.25s ease;
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover {
  color: #f59e0b;
  padding-left: 4px;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.footer-socials a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--text-secondary, #9ca3af);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #f59e0b;
  transform: translateY(-3px);
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.2), transparent);
  margin: 2rem 0 1.25rem;
}

.footer-bottom {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary, #6b7280);
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-socials {
    justify-content: center;
  }
}
