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

:root {
  --bg-dark: #0a0a0f;
  --bg-secondary: #1a1a2e;
  --accent-primary: #00f5ff;
  --accent-secondary: #ff00ff;
  --accent-tertiary: #7000ff;
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --glow-color: rgba(0, 245, 255, 0.5);
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Animated Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(0, 245, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(255, 0, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 20%,
      rgba(112, 0, 255, 0.1) 0%,
      transparent 50%
    );
}

.animated-bg::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    var(--accent-primary) 0%,
    transparent 70%
  );
  top: -250px;
  right: -250px;
  animation: float 20s ease-in-out infinite;
  opacity: 0.1;
}

.animated-bg::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    var(--accent-secondary) 0%,
    transparent 70%
  );
  bottom: -200px;
  left: -200px;
  animation: float 15s ease-in-out infinite reverse;
  opacity: 0.1;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(100px, -100px) rotate(120deg);
  }
  66% {
    transform: translate(-50px, 50px) rotate(240deg);
  }
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(10px);
  /* background: rgba(10, 10, 15, 0.8); */
  /* border-bottom: 0.1px solid rgba(255, 255, 255, 0.1); */
  transition: all 0.3s ease;
  top: 0;
  left: 0;
  right: 0;
}

nav.scrolled {
  padding: 1rem 5%;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

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

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

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

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

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--accent-primary);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 5% 2rem 5%;
  position: relative;
  min-width: 100%;
}

.hero-content {
  max-width: 1200px;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin: 0 auto;
}

.hero-text h1 {
  font-size: 5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary),
    var(--accent-tertiary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease;
}

.hero-text .subtitle {
  font-size: 2rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.2s backwards;
}

.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1.5rem;
  background: var(--accent-primary);
  margin-left: 5px;
  animation: blink 1s infinite;
}

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

.hero-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.4s backwards;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  animation: fadeInUp 1s ease 0.6s backwards;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  color: var(--text-primary);
  box-shadow: 0 0 30px var(--glow-color);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px var(--glow-color);
}

.btn-secondary {
  border: 2px solid var(--accent-primary);
  color: var(--accent-primary);
}

.btn-secondary:hover {
  background: var(--accent-primary);
  color: var(--bg-dark);
  transform: translateY(-3px);
}

.hero-image {
  position: relative;
  animation: fadeInRight 1s ease 0.3s backwards;
}

.profile-img-wrapper {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto;
}

.profile-img-wrapper::before {
  content: "";
  position: absolute;
  inset: -10px;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary),
    var(--accent-tertiary)
  );
  border-radius: 50%;
  animation: rotate 10s linear infinite;
  z-index: -1;
}

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

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--bg-dark);
  box-shadow: 0 0 50px rgba(0, 245, 255, 0.3);
}

.floating-icons {
  position: absolute;
  width: 100%;
  height: 100%;
}

.floating-icon {
  position: absolute;
  font-size: 2rem;
  animation: floatIcon 3s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
  top: 10%;
  left: 0;
  animation-delay: 0s;
}
.floating-icon:nth-child(2) {
  top: 30%;
  right: 0;
  animation-delay: 0.5s;
}
.floating-icon:nth-child(3) {
  bottom: 20%;
  left: -10%;
  animation-delay: 1s;
}
.floating-icon:nth-child(4) {
  bottom: 10%;
  right: -10%;
  animation-delay: 1.5s;
}

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

/* Sections */
section {
  padding: 8rem 5%;
  position: relative;
  width: 100%;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* About Section */
.about-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s ease;
}

.about-text.visible {
  opacity: 1;
  transform: translateX(0);
}

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

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.stat-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px rgba(0, 245, 255, 0.2);
}

.stat-card h3 {
  font-size: 2.5rem;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.stat-card p {
  color: var(--text-secondary);
}

.about-visual {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s ease;
}

.about-visual.visible {
  opacity: 1;
  transform: translateX(0);
}

.code-window {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1.5rem;
  font-family: "Courier New", monospace;
  position: relative;
  overflow: hidden;
}

.code-window::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(0, 245, 255, 0.1),
    transparent
  );
  animation: scan 3s linear infinite;
}

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

.code-line {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.code-line .keyword {
  color: #ff00ff;
}
.code-line .string {
  color: #00f5ff;
}
.code-line .function {
  color: #7000ff;
}

/* Skills Section */
.skills-container {
  max-width: 1200px;
  margin: 0 auto;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
}

.skill-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.skill-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.skill-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 40px rgba(0, 245, 255, 0.3);
  background: rgba(0, 245, 255, 0.05);
}

.skill-card i {
  font-size: 3.5rem;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 4rem;
}

.skill-card span {
  font-weight: 600;
  font-size: 1.1rem;
}

/* Projects Section */
.projects-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
  transform: scale(0.9);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card.visible {
  opacity: 1;
  transform: scale(1);
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-primary);
  box-shadow: 0 15px 50px rgba(0, 245, 255, 0.3);
}

.project-image {
  height: 200px;
  background: linear-gradient(
    135deg,
    var(--accent-tertiary),
    var(--accent-secondary)
  );
  position: relative;
  overflow: hidden;
}

.project-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.project-card:hover .project-image::before {
  transform: translateX(100%);
}

.project-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
  min-height: 3.5rem;
  display: flex;
  align-items: center;
}

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

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
  min-height: 2.5rem;
  align-content: flex-start;
}
.tag {
  padding: 0.3rem 0.8rem;
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid var(--accent-primary);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--accent-primary);
}

.project-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.project-link:hover {
  gap: 1rem;
}

/* Contact Section */
.contact-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.contact-content h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.social-link {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
  color: var(--accent-primary);
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--accent-primary);
  color: var(--bg-dark);
  transform: translateY(-5px) rotate(360deg);
  box-shadow: 0 10px 30px rgba(0, 245, 255, 0.5);
}

/* Footer */
footer {
  padding: 2rem 5%;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
}

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

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

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  cursor: pointer;
  transition: all 0.3s ease;
}

.scroll-indicator:hover {
  transform: translateX(-50%) scale(1.2);
}

.scroll-indicator:hover i {
  color: var(--accent-secondary);
}

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

/* Responsive */
@media (max-width: 768px) {
    .code-window
    {
        text-align: start;
    }
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 33%;
        max-width: 300px;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: right 0.3s ease;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding: 8 rem 5% 2rem 5%;
    }

    .hero-text h1 {
        font-size: 2.5rem;
        word-wrap: break-word;
    }

    .hero-text .subtitle {
        font-size: 1.2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .profile-img-wrapper {
        width: 250px;
        height: 250px;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    section {
        padding: 5rem 5%;
        text-align: center;
    }
    .about-text p {
  font-size: 1rem;
}
.code-window {
  text-align: start;
  font-size: 0.85rem;          /* ADDED */
}

.code-line {
  margin-bottom: 0.4rem;       /* ADDED */
}
.stat-card h3 {
  font-size: 2rem;             /* ADDED - was 2.5rem */
}

.stat-card p {
  font-size: 0.9rem;           /* ADDED */
}
}

@media (max-width: 480px) {
  .hero {
    padding: 7rem 5% 2rem 5%;  /* CHANGED from default */
  }

  .hero-text h1 {
    font-size: 1.8rem;         /* CHANGED from 2rem */
  }

  .hero-text .subtitle {
    font-size: 1rem;           /* ADDED */
  }

  .hero-text p {
    font-size: 0.95rem;        /* ADDED */
  }

  .profile-img-wrapper {
    width: 200px;
    height: 200px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;               /* ADDED */
  }

  nav {
    padding: 1rem 5%;
  }

  .section-title h2 {
    font-size: 1.75rem;        /* ADDED */
  }

  .section-title p {
    font-size: 1rem;           /* ADDED */
  }

  section {
    padding: 4rem 5%;          /* ADDED */
  }

  .floating-icon {
    font-size: 1.5rem;         /* ADDED */
  }

  .stat-card h3 {
    font-size: 2rem;           /* ADDED */
  }
  .about-text p {
  font-size: 0.95rem;
}

.code-window {
  font-size: 0.75rem;
  padding: 1rem;
}

.stat-card {
  padding: 1rem;
}
}

@media (max-width: 375px) {
  .hero {
    padding: 6rem 5% 2rem 5%;
  }

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .profile-img-wrapper {
    width: 180px;
    height: 180px;
  }

  .btn {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
  .about-text p {
  font-size: 0.9rem;
}

.code-window {
  font-size: 0.7rem;
  padding: 0.8rem;
}

.code-line {
  margin-bottom: 0.3rem;
}

.stat-card {
  padding: 0.8rem;
}

.stat-card h3 {
  font-size: 1.5rem;
}

.stat-card p {
  font-size: 0.85rem;
}
}