:root {
  --primary: #1e3a5f;
  --primary-dark: #142841;
  --primary-light: #2d5a8e;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --text: #1f2937;
  --text-light: #6b7280;
  --text-lighter: #9ca3af;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --navbar-bg: rgba(255, 255, 255, 0.95);
  --accent-bg: rgba(37, 99, 235, 0.08);
  --accent-bg-light: rgba(37, 99, 235, 0.04);
  --footer-bg: var(--primary);
  --footer-text: var(--bg);
  --text-on-accent: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --accent-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
  --radius: 8px;
  --radius-lg: 12px;
  --max-width: 1100px;
  --container-padding: 1.5rem;
  --section-padding: 90px;
  --hero-padding-top: 140px;
  --hero-padding-bottom: 80px;
  --transition: all 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--navbar-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.nav-logo-text {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 50%, var(--primary) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 3s linear infinite;
}

.nav-logo .accent {
  color: var(--accent);
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

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

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  position: relative;
  padding: var(--hero-padding-top) 0 var(--hero-padding-bottom);
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 10s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--accent);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: var(--primary-light);
  bottom: -80px;
  left: -80px;
  animation-delay: -3s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: var(--accent);
  top: 40%;
  left: 30%;
  opacity: 0.25;
  animation-delay: -6s;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.25;
  mask-image: radial-gradient(circle at 70% 30%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle at 70% 30%, black 0%, transparent 70%);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-30px) scale(1.05);
  }
}

.hero-container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: center;
}

.hero-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -1.5px;
}

.hero-title .name-highlight {
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 50%, var(--accent) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 540px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--accent);
  color: var(--text-on-accent);
  border-color: var(--accent);
}

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

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background-color: var(--accent-bg-light);
}

.hero-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

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

.contact-item svg {
  flex-shrink: 0;
  color: var(--accent);
}

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

.profile-picture-wrapper {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
}

.profile-picture {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--bg);
  display: block;
}

.hero-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.hero-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.hero-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.hero-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: var(--text-on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.hero-card-label {
  font-size: 0.8rem;
  color: var(--text-lighter);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-card-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
}

/* Sections */
.section {
  padding: var(--section-padding) 0;
}

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

.section-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.5px;
}

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

.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-text {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.8;
  text-align: center;
  margin-bottom: 3rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.highlight-item {
  padding: 1.75rem;
  background-color: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.highlight-item:hover {
  background-color: var(--bg-card);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.highlight-item h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.highlight-item p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Skills */
.skills {
  background-color: var(--bg-alt);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.skill-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.skill-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-tag {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  background-color: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.skill-tag:hover {
  background-color: var(--accent);
  color: var(--text-on-accent);
  border-color: var(--accent);
}

/* Experience Timeline */
.experience {
  background-color: var(--bg);
}

.timeline {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 20px;
  width: 2px;
  background-color: var(--border);
}

.timeline-item {
  position: relative;
  padding-left: 60px;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: 11px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--bg);
  border: 3px solid var(--accent);
  z-index: 2;
}

.timeline-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.timeline-content:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

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

.timeline-header h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--primary);
}

.timeline-company {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 500;
}

.timeline-date {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-lighter);
  background-color: var(--bg-alt);
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  white-space: nowrap;
}

.timeline-location {
  font-size: 0.85rem;
  color: var(--text-lighter);
  margin-bottom: 0.75rem;
}

.timeline-summary {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* Education */
.education {
  background-color: var(--bg-alt);
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 850px;
  margin: 0 auto;
}

.education-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  gap: 1.25rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.education-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background-color: var(--accent-bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.education-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.education-school {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.education-date {
  font-size: 0.85rem;
  color: var(--text-lighter);
  margin-bottom: 0.5rem;
}

.education-detail {
  font-size: 0.9rem;
  color: var(--text-light);
}

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

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}

.project-card {
  display: block;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

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

.project-header h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--primary);
}

.project-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background-color: var(--accent-bg);
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  white-space: nowrap;
}

.project-date {
  font-size: 0.85rem;
  color: var(--text-lighter);
  margin-bottom: 1rem;
}

.project-description {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tags span {
  font-size: 0.8rem;
  color: var(--text-light);
  background-color: var(--bg-alt);
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
}

/* Contact */
.contact {
  background-color: var(--bg-alt);
}

.contact-intro {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.contact-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--accent-bg);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.contact-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  word-break: break-word;
}

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

.footer p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.footer-location {
  margin-top: 0.35rem;
  opacity: 0.7 !important;
  font-size: 0.85rem !important;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background-color: var(--accent);
  color: var(--text-on-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--accent-hover);
  transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .profile-picture-wrapper {
    width: 220px;
    height: 220px;
  }

  .hero-cards {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-card {
    flex: 1;
    min-width: 220px;
    max-width: 280px;
  }

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

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background-color: var(--bg);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-150%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-orb {
    filter: blur(50px);
  }

  .orb-1 {
    width: 250px;
    height: 250px;
  }

  .orb-2 {
    width: 200px;
    height: 200px;
  }

  .orb-3 {
    width: 150px;
    height: 150px;
  }

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

  .hero-description {
    font-size: 1rem;
  }

  .section {
    padding: 70px 0;
  }

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

  .about-highlights,
  .skills-grid,
  .education-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 15px;
  }

  .timeline-item {
    padding-left: 50px;
  }

  .timeline-marker {
    left: 6px;
    width: 18px;
    height: 18px;
  }

  .timeline-header {
    flex-direction: column;
    gap: 0.5rem;
  }

  .timeline-date {
    align-self: flex-start;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-contact {
    flex-direction: column;
    gap: 0.75rem;
  }
}

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

  .profile-picture-wrapper {
    width: 180px;
    height: 180px;
  }

  .hero-card {
    min-width: 100%;
    max-width: 100%;
  }

  .contact-card {
    padding: 1.5rem 1rem;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .back-to-top,
  .hero-actions,
  .hero-background,
  .footer {
    display: none;
  }

  .hero {
    padding: 2rem 0;
    min-height: auto;
  }

  .section {
    padding: 2rem 0;
  }

  body {
    font-size: 12pt;
  }

  a {
    text-decoration: none;
    color: var(--text);
  }
}

/* Theme Overrides */
[data-theme="dark"] {
  --primary: #e2e8f0;
  --primary-dark: #94a3b8;
  --primary-light: #cbd5e1;
  --accent: #60a5fa;
  --accent-hover: #3b82f6;
  --text: #f1f5f9;
  --text-light: #94a3b8;
  --text-lighter: #64748b;
  --bg: #0b1120;
  --bg-alt: #0f172a;
  --bg-card: #1e293b;
  --border: #475569;
  --navbar-bg: rgba(11, 17, 32, 0.95);
  --accent-bg: rgba(96, 165, 250, 0.15);
  --accent-bg-light: rgba(96, 165, 250, 0.08);
  --footer-bg: #020617;
  --footer-text: #f1f5f9;
  --text-on-accent: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --accent-shadow: 0 8px 20px rgba(96, 165, 250, 0.25);
}

[data-theme="modern"] {
  --primary: #0f172a;
  --primary-dark: #020617;
  --primary-light: #1e293b;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --text: #1f2937;
  --text-light: #4b5563;
  --text-lighter: #9ca3af;
  --bg: #ffffff;
  --bg-alt: #fff7ed;
  --bg-card: #ffffff;
  --border: #fed7aa;
  --navbar-bg: rgba(255, 255, 255, 0.95);
  --accent-bg: rgba(249, 115, 22, 0.08);
  --accent-bg-light: rgba(249, 115, 22, 0.04);
  --footer-bg: var(--primary);
  --footer-text: var(--bg);
  --text-on-accent: #ffffff;
  --shadow: 0 4px 6px -1px rgba(249, 115, 22, 0.08), 0 2px 4px -2px rgba(249, 115, 22, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(249, 115, 22, 0.12), 0 4px 6px -4px rgba(249, 115, 22, 0.06);
  --accent-shadow: 0 8px 20px rgba(249, 115, 22, 0.25);
  --radius: 16px;
  --radius-lg: 24px;
}

/* Layout Overrides */
[data-layout="compact"] {
  --max-width: 900px;
  --container-padding: 1rem;
  --section-padding: 60px;
  --hero-padding-top: 120px;
  --hero-padding-bottom: 60px;
}

[data-layout="wide"] {
  --max-width: 1300px;
  --container-padding: 2rem;
  --section-padding: 100px;
  --hero-padding-top: 150px;
  --hero-padding-bottom: 90px;
}

[data-theme="dark"] .hero-card {
  background: linear-gradient(135deg, #1e293b 0%, #27354f 100%);
  border-color: rgba(96, 165, 250, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(96, 165, 250, 0.08);
}

[data-theme="dark"] .hero-card:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(96, 165, 250, 0.2);
  transform: translateY(-5px);
}

[data-theme="dark"] .hero-card-icon {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  color: var(--bg);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.25);
}

/* Theme & Layout Selector */
.theme-layout-selector {
  position: relative;
  margin-left: 1.5rem;
}

.selector-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background-color: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
}

.selector-toggle:hover,
.selector-toggle.active {
  background-color: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent);
}

.selector-menu {
  position: absolute;
  top: calc(100% + 0.75rem);
  right: 0;
  width: 220px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  z-index: 1001;
}

.selector-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.selector-group + .selector-group {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.selector-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-lighter);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.75rem;
}

.selector-option {
  width: 100%;
  text-align: left;
  padding: 0.6rem 0.85rem;
  margin-bottom: 0.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background-color: transparent;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.selector-option:hover {
  background-color: var(--bg-alt);
  border-color: var(--border);
}

.selector-option.active {
  background-color: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 768px) {
  .theme-layout-selector {
    margin-left: auto;
    margin-right: 1rem;
  }

  .selector-menu {
    right: -0.5rem;
    width: 200px;
  }
}
