@import url('https://fonts.googleapis.com/css2?family=Leckerli+One&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  --bg-main: #0f172a; /* Deeper, modern slate background */
  --bg-glass: rgba(30, 41, 59, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --accent-primary: #8b5cf6; /* Vibrant violet */
  --accent-glow: rgba(139, 92, 246, 0.4);
  --text-light: #f8fafc;
  --text-muted: #94a3b8;
  --font-main: 'Poppins', sans-serif;
  --font-logo: 'Leckerli One', cursive;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-main);
  color: var(--text-light);
  font-family: var(--font-main);
}

/* Glassmorphism Reusable Class */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  border-radius: 16px;
}

/* Scroll Progress Bar */
.scroll-progress-bar-container {
  width: 100%;
  height: 4px;
  background-color: transparent;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
}

.scroll-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #ec4899);
  width: 0%;
  transition: width 0.1s linear;
}

/* Navbar */
header {
  z-index: 1000;
  position: fixed;
  width: 100%;
  top: 0;
  background-color: transparent;
  padding: 10px 0;
  transition: transform 0.4s ease, background-color 0.3s ease;
}

.nav-hidden {
  transform: translateY(-100%);
}

.navBar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  padding: 0 40px;
}

.name h1 {
  font-size: 28px;
  font-family: var(--font-logo);
  color: var(--text-light);
  margin: 0;
  background: linear-gradient(to right, #8b5cf6, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.menu ul {
  display: flex;
  gap: 30px;
  padding: 0;
}

.menu ul li {
  list-style: none;
  font-weight: 500;
  font-size: 15px;
}

.menu ul li a {
  text-decoration: none;
  color: var(--text-light);
  position: relative;
  transition: color 0.3s ease;
}

.menu ul li a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #8b5cf6, #ec4899);
  bottom: -5px;
  left: 0;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.menu ul li a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.menu-toggle .bar {
  width: 25px;
  height: 2px;
  background-color: var(--text-light);
  margin: 4px 0;
  transition: 0.4s;
}

.header-scrolled {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero, .about, .Skills, .expirience, .project, .contact {
  position: relative;
  z-index: 1;
}

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 10%;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/header.jpg');
  background-size: cover;
  background-position: center;
  z-index: -1;
  opacity: 0.15;
}

.over {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent, var(--bg-main));
  z-index: 0;
}

.hero-container {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-greeting {
  margin: 0;
  line-height: 1.2;
}

.hero-container .up {
  font-size: 40px;
  font-weight: 600;
  color: var(--text-muted);
}

.hero-container .down {
  font-size: 65px;
  font-weight: 700;
  background: linear-gradient(135deg, #f8fafc 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-container h2 {
  font-size: 28px;
  font-weight: 400;
  margin: 20px 0 30px 0;
  color: var(--text-muted);
}

.hero-container .auto-type {
  color: var(--accent-primary);
  font-weight: 600;
}

.hero-container .botton a {
  margin-right: 15px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.hero-container .botton img {
  width: 35px;
  height: 35px;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.hero-container .botton a:hover {
  transform: translateY(-5px);
}

#particles-js {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  z-index: 0;
}

/* About Section */
.about {
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 80px 20px;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1100px;
  padding: 50px;
}

.imgeffect img {
  width: 320px;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  animation: float 4s ease-in-out infinite;
}

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

.text {
  max-width: 600px;
}

.text .p1 {
  color: var(--accent-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
}

.text h2 {
  font-size: 40px;
  margin: 10px 0 20px 0;
}

.text .p2 {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 16px;
}

.text button {
  margin-top: 30px;
  padding: 12px 28px;
  border-radius: 8px;
  background: var(--accent-primary);
  color: white;
  font-family: var(--font-main);
  font-weight: 500;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.text button:hover {
  background: #7c3aed;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

/* Skills Section */
.Skills {
  padding: 80px 20px;
}

/* Center Skills Heading */
.Skills .heading {
  width: 100%;
  display: flex;
  justify-content: center;
}

.skillh1 {
  font-size: 40px;
  text-align: center;
  margin: 0 auto 50px auto;
  width: 100%;
  display: block;
}

.mainSkill {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Applies glassmorphism to your original HTML structure */
.mainSkill .front, .mainSkill .back, .mainSkill .tools {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  border-radius: 16px;
  flex: 1;
  min-width: 300px;
  padding: 30px;
}

.mainSkill h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 22px;
  color: var(--accent-primary);
}

.mainSkill .box {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.frontSkill, .backSkill, .toolsSkill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.frontSkill:hover, .backSkill:hover, .toolsSkill:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-primary);
  box-shadow: 0 5px 15px var(--accent-glow);
}

.mainSkill img {
  width: 24px;
  height: 24px;
}

/* Experience Section */
.expirience {
  padding: 80px 20px;
  text-align: center;
}

/* Center Experience Heading */
.expirience h1 {
  font-size: 40px;
  text-align: center;
  margin: 0 auto 60px auto;
  width: 100%;
  display: block;
}

.container-ex {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.container-ex:before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: var(--glass-border);
}

.timeline-block {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  width: 100%;
}

.timeline-block-right {
  flex-direction: row-reverse;
}

.marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 4px solid var(--bg-main);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-content {
  width: 45%;
  padding: 30px;
  transition: transform 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
}

.timeline-content h3 {
  margin: 0 0 5px 0;
  color: var(--text-light);
  font-size: 20px;
}

.timeline-content span {
  color: var(--accent-primary);
  font-size: 14px;
  font-weight: 500;
}

.timeline-content ul {
  margin-top: 15px;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.timeline-content li {
  margin-bottom: 8px;
}

/* Projects Section */
.project {
  padding: 80px 20px;
}

.project h1 {
  text-align: center;
  font-size: 40px;
  margin-bottom: 50px;
}

.exp{
  font-size: 40px;
  text-align: center;
  margin: 0 auto 50px auto;
  width: 100%;
  display: block;
}
.project .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-primary);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.card-inner {
  height: 220px;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  position: relative;
}

.card-inner .imgBox img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .imgBox img {
  transform: scale(1.1);
}

.iconBox {
  position: absolute;
  bottom: 15px;
  right: 15px;
  background: var(--accent-primary);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.iconBox:hover {
  background: #f8fafc;
  color: var(--accent-primary);
  transform: scale(1.1) rotate(45deg);
}

.card .content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card .content h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
}

.card .content p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.card ul li {
  display: inline-block;
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.card ul li:hover {
  background: var(--accent-primary);
  color: white;
  box-shadow: 0 4px 10px var(--accent-glow);
}

/* Contact Section */
.contact {
  padding: 80px 20px 120px 20px;
}

.contact h1 {
  text-align: center;
  font-size: 40px;
  margin-bottom: 50px;
}

.contact-container {
  display: flex;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  padding: 0; 
}

.contact-info {
  flex: 1;
  background: rgba(139, 92, 246, 0.1);
  padding: 50px;
  border-right: 1px solid var(--glass-border);
}

.contact-info h2 {
  margin-top: 0;
  color: var(--accent-primary);
}

.contact-info p {
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-info strong {
  color: var(--text-light);
}

.social-links {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.social-links img {
  width: 25px;
  transition: transform 0.3s ease;
}

.social-links a:hover img {
  transform: translateY(-3px);
  filter: drop-shadow(0 0 5px var(--accent-glow));
}

.contact-form {
  flex: 1.5;
  padding: 50px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 12px 15px;
  color: white;
  font-family: var(--font-main);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(0, 0, 0, 0.4);
}

.contact-form button {
  width: 100%;
  padding: 14px;
  background: var(--accent-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background: #7c3aed;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--accent-glow);
}

/* Scroll To Top */
.scroll-to-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--accent-primary);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 15px var(--accent-glow);
}

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

.scroll-to-top-btn:hover {
  background: #f8fafc;
  color: var(--accent-primary);
  transform: translateY(-5px);
}

/* Scroll Reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Overrides */
@media (max-width: 900px) {
  .about-container { flex-direction: column; text-align: center; }
  .contact-container { flex-direction: column; }
  .contact-info { border-right: none; border-bottom: 1px solid var(--glass-border); }
}

@media (max-width: 768px) {
  .hero-container .down { font-size: 45px; }
  .container-ex:before { left: 20px; }
  .timeline-block { flex-direction: column !important; padding-left: 45px; position: relative; }
  .marker { left: 20px; transform: translateX(-50%); }
  .timeline-content { width: 100%; }
  .menu { display: none; position: absolute; top: 80px; left: 20px; right: 20px; background: var(--bg-glass); backdrop-filter: blur(15px); border: 1px solid var(--glass-border); border-radius: 12px; padding: 20px; }
  .menu ul { flex-direction: column; gap: 15px; align-items: center; }
  .menu-toggle { display: flex; }
}