:root {
  --primary: #0a0e27;
  --secondary: #ff6b35;
  --accent: #00d9ff;
  --text: #e8e9ed;
  --text-muted: #9ba3b4;
  --bg-dark: #050814;
  --bg-card: #131825;
  --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

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

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

/* Background effects */
body::before {
  content: "";
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(
      circle at 20% 50%,
      rgba(102, 126, 234, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(0, 217, 255, 0.08) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 20%,
      rgba(255, 107, 53, 0.06) 0%,
      transparent 50%
    );
  animation: rotate 60s linear infinite;
  z-index: -1;
}

@keyframes rotate {
  to {
    transform: rotate(360deg);
  }
}

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

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 2rem 0;
  background: rgba(5, 8, 20, 0.8);
  backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid rgba(232, 233, 237, 0.1);
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Fraunces", serif;
  font-size: 1.8rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav ul {
  display: flex;
  gap: 3rem;
  list-style: none;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  position: relative;
}

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

nav a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  position: relative;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.hero-text h1 {
  font-family: "Fraunces", serif;
  font-size: 5.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease both;
}

.hero-text h1 span {
  display: block;
  background: var(--gradient-3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
  animation: fadeInUp 1s ease 0.2s both;
}

.cta-buttons {
  display: flex;
  gap: 1.5rem;
  animation: fadeInUp 1s ease 0.4s both;
}

.btn {
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-family: "DM Sans", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #667eea);
  color: white;
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 217, 255, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(232, 233, 237, 0.3);
}

.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(0, 217, 255, 0.1);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  animation: fadeInUp 1s ease 0.6s both;
}

.code-window {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(232, 233, 237, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.code-window::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: rgba(19, 24, 37, 0.8);
  border-bottom: 1px solid rgba(232, 233, 237, 0.1);
}

.window-dots {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  gap: 8px;
  z-index: 1;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot:nth-child(1) {
  background: #ff5f57;
}
.dot:nth-child(2) {
  background: #ffbd2e;
}
.dot:nth-child(3) {
  background: #28ca42;
}

.code-content {
  margin-top: 40px;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.8;
}

.code-line {
  opacity: 0;
  animation: typeLine 0.5s ease forwards;
}

.code-line:nth-child(1) {
  animation-delay: 1s;
}
.code-line:nth-child(2) {
  animation-delay: 1.2s;
}
.code-line:nth-child(3) {
  animation-delay: 1.4s;
}
.code-line:nth-child(4) {
  animation-delay: 1.6s;
}
.code-line:nth-child(5) {
  animation-delay: 1.8s;
}
.code-line:nth-child(6) {
  animation-delay: 2s;
}

.keyword {
  color: #c678dd;
}
.function {
  color: #61afef;
}
.string {
  color: #98c379;
}
.comment {
  color: var(--text-muted);
}

/* Skills Section */
.skills {
  padding: 8rem 0;
  position: relative;
}

.section-title {
  font-family: "Fraunces", serif;
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 4rem;
  text-align: center;
}

.section-title span {
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.skill-card {
  background: var(--bg-card);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid rgba(232, 233, 237, 0.1);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-3);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 217, 255, 0.3);
  box-shadow: 0 20px 60px rgba(0, 217, 255, 0.2);
}

.skill-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
}

.skill-card h3 {
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  background: rgba(0, 217, 255, 0.1);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid rgba(0, 217, 255, 0.2);
}

/* Projects Section */
.projects {
  padding: 8rem 0;
  background: rgba(19, 24, 37, 0.3);
}

.project-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 3rem;
  border: 1px solid rgba(232, 233, 237, 0.1);
  transition: all 0.4s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.project-content {
  padding: 3rem;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1.5rem;
}

.project-card h3 {
  font-family: "Fraunces", serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.project-status {
  background: rgba(40, 202, 66, 0.2);
  color: #28ca42;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(40, 202, 66, 0.3);
}

.project-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.tech-tag {
  background: rgba(102, 126, 234, 0.1);
  color: #667eea;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

/* Contact Section */
.contact {
  padding: 8rem 0;
  text-align: center;
}

.contact-content {
  max-width: 700px;
  margin: 0 auto;
}

.contact-content p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

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

.social-link {
  width: 60px;
  height: 60px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text);
  font-size: 1.5rem;
  border: 1px solid rgba(232, 233, 237, 0.1);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

/* Footer */
footer {
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid rgba(232, 233, 237, 0.1);
  color: var(--text-muted);
}

.project-links1 {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn-pr {
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-pr-primary {
  background: linear-gradient(135deg, var(--accent), #667eea);
  color: white;
}

.btn-pr-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(232, 233, 237, 0.3);
}

.btn-pr:hover {
  transform: translateY(-3px);
}
.additional-skills {
  margin-top: 3rem;
  text-align: center;
}

.additional-skills h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.additional-skills .skill-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.more-projects {
  text-align: center;
  margin-top: 3rem;
}
/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typeLine {
  to {
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .section-title {
    font-size: 2.5rem;
  }

  nav ul {
    gap: 1.5rem;
  }

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

@media (max-width: 640px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  nav ul {
    display: none;
  }
}

/* Scroll reveal */
.reveal {
  opacity: 1;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
