:root {
  --bg-color: #A47251;
  --bg-color-alt: #8e6245; /* Darker brown */
  --text-primary: #DCF0C3;
  --text-secondary: #F0D8A1;
  --accent-color: #DD9E59;
  --accent-hover: #F0D8A1;
  --glass-bg: rgba(164, 114, 81, 0.7);
  --glass-border: rgba(220, 240, 195, 0.2);
  --font-main: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: 'Fira Code', 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

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

.text-gradient {
  background: linear-gradient(90deg, #fff, #DCF0C3);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 0;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

nav .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
}

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

nav .nav-links a {
  color: var(--text-primary);
  font-weight: 500;
}

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

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: transparent;
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  border-radius: 4px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn:hover {
  background-color: rgba(88, 166, 255, 0.1);
  box-shadow: 0 0 15px rgba(88, 166, 255, 0.3);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero p.mono {
  font-family: var(--font-mono);
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 0.5rem;
  line-height: 1.1;
}

.hero h2 {
  font-size: 3rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero .description {
  max-width: 600px;
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

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

.hero .social-links a {
  color: var(--text-primary);
  font-size: 1.5rem;
}

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

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.experience-list {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  font-size: 1rem;
  color: var(--text-secondary);
}

.experience-list li {
  margin-bottom: 0.5rem;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  filter: grayscale(20%) contrast(1.1);
  transition: filter 0.3s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.about-image img:hover {
  filter: grayscale(0%) contrast(1);
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

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

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border-color: rgba(88, 166, 255, 0.3);
}

.project-image {
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s 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-content h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

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

.skill-tags span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-color);
  background: rgba(88, 166, 255, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid var(--glass-border);
  margin-top: 4rem;
}

footer p {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 3rem; }
  .hero h2 { font-size: 2rem; }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-image {
    max-width: 400px;
    margin: 0 auto;
  }
  
  nav .nav-links {
    display: none; /* simple mobile nav approach for now */
  }
}
