:root {
  --bg-dark: #0f0f11;
  --panel-dark: #18181b;
  --text-dark: #eaeaea;

  --bg-light: #ffffff;
  --panel-light: #f5f5f5;
  --text-light: #1f1f1f;

  --accent: #3f8efc;
  --accent-hover: #2d7ae6;
}

[data-theme="dark"] {
  --bg: var(--bg-dark);
  --panel: var(--panel-dark);
  --text: var(--text-dark);
}

[data-theme="light"] {
  --bg: var(--bg-light);
  --panel: var(--panel-light);
  --text: var(--text-light);
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

/* Navbar */
nav {
  position: fixed;
  width: 100%;
  top: 0;
  background-color: var(--panel);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 999;
  border-bottom: 1px solid rgba(138, 138, 138, 0.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

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

nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  transition: color 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}

.theme-toggle {
  background: none;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 0.4rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background-color: var(--accent);
  color: #fff;
}

/* Sections */
section {
  min-height: 100vh;
  padding: 7rem 2rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
}

.home-container,
.about-container {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

/* Text & Headings */
h1, h2, h3 {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 1rem;
}

h1 { font-size: 2.8rem; margin-bottom: 1.5rem; }
h2 { font-size: 2rem; margin-bottom: 2rem; }
h3 { font-size: 1.4rem; color: var(--text); }

p {
  max-width: 750px;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn:hover {
  background-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(63, 142, 252, 0.25);
}

.btn i { font-size: 1.2rem; }

/* Cards & Layout */
.experience-container {
  max-width: 800px;
  width: 100%;
  text-align: left;
}

.experience-item,
.project-card {
  background-color: var(--panel);
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
}

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

.project-card h3 {
  margin-bottom: 0.5rem;
  color: var(--accent);
}

/* Images */
img {
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

img:hover { transform: scale(1.02); }

/* Availability Badge */
.availability-badge {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--accent);
  color: white;
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(63, 142, 252, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.badge-pulse {
  width: 12px;
  height: 12px;
  background: #4cff8b;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

/* Animations */
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--panel);
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    gap: 1rem;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }
  .nav-links.active { transform: translateY(0); }
  .mobile-menu-btn { display: block; }
  .theme-toggle { margin-left: auto; }
  section { padding: 6rem 1.5rem 2rem; }
  .home-container, .about-container { flex-direction: column; }
  .home-text, .about-text { text-align: center; }
  .btn-row { justify-content: center; }
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.7rem; }
}
