/* 
  Alexander Doneski Portfolio - Dark Tech Theme
  Modern, professional, dark-themed design with animated elements
  Updated for improved readability
*/

/* ----- 1. Base Variables ----- */
:root {
  /* Color scheme */
  --bg-primary: #0a0a0a;
  --bg-secondary: #121212;
  --accent-primary: #00ff9d;
  --accent-secondary: #0080ff;
  --accent-rgb: 0, 255, 157;
  --text-primary: #ffffff;
  --text-secondary: #d0d0d0; /* Lighter for better readability */
  --text-tertiary: #a0a0a0;
  --transition-slow: all 0.5s ease;
  --transition-medium: all 0.3s ease;
  --transition-fast: all 0.1s ease;
}

/* ----- 2. Base Styles ----- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7; /* Increased line height for readability */
  overflow-x: hidden;
  font-size: 16px; /* Base font size */
  letter-spacing: 0.3px; /* Slight letter spacing for readability */
}

a {
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition-medium);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ----- 3. Animated Background ----- */
.stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  opacity: 0.7; /* Reduced opacity for better text readability */
}

.star {
  position: absolute;
  background-color: #fff;
  border-radius: 50%;
  opacity: 0.6;
  animation: twinkle var(--duration, 3s) infinite var(--delay, 0s);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.8; }
}

.shooting-star {
  position: absolute;
  width: 4px;
  height: 4px;
  background: linear-gradient(to right, rgba(255,255,255,0), #fff);
  border-radius: 50%;
  animation: shoot var(--duration, 3s) infinite var(--delay, 0s) linear;
  transform: rotate(var(--angle, -45deg));
}

@keyframes shoot {
  0% { 
    transform: rotate(var(--angle)) translateX(0);
    opacity: 1; 
  }
  70% { opacity: 1; }
  100% { 
    transform: rotate(var(--angle)) translateX(100vw); 
    opacity: 0;
  }
}

.accent-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12; /* Reduced opacity for better text readability */
  background: radial-gradient(circle, var(--color, var(--accent-primary)) 0%, rgba(0,0,0,0) 70%);
  animation: pulse 8s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 0.12; transform: scale(1); }
  50% { opacity: 0.17; transform: scale(1.1); }
}

/* ----- 4. Pre-loader / Intro Animation ----- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.preloader-content {
  text-align: center;
  opacity: 0;
  animation: fadeInPreloader 0.8s forwards 0.5s;
}

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

.preloader-logo {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInLogo 1s forwards 1s;
}

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

.preloader-text {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInText 1s forwards 1.5s;
}

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

.preloader-bar {
  width: 300px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.preloader-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  width: 0%;
  animation: progress 2.5s ease-out forwards 2s;
}

@keyframes progress {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

.preloader.fade-out {
  opacity: 0;
  transition: opacity 0.8s ease-out;
  pointer-events: none;
}

/* ----- 5. Navigation ----- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition-medium);
}

.navbar.scrolled {
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-logo {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  z-index: 5;
}

.navbar-logo::after {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  background: var(--accent-primary);
  border-radius: 50%;
  top: -5px;
  right: -5px;
  opacity: 0.6;
  filter: blur(5px);
  z-index: -1;
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  font-size: 14px;
  letter-spacing: 1px;
  font-weight: 500;
  position: relative;
  text-transform: uppercase;
}

.nav-links a:hover {
  color: var(--accent-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--accent-primary);
}

.nav-links a.active::after {
  width: 100%;
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}

/* Mobile Navigation */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: var(--transition-medium);
  transform: translateY(-100%);
  opacity: 0;
}

.mobile-nav.active {
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav ul {
  list-style: none;
  text-align: center;
}

.mobile-nav li {
  margin: 20px 0;
}

.mobile-nav a {
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.close-menu {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ----- 6. Hero Section ----- */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(10, 10, 10, 0.3) 0%, rgba(10, 10, 10, 0.8) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-name {
  font-size: 5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); /* Text shadow for better readability */
}

.hero-name span {
  display: block;
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none; /* Remove text shadow from gradient text */
}

.hero-title {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  animation: fadeInUp 1s ease 0.2s forwards;
  opacity: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); /* Text shadow for better readability */
}

.hero-title .highlight {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-title .accent {
  color: var(--accent-primary);
  font-weight: 500;
}

.hero-cta {
  margin-top: 40px;
  animation: fadeInUp 1s ease 0.4s forwards;
  opacity: 0;
}

.btn {
  padding: 12px 30px;
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
  color: var(--bg-primary);
  font-weight: 600;
  border-radius: 30px;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 15px;
}

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

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

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.scroll-down {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: float 3s infinite ease-in-out;
  cursor: pointer;
  z-index: 2;
}

.scroll-down span {
  font-size: 0.8rem;
  margin-bottom: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
}

.scroll-down i {
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

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

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

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

/* ----- 7. Section Styling ----- */
.section {
  padding: 100px 0;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(10, 10, 10, 0.1) 0%, rgba(10, 10, 10, 0.6) 100%);
  z-index: -1;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 60px;
  text-align: center;
  position: relative;
  color: var(--text-primary);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* Text shadow for better readability */
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  border-radius: 2px;
}

/* ----- 8. About Section ----- */
.about-content {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
  align-items: start;
}

.about-text {
  background-color: rgba(15, 15, 15, 0.7); /* Semi-transparent background for readability */
  border-radius: 10px;
  padding: 25px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ----- 9. AI Chat Component ----- */
.ai-chat-container {
  background-color: rgba(15, 15, 15, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  overflow: hidden;
  height: 350px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2), 0 0 15px rgba(0, 255, 157, 0.1);
}

.ai-chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: rgba(0, 0, 0, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.ai-chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.ai-message, .user-message {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 15px;
  line-height: 1.5;
  font-size: 0.9rem;
  animation: fadeIn 0.3s ease;
}

.ai-message {
  background-color: rgba(30, 30, 30, 0.7);
  border-top-left-radius: 2px;
  align-self: flex-start;
}

.user-message {
  background: linear-gradient(135deg, rgba(0, 255, 157, 0.15), rgba(0, 128, 255, 0.15));
  border-top-right-radius: 2px;
  align-self: flex-end;
}

.ai-chat-input {
  display: flex;
  padding: 15px;
  background-color: rgba(0, 0, 0, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.ai-chat-input input {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.05);
  border: none;
  color: var(--text-primary);
  padding: 10px 15px;
  border-radius: 6px;
  outline: none;
}

.ai-chat-input input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.ai-chat-input button {
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
  color: var(--bg-primary);
  border: none;
  border-radius: 6px;
  width: 40px;
  height: 40px;
  margin-left: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-medium);
}

.ai-chat-input button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.typing-effect::after {
  content: '|';
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

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

/* ----- 10. Skills Section ----- */
/* ----- Skills Section Redesign ----- */

/* Skills Tab Navigation */
.skills-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  border-radius: 50px;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 8px;
  position: relative;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.skills-tab {
  padding: 12px 25px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: var(--transition-medium);
  flex: 1;
  text-align: center;
  border-radius: 40px;
}

.skills-tab.active {
  color: var(--bg-primary);
}

.tab-indicator {
  position: absolute;
  height: 85%;
  border-radius: 40px;
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
  transition: var(--transition-medium);
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
  width: 33.33%;
  left: 0;
}

/* Skills Content */
.skills-content {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

.skills-content.active {
  display: block;
}

.skills-description {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.skill-card {
  background-color: rgba(15, 15, 15, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 25px;
  transition: var(--transition-medium);
  backdrop-filter: blur(5px);
  height: 100%;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInCard 0.5s forwards;
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 157, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 255, 157, 0.1);
}

.skill-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  gap: 15px;
}

.skill-icon {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  font-size: 20px;
  color: var(--bg-primary);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.skill-name {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.skill-level {
  font-size: 0.8rem;
  background: rgba(0, 255, 157, 0.1);
  color: var(--accent-primary);
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 5px;
  display: inline-block;
}

.skill-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex-grow: 1;
  line-height: 1.6;
}

.skill-tags {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  font-size: 0.75rem;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-tertiary);
  padding: 4px 10px;
  border-radius: 20px;
  transition: var(--transition-fast);
}

.skill-tag:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

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

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

/* Responsive Adjustments */
@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .skills-tabs {
    flex-direction: column;
    background: none;
    padding: 0;
    gap: 10px;
  }
  
  .skills-tab {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
  }
  
  .tab-indicator {
    display: none;
  }
  
  .skills-tab.active {
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .skill-card {
    padding: 20px;
  }
  
  .skill-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .skill-icon {
    margin-bottom: 10px;
  }
}

/* ----- 11. Experience Section ----- */
.experience-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.experience-card {
  background-color: rgba(15, 15, 15, 0.5);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-medium);
  backdrop-filter: blur(5px);
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 0 15px rgba(var(--accent-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.2);
}

.experience-header {
  padding: 20px;
  background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(10, 10, 10, 0.9));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.experience-title h3 {
  margin-bottom: 5px;
  color: var(--text-primary);
  font-size: 1.2rem;
}

.company {
  color: var(--accent-primary);
  font-size: 0.9rem;
}

.date {
  display: inline-block;
  padding: 5px 12px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.experience-content {
  padding: 20px;
}

.experience-list {
  list-style: none;
}

.experience-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

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

.experience-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--accent-primary);
}

/* ----- 12. Education Section ----- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-primary), rgba(255, 255, 255, 0.1));
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
  margin-bottom: 40px;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-marker {
  position: absolute;
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 50%;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  z-index: 1;
  box-shadow: 0 0 15px rgba(var(--accent-rgb), 0.3);
}

.timeline-item:nth-child(odd) .timeline-marker {
  right: -20px;
}

.timeline-item:nth-child(even) .timeline-marker {
  left: -20px;
}

.timeline-content {
  padding: 20px;
  background-color: rgba(15, 15, 15, 0.5);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-medium);
  backdrop-filter: blur(5px);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 0 15px rgba(var(--accent-rgb), 0.1);
  border-color: rgba(var(--accent-rgb), 0.2);
}

.timeline-date {
  display: block;
  font-weight: 500;
  color: var(--accent-primary);
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.timeline-content h3 {
  margin-bottom: 10px;
  color: var(--text-primary);
  font-size: 1.2rem;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ----- 13. Footer ----- */
footer {
  padding: 60px 0 30px;
  background-color: rgba(5, 5, 5, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-info p {
  color: var(--text-secondary);
  margin-top: 20px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-links h4, .footer-social h4 {
  color: var(--text-primary);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  font-size: 1.1rem;
}

.footer-links h4::after, .footer-social h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: linear-gradient(to right, var(--accent-primary), transparent);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-primary);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border-radius: 50%;
  transition: var(--transition-medium);
}

.social-icons a:hover {
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
  color: var(--bg-primary);
  transform: translateY(-5px);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ----- 14. Animation & Utilities ----- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease;
}

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

.fade-up { transform: translateY(30px); }
.fade-down { transform: translateY(-30px); }
.fade-left { transform: translateX(-30px); }
.fade-right { transform: translateX(30px); }
.scale-in { transform: scale(0.95); opacity: 0; }

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ----- 15. Responsive Styles ----- */
@media (max-width: 1024px) {
  .skills-categories {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-name {
    font-size: 4rem;
  }
}

@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .hero-name {
    font-size: 3.5rem;
  }
  
  .nav-links {
    display: none;
  }
  
  .menu-btn {
    display: block;
  }
  
  .timeline::after {
    left: 30px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 20px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-marker {
    left: 10px !important;
    right: auto !important;
  }
}

/* Fixes for Skills and Projects Sections */

/* ----- Filter Buttons ----- */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  background-color: rgba(10, 10, 10, 0.7);
  border: 1px solid rgba(0, 255, 157, 0.2);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  outline: none;
}

.filter-btn:hover {
  background-color: rgba(0, 255, 157, 0.1);
  color: var(--text-primary);
  border-color: rgba(0, 255, 157, 0.4);
  transform: translateY(-2px);
}

.filter-btn.active {
  background-color: rgba(0, 255, 157, 0.15);
  color: var(--accent-primary);
  border-color: rgba(0, 255, 157, 0.5);
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.2);
}

/* ----- Skills Section ----- */
.skills-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.skills-category {
  background-color: rgba(10, 10, 10, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  transition: var(--transition-medium);
  backdrop-filter: blur(5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.skills-category:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 157, 0.3);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 255, 157, 0.1);
}

.skills-category h3 {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  font-size: 1.3rem;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(0, 255, 157, 0.1);
}

.skills-category h3 i {
  margin-right: 12px;
  color: var(--accent-primary);
  font-size: 1.2rem;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.skill-item {
  width: 100%;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.skill-bar {
  height: 6px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  width: 0; /* Initial state for animation */
  transition: width 1.5s cubic-bezier(0.17, 0.67, 0.35, 1.3);
  position: relative;
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0), 
    rgba(255, 255, 255, 0.1), 
    rgba(255, 255, 255, 0));
  animation: shimmer 2s infinite;
}

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

/* ----- Projects Section ----- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.project-card {
  background-color: rgba(10, 10, 10, 0.7);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition-medium);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards;
  animation-delay: calc(var(--index, 0) * 0.1s);
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 255, 157, 0.3);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(0, 255, 157, 0.1);
}

.project-image {
  height: 180px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(10, 10, 10, 0.9));
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 255, 157, 0.05), rgba(0, 128, 255, 0.05));
  opacity: 0;
  transition: var(--transition-medium);
}

.project-card:hover .project-image::before {
  opacity: 1;
}

.project-icon {
  font-size: 3.5rem;
  color: rgba(255, 255, 255, 0.2);
  transition: var(--transition-medium);
  transform: scale(0.9);
}

.project-card:hover .project-icon {
  color: rgba(255, 255, 255, 0.8);
  transform: scale(1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-medium);
}

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

.project-actions {
  transform: translateY(20px);
  transition: var(--transition-medium);
  opacity: 0;
}

.project-card:hover .project-actions {
  transform: translateY(0);
  opacity: 1;
}

.project-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.project-content h3 {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--text-primary);
  position: relative;
  padding-bottom: 15px;
}

.project-content h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(to right, var(--accent-primary), transparent);
}

.project-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
  line-height: 1.6;
}

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

.project-tags span {
  background-color: rgba(0, 255, 157, 0.1);
  color: var(--accent-primary);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.75rem;
  border: 1px solid rgba(0, 255, 157, 0.2);
  transition: var(--transition-fast);
}

.project-tags span:hover {
  background-color: rgba(0, 255, 157, 0.15);
  transform: translateY(-2px);
}

/* Demo button styling */
.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
  color: var(--bg-primary);
  font-weight: 600;
  border-radius: 30px;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-sm:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Ensure the skill progress bars show correctly by fixing their transform property */
.skill-progress {
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 1.5s cubic-bezier(0.17, 0.67, 0.35, 1.3);
  width: 100% !important; /* Use transform to animate instead of width */
}

/* This is specifically for animated appearance */
.animated .skill-progress {
  transform: scaleX(var(--progress-scale, 1));
}

/* Fix for the timeline section which is not displaying properly */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-top: 20px;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-primary), rgba(255, 255, 255, 0.1));
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
}

@media (max-width: 480px) {
  .skills-categories {
    grid-template-columns: 1fr;
  }
  
  .hero-name {
    font-size: 3rem;
  }
  
  .project-card {
    min-width: 100%;
  }
  
  .section {
    padding: 80px 0;
  }
  
  .filter-tabs {
    flex-direction: column;
    align-items: center;
  }
  
  .filter-btn {
    width: 100%;
    max-width: 200px;
  }
}

/* ----- 16. Logo ----- */

/* For the navbar logo */
.navbar-logo img {
  height: 40px;
  width: auto;
  transition: var(--transition-medium);
}

.navbar-logo:hover img {
  transform: scale(1.5);
}

/* For the preloader logo */
.preloader-logo img {
  height: 60px;
  width: auto;
  margin-bottom: 20px;
  animation: fadeInLogo 1s forwards 1s;
  opacity: 0;
  transform: translateY(20px);
}

/* Animations contact*/

/* Modern Footer with Attention-Grabbing Effects */

.modern-footer {
  background-color: rgba(10, 10, 10, 0.95);
  border-top: 1px solid rgba(0, 255, 157, 0.1);
  padding: 60px 0 30px;
  position: relative;
  overflow: hidden;
}

.modern-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 50%, rgba(0, 255, 157, 0.05) 0%, transparent 50%);
  z-index: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  position: relative;
  z-index: 1;
}

/* Brand section */
.gradient-text {
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 1.8rem;
  margin-bottom: 15px;
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { text-shadow: 0 0 5px rgba(0, 255, 157, 0.3); }
  50% { text-shadow: 0 0 20px rgba(0, 255, 157, 0.6), 0 0 35px rgba(0, 128, 255, 0.4); }
}

/* Section headings */
.section-heading {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  position: relative;
}

.neon-underline {
  height: 2px;
  width: 40px;
  background: linear-gradient(90deg, var(--accent-primary), transparent);
  margin-bottom: 20px;
  position: relative;
  border-radius: 2px;
}

.neon-underline::after {
  content: '';
  position: absolute;
  top: 0;
  left: -10px;
  height: 100%;
  width: 10px;
  background: var(--accent-primary);
  border-radius: 2px;
  opacity: 0;
  filter: blur(4px);
  animation: pulse-light 3s infinite;
}

.neon-underline.active::after {
  animation-duration: 1.5s;
}

@keyframes pulse-light {
  0% { opacity: 0; left: -10px; }
  50% { opacity: 0.8; }
  100% { opacity: 0; left: 100%; }
}

/* Links with slide effect */
.hover-slide {
  position: relative;
  color: var(--text-secondary);
  padding: 5px 0;
  display: inline-block;
  transition: color 0.3s ease;
}

.hover-slide::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transition: width 0.3s ease;
}

.hover-slide:hover {
  color: var(--text-primary);
}

.hover-slide:hover::before {
  width: 100%;
}

/* Footer links */
.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

/* Pulsing contact heading */
.pulse-text {
  animation: text-pulse 2s infinite;
}

@keyframes text-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* Contact card */
.contact-card {
  background: rgba(15, 15, 15, 0.6);
  border-radius: 10px;
  border: 1px solid rgba(0, 255, 157, 0.15);
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2),
              0 0 0 1px rgba(0, 255, 157, 0.05);
  backdrop-filter: blur(5px);
  transform: translateY(0);
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25),
              0 0 0 1px rgba(0, 255, 157, 0.1),
              0 0 30px rgba(0, 255, 157, 0.1);
}

/* Contact items */
.contact-item {
  display: flex;
  align-items: center;
  padding: 12px 8px;
  margin-bottom: 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  color: var(--text-secondary);
  text-decoration: none;
}

.contact-item:last-child {
  margin-bottom: 0;
}

.glow-icon {
  font-size: 1.2rem;
  width: 20px;
  margin-right: 15px;
  color: var(--accent-primary);
  transition: all 0.3s ease;
}

.contact-text {
  position: relative;
  z-index: 1;
}

/* Shine effect */
.shine-effect {
  position: relative;
}

.shine-effect::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: all 0.5s ease;
  z-index: 0;
}

.shine-effect:hover::before {
  left: 100%;
  transition: 0.5s;
}

.shine-effect:hover {
  background: rgba(0, 255, 157, 0.05);
}

.shine-effect:hover .glow-icon {
  color: var(--accent-secondary);
  text-shadow: 0 0 10px rgba(0, 255, 157, 0.5);
}

.shine-effect:hover .contact-text {
  color: var(--text-primary);
}

/* Social icons */
.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(15, 15, 15, 0.6);
  border: 1px solid rgba(0, 255, 157, 0.1);
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Bouncing social icon with glow effect */
.bounce-hover {
  animation: float 3s ease-in-out infinite;
}

.bounce-hover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 255, 157, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bounce-hover:hover {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: var(--bg-primary);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3),
              0 0 20px rgba(0, 255, 157, 0.3);
  animation: none;
}

.bounce-hover:hover::after {
  opacity: 1;
}

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

/* Footer bottom */
.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: var(--text-tertiary);
  font-size: 0.9rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .contact-card, 
  .contact-item {
    width: 100%;
  }
}