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

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}

:root {
  --bg-primary: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  --bg-secondary: rgba(10, 10, 10, 0.9);
  --bg-tertiary: rgba(10, 10, 10, 0.95);
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-modal: rgba(10, 10, 10, 0.95);
  --text-primary: #ffffff;
  --text-secondary: #cccccc;
  --text-tertiary: #aaaaaa;
  --accent: #00d4ff;
  --accent-secondary: #0099cc;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: rgba(0, 212, 255, 0.1);
  --shadow-hover: rgba(0, 212, 255, 0.3);
}

[data-theme="light"] {
  --bg-primary: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #e9ecef 100%);
  --bg-secondary: rgba(255, 255, 255, 0.9);
  --bg-tertiary: rgba(255, 255, 255, 0.95);
  --bg-card: rgba(0, 0, 0, 0.05);
  --bg-modal: rgba(255, 255, 255, 0.95);
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-tertiary: #888888;
  --accent: #007bff;
  --accent-secondary: #0056b3;
  --border: rgba(0, 0, 0, 0.1);
  --shadow: rgba(0, 123, 255, 0.1);
  --shadow-hover: rgba(0, 123, 255, 0.3);
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-secondary);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

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

.theme-toggle {
  margin-left: 30px;
}

.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: var(--text-primary);
}

.theme-toggle-btn:hover {
  background: var(--accent);
  color: var(--text-primary);
  transform: scale(1.1);
}

.theme-icon {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--accent);
  letter-spacing: 2px;
}

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

.nav-links li {
  margin-left: 30px;
}

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

.nav-links a:hover {
  color: var(--accent);
}

#progress-bar {
  position: fixed;
  top: 80px;
  left: 0;
  width: 0%;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  z-index: 999;
  transition: width 0.25s ease;
}

.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 0;
  scroll-snap-align: start;
}

.section-title {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 50px;
  text-align: center;
  color: var(--text-primary);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  border-radius: 1px;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  overflow: hidden;
  scroll-snap-align: start;
}

.hero-content {
  z-index: 2;
  max-width: 800px;
  animation: fadeInUp 1.5s ease-out;
}

.hero-title {
  font-size: 4rem;
  font-weight: 300;
  margin-bottom: 20px;
  background: linear-gradient(
    135deg,
    var(--text-primary) 0%,
    var(--accent) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 30px;
  color: var(--text-secondary);
  font-weight: 300;
}

.hero-desc p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  color: var(--text-tertiary);
}

.cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px var(--shadow);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--shadow-hover);
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.parallax-bg-1 {
  background: radial-gradient(
    circle,
    rgba(0, 212, 255, 0.1) 0%,
    transparent 70%
  );
  z-index: 1;
}

.parallax-bg-2 {
  background: radial-gradient(
    circle,
    rgba(0, 153, 204, 0.05) 0%,
    transparent 50%
  );
  z-index: 0;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  align-items: center;
}

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

.about-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.stat {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--accent);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

.experience-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.experience-item {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 15px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
}

.experience-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--shadow);
}

.experience-header {
  margin-bottom: 0;
}

.experience-header h3 {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 0;
}

.company {
  display: none;
}

.period {
  display: none;
}

.experience-details {
  list-style: none;
  padding: 0;
  display: none;
}

.experience-details li {
  margin-bottom: 10px;
  color: var(--text-secondary);
  position: relative;
  padding-left: 20px;
}

.experience-details li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.projects-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.project-item {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 20px;
  transition: all 0.3s ease;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.project-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--shadow);
}

.project-item h3 {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.project-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.skill-category h3 {
  font-size: 1.2rem;
  color: var(--accent);
  margin-bottom: 20px;
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.skill-tag {
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.skill-tag:hover {
  background: var(--accent);
  transform: scale(1.05);
}

.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

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

.contact-info {
  margin-bottom: 40px;
}

.contact-item {
  margin-bottom: 20px;
}

.contact-label {
  color: var(--accent);
  font-weight: 500;
  margin-right: 10px;
}

.contact-item a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.social-link:hover {
  color: var(--accent);
}

.footer {
  padding: 40px 0;
  text-align: center;
  background: var(--bg-secondary);
  color: var(--text-tertiary);
  scroll-snap-align: end;
}

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

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

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

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: var(--bg-modal);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  margin: 15% auto;
  padding: 40px;
  border-radius: 15px;
  width: 80%;
  max-width: 600px;
  color: var(--text-primary);
}

.close {
  color: var(--accent);
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: var(--text-primary);
}

.modal-header h3 {
  color: var(--accent);
  margin-bottom: 10px;
}

#modal-company,
#modal-period {
  display: block;
  margin-bottom: 5px;
  color: var(--text-secondary);
}

#modal-details {
  list-style: none;
  padding: 0;
}

#modal-details li {
  margin-bottom: 10px;
  color: var(--text-secondary);
  position: relative;
  padding-left: 20px;
}

#modal-details li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.modal-subtitle {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.modal-section {
  margin-bottom: 20px;
}

.modal-section h4 {
  color: var(--accent);
  margin-bottom: 10px;
  font-size: 1.2em;
}

.modal-section p,
.modal-section ul {
  color: var(--text-primary);
  line-height: 1.6;
}

.modal-section ul {
  padding-left: 20px;
}

.modal-section li {
  margin-bottom: 5px;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

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

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

  .nav-links {
    display: none;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .experience-item {
    padding: 30px;
  }

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

  .social-links {
    flex-direction: column;
    gap: 15px;
  }

  .modal-content {
    margin: 20% auto;
    padding: 20px;
    width: 90%;
  }

  .theme-toggle {
    margin-left: 20px;
  }

  .theme-toggle-btn {
    width: 35px;
    height: 35px;
  }
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
