/* Theme Colors */
:root {
  --bg: #fafafa;
  --bg-secondary: #f0f0f0;
  --text: #1a1a1a;
  --text-secondary: #666666;
  --card: #ffffff;
  --primary: #f59e0b;
  --primary-light: #fbbf24;
  --accent: #f59e0b;
  --border: #e0e0e0;
}

html.dark {
  --bg: #000000;
  --bg-secondary: #1f1f1f;
  --text: #e5e7eb;
  --text-secondary: #9ca3af;
  --card: #111111;
  --primary: #fbbf24;
  --primary-light: #fcd34d;
  --accent: #fbbf24;
  --border: #2d2d2d;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Layout */
.container-main {
  flex: 1;
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  background: var(--card);
  border-right: 1px solid var(--border);
  padding: 40px 20px;
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  z-index: 999;
}

.sidebar.mobile-menu-open {
  transform: translateX(0);
}

.sidebar.mobile-menu-open::before {
  content: '';
  position: fixed;
  top: 0;
  left: 280px;
  width: calc(100% - 280px);
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.logo-link {
  text-decoration: none;
  margin-bottom: 40px;
}

.logo-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: white;
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  line-height: 1.2;
  padding: 10px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  flex: 1;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-secondary);
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
}

.nav-item:hover {
  color: var(--primary);
  background: var(--bg-secondary);
}

.nav-item.active {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}

.nav-item i {
  font-size: 18px;
  min-width: 24px;
}

.toggle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: none;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.toggle-btn:hover {
  background: var(--primary);
  color: white;
}

/* Theme Toggle Button - Top Right */
.theme-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--border);
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.theme-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  border-radius: 8px;
  background: var(--card);
  border: 2px solid var(--border);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.mobile-menu-toggle:hover {
  background: var(--primary);
  color: white;
}

.mobile-menu-toggle.active {
  background: var(--primary);
  color: white;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 60px 80px;
  width: 100%;
}

/* Desktop: Add margin for sidebar */
@media (min-width: 769px) {
  .main-content {
    margin-left: 280px;
    width: calc(100% - 280px);
  }
}

/* Hero Section */
.hero-section {
  padding: 60px 0;
  text-align: center;
}

.greeting {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.hero-section h1 {
  font-size: 64px;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: 'Poppins', sans-serif;
}

.highlight {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.hero-image {
  margin: 40px 0;
}

.avatar-placeholder {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  color: white;
  margin: 0 auto;
}

.description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-family: 'Inter', sans-serif;
  text-align: center;
}

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

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

.btn-secondary {
  background: var(--bg-secondary);
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  background: var(--border);
  transform: translateY(-2px);
}

.skills-quick {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 40px;
}

.skills-quick span {
  color: var(--text);
  font-weight: 600;
}

/* Content Sections */
.content-section {
  padding: 50px 0;
}

.content-section h2 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 32px;
  font-family: 'Poppins', sans-serif;
}

.content-section p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.skill-item h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--primary);
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-tag {
  display: inline-block;
  padding: 8px 16px;
  background: var(--bg-secondary);
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border: 1px solid var(--border);
}

/* Projects */
.projects-list {
  display: grid;
  gap: 40px;
  margin-top: 40px;
}

.project-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 32px;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.project-item:nth-child(even) {
  grid-template-columns: 1fr 1fr;
  direction: rtl;
}

.project-item:nth-child(even) > * {
  direction: ltr;
}

.project-img {
  overflow: hidden;
  border-radius: 12px;
  height: 100%;
  min-height: 300px;
}

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

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

.project-info h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.project-info p {
  margin-bottom: 24px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.project-link:hover {
  transform: translateX(4px);
}
.fitness {
  font-size: 11px;
  color: lightslategray;
  margin-top: 8px;
}
/* Contact Section */
.contact-links {
  display: grid;
  gap: 20px;
  margin-top: 40px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 12px;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.contact-item:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}

.contact-item i {
  font-size: 28px;
  color: var(--primary);
  min-width: 40px;
}

.contact-item span {
  display: block;
}

.contact-item .label {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.contact-item .value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 1024px) {
  .sidebar {
    width: 240px;
  }

  .main-content {
    margin-left: 240px;
    padding: 40px 60px;
  }

  .hero-section h1 {
    font-size: 48px;
  }

  .subtitle {
    font-size: 24px;
  }

  .project-item {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project-item:nth-child(even) {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Hide sidebar by default on mobile */
  .sidebar {
    transform: translateX(-100%);
    width: 280px;
  }

  /* Show sidebar when mobile menu is open */
  .sidebar.mobile-menu-open {
    transform: translateX(0);
  }

  /* Overlay for mobile menu */
  .sidebar.mobile-menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 280px;
    width: calc(100% - 280px);
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }

  .container-main {
    flex-direction: column;
  }

  .main-content {
    margin-left: 0;
    padding: 30px 20px;
    width: 100%;
  }

  .sidebar-nav {
    flex-direction: column;
    padding-top: 20px;
  }

  .nav-item {
    width: 100%;
    justify-content: flex-start;
    padding: 15px 20px;
    margin: 5px 0;
  }

  .hero-section h1 {
    font-size: 36px;
  }

  .subtitle {
    font-size: 20px;
  }

  .hero-section {
    padding: 40px 0;
  }

  .avatar-placeholder {
    width: 120px;
    height: 120px;
    font-size: 60px;
  }

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

  .btn {
    width: 100%;
  }

  .content-section h2 {
    font-size: 32px;
  }

  .content-section {
    margin: 30px 0;
  }

  .preview-section {
    padding: 15px 0;
  }

  .preview-section + .preview-section {
    margin-top: -5px;
  }

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

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

  .project-preview-card {
    margin: 0 auto;
    max-width: 400px;
  }
}

@media (max-width: 412px) {
  .main-content {
    padding: 25px 16px;
  }

  .hero-section {
    padding: 25px 0;
    text-align: center;
  }

  .hero-section h1 {
    font-size: 28px;
    line-height: 1.2;
  }

  .subtitle {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .avatar-placeholder {
    width: 100px;
    height: 100px;
    font-size: 50px;
    margin: 0 auto 30px;
  }

  .cta-buttons {
    gap: 15px;
  }

  .btn {
    padding: 10px 18px;
    font-size: 13px;
  }

  .content-section {
    margin: 25px 0;
  }

  .preview-section + .preview-section {
    margin-top: -5px;
  }

  .content-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .skills-preview-grid {
    gap: 20px;
    margin-top: 15px;
    margin-bottom: 15px;
  }

  .skill-preview-item {
    padding: 15px;
  }

  .skill-item {
    padding: 20px;
  }

  .skill-item h3 {
    font-size: 16px;
  }

  .projects-preview {
    gap: 20px;
  }

  .project-preview-card {
    max-width: 100%;
  }

  .project-preview-card img {
    height: 180px;
  }

  .project-preview-card h3 {
    font-size: 16px;
    padding: 15px 15px 8px;
  }

  .project-preview-card p {
    font-size: 13px;
    padding: 0 15px 15px;
  }

  .project-preview-card .project-link {
    margin: 0 15px 15px;
    padding: 6px 12px;
    font-size: 11px;
  }

  .contact-links {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .contact-link {
    padding: 15px;
  }

  .footer {
    padding: 20px;
    text-align: center;
  }
}

/* Page Header */
.page-header {
  padding: 40px 0;
  text-align: center;
  margin-bottom: 30px;
}

.page-header h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 12px;
  font-family: 'Poppins', sans-serif;
}

.page-header p {
  font-size: 18px;
  color: var(--text-secondary);
}

/* Preview Sections */
.preview-section {
  padding: 40px 0;
}

.preview-section + .preview-section {
  margin-top: -10px;
}

.skills-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.skill-preview-item {
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border);
  text-align: center;
}

.skill-preview-item h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.skill-preview-item p {
  font-size: 14px;
  color: var(--text-secondary);
}

.projects-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.project-preview-card {
  border-radius: 8px;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.project-preview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.project-preview-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-preview-card h3 {
  padding: 20px 20px 10px;
  color: var(--primary);
  font-size: 18px;
}

.project-preview-card p {
  padding: 0 20px 15px;
  font-size: 14px;
  color: var(--text-secondary);
}

.project-preview-card .project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin: 0 20px 20px;
}

.project-preview-card .project-link:hover {
  transform: translateX(2px);
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: 15px;
}

.read-more-link:hover {
  transform: translateX(4px);
}

.skill-category-icon {
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 15px;
}
