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

:root {
  --primary-color: #6366f1;
  --secondary-color: #8b5cf6;
  --accent-color: #06b6d4;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-dark: #111827;
  --border-color: #e5e7eb;
  --shadow-light: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-heavy: 0 20px 25px rgba(0, 0, 0, 0.5);
  --gradient-primary: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  --nav-bg: rgba(255, 255, 255, 0.3);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.7);
  --nav-border: rgba(255, 255, 255, 0.2);
  --nav-border-scrolled: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] {
  --text-primary: #f9fafb;
  --text-secondary: #d1d5db;
  --text-light: #9ca3af;
  --bg-primary: #0f172a;
  --bg-secondary: #0f172a;
  --bg-dark: #020617;
  --border-color: #334155;
  --shadow-light: 0 1px 3px rgba(57, 57, 57, 0.1);
  --shadow-medium: 0 4px 6px rgba(143, 143, 143, 0.2);
  --shadow-heavy: 0 20px 25px rgba(255, 255, 255, 0.3);
  --nav-bg: rgba(15, 23, 42, 0.3);
  --nav-bg-scrolled: rgba(15, 23, 42, 0.8);
  --nav-border: rgba(51, 65, 85, 0.3);
  --nav-border-scrolled: rgba(51, 65, 85, 0.6);
}

[data-theme="dark"] .tech-icon {
  background: #1e293b;
  color: var(--text-primary);
}

[data-theme="dark"] .skill-category {
  background: #1e293b;
}

[data-theme="dark"] .experience-card {
  background: #1e293b;
}

[data-theme="dark"] .contact-form {
  background: #1e293b;
}

[data-theme="dark"] .form-group input:focus + label,
[data-theme="dark"] .form-group input:valid + label,
[data-theme="dark"] .form-group textarea:focus + label,
[data-theme="dark"] .form-group textarea:valid + label {
  background: #1e293b;
}

[data-theme="dark"] .social-link {
  background: #1e293b;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  overflow-x: hidden;
  cursor: none;
}

a,
button,
.logo-text {
  cursor: none;
}

/* Custom Cursor */
.cursor-dot {
  width: 10px;
  height: 10px;
  background: var(--accent-color);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.1s ease;
  opacity: 0.5;
}

.cursor-outline.hover {
  transform: scale(1.5);
  opacity: 1;
  border-color: #ff6b6b;
  border-width: 3px;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--nav-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--nav-border);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav.scrolled {
  background: var(--nav-bg-scrolled);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid var(--nav-border-scrolled);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.theme-toggle {
  background: none;
  border: 2px solid var(--primary-color);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  color: var(--primary-color);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.nav-logo .logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
}

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

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

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

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
}

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

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

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 80px;
  height: 80px;
  background: var(--primary-color);
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 120px;
  height: 120px;
  background: var(--secondary-color);
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.shape-3 {
  width: 60px;
  height: 60px;
  background: var(--accent-color);
  top: 80%;
  left: 20%;
  animation-delay: 4s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  background: var(--primary-color);
  top: 10%;
  right: 30%;
  animation-delay: 1s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

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

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.title-line {
  display: block;
  opacity: 0;
  transform: translateY(50px);
  animation: slideUp 0.8s ease forwards;
}

.title-line:nth-child(1) {
  animation-delay: 0.1s;
}
.title-line:nth-child(2) {
  animation-delay: 0.2s;
}
.title-line:nth-child(3) {
  animation-delay: 0.3s;
}
.title-line:nth-child(4) {
  animation-delay: 0.4s;
}

.name-highlight {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeIn 0.8s ease 0.5s forwards;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  opacity: 0;
  animation: fadeIn 0.8s ease 0.6s forwards;
}

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

.btn {
  padding: 0.75rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Code Window */
.code-window {
  background: var(--bg-dark);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
  opacity: 0;
  transform: translateX(50px);
  animation: slideInRight 0.8s ease 0.7s forwards;
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.window-header {
  background: #1f2937;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.window-controls {
  display: flex;
  gap: 0.5rem;
}

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

.control.red {
  background: #ef4444;
}
.control.yellow {
  background: #f59e0b;
}
.control.green {
  background: #10b981;
}

.window-title {
  color: #9ca3af;
  font-size: 0.875rem;
}

.code-content {
  padding: 1.5rem;
  font-family: "Fira Code", monospace;
  font-size: 0.875rem;
}

.code-line {
  color: #e5e7eb;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: typeIn 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;
}

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

.keyword {
  color: #8b5cf6;
}
.variable {
  color: #06b6d4;
}
.property {
  color: #10b981;
}
.string {
  color: #f59e0b;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.875rem;
}

.scroll-line {
  width: 2px;
  height: 30px;
  background: var(--primary-color);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

/* Sections */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
}

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

.section-number {
  display: inline-block;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* About Section */
.about {
  background: var(--bg-primary);
}

/* Skills Section */
.skills {
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

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

.parallax-layer {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  will-change: transform;
}

.layer-1 {
  width: 200px;
  height: 200px;
  background: var(--primary-color);
  top: 20%;
  left: 10%;
}

.layer-2 {
  width: 150px;
  height: 150px;
  background: var(--secondary-color);
  top: 60%;
  right: 15%;
}

.layer-3 {
  width: 100px;
  height: 100px;
  background: var(--accent-color);
  top: 80%;
  left: 70%;
}

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

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

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

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

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.image-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
}

.tech-orbit {
  position: relative;
  width: 100%;
  height: 100%;
  border: 2px dashed var(--border-color);
  border-radius: 50%;
  animation: rotate 20s linear infinite;
}

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

.tech-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-medium);
  animation: counterRotate 20s linear infinite;
}

@keyframes counterRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(-360deg);
  }
}

.tech-1 {
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
}
.tech-2 {
  top: 10%;
  right: -20px;
}
.tech-3 {
  right: -30px;
  top: 50%;
  transform: translateY(-50%);
}
.tech-4 {
  bottom: 10%;
  right: -20px;
}
.tech-5 {
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
}
.tech-6 {
  bottom: 10%;
  left: -20px;
}
.tech-7 {
  left: -30px;
  top: 50%;
  transform: translateY(-50%);
}
.tech-8 {
  top: 10%;
  left: -20px;
}

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

.skill-category {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
}

.skill-category h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: var(--primary-color);
  color: white;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
}

.skill-chip:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Experience Section */
.experience {
  background: var(--bg-primary);
}

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

.experience-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  transition: all 0.3s ease;
  text-align: center;
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.experience-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

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

.experience-link:hover {
  color: var(--secondary-color);
}

/* Contact Section */
.contact {
  background: var(--bg-primary);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

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

.social-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--bg-secondary);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-light);
}

.social-card:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.social-card i {
  font-size: 1.5rem;
  width: 24px;
  text-align: center;
}

.social-card span {
  font-weight: 500;
}

[data-theme="dark"] .social-card {
  background: #1e293b;
}

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

.social-link {
  width: 50px;
  height: 50px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.3s ease;
}

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

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: transparent;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--text-light);
  transition: all 0.3s ease;
  pointer-events: none;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
  top: -0.5rem;
  left: 0.75rem;
  font-size: 0.875rem;
  color: var(--primary-color);
  background: white;
  padding: 0 0.5rem;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Typing Animation */
.typing-container {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.typing-text {
  color: var(--primary-color);
  font-weight: 600;
  border-right: 2px solid var(--primary-color);
  animation: blink 1s infinite;
}

@keyframes blink {
  0%,
  50% {
    border-color: var(--primary-color);
  }
  51%,
  100% {
    border-color: transparent;
  }
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: white;
  text-align: center;
  padding: 2rem 0;
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.6s ease;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .nav-container {
    justify-content: space-between;
    padding: 0 1rem;
  }

  .theme-toggle {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
  }

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

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

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

  .skill-items {
    justify-content: center;
  }
}
