/* CSS Variables */
:root {
  --primary: #00d9ff;
  --primary-dark: #0099cc;
  --secondary: #ff00ff;
  --accent: #00ffaa;
  --dark: #0a0a0f;
  --darker: #050508;
  --light: #f5f5f7;
  --gray: #1a1a2e;
  --gray-light: #2d2d44;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-dark: rgba(0, 0, 0, 0.3);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --transition-slow: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --gradient-dark: linear-gradient(135deg, var(--primary-dark), #9900cc);
  --neon-glow:
    0 0 20px var(--primary), 0 0 40px var(--primary), 0 0 60px var(--primary);
  --neon-secondary: 0 0 20px var(--secondary), 0 0 40px var(--secondary);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--darker);
  width: 100%;
}

body {
  width: 100%;

  overflow-x: hidden;
  font-family: "Poppins", sans-serif;
  background-color: var(--darker);
  color: var(--light);
  position: relative;
  /* Change height: 100vh to min-height: 100vh */
  min-height: 100vh;
  /* Remove overflow-y: scroll; let the browser handle it naturally */
}
body.menu-open {
  overflow: hidden;
}

/* Background Elements */
#graph-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.3;
}

#particles-js {
  position: fixed;
  width: 100%;
  height: 100%;
  z-index: -1;
}

/* Mouse Effects */
.mouse-magic {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 217, 255, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.mouse-trail {
  position: fixed;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  opacity: 0.5;
  filter: blur(5px);
}

/* Floating Elements */
.floating-element {
  position: fixed;
  width: 50px;
  height: 50px;
  background: var(--glass);
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary);
  z-index: 9996;
  animation: float 6s ease-in-out infinite;
  backdrop-filter: blur(10px);
}

.floating-element.fe1 {
  top: 20%;
  left: 5%;
  animation-delay: 0s;
}
.floating-element.fe2 {
  top: 60%;
  right: 8%;
  animation-delay: 1s;
}
.floating-element.fe3 {
  top: 40%;
  left: 10%;
  animation-delay: 2s;
}
.floating-element.fe4 {
  top: 80%;
  right: 15%;
  animation-delay: 3s;
}

/* Header */
.glass-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  padding: 15px 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-glow {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 15px;
  filter: blur(15px);
  opacity: 0.5;
}

.logo {
  font-size: 32px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  z-index: 2;
}

.logo span {
  color: var(--accent);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.name {
  font-family: "Montserrat", sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--light);
}

.title {
  font-size: 12px;
  color: var(--primary);
  letter-spacing: 2px;
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-link {
  position: relative;
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 8px 0;
  transition: var(--transition);
}

.link-glow {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.nav-link:hover .link-glow {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary);
}

.hire-btn {
  background: var(--gradient);
  padding: 10px 25px;
  border-radius: 50px;
  color: white !important;
  font-weight: 600;
}

.hire-btn .link-glow {
  display: none;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 10px;
}

.line {
  width: 25px;
  height: 3px;
  background: var(--light);
  transition: var(--transition);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 100px;
  overflow: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.hero-content {
  width: 100%;
  max-width: 800px;
  text-align: center;
  margin: 0 auto 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  padding: 10px 25px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.badge-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  animation: slide 3s infinite;
}

.hero-badge span {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: "Montserrat", sans-serif;
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 20px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: block;
}

.title-line {
  font-size: 2.5rem;
  color: var(--light);
  display: block;
  margin-top: 10px;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #aaa;
  margin-bottom: 40px;
  min-height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.typewriter {
  color: var(--primary);
  font-weight: 600;
}

.cursor {
  animation: blink 1s infinite;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 50px 0;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  min-width: 140px;
  padding: 20px;
  background: var(--glass);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: #aaa;
  margin-top: 5px;
  letter-spacing: 1px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 18px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-height: 44px;
}

.primary-btn {
  background: var(--gradient);
  color: white;
  border: none;
}

.btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.7s ease;
}

.primary-btn:hover .btn-glow {
  left: 100%;
}

.secondary-btn {
  background: transparent;
  color: var(--light);
  border: 2px solid var(--gray-light);
}

.secondary-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero-visual {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.visual-container {
  width: 400px;
  height: 400px;
  position: relative;
}

.cube-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-15deg) rotateY(-15deg);
  animation: rotate3d 20s infinite linear;
}

.cube-face {
  position: absolute;
  width: 200px;
  height: 200px;
  background: var(--glass);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--primary);
  backdrop-filter: blur(10px);
  transform-origin: center;
}

.face-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.face-content span {
  font-size: 16px;
  color: var(--light);
}

.front {
  transform: translateZ(100px);
}
.back {
  transform: rotateY(180deg) translateZ(100px);
}
.right {
  transform: rotateY(90deg) translateZ(100px);
}
.left {
  transform: rotateY(-90deg) translateZ(100px);
}
.top {
  transform: rotateX(90deg) translateZ(100px);
}
.bottom {
  transform: rotateX(-90deg) translateZ(100px);
}

/* Section Styles */
section {
  position: relative;
  padding: 120px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-family: "Montserrat", sans-serif;
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.title-number {
  color: var(--primary);
  font-size: 1.2rem;
  opacity: 0.5;
}

.section-subtitle {
  color: #aaa;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.skill-card {
  height: 350px;
  perspective: 1000px;
  position: relative;
  cursor: pointer;
  min-height: 44px;
}

.skill-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  border-radius: 20px;
}

.skill-card:hover .skill-card-inner {
  transform: rotateY(180deg);
}

.skill-card-front,
.skill-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.skill-card-front {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.skill-card-back {
  background: var(--gradient-dark);
  transform: rotateY(180deg);
  text-align: left;
  justify-content: space-between;
}

.skill-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: var(--gradient);
  opacity: 0;
  filter: blur(20px);
  transition: opacity 0.3s;
  z-index: -1;
}

.skill-card:hover .skill-glow {
  opacity: 0.3;
}

.skill-icon {
  position: relative;
  width: 80px;
  height: 80px;
  margin-bottom: 25px;
}

.icon-circle {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  border-radius: 50%;
  opacity: 0.2;
  animation: pulse 2s infinite;
}

.skill-icon i {
  font-size: 36px;
  color: var(--primary);
  position: relative;
  z-index: 2;
}

.skill-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--light);
}

.skill-desc {
  color: #aaa;
  margin-bottom: 25px;
  font-size: 14px;
}

.skill-level {
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  margin-top: 20px;
}

.level-bar {
  flex: 1;
  height: 6px;
  background: var(--gray);
  border-radius: 3px;
  overflow: hidden;
}

.level-fill {
  height: 100%;
  background: var(--gradient);
  border-radius: 3px;
  transition: width 1.5s ease-out;
}

.level-text {
  color: var(--primary);
  font-weight: 600;
  min-width: 40px;
}

.flip-indicator {
  position: absolute;
  bottom: 20px;
  color: var(--primary);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
}

.skill-list {
  list-style: none;
  margin: 20px 0;
}

.skill-list li {
  padding: 8px 0;
  color: var(--light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.skill-list li:last-child {
  border-bottom: none;
}

.skill-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.tool {
  background: rgba(255, 255, 255, 0.1);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--light);
}

/* Experience Timeline */
.experience-timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  align-items: center;
  margin-bottom: 80px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--darker);
  border: 3px solid var(--primary);
  border-radius: 50%;
  z-index: 2;
}

.marker-glow {
  position: absolute;
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  filter: blur(10px);
  opacity: 0.5;
  animation: pulse 2s infinite;
}

.timeline-content {
  width: 45%;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 50%;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 50%;
}

.timeline-content:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

.timeline-year {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.timeline-title {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--light);
}

.timeline-desc {
  color: #aaa;
  font-size: 14px;
  line-height: 1.6;
}

.timeline-stats {
  margin-top: 20px;
}

.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 217, 255, 0.1);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 14px;
  color: var(--primary);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.project-card {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  min-height: 44px;
}

.project-card:hover {
  transform: translateY(-15px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(0, 217, 255, 0.2);
}

.project-image {
  position: relative;
  height: 220px;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  background: linear-gradient(135deg, #2fd3ff, #b23cff);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.6s ease;
}

.project-card:hover .project-img {
  transform: scale(1.08);
}

.project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.6)
  );
}

.project-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--dark);
  color: var(--primary);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
}

.project-content {
  padding: 25px;
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--light);
}

.project-desc {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.tech-tag {
  background: rgba(0, 217, 255, 0.1);
  color: var(--primary);
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 12px;
}

.project-value {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-weight: 600;
}

/* Testimonials */
.testimonials-slider {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-card {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  display: none;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.testimonial-card.active {
  display: flex;
  animation: fadeIn 0.5s ease;
}

.testimonial-quote {
  font-size: 50px;
  color: var(--primary);
  opacity: 0.3;
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--light);
  margin-bottom: 30px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 20px;
}

.author-avatar {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 50%;
}

.author-info {
  flex: 1;
}

.author-info h4 {
  font-size: 1.2rem;
  color: var(--light);
  margin-bottom: 5px;
}

.author-info p {
  color: #aaa;
  font-size: 14px;
}

.author-rating {
  color: var(--accent);
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.slider-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--light);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.slider-btn:hover {
  background: var(--primary);
  color: var(--dark);
  border-color: var(--primary);
}

.slider-dots {
  display: flex;
  gap: 15px;
}

.dot {
  width: 12px;
  height: 12px;
  background: var(--gray-light);
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-card {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px;
  transition: var(--transition);
}

.info-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
}

.info-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: white;
  margin-bottom: 20px;
}

.info-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--light);
}

.info-text {
  color: #aaa;
  font-size: 14px;
  line-height: 1.6;
}

.pricing-note {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(0, 217, 255, 0.1);
  padding: 20px;
  border-radius: 15px;
  border: 1px solid var(--primary);
}

.pricing-note i {
  font-size: 24px;
  color: var(--accent);
}

.price {
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 5px;
}

.contact-form-container {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(10px);
}

.form-title {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--light);
  text-align: center;
}

.form-group {
  position: relative;
  margin-bottom: 25px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: var(--light);
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.08);
}

.input-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: var(--gradient);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s;
}

.form-group input:focus ~ .input-glow,
.form-group select:focus ~ .input-glow,
.form-group textarea:focus ~ .input-glow {
  opacity: 0.1;
}

.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 18px 40px;
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  min-height: 44px;
}

.submit-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.form-note {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #aaa;
  font-size: 14px;
}

/* Footer */
.footer {
  background: rgba(5, 5, 8, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 80px 0 40px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  font-size: 48px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 15px;
}

.footer-name {
  font-size: 1.5rem;
  color: var(--light);
  margin-bottom: 5px;
}

.footer-tagline {
  color: #aaa;
  font-size: 14px;
  margin-bottom: 25px;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--light);
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  color: var(--dark);
  transform: translateY(-5px);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.link-group {
  display: flex;
  flex-direction: column;
}

.link-title {
  font-size: 1.2rem;
  color: var(--light);
  margin-bottom: 20px;
}

.footer-link {
  color: #aaa;
  text-decoration: none;
  margin-bottom: 12px;
  transition: var(--transition);
  font-size: 14px;
}

.footer-link:hover {
  color: var(--primary);
  padding-left: 10px;
}

.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.cta-title {
  font-size: 1.2rem;
  color: var(--light);
  margin-bottom: 20px;
}

.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: var(--gradient);
  color: white;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  margin-bottom: 15px;
}

.footer-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.cta-note {
  color: #aaa;
  font-size: 12px;
  text-align: right;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
  color: #666;
  font-size: 14px;
}

.footer-badges {
  display: flex;
  gap: 15px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 12px;
  color: #aaa;
}

/* Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

@keyframes slide {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes rotate3d {
  0% {
    transform: rotateX(-15deg) rotateY(0deg);
  }
  100% {
    transform: rotateX(-15deg) rotateY(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .title-line {
    font-size: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 992px) {
  .hero-section {
    padding-top: 150px;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-cta {
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 0 20px;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 70px);
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 40px;
    gap: 30px;
    transition: right 0.4s ease;
    border-left: 1px solid rgba(0, 217, 255, 0.2);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active .line:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
  }

  .hamburger.active .line:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .title-line {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    flex-direction: column !important;
    align-items: flex-start;
    margin-bottom: 60px;
  }

  .timeline-content {
    width: 100% !important;
    margin: 20px 0 !important;
  }

  .timeline-marker {
    position: relative;
    left: 0;
    transform: none;
    margin: 20px 0;
    display: block;
  }

  .timeline-line {
    display: none;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-author {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .contact-form-container {
    padding: 30px 20px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  /* Logo name display */
  .logo-text {
    display: flex !important;
    flex-direction: column;
    margin-left: 8px;
  }

  .logo-text .name {
    font-size: 14px;
  }

  .logo-text .title {
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .title-line {
    font-size: 1.1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .section-title {
    font-size: 1.8rem;
    flex-direction: column;
    gap: 10px;
  }

  .floating-element {
    display: none;
  }

  .hero-stats {
    flex-direction: column;
    gap: 15px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .cta-btn {
    width: 250px;
    justify-content: center;
  }

  .visual-container {
    width: 250px;
    height: 250px;
  }

  .cube-face {
    width: 150px;
    height: 150px;
  }

  .front {
    transform: translateZ(75px);
  }
  .back {
    transform: rotateY(180deg) translateZ(75px);
  }
  .right {
    transform: rotateY(90deg) translateZ(75px);
  }
  .left {
    transform: rotateY(-90deg) translateZ(75px);
  }
  .top {
    transform: rotateX(90deg) translateZ(75px);
  }
  .bottom {
    transform: rotateX(-90deg) translateZ(75px);
  }
}

/* iOS Safari Fix */
@supports (-webkit-touch-callout: none) {
  .hero-section {
    min-height: -webkit-fill-available;
  }

  .glass-header {
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .skill-card-inner,
  .cube-3d,
  .floating-element {
    animation: none;
  }
}

/* Reduced Data */
@media (prefers-reduced-data: reduce) {
  .floating-element,
  .cube-3d,
  .mouse-magic {
    display: none;
  }
}
/* Navbar alignment */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo container */
.logo-container {
  display: flex;
  align-items: center;
  position: relative;
}

/* Wrapper for DX + text */
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* DX logo */
.logo {
  font-size: 34px;
  font-weight: 800;
  margin: 0;
  background: linear-gradient(135deg, #00e5ff, #7b61ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Optional glow */
.logo-glow {
  position: absolute;
  width: 45px;
  height: 45px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.5), transparent 70%);
  filter: blur(10px);
  z-index: -1;
}

/* Text on right of DX */
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

/* Name */
.logo-text .name {
  font-size: 14px;
  font-weight: 600;
  color: #fbff00;
}

/* Web Developer */
.logo-text .title {
  font-size: 11px;
  letter-spacing: 1px;
  color: #ffffff;
  text-transform: uppercase;
}
.magic-text {
  font-size: 14px;
  font-weight: 600;
  background: linear-gradient(90deg, #00f2ff, #7b61ff, #ff4ecd, #00f2ff);
  background-size: 300%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 4s infinite linear;
  position: relative;
  color: transparent;
}

.magic-text::after {
  content: "Dipendra Xettri";
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  background: inherit;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: blur(6px);
  opacity: 0.6;
}

/* Gradient animation */
@keyframes gradientMove {
  0% {
    background-position: 0%;
  }
  100% {
    background-position: 300%;
  }
}

/* Soft glow */
.magic-text::after {
  content: "Dipendra Xettri";
  position: absolute;
  left: 0;
  top: 0;
  z-index: -1;
  background: inherit;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: blur(6px);
  opacity: 0.6;
}
#particles-js,
#graph-canvas {
  pointer-events: none;
}
/* Scrolling Content Area */
.scroll-wrapper {
  height: 200px; /* Fixed height for scroll area */
  overflow: hidden;
  background: #fdfdfd;
  padding: 10px;
  position: relative;
}

.vertical-scroll {
  animation: scrollUp 8s linear infinite;
  padding: 10px;
}

/* Pause on Hover/Touch */
.notice-card:hover .vertical-scroll,
.notice-card:active .vertical-scroll {
  animation-play-state: paused;
}

.vertical-scroll li {
  padding: 12px;
  border-bottom: 1px solid #eee;
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 5px;
}

.vertical-scroll .date {
  font-weight: bold;
  font-size: 0.8rem;
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
  background: #444;
  margin-right: 8px;
}
.vertical-scroll .date.new {
  background: #e74c3c;
}
