/* CSS Variables for Theme */
:root {
  --bg-primary: #0f0f23;
  --bg-secondary: #1a1a2e;
  --bg-tertiary: #16213e;
  --text-primary: #ffffff;
  --text-secondary: #a8a8a8;
  --accent-color: #6c5ce7;
  --accent-secondary: #fd79a8;
  --accent-tertiary: #00cec9;
  --card-bg: #1e1e3e;
  --border-color: #2d2d4a;
  --shadow: 0 10px 30px rgba(108, 92, 231, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e9ecef;
  --text-primary: #2c3e50;
  --text-secondary: #6c757d;
  --accent-color: #6c5ce7;
  --accent-secondary: #fd79a8;
  --accent-tertiary: #00cec9;
  --card-bg: #ffffff;
  --border-color: #e9ecef;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: var(--transition);
  overflow-x: hidden;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(15, 15, 35, 0.9);
  backdrop-filter: blur(20px);
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition);
}

[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.9);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--accent-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-block;
}

.logo:hover {
  transform: scale(1.05);
}

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

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  transition: var(--transition);
  cursor: pointer;
}

.nav-links a:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  position: relative;
  overflow: hidden;
}

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

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--accent-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content .emoji {
  font-size: 3rem;
  animation: wave 2s ease-in-out infinite;
}

@keyframes wave {
  0%,
  100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(20deg);
  }
  75% {
    transform: rotate(-10deg);
  }
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-tagline {
  font-size: 1.4rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent-tertiary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 600px;
}

.hero-skills {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.btn {
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

.btn-outline:hover {
  background: var(--accent-color);
  color: white;
  border-color: var(--accent-color);
}

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

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--card-bg);
  border-radius: 12px;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

/* Hero Illustration */
.hero-illustration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.illustration-container {
  position: relative;
  width: 400px;
  height: 400px;
}

.floating-element {
  position: absolute;
  animation: float 3s ease-in-out infinite;
}

.floating-element:nth-child(2) {
  animation-delay: -1s;
}

.floating-element:nth-child(3) {
  animation-delay: -2s;
}

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

.dev-illustration {
  width: 300px;
  height: 300px;
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--accent-secondary)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  margin: 0 auto;
  overflow: hidden;
  border: 3px solid var(--accent-tertiary);
  box-shadow: 0 0 40px rgba(108, 92, 231, 0.3);
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Section Styles */
.section {
  padding: 3rem 0;
  position: relative;
  overflow: visible;
}

.section:first-of-type {
  padding-bottom: 2rem;
}

.section:nth-child(even) {
  background: var(--bg-secondary);
}

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

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 10;
  padding: 1rem 0;
  overflow: visible;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--accent-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 10;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
}

.skills-text h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.skills-text h4 {
  font-size: 1.1rem;
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 2rem;
}

.skills-list {
  list-style: none;
}

.skills-list li {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--card-bg);
  border-radius: 12px;
  transition: var(--transition);
}

.skills-list li:hover {
  transform: translateX(10px);
  background: var(--accent-color);
}

.skills-list li::before {
  content: "⚡";
  margin-right: 1rem;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: var(--accent-secondary);
}

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

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  background: var(--card-bg);
  border-radius: 16px;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.tech-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
}

.tech-item i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.tech-item span {
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

/* Progress Bars */
.proficiency-section {
  background: var(--bg-secondary);
}

.progress-container {
  max-width: 800px;
  margin: 0 auto;
}

.progress-item {
  margin-bottom: 2rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 8px;
  background: var(--border-color);
  border-radius: 50px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--accent-color),
    var(--accent-secondary)
  );
  border-radius: 50px;
  transition: width 2s ease-in-out;
}

.progress-sublevel {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-primary);
  border-left: 3px solid var(--accent-tertiary);
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.sublevel-title {
  color: var(--accent-secondary);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.sublevel-content {
  color: var(--text-secondary);
  flex: 1;
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.card h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
}

.card-links a {
  color: var(--accent-color);
  text-decoration: none;
  margin-right: 1rem;
  font-weight: 500;
}

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

  .logo {
    font-size: 1.2rem;
  }

  .nav-container {
    padding: 0 1rem;
  }

  /* Hero Section */
  .hero {
    padding: 0 1rem;
    min-height: 100vh;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-buttons {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .illustration-container {
    width: 250px;
    height: 250px;
    margin: 0 auto;
  }

  .dev-illustration {
    width: 250px;
    height: 250px;
  }

  .floating-element {
    font-size: 1.5rem !important;
  }

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

  .section-header {
    margin-bottom: 2rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .section-header p {
    font-size: 0.95rem;
  }

  /* Skills Section */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .skills-text h3 {
    font-size: 1.5rem;
  }

  .skills-list li {
    font-size: 0.9rem;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .tech-stack {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1rem;
  }

  .tech-item {
    padding: 1rem 0.5rem;
  }

  .tech-item i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .tech-item span {
    font-size: 0.8rem;
  }

  /* Progress Section */
  .progress-container {
    max-width: 100%;
    padding: 0 1rem;
  }

  .progress-item {
    margin-bottom: 1.5rem;
  }

  .progress-header {
    font-size: 0.9rem;
  }

  .progress-sublevel {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem;
  }

  .sublevel-title {
    white-space: normal;
  }

  /* Cards Grid */
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .card {
    padding: 1.5rem;
    margin-bottom: 1rem;
  }

  .card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }

  .card p {
    font-size: 0.9rem;
  }

  .card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .card-links a {
    display: inline-block;
    margin-top: 0.75rem;
  }

  /* Modal */
  .modal-content {
    padding: 1.5rem;
    width: 95%;
    max-width: 100%;
  }

  .modal-content h2 {
    font-size: 1.5rem;
  }

  .contact-email {
    font-size: 1rem;
    padding: 1rem;
    word-break: break-word;
  }

  .close-btn {
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
  }

  /* Container Padding */
  .container {
    padding: 0 1rem;
  }
}

/* Extra Small Devices */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .illustration-container {
    width: 200px;
    height: 200px;
  }

  .dev-illustration {
    width: 200px;
    height: 200px;
  }

  .tech-stack {
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  }

  .card {
    padding: 1rem;
  }

  .skills-list li {
    font-size: 0.85rem;
    padding: 0.5rem;
  }
}

/* Contact Modal */
.contact-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(108, 92, 231, 0.2);
}

.close-btn {
  position: absolute;
  right: 1.5rem;
  top: 1.5rem;
  font-size: 2rem;
  font-weight: bold;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.close-btn:hover {
  color: var(--accent-color);
  transform: scale(1.2);
}

.modal-content h2 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.contact-email {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  padding: 1.2rem;
  background: var(--bg-secondary);
  border-left: 3px solid var(--accent-secondary);
  border-radius: 8px;
  word-break: break-all;
  cursor: pointer;
  transition: var(--transition);
}

.contact-email:hover {
  background: var(--accent-color);
  color: white;
  border-left-color: white;
}

.modal-note {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 1rem;
  text-align: center;
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 4px;
}
