:root {
  --color-background: #0f0f10;
  --color-text: #ffffff;
  --color-primary: #6e56cf;
  --color-secondary: #ff7b5c;
  --color-accent: #56b3cf;
  --color-muted: #9ca3af;
  --color-border: rgba(255, 255, 255, 0.1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --font-display: 'Space Grotesk', var(--font-sans);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  outline: none;
  cursor: pointer;
  background: none;
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

.cursor-dot,
.cursor-outline {
  position: fixed;
  pointer-events: none;
  z-index: 999;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(110, 86, 207, 0.5);
  transition: all 0.2s ease-out;
}

.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.03;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  z-index: 100;
  transition: var(--transition-normal);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background-color: rgba(15, 15, 16, 0.8);
  border-bottom: 1px solid var(--color-border);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.5px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.bar {
  width: 28px;
  height: 2px;
  background-color: var(--color-text);
  transition: var(--transition-normal);
}

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

.nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  position: relative;
  opacity: 0.8;
  transition: var(--transition-normal);
  padding: 0.5rem 0;
}

.nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
}

.nav-link:hover:after,
.nav-link.active:after {
  width: 100%;
}

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.gradient-sphere {
  position: absolute;
  width: 600px;
  height: 600px;
  top: 50%;
  right: -200px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-primary) 0%, rgba(110, 86, 207, 0) 70%);
  filter: blur(80px);
  opacity: 0.3;
  animation: float 10s ease-in-out infinite;
}

.glitch {
  font-size: 4rem;
  font-weight: 700;
  position: relative;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
  color: var(--color-text);
  font-family: var(--font-display);
}

.glitch-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
}

.glitch-text:first-child {
  animation: glitch 2.5s infinite;
  color: #0ff;
  z-index: -1;
}

.glitch-text:last-child {
  animation: glitch 2s infinite;
  color: #f0f;
  z-index: -2;
}

.subtitle {
  font-size: 1.5rem;
  opacity: 0.9;
  max-width: 600px;
  position: relative;
  overflow: hidden;
}

.reveal-text {
  opacity: 0.9;
}

.reveal-text::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  transform: translateX(-100%);
  animation: reveal 1.5s 0.5s forwards cubic-bezier(0.19, 1, 0.22, 1);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.7;
  transition: var(--transition-normal);
  animation: fadeIn 2s 1.5s forwards;
  opacity: 0;
}

.scroll-indicator span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.scroll-arrow {
  width: 20px;
  height: 40px;
  border: 2px solid var(--color-text);
  border-radius: 10px;
  position: relative;
}

.scroll-arrow::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background-color: var(--color-text);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDown 2s infinite;
}

/* Section Styles */
section {
  padding: 6rem 0;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  position: relative;
}

.section-line {
  width: 60px;
  height: 4px;
  background-color: var(--color-primary);
  border-radius: 2px;
  margin-top: 0.5rem;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.stats {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  gap: 1rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.counter {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-display);
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.7;
  margin-top: 0.5rem;
}

.skills-container {
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--color-border);
}

.skills-container h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  font-family: var(--font-display);
}

.skills {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.skill {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.skill-name {
  font-size: 1rem;
  font-weight: 500;
}

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

.skill-level {
  height: 100%;
  background-color: var(--color-primary);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.5s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Projects Section */
/* .filter-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  transition: var(--transition-normal);
  border: 1px solid var(--color-border);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
} */

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

.project-card {
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition-normal);
  border: 1px solid var(--color-border);
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: var(--color-primary);
}

.project-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

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

.project-info {
  padding: 1.5rem;
}

.project-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
}

.project-info p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.project-tags span {
  font-size: 0.7rem;
  padding: 0.25rem 0.75rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  color: var(--color-text);
}

.project-link {
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 500;
  display: inline-block;
  position: relative;
}

.project-link:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.project-link:hover:after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Contact Section */
.contact-content {
  justify-items: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.info-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
}

.info-text {
  font-size: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
  border: 1px solid var(--color-border);
}

.social-link:hover {
  background-color: var(--color-primary);
  transform: translateY(-3px);
}

/* Footer */
footer {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-content p {
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  opacity: 0.7;
  transition: var(--transition-normal);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-primary);
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.7;
  }
}

@keyframes scrollDown {
  0% {
    opacity: 1;
    top: 8px;
  }
  50% {
    opacity: 0;
    top: 24px;
  }
  51% {
    opacity: 0;
    top: 8px;
  }
  100% {
    opacity: 1;
    top: 8px;
  }
}

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

@keyframes float {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-20px) scale(1.05);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes glitch {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-2px, 2px);
  }
  40% {
    transform: translate(-2px, -2px);
  }
  60% {
    transform: translate(2px, 2px);
  }
  80% {
    transform: translate(2px, -2px);
  }
  100% {
    transform: translate(0);
  }
}

/* Media Queries */
@media (max-width: 992px) {
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .skills-container {
    max-width: 600px;
  }
  
  .glitch {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--color-background);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.3s ease;
    border-left: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(15, 15, 16, 0.9);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .glitch {
    font-size: 2.5rem;
  }
  
  .subtitle {
    font-size: 1.2rem;
  }
  
  /* .filter-buttons {
    overflow-x: auto;
    padding-bottom: 1rem;
    justify-content: flex-start;
  } */
}

@media (max-width: 480px) {
  .navbar {
    padding: 1rem;
  }
  
  .glitch {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
}



.hero-title-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.hero-image {
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;        /* Circular */
  border: 3px solid var(--color-primary);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

@media (max-width: 600px) {
  .hero-title-row {
    flex-direction: column;
    text-align: center;
  }
}