:root {
  --background: #0a0a0a;
  --foreground: #ffffff;
  --card-background: #1a1a1a;
  --dark-gray: #2a2a2a;
  --border-color: #333333;
  --accent-purple: #38bdf8;
  --accent-green: #22c55e;
  --accent-purple-light: #7dd3fc;
  --accent-green-light: #34d399;
  --text-primary: #ffffff;
  --text-secondary: #e5e7eb;
  --text-muted: #9ca3af;
}

body {
  background: var(--background);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body, .glass-container, .card, .card-title, .card-text, .lead, ul, li, .timeline-link, .section-title {
  color: var(--text-primary) !important;
}
.text-muted, .text-secondary {
  color: var(--text-secondary) !important;
}
.badge, .glass-badge {
  color: var(--text-primary) !important;
}

.navbar {
  background: var(--dark-gray) !important;
  border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
  color: var(--accent-green) !important;
  letter-spacing: 1px;
}

.navbar-gradient-brand {
  background: linear-gradient(90deg, #22c55e, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
  font-weight: 800;
  letter-spacing: 1.5px;
  font-size: 1.35rem;
}

.nav-link {
  color: var(--text-secondary) !important;
  transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-purple) !important;
}

.hero-section {
  min-height: 100vh;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0;
}

/* Three.js Background Container */
.threejs-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.8;
  pointer-events: none;
  background: transparent;
}

.threejs-background canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

/* Modern Hero Background Effects */
.hero-bg-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(34, 197, 94, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(168, 85, 247, 0.02) 0%, transparent 50%);
  animation: particleMove 20s ease-in-out infinite;
  z-index: 1;
}

.hero-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    rgba(34, 197, 94, 0.02) 0%,
    rgba(56, 189, 248, 0.02) 25%,
    rgba(168, 85, 247, 0.01) 50%,
    rgba(34, 197, 94, 0.02) 75%,
    rgba(56, 189, 248, 0.02) 100%);
  animation: gradientShift 15s ease-in-out infinite;
  z-index: 1;
}

/* Floating Geometric Shapes */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-purple));
  opacity: 0.1;
  animation: float 20s ease-in-out infinite;
}

.shape-1 {
  width: 100px;
  height: 100px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 60px;
  height: 60px;
  top: 20%;
  right: 15%;
  animation-delay: 4s;
}

.shape-3 {
  width: 80px;
  height: 80px;
  bottom: 30%;
  left: 20%;
  animation-delay: 8s;
}

.shape-4 {
  width: 120px;
  height: 120px;
  bottom: 20%;
  right: 10%;
  animation-delay: 12s;
}

.shape-5 {
  width: 40px;
  height: 40px;
  top: 50%;
  left: 50%;
  animation-delay: 16s;
}

/* Mac-Style Window Container */
.mac-window-container {
  background: rgba(26, 26, 26, 0.2);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 
    0 25px 45px -12px rgba(0, 0, 0, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  animation: cardEntrance 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Mac Window Header */
.mac-window-header {
  background: rgba(40, 40, 40, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.mac-window-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    var(--accent-green) 25%, 
    var(--accent-purple) 50%, 
    var(--accent-green) 75%, 
    transparent 100%);
  opacity: 0.6;
}

/* Mac Window Buttons */
.mac-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mac-button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mac-button::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  z-index: 1000;
}

.mac-button:hover::before {
  opacity: 1;
}

.mac-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

/* Theme-colored Mac Buttons */
.mac-button.close {
  background: linear-gradient(135deg, var(--accent-green), #16a34a);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.mac-button.minimize {
  background: linear-gradient(135deg, var(--accent-purple), #0ea5e9);
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.4);
}

.mac-button.maximize {
  background: linear-gradient(135deg, var(--accent-green), #1e40af);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.mac-button.close:hover {
  background: linear-gradient(135deg, #16a34a, var(--accent-green));
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.6);
}

.mac-button.minimize:hover {
  background: linear-gradient(135deg, #0ea5e9, var(--accent-purple));
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
}

.mac-button.maximize:hover {
  background: linear-gradient(135deg, var(--accent-green), #1e3a8a);
  box-shadow: 0 0 15px rgba(30, 64, 175, 0.6);
}

/* Mac Window Title */
.mac-title {
  flex: 1;
  text-align: center;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  margin: 0 20px;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Mac Window Controls */
.mac-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mac-controls i {
  color: var(--accent-green);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.mac-controls i::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  white-space: nowrap;
  z-index: 1000;
}

.mac-controls i:hover::before {
  opacity: 1;
}

.mac-controls i:hover {
  color: var(--accent-purple);
  transform: scale(1.1);
}

/* Mac Window Content */
.mac-window-content {
  padding: 3rem 2rem 2rem 2rem;
  background: rgba(26, 26, 26, 0.1);
  border-radius: 0 0 16px 16px;
  position: relative;
}

.mac-window-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.02), 
    transparent);
  animation: shimmer 3s infinite;
}

/* Profile Section Styling */
.profile-section {
  position: relative;
}

.profile-image-container {
  display: inline-block;
  position: relative;
  margin: 0 auto;
}

.profile-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  position: relative;
  z-index: 3;
  border: 4px solid rgba(255, 255, 255, 0.1);
  animation: profileEntrance 1.5s cubic-bezier(0.23, 1, 0.32, 1) 0.3s both;
}

.profile-ring {
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--accent-green), var(--accent-purple)) border-box;
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: ringRotate 8s linear infinite;
}

.profile-ring-2 {
  position: absolute;
  top: -25px;
  left: -25px;
  right: -25px;
  bottom: -25px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 50%;
  animation: ringRotate 12s linear infinite reverse;
}

.profile-status-indicator {
  position: absolute;
  bottom: 15px;
  right: 15px;
  width: 24px;
  height: 24px;
  background: var(--accent-green);
  border-radius: 50%;
  border: 4px solid var(--background);
  animation: statusPulse 2s ease-in-out infinite;
}

/* Title Section Styling */
.title-section {
  text-align: center;
}

.greeting-text {
  margin-bottom: 1rem;
  opacity: 0;
  animation: textSlideUp 1s cubic-bezier(0.23, 1, 0.32, 1) 0.6s both;
}

.greeting-wave {
  font-size: 2rem;
  margin-right: 0.5rem;
  animation: wave 2s ease-in-out infinite;
}

.greeting-message {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-name {
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 800;
  margin: 1rem 0;
  line-height: 1.1;
}

.name-part {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-green), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: nameEntrance 1.2s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.name-first {
  animation-delay: 0.8s;
}

.name-last {
  animation-delay: 1s;
  margin-left: 0.5rem;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  animation: textSlideUp 1s cubic-bezier(0.23, 1, 0.32, 1) 1.2s both;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.role-prefix {
  white-space: nowrap;
}

.role-text {
  font-weight: 600;
  color: var(--accent-purple);
  display: inline-block;
  white-space: nowrap;
}

.role-cursor {
  animation: blink 1s infinite;
  color: var(--accent-green);
  font-weight: 100;
  margin-left: 2px;
  display: inline-block;
}

/* Tech Stack Showcase */
.tech-showcase {
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) 1.4s both;
}

.tech-stack-floating {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.tech-item {
  background: rgba(40, 40, 40, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  animation: techItemFloat 6s ease-in-out infinite;
}

.tech-item:nth-child(1) { animation-delay: 0s; }
.tech-item:nth-child(2) { animation-delay: 1.2s; }
.tech-item:nth-child(3) { animation-delay: 2.4s; }
.tech-item:nth-child(4) { animation-delay: 3.6s; }
.tech-item:nth-child(5) { animation-delay: 4.8s; }

.tech-item:hover {
  transform: translateY(-8px) scale(1.05);
  background: linear-gradient(135deg, var(--accent-green), var(--accent-purple));
  color: white;
  box-shadow: 0 20px 40px rgba(34, 197, 94, 0.3);
}

.tech-item i {
  font-size: 1.2rem;
  color: var(--accent-purple);
  transition: color 0.3s ease;
}

.tech-item:hover i {
  color: white;
}

.tech-item span {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Modern Action Buttons */
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 3rem 0 2rem 0;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) 1.6s both;
}

.btn-modern {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
  border: none;
  cursor: pointer;
  min-width: 160px;
  justify-content: center;
}

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

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

.btn-primary {
  background: linear-gradient(135deg, var(--accent-green), #16a34a);
  color: white;
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(34, 197, 94, 0.4);
  color: white;
}

.btn-secondary {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-purple);
  border: 2px solid var(--accent-purple);
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.2);
}

.btn-secondary:hover {
  background: var(--accent-purple);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(56, 189, 248, 0.4);
}

.btn-icon {
  transition: transform 0.3s ease;
}

.btn-modern:hover .btn-icon {
  transform: translateX(5px);
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 0.6s linear;
  background-color: rgba(255, 255, 255, 0.7);
}

/* Social Links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) 1.8s both;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(40, 40, 40, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
}

.social-link::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

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

.social-link:hover {
  transform: translateY(-5px) scale(1.1);
  background: linear-gradient(135deg, var(--accent-green), var(--accent-purple));
  color: white;
  box-shadow: 0 10px 25px rgba(34, 197, 94, 0.3);
}

.social-link i {
  font-size: 1.2rem;
}

/* Scroll Indicator */
.scroll-indicator {
  text-align: center;
  margin-top: 3rem;
  opacity: 0;
  animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) 2s both;
}

.scroll-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.scroll-arrow {
  animation: bounce 2s infinite;
}

.scroll-arrow i {
  color: var(--accent-purple);
  font-size: 1.2rem;
}

/* Animations */
@keyframes particleMove {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-30px) rotate(120deg); }
  66% { transform: translateY(30px) rotate(240deg); }
}

@keyframes gradientShift {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(90deg); }
  50% { transform: translateY(0px) rotate(180deg); }
  75% { transform: translateY(20px) rotate(270deg); }
}

@keyframes cardEntrance {
  from {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes profileEntrance {
  from {
    opacity: 0;
    transform: scale(0.5) rotate(-180deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes statusPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

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

@keyframes nameEntrance {
  from {
    opacity: 0;
    transform: translateY(50px) skewX(10deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) skewX(0deg);
  }
}

@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(20deg); }
  75% { transform: rotate(-20deg); }
}

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

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

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

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

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

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-glass-card {
    padding: 2rem 1rem;
    margin: 1rem;
    border-radius: 24px;
  }
  
  .profile-image {
    width: 140px;
    height: 140px;
  }
  
  .hero-name {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
    justify-content: center;
    text-align: center;
  }
  
  .role-text {
    font-size: 1.2rem;
  }
  
  .role-cursor {
    font-size: 1.2rem;
  }
  
  .tech-stack-floating {
    gap: 0.5rem;
  }
  
  .tech-item {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-modern {
    width: 100%;
    max-width: 280px;
  }
  
  .floating-shape {
    display: none; /* Hide floating shapes on mobile for performance */
  }
  
  .social-links {
    gap: 0.8rem;
  }
  
  .social-link {
    width: 45px;
    height: 45px;
  }
}

.btn-accent-green {
  background: var(--accent-green);
  color: var(--text-primary);
  border: none;
  transition: background 0.2s;
}

.btn-accent-green:hover {
  background: linear-gradient(90deg, #22c55e, #38bdf8);
  color: var(--background);
}

.btn-outline-accent-purple {
  border: 2px solid var(--accent-purple);
  color: var(--accent-purple);
  background: transparent;
  transition: background 0.2s, color 0.2s;
}

.btn-outline-accent-purple:hover {
  background: linear-gradient(90deg, #22c55e, #38bdf8);
  color: var(--text-primary);
  border-color: #38bdf8;
}

.spline-3d-placeholder {
  width: 100%;
  min-height: 300px;
  background: rgba(34,197,94,0.05);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
}

.glass-container {
  background: rgba(26, 26, 26, 0.45);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-radius: 24px;
  border: 1.5px solid var(--border-color);
  z-index: 2;
  position: relative;
  padding-bottom: 2rem;
}

.spline-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

section {
  padding: 64px 0 32px 0;
  position: relative;
  z-index: 2;
}

.glass-badge {
  background: rgba(40, 40, 40, 0.75);
  color: var(--text-primary);
  border-radius: 16px;
  padding: 0.4em 1em;
  margin-right: 0.3em;
  margin-bottom: 0.3em;
  font-size: 0.95em;
  font-weight: 500;
  box-shadow: 0 2px 8px 0 rgba(31, 38, 135, 0.10);
  backdrop-filter: blur(8px) saturate(180%);
  -webkit-backdrop-filter: blur(8px) saturate(180%);
  border: 1px solid var(--border-color);
  display: inline-block;
  transition: background 0.2s, color 0.2s;
}

.glass-badge:hover {
  background: linear-gradient(90deg, #22c55e, #38bdf8);
  color: var(--background);
}

.section-title {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.card:not(:last-child) {
  margin-bottom: 2rem;
}

/* Proje kartları arasındaki boşluk için row g-4 zaten var, diğer sectionlarda da kartlar arasında boşluk sağlanır */

.skill-progress {
  background: rgba(60, 60, 60, 0.35);
  border-radius: 8px;
  box-shadow: 0 2px 8px 0 rgba(31, 38, 135, 0.10);
  overflow: hidden;
}

.skill-progress .progress-bar {
  border-radius: 8px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(90deg, var(--accent-green), var(--accent-purple));
  font-size: 0.9em;
}

.bg-accent-green {
  background-color: var(--accent-green) !important;
}
.bg-accent-purple {
  background-color: var(--accent-purple) !important;
}

.border-accent-purple {
  border-color: var(--accent-purple) !important;
}
.border-accent-green {
  border-color: var(--accent-green) !important;
}
/* Career Positions Styles */
.career-positions {
  position: relative;
}

/* Position cards without timeline spacing */
.career-positions .position-card {
  position: relative;
  margin-bottom: 1.5rem;
}

/* Career progression badges */
.promotion-badge, .starting-badge, .return-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-left: 8px;
}

.promotion-badge {
  background: linear-gradient(45deg, var(--accent-green), #16a34a);
  color: white;
  animation: glow-green 2s ease-in-out infinite alternate;
}

.starting-badge {
  background: linear-gradient(45deg, var(--accent-purple), #0ea5e9);
  color: white;
}

.return-badge {
  background: linear-gradient(45deg, #f59e0b, #d97706);
  color: white;
}

@keyframes glow-green {
  from {
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.5);
  }
  to {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.8);
  }
}

/* Enhanced position card styling */
.career-positions .position-card:hover {
  transform: translateY(-4px);
  transition: transform 0.3s ease;
}
  
  .promotion-badge, .starting-badge, .return-badge {
    font-size: 0.65rem;
    padding: 1px 6px;
    margin-left: 4px;
    display: inline-block;
    vertical-align: middle;
  }


/* Modern Experience Section Styles */
.experience-timeline {
  position: relative;
}

.experience-card {
  background: rgba(40, 40, 40, 0.6);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
  backdrop-filter: blur(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.experience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.05), transparent);
  transition: left 0.6s;
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px 0 rgba(31, 38, 135, 0.25);
  border-color: var(--accent-purple);
}

.experience-card:hover::before {
  left: 100%;
}

.experience-header {
  margin-bottom: 1.5rem;
}

.company-info .company-logo {
  width: 50px;
  height: 50px;
  background: rgba(56, 189, 248, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent-purple);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.company-info .company-logo:hover {
  transform: translateY(-4px) scale(1.05);
  background: rgba(56, 189, 248, 0.2);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.3);
}

.company-info .company-logo img {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.company-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.company-location {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.position-card {
  background: rgba(26, 26, 26, 0.4);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
  transition: all 0.3s ease;
}

.position-card:hover {
  background: rgba(26, 26, 26, 0.6);
  border-color: var(--accent-purple);
  transform: translateX(5px);
}

.current-position {
  border-left: 4px solid var(--accent-green);
  background: rgba(34, 197, 94, 0.05);
}

.current-position:hover {
  background: rgba(34, 197, 94, 0.1);
  border-color: var(--accent-green);
}

.position-header {
  margin-bottom: 1rem;
}

.position-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.position-duration {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.position-type {
  display: flex;
  align-items: center;
}

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

.achievements-list li {
  margin-bottom: 0.8rem;
  padding-left: 0;
  display: flex;
  align-items: flex-start;
  line-height: 1.6;
}

.achievements-list li:last-child {
  margin-bottom: 0;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tech-badge {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tech-badge:hover {
  background: linear-gradient(45deg, var(--accent-green), #06b6d4);
  color: white;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 15px rgba(34, 197, 94, 0.3);
  border: 1px solid rgba(34, 197, 94, 0.5);
}

/* Responsive Design for Experience Section */
@media (max-width: 768px) {
  .experience-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .company-info .d-flex {
    flex-direction: row;
    align-items: flex-start !important;
    gap: 1rem !important;
    flex-wrap: nowrap;
  }
  
  .company-info .d-flex > div:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 45px;
  }
  
  .company-logo {
    width: 45px !important;
    height: 45px !important;
  }
  
  .company-logo img {
    width: 45px !important;
    height: 45px !important;
  }
  
  .company-name {
    font-size: 1.1rem;
    margin-bottom: 0.25rem !important;
    line-height: 1.3;
  }
  
  .company-location {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.3rem !important;
    font-size: 0.9rem;
    line-height: 1.2;
    flex-wrap: nowrap !important;
  }
  
  .company-location span {
    white-space: nowrap;
    display: inline-block;
  }
  
  .company-location i {
    margin-right: 0.3rem !important;
    display: inline-block;
  }
  
  .company-location .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    margin-left: 0.3rem !important;
    display: inline-block;
    white-space: nowrap;
  }
  
  .position-card {
    padding: 1rem;
  }
  
  .position-title {
    font-size: 1.1rem;
  }
  
  .position-header .d-flex {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .tech-stack {
    gap: 0.3rem;
  }
  
  .tech-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
  }
  
  .achievements-list li {
    font-size: 0.9rem;
  }
  
  .company-location {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.3rem !important;
  }
}

@media (min-width: 768px) and (max-width: 992px) {
  .experience-card {
    padding: 1.8rem;
  }
  
  .position-header .d-flex {
    flex-direction: column;
    gap: 0.8rem;
  }
}

.card.bg-dark-gray {
  background: rgba(34, 34, 34, 0.92) !important;
  border-radius: 18px;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px 0 rgba(31, 38, 135, 0.10);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
  will-change: transform, box-shadow; /* Performance optimization */
}

/* Skill Cards: ensure equal vertical alignment of progress bars & percentages */
#skills .card.bg-dark-gray .card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Allow description area to take natural height; push progress section to bottom */
#skills .card.bg-dark-gray .skill-progress {
  margin-top: auto; /* Push progress + following percentage text to bottom */
}

/* Centralize justification styling (inline kept for safety but this reinforces) */
#skills .card.bg-dark-gray .skill-details {
  text-align: justify;
  text-justify: inter-word;
}

/* Tech Icons Group Styling */
.tech-icons-group {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 1rem !important;
  min-height: 70px;
}

.tech-icons-group img {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 6px;
  padding: 3px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-icons-group img:hover {
  transform: scale(1.2) translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-purple);
  box-shadow: 0 5px 15px rgba(56, 189, 248, 0.3);
}

/* Card hover effects for tech icons */
.card.bg-dark-gray:hover .tech-icons-group img {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.08);
}

.card.bg-dark-gray:hover .tech-icons-group img:hover {
  transform: scale(1.25) translateY(-3px);
  background: linear-gradient(45deg, var(--accent-green), var(--accent-purple));
  border-color: var(--accent-green);
  box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
}

/* Skill Card Hover Effects */
.card.bg-dark-gray:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px 0 rgba(31, 38, 135, 0.25), 
              0 0 0 1px rgba(56, 189, 248, 0.3);
  background: rgba(40, 40, 40, 0.95) !important;
}

.card.bg-dark-gray .card-body {
  transition: all 0.3s ease;
}

.card.bg-dark-gray:hover .card-body {
  transform: scale(1.02);
}

/* Icon animations on hover */
.card.bg-dark-gray:hover i {
  transform: scale(1.1) rotate(5deg);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Progress bar animation enhancement */
.skill-progress .progress-bar {
  position: relative;
  overflow: hidden;
}

.skill-progress .progress-bar::after {
  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;
}

.card.bg-dark-gray:hover .skill-progress .progress-bar::after {
  left: 100%;
}

.card {
  background: none;
  border: none;
}

.glass-navbar {
  background: rgba(26, 26, 26, 0.25) !important;
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15), 
              inset 0 1px 0 rgba(255, 255, 255, 0.1),
              0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px) saturate(180%) brightness(120%);
  -webkit-backdrop-filter: blur(20px) saturate(180%) brightness(120%);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.1);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.glass-navbar::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(34, 197, 94, 0.3) 25%, 
    rgba(56, 189, 248, 0.3) 50%, 
    rgba(34, 197, 94, 0.3) 75%, 
    transparent 100%);
  animation: liquidFlow 8s ease-in-out infinite;
}

@keyframes liquidFlow {
  0%, 100% {
    opacity: 0.3;
    transform: translateX(-100%);
  }
  50% {
    opacity: 0.8;
    transform: translateX(100%);
  }
}

.nav-pill-glass {
  background: rgba(40, 40, 40, 0.45);
  border-radius: 2rem;
  padding: 0.45em 1.2em;
  margin: 0 0.25em;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.nav-pill-glass:hover, .nav-pill-glass.active {
  background: linear-gradient(90deg, #22c55e, #38bdf8);
  color: var(--background) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* Icon animations and colors in navbar */
.nav-pill-glass i {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Individual icon colors using theme colors */
.nav-pill-glass .fa-user {
  color: var(--accent-purple);
}

.nav-pill-glass .fa-code {
  color: var(--accent-green);
}

.nav-pill-glass .fa-diagram-project {
  color: var(--accent-purple);
}

.nav-pill-glass .fa-briefcase {
  color: var(--accent-green);
}

.nav-pill-glass .fa-graduation-cap {
  color: var(--accent-purple);
}

.nav-pill-glass .fa-certificate {
  color: var(--accent-green);
}

.nav-pill-glass .fa-heart {
  color: var(--accent-purple);
}

.nav-pill-glass .fa-envelope {
  color: var(--accent-green);
}

.nav-pill-glass:hover i {
  transform: scale(1.1) rotate(5deg);
  color: var(--background) !important; /* All icons turn dark when hovering */
}

/* Navbar link shimmer effect */
.nav-pill-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.6s;
}

.nav-pill-glass:hover::before {
  left: 100%;
}

footer {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: auto;
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 60vh;
    padding: 32px 0;
    padding-top: 2rem;
  }
  
  /* Reduce Three.js background intensity on mobile for performance */
  .threejs-background {
    opacity: 0.5;
  }
  
  /* Disable complex animations on mobile for better performance */
  .threejs-background canvas {
    animation: none;
  }
  
  /* Mac Window Mobile Adjustments */
  .mac-window-container {
    padding: 0;
    border-radius: 12px;
    margin: 1rem;
  }
  
  .mac-window-header {
    padding: 10px 16px;
    border-radius: 12px 12px 0 0;
  }
  
  .mac-window-content {
    padding: 2rem 1rem 1.5rem 1rem;
    border-radius: 0 0 12px 12px;
  }
  
  .mac-title {
    font-size: 11px;
    margin: 0 10px;
  }
  
  .mac-button {
    width: 10px;
    height: 10px;
  }
  
  .mac-controls {
    gap: 6px;
  }
  
  .mac-controls i {
    font-size: 0.8rem;
  }
  
  /* Hide tooltips on mobile */
  .mac-button::before,
  .mac-controls i::before {
    display: none;
  }
  
  /* Tech icons mobile adjustments */
  .tech-icons-group {
    gap: 6px;
    min-height: 50px;
  }
  
  .tech-icons-group img {
    height: 32px !important;
    margin: 2px !important;
  }
  
  /* Disable complex icon animations on mobile */
  .tech-icons-group img:hover {
    transform: scale(1.05);
  }
  
  .card.bg-dark-gray:hover .tech-icons-group img {
    transform: scale(1.02);
  }
  
  .card.bg-dark-gray:hover .tech-icons-group img:hover {
    transform: scale(1.08);
    box-shadow: none;
  }
  
  .glass-container {
    border-radius: 12px;
    padding: 12px;
    padding-bottom: 1.2rem;
  }
  section {
    padding: 32px 0 16px 0;
  }
  .section-title {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
  }
  .card:not(:last-child) {
    margin-bottom: 1.2rem;
  }
  .skill-progress {
    height: 8px !important;
  }
  .nav-pill-glass {
    margin: 0.2em 0;
    padding: 0.6em 1em;
    font-size: 1em;
  }
  
  /* Reduce navbar icon animations on mobile */
  .nav-pill-glass:hover {
    transform: translateY(-1px);
  }
  
  .nav-pill-glass:hover i {
    transform: scale(1.05);
  }
  
  .nav-pill-glass::before {
    display: none; /* Disable shimmer on mobile for performance */
  }
  
  /* Mobile-specific hover adjustments */
  .card.bg-dark-gray:hover {
    transform: translateY(-4px); /* Reduced hover lift for mobile */
  }
  
  /* Disable complex animations on mobile for better performance */
  .card.bg-dark-gray::before,
  #projects .card.bg-dark-gray::before {
    display: none;
  }
  
  /* Simplify project card animations for mobile */
  #projects .card.bg-dark-gray:hover .project-icon {
    transform: scale(1.1); /* Reduced scale for mobile */
  }
  
  /* Modal adjustments for mobile */
  .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }
  
  /* Reduce animation delays on mobile */
  .card.bg-dark-gray {
    animation-delay: 0s !important;
  }
  
  /* Touch-friendly click hint */
  #projects .card.bg-dark-gray::after {
    content: '👆 Tap for details';
    font-size: 0.7rem;
    top: 8px;
    right: 12px;
  }
} 

/* Accessibility: Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .card.bg-dark-gray,
  .glass-container {
    animation: none;
  }
  
  .card.bg-dark-gray:hover {
    transform: none;
  }
  
  .project-icon,
  #projects .card.bg-dark-gray:hover .project-icon,
  .card.bg-dark-gray:hover i {
    transform: none;
  }
  
  .skill-progress .progress-bar::after,
  #projects .card.bg-dark-gray::before,
  .btn-outline-accent-purple::before {
    display: none;
  }
  
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Tablet responsiveness (768px - 992px) */
@media (min-width: 768px) and (max-width: 992px) {
  .card.bg-dark-gray:hover {
    transform: translateY(-6px); /* Medium hover lift for tablets */
  }
  
  .modal-dialog {
    max-width: 90%;
  }
  
  #projects .card.bg-dark-gray:hover .project-icon {
    transform: scale(1.15) rotate(8deg); /* Slightly reduced for tablets */
  }
  
  /* Tech icons tablet adjustments */
  .tech-icons-group img {
    height: 40px !important;
    margin: 2px !important;
  }
  
  .tech-icons-group {
    gap: 8px;
    min-height: 60px;
  }
}

/* Project Card Specific Enhancements */
#projects .card.bg-dark-gray {
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

#projects .card.bg-dark-gray::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.1), transparent);
  transition: left 0.6s;
}

#projects .card.bg-dark-gray:hover::before {
  left: 100%;
}

#projects .card.bg-dark-gray:hover {
  border-color: var(--accent-purple);
  box-shadow: 0 15px 35px 0 rgba(56, 189, 248, 0.2), 
              0 5px 15px 0 rgba(0, 0, 0, 0.1);
}

/* Project Icon Animation */
.project-icon {
  font-size: 2rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#projects .card.bg-dark-gray:hover .project-icon {
  transform: scale(1.2) rotate(10deg);
}

/* Badge hover effects */
.glass-badge {
  transition: all 0.3s ease;
}

#projects .card.bg-dark-gray:hover .glass-badge {
  transform: scale(1.05);
  background: rgba(56, 189, 248, 0.2);
  border-color: var(--accent-purple);
}

/* Button enhancements */
.btn-outline-accent-purple {
  position: relative;
  overflow: hidden;
}

.btn-outline-accent-purple::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-green), var(--accent-purple));
  transition: left 0.3s;
  z-index: -1;
}

.btn-outline-accent-purple:hover::before {
  left: 0;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Enhanced glass container animations */
.glass-container {
  animation: fadeInUp 0.6s ease-out;
}

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

/* Staggered animation for cards */
.card.bg-dark-gray {
  animation: fadeInUp 0.6s ease-out;
}

.card.bg-dark-gray:nth-child(1) { animation-delay: 0.1s; }
.card.bg-dark-gray:nth-child(2) { animation-delay: 0.2s; }
.card.bg-dark-gray:nth-child(3) { animation-delay: 0.3s; }
.card.bg-dark-gray:nth-child(4) { animation-delay: 0.4s; }
.card.bg-dark-gray:nth-child(5) { animation-delay: 0.5s; }
.card.bg-dark-gray:nth-child(6) { animation-delay: 0.6s; }

/* Modal Enhancements */
.modal-content.bg-dark-gray {
  background: rgba(26, 26, 26, 0.95) !important;
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-header {
  border-bottom: 1px solid var(--border-color) !important;
}

.modal-footer {
  border-top: 1px solid var(--border-color) !important;
}

.text-accent-green {
  color: var(--accent-green) !important;
}

.text-accent-purple {
  color: var(--accent-purple) !important;
}

/* Modal backdrop enhancement */
.modal-backdrop {
  background-color: rgba(0, 0, 0, 0.8);
}

/* Click hint for project cards */
#projects .card.bg-dark-gray {
  position: relative;
}

#projects .card.bg-dark-gray::after {
  content: '🔍 Click for details';
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#projects .card.bg-dark-gray:hover::after {
  opacity: 1;
}