/* style.css */
:root {
  --primary: #0f172a;
  --secondary: #1e293b;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --text: #f1f5f9;
  --text-secondary: #94a3b8;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-light: rgba(255, 255, 255, 0.1);
  --blur: blur(12px);
  --transition: all 0.3s ease;
  --success: #22c55e;
  --error: #ef4444;
  --border-radius: 12px;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    --primary-rgb: 15, 23, 42;
  --secondary-rgb: 30, 41, 59;
  --accent-rgb: 59, 130, 246;
  --accent-light-rgb: 96, 165, 250;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

body.light-mode {
  --primary: #f9fafb;             
  --secondary: #e2e8f0;          
  --accent: #2563eb;           
  --accent-light: #60a5fa;       
  --text: #0f172a;                 
  --text-secondary: #475569;       
  --glass: rgba(255, 255, 255, 0.6);     
  --glass-light: rgba(255, 255, 255, 0.3);
  --primary-rgb: 249, 250, 251;
  --secondary-rgb: 226, 232, 240;
  --accent-rgb: 37, 99, 235;
  --accent-light-rgb: 96, 165, 250;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Particles background */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Navbar */
.navbar {
  position: fixed;
  width: 100%;
  top: 0;
  background: var(--glass);
  backdrop-filter: var(--blur);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  padding: 0.7rem 2rem;
  background: var(--secondary);
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent);
}

.theme-toggle{
  cursor: pointer;
}

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

.nav-links a {
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  font-weight: 500;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--accent);
  bottom: -4px;
  left: 0;
  transition: 0.3s ease;
}

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

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

.hamburger div {
  width: 25px;
  height: 3px;
  background: var(--text);
  transition: 0.3s ease;
}

/* Hero section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.95), rgba(var(--secondary-rgb), 0.9));
  padding: 2rem 0;
}

/* Animated background elements */
.hero-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

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

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

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

.shape-3 {
  width: 80px;
  height: 80px;
  top: 30%;
  right: 30%;
  animation-delay: 4s;
}

.shape-4 {
  width: 120px;
  height: 120px;
  bottom: 20%;
  left: 20%;
  animation-delay: 6s;
}

.hero-content {
  max-width: 1000px;
  padding: 2rem;
  z-index: 10;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Enhanced Profile Container */
.profile-container {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
  margin-top: 2rem;
  animation: float 6s ease-in-out infinite;
}


.profile-img {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(var(--accent-rgb), 0.2);
  box-shadow: 0 0 50px rgba(var(--accent-rgb), 0.6);
  position: relative;
  z-index: 3;
  transition: all 0.5s ease;
}

.profile-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 80px rgba(var(--accent-rgb), 0.8);
}

.tech-icons {
  background: var(--secondary);
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  animation: spin 20s linear infinite; 
}

.tech-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60px;
  height: 60px;
  margin: -30px;
  border-radius: 50%;
  color: var(--text);
  background: var(--primary);
  backdrop-filter: var(--blur);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(var(--accent-rgb), 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tech-icon:nth-child(1) { transform: rotate(0deg) translate(160px) rotate(0deg); }
.tech-icon:nth-child(2) { transform: rotate(72deg) translate(160px) rotate(-72deg); }
.tech-icon:nth-child(3) { transform: rotate(144deg) translate(160px) rotate(-144deg); }
.tech-icon:nth-child(4) { transform: rotate(216deg) translate(160px) rotate(-216deg); }
.tech-icon:nth-child(5) { transform: rotate(288deg) translate(160px) rotate(-288deg); }

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

.tech-icon i {
  font-size: 2rem;
  display: block;
  transform: rotate(calc(-1 * var(--angle, 0deg)));
}

/* Enhanced Hero Text */
.hero-text {
  text-align: center;
  max-width: 800px;
  margin-bottom: 2rem;
}

.greeting {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  animation: fadeInUp 1s ease forwards;
  font-weight: 400;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1rem;
  font-weight: 800;
  /* line-height: 1.1; */
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.2s;
}

.name-highlight {
  background: linear-gradient(135deg, var(--accent), var(--accent-light), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin: 0 0.2rem;
  position: relative;
}

.name-highlight::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: 2px;
  animation: expandWidth 1s ease forwards;
  animation-delay: 1.5s;
}

.hero-subtitle {
  font-size: 1.6rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.4s;
  font-weight: 500;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.6s;
}

/* Enhanced Typewriter */
.typewriter-container {
  margin-bottom: 2rem;
  min-height: 3rem;
  font-size: 1.4rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: var(--glass);
  backdrop-filter: var(--blur);
  border-radius: 50px;
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  box-shadow: var(--shadow);
  animation: fadeInUp 1s ease forwards;
  animation-delay: 0.8s;
}

.typewriter-prefix {
  color: var(--text-secondary);
  font-weight: 400;
}

.typewriter-text {
  color: var(--accent-light);
  font-weight: 600;
  min-height: 1.4rem;
  display: inline-block;
}

.cursor {
  display: inline-block;
  width: 3px;
  height: 1.4rem;
  background: var(--accent);
  margin-left: 2px;
  animation: blink 1s infinite;
  vertical-align: middle;
}

/* Enhanced CTA Buttons */
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 1s;
  flex-wrap: wrap;
}

.btn-primary, .btn-secondary, .btn-outline {
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.4s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  min-width: 160px;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  box-shadow: 0 8px 25px rgba(var(--accent-rgb), 0.4);
}

.btn-primary::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: 0.6s;
  z-index: -1;
}

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

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(var(--accent-rgb), 0.6);
}

.btn-secondary {
  background: var(--glass);
  backdrop-filter: var(--blur);
  color: var(--text);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(var(--accent-rgb), 0.4);
}

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

.btn-outline:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(var(--accent-rgb), 0.4);
}

.btn-primary i, .btn-secondary i, .btn-outline i {
  transition: transform 0.3s ease;
}

.btn-primary:hover i, .btn-secondary:hover i, .btn-outline:hover i {
  transform: translateX(3px);
}

/* Enhanced Social Links */
.socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  animation: fadeInUp 1s ease forwards;
  animation-delay: 1.2s;
  flex-wrap: wrap;
}

.social-link {
  color: var(--text-secondary);
  font-size: 1.5rem;
  transition: all 0.4s ease;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  backdrop-filter: var(--blur);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

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

.social-link:hover {
  color: white;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 25px rgba(var(--accent-rgb), 0.4);
  border-color: var(--accent);
}

.social-link i {
  transition: transform 0.3s ease;
}

.social-link:hover i {
  transform: scale(1.1);
}

/* Tooltip for social links */
.social-link::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary);
  color: var(--text);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 10;
}

.social-link:hover::after {
  opacity: 1;
  visibility: visible;
}

/* Enhanced Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--text-secondary);
  animation: fadeIn 1s ease forwards;
  animation-delay: 1.4s;
  cursor: pointer;
  transition: all 0.3s ease;
}

.scroll-indicator:hover {
  color: var(--accent);
  transform: translateX(-50%) translateY(-3px);
}

.scroll-text {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
}

.scroll-arrow {
  width: 30px;
  height: 30px;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce 2s infinite;
}

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

/* Enhanced Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

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

@keyframes expandWidth {
  from { width: 0; }
  to { width: 100%; }
}

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

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

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

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

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

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

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .profile-img {
    width: 170px;
    height: 170px;
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .tech-icon {
    width: 45px;
    height: 45px;
  }
  
  .tech-icon i {
    font-size: 1.2rem;
  }
  
  .tech-icons {
    width: 240px;
    height: 240px;
  }
  
  .tech-icon:nth-child(1) { transform: rotate(0deg) translate(120px) rotate(0deg); }
  .tech-icon:nth-child(2) { transform: rotate(72deg) translate(120px) rotate(-72deg); }
  .tech-icon:nth-child(3) { transform: rotate(144deg) translate(120px) rotate(-144deg); }
  .tech-icon:nth-child(4) { transform: rotate(216deg) translate(120px) rotate(-216deg); }
  .tech-icon:nth-child(5) { transform: rotate(288deg) translate(120px) rotate(-288deg); }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .typewriter-container {
    font-size: 0.8rem;
  }
  
  .profile-img {
    width: 150px;
    height: 150px;
  }
  
  .tech-icon {
    width: 40px;
    height: 40px;
  }
  
  .tech-icon i {
    font-size: 1rem;
  }
  
  .tech-icons {
    width: 200px;
    height: 200px;
  }
  
  .tech-icon:nth-child(1) { transform: rotate(0deg) translate(100px) rotate(0deg); }
  .tech-icon:nth-child(2) { transform: rotate(72deg) translate(100px) rotate(-72deg); }
  .tech-icon:nth-child(3) { transform: rotate(144deg) translate(100px) rotate(-144deg); }
  .tech-icon:nth-child(4) { transform: rotate(216deg) translate(100px) rotate(-216deg); }
  .tech-icon:nth-child(5) { transform: rotate(288deg) translate(100px) rotate(-288deg); }
}


/* Sections */
.section {
  padding: 100px 0;
  position: relative;
}

.section-title {
  
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: var(--accent);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

/* About section */
.about-content {
  display: flex;
  gap: 3rem;
  align-items: center;
  text-align: center;
}

.about-text {
  flex: 1;
}

.about-image p{
  justify-content: center;
  margin: auto;
  display: flex;
  flex-direction: column;
  text-align: center; line-height: 1.8;
}

.code-container {
  margin: auto;
  max-width: 750px;
    background: var(--secondary);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    /* margin-bottom: 30px; */
}

.code-header {
  color: var(--text);
    background: var(--secondary);
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    border-bottom: 1px solid rgba(100, 116, 139, 0.5);
}

.code-title {
    font-size: 1.4rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.controls {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    background: linear-gradient(to right, #4361ee, #3a0ca3);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(67, 97, 238, 0.3);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(67, 97, 238, 0.5);
}

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

.btn-stop {
    background: linear-gradient(to right, #f72585, #b5179e);
}

.btn-stop:hover {
    box-shadow: 0 6px 15px rgba(247, 37, 133, 0.5);
}

.btn-reset {
    background: linear-gradient(to right, #4cc9f0, #4895ef);
}

.btn-reset:hover {
    box-shadow: 0 6px 15px var(--accent);
}

.code-content {
    position: relative;
    padding: 25px;
}

.code-snippet {
    background: #0f172a;
    border-radius: 10px;
    padding: 25px;
    font-family: 'Fira Code', 'Consolas', monospace;
    font-size: 1.1rem;
    line-height: 1.6;
    counter-reset: line;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

.code-snippet::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), transparent);
    z-index: 2;
}

.code-snippet::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    z-index: 2;
}

pre {
    margin: 0;
    padding: 0;
    background: none !important;
    overflow: visible;
}

code {
    display: block;
    font-family: 'Fira Code', 'Consolas', monospace;
    color: #e2e8f0;
    position: relative;
    z-index: 1;
}

.line {
  max-width: 550px;
    display: block;
    position: relative;
    padding-left: 50px;
}

.line::before {
    counter-increment: line;
    content: counter(line);
    position: absolute;
    left: 0;
    width: 40px;
    text-align: right;
    padding-right: 15px;
    color: #64748b;
    font-size: 0.9rem;
    border-right: 1px solid rgba(100, 116, 139, 0.3);
}

.cursor {
    display: inline-block;
    width: 10px;
    height: 1.3rem;
    background: #f8fafc;
    margin-left: 2px;
    vertical-align: middle;
    animation: blink 1s infinite;
}


.speed-control {
    background: var(--secondary);
    padding: 20px;
    border-radius: 15px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

label {
    font-size: 1.1rem;
    font-weight: 500;
    min-width: 120px;
}

.slider {
    flex: 1;
    height: 10px;
    border-radius: 5px;
    background: linear-gradient(to right, #4361ee, #3a0ca3);
    outline: none;
    min-width: 200px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f8fafc;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(67, 97, 238, 0.8);
}

.speed-value {
    min-width: 80px;
    text-align: center;
    font-weight: 600;
    background: rgba(67, 97, 238, 0.2);
    padding: 5px 15px;
    border-radius: 30px;
}

.keyword { color: #ff7edb; }
.function { color: #4cc9f0; }
.comment { color: #64748b; font-style: italic; }
.string { color: #a3e635; }
.number { color: #fb7185; }
.operator { color: #fde047; }
.bracket { color: #f97316; }

.info-panel {
    background: rgba(15, 23, 42, 0.8);
    padding: 20px;
    border-radius: 15px;
    margin-top: 30px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.info-panel h3 {
    color: #4cc9f0;
    margin-bottom: 15px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.feature {
    background: rgba(30, 41, 59, 0.6);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature i {
    font-size: 1.8rem;
    color: #4cc9f0;
}

.feature div h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #f8fafc;
}

.feature div p {
    font-size: 0.95rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .code-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .controls {
        width: 100%;
    }
    
    .control-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .slider {
        width: 100%;
    }
}

.about-stats {
  justify-content: center;
  flex-direction: row;
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat {
  text-align: center;
}

.number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
}

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

/* Projects section */
.projects-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

@media (max-width: 700px) {
 .projects-filter {
  display: flex;
  flex-direction: column  ;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
} 
  
}


.filter-btn {
  padding: 0.5rem 0.5rem;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--text);
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--accent);
  color: white;
}

.projects-grid {
  justify-content: center;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--glass);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  backdrop-filter: var(--blur);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.project-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.project-links {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  opacity: 0;
  transition: var(--transition);
}

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

.project-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
}

.project-link:hover {
  background: white;
  color: var(--accent);
  transform: translateY(-3px);
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

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

.project-tech span {
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent-light);
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  font-size: 0.8rem;
}

/* Skills section */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.skill-category {
  background: var(--glass);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
}

.skill-category h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-light);
}

.skill-level {
  margin-bottom: 1.2rem;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.skill-info span:first-child {
  font-weight: 500;
}

.skill-info span:last-child {
  color: var(--accent);
}

.skill-bar {
  height: 8px;
  background: var(--glass-light);
  border-radius: 4px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  width: 0;
  transition: width 1.5s ease;
}

.certifications h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-light);
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.certificate {
  background: var(--glass);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.certificate:hover {
  transform: translateY(-5px);
}

.certificate i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.certificate h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

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

/* Experience section */
 /* Enhanced Timeline */
    .timeline {
      position: relative;
      max-width: 800px;
      margin: 0 auto;
      padding: 40px 0;
    }

    .timeline::before {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      left: 50%;
      transform: translateX(-50%);
      width: 4px;
      background: linear-gradient(to bottom, transparent, var(--accent), transparent);
      margin-left: -2px;
      z-index: -1;
    }

    .timeline-item {
      position: relative;
      margin-bottom: 50px;
      display: flex;
      transition: var(--transition);
    }

    .timeline-item:hover {
      transform: translateY(-5px);
    }

    .timeline-item:nth-child(even) {
      flex-direction: row-reverse;
    }

    .timeline-date {
      flex: 0 0 150px;
      text-align: right;
      padding-right: 30px;
      font-weight: 600;
      color: var(--accent);
      position: relative;
      z-index: 2;
    }

    .timeline-item:nth-child(even) .timeline-date {
      text-align: left;
      padding-right: 0;
      padding-left: 30px;
    }

    .timeline-content {
      flex: 1;
      padding: 25px;
      background: var(--glass);
      backdrop-filter: var(--blur);
      border-radius: var(--border-radius);
      box-shadow: var(--shadow);
      position: relative;
      z-index: 2;
      transition: var(--transition);
    }

    .timeline-content a{
      text-decoration: none;
    }



    .timeline-item:hover .timeline-content {
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
      background: var(--secondary);
    }

    .timeline-content::before {
      content: "";
      position: absolute;
      top: 25px;
      width: 0;
      height: 0;
      border-style: solid;
    }

    .timeline-content::before {
      left: -15px;
      border-width: 10px 15px 10px 0;
      border-color: transparent var(--glass) transparent transparent;
    }

    .timeline-item:nth-child(even) .timeline-content::before {
      left: auto;
      right: -15px;
      border-width: 10px 0 10px 15px;
      border-color: transparent transparent transparent var(--glass);
    }

    .timeline-item:nth-child(even):hover .timeline-content::before {
      border-color: transparent transparent transparent var(--secondary);
    }

    .timeline-item:hover .timeline-content::before {
      border-color: transparent var(--secondary) transparent transparent;
    }

    .timeline-marker {
      position: absolute;
      top: 20px;
      left: 50%;
      transform: translateX(-50%);
      width: 24px;
      height: 24px;
      border-radius: 50%;
      background: var(--accent);
      border: 4px solid var(--secondary);
      z-index: 3;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: var(--transition);
    }

    .timeline-marker i {
      font-size: 12px;
      color: white;
    }

    .timeline-item:hover .timeline-marker {
      transform: translateX(-50%) scale(1.2);
      box-shadow: 0 0 0 8px var(--accent);
    }

    

    .timeline-content h3 {
      font-size: 1.4rem;
      margin-bottom: 10px;
      color: var(--accent-light);
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .timeline-content h3 i {
      color: var(--accent);
    }

    .timeline-content h4 {
      font-size: 1.1rem;
      color: var(--accent-light);
      margin-bottom: 15px;
      padding-bottom: 10px;
      border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    }

    .timeline-content p {
      margin-bottom: 15px;
      color: var(--text-secondary);
      line-height: 1.7;
    }

.experience-tech span {
  background: rgba(59, 130, 246, 0.2);
  color: var(--accent-light);
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  font-size: 0.8rem;
}

/* Contact section */
.contact-container {
  flex-direction: column;
  display: flex;
  gap: 3rem;
}

@media (max-width:700px){
 .contact-container{
  font-size: small;
 }
}
.contact-info {
  flex: 1;
}

.contact-form {
  flex: 1;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--accent);
  margin-top: 5px;
}

.contact-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.contact-item p {
  color: var(--text-secondary);
}

.contact-socials {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--glass);
  color: var(--text);
  transition: var(--transition);
}

.contact-socials a:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-3px);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group input, 
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1.2rem;
  background: var(--glass);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  backdrop-filter: var(--blur);
}

.form-group input:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
footer {
  background: var(--secondary);
  padding: 4rem 0 0;
}

.footer-content {
  text-align: center;
  margin-bottom: 2rem;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
}

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

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.footer-socials a {
  color: var(--text);
  font-size: 1.2rem;
  transition: var(--transition);
}

.footer-socials a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

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

.cv-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.2rem;
  background: var(--accent);
  color: white;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

.cv-download:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
}

/* Scroll to top button */
#scrollTopBtn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow);
  z-index: 1000;
}

#scrollTopBtn.active {
  opacity: 1;
  visibility: visible;
}

#scrollTopBtn:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
}

/* fun section */


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

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

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

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

    /* Animations */
    @keyframes float {
      0%, 100% { transform: translateY(0); }
      50% { transform: translateY(-15px); }
    }

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

    @keyframes scrollLine {
      0% { height: 0; opacity: 0; }
      50% { height: 40px; opacity: 1; }
      100% { height: 0; opacity: 0; transform: translateY(40px); }
    }

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



/* Responsive styles */
@media (max-width: 992px) {
  .about-content {
    flex-direction: column;
  }
  
  .contact-container {
    flex-direction: column;
  }
  
  .timeline::before {
    z-index: 0;
    left: 30px;
  }
  
  .timeline-item {
    flex-direction: column;
  }
  
  .timeline-item:nth-child(even) {
    flex-direction: column;
  }
  
  .timeline-date {
    flex: 0 0 auto;
    text-align: left;
    padding: 0 0 0.5rem 0;
  }
  
  .timeline-content {
    padding-left: 2.5rem;
    text-align: left;
  }
  
  .timeline-item:nth-child(even) .timeline-date {
    text-align: left;
    padding-left: 0;
  }
  
  .timeline-item:nth-child(even) .timeline-content {
    text-align: left;
    padding-right: 0;
  }
  
  .timeline-content::before {
    left: 24px;
  }
  
  .timeline-item:nth-child(even) .timeline-content::before {
    right: auto;
    left: 24px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: var(--secondary);
    flex-direction: column;
    align-items: flex-start;
    width: 200px;
    padding: 1rem;
    gap: 1rem;
    display: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  }

  .nav-links.show {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}