/* CSS Variables - Dark mode (default) */
:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #1a1a1a;
  --bg-tertiary: #2a2a2a;
  --text-primary: #e4e4e4;
  --text-secondary: #b0b0b0;
  --text-muted: #888;
  --accent: #CE9154;
  --accent-hover: #b87d42;
  --border: #333;
  --shadow: rgba(0, 0, 0, 0.3);
  --card-bg: #1a1a1a;
}

/* Light mode */
[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --bg-tertiary: #e8e8e8;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-muted: #666;
  --accent: #CE9154;
  --accent-hover: #b87d42;
  --border: #ddd;
  --shadow: rgba(0, 0, 0, 0.1);
  --card-bg: #ffffff;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  min-height: 100vh;
}

/* Theme Toggle Button */
.theme-toggle {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 1000;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-primary);
}

.theme-toggle:hover {
  background: var(--bg-tertiary);
  transform: scale(1.1);
}

.theme-icon {
  transition: transform 0.3s ease;
}

/* Container */
.container {
  width: 70%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
}

h3 {
  font-size: 1.75rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--shadow);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

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

.hero-intro {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hero-name {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

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

.hero-description {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

.social-link {
  color: var(--text-secondary);
  transition: color 0.3s ease, transform 0.3s ease;
}

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

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 50%;
  border: 4px solid var(--accent);
  box-shadow: 0 8px 32px var(--shadow);
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

/* About Section */
.about-content {
  margin: 0 auto;
}

.about-text p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.skills-intro {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin-top: 1rem;
}

.skills-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--text-secondary);
}

.skills-list li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
}

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

.experience-tabs {
  margin: 0 auto;
}

.experience-tab-buttons {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border);
  padding-bottom: 1rem;
  width: 100%;
}

.experience-tab-button {
  padding: 0.75rem 1.0rem;
  background: transparent;
  border: 2px solid var(--border);
  border-radius: 4px;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  flex: 1;
  text-align: center;
  white-space: nowrap;
  white-space: nowrap;
}

.experience-tab-button:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--bg-tertiary);
}

.experience-tab-button.active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--bg-tertiary);
}

.experience-tab-button.active::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.experience-tab-content {
  position: relative;
  min-height: 300px;
}

.experience-tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

.experience-tab-panel.active {
  display: block;
}

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

.experience-item {
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.experience-job {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.experience-company {
  color: var(--accent);
  font-size: 1.125rem;
}

.experience-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.experience-content {
  list-style: none;
  padding-left: 0;
}

.experience-content li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

/* Education Section */
.education-list {
  margin: 0 auto;
}

.education-item {
  margin-bottom: 2rem;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.education-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow);
}

.education-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.education-title {
  font-size: 1.5rem;
}

.education-date {
  color: var(--text-muted);
  font-size: 0.9rem;
  white-space: nowrap;
}

.education-school {
  color: var(--accent);
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.education-details {
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* Projects Section */
.projects {
  background: var(--bg-secondary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px var(--shadow);
}

.project-image {
  width: 100%;
  height: 255px;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

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

.project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.badge {
  padding: 0.25rem 0.75rem;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border-radius: 4px;
  font-size: 0.875rem;
  border: 1px solid var(--border);
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

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

.project-link {
  margin-top: auto;
  color: var(--accent);
  font-weight: 500;
  display: inline-block;
}

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

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

.contact-content p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* Footer */
.footer {
  background: var(--bg-secondary);
  padding: 3rem 0;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-social a {
  color: var(--text-secondary);
  transition: color 0.3s ease, transform 0.3s ease;
}

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

.footer-copyright {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .theme-toggle {
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
  }

  .container {
    width: 85%;
    padding: 0 1.5rem;
  }
  
  .experience-tab-buttons {
    flex-wrap: wrap;
  }
  
  .experience-tab-button {
    flex: 1 1 auto;
    min-width: 120px;
  }

  h1 {
    font-size: 2.5rem;
  }

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

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

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

  .hero-image {
    order: -1;
  }

  .hero-image img {
    max-width: 250px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .section {
    padding: 4rem 0;
  }

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

  .experience-tab-buttons {
    flex-wrap: wrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  
  .experience-tab-button {
    flex: 1 1 auto;
    min-width: 120px;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
  }
  
  .experience-header,
  .education-header {
    flex-direction: column;
  }

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

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

@media (max-width: 480px) {
  .hero-name {
    font-size: 2rem;
  }

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

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

