:root {
  --font-main: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "Roboto Mono", monospace;

  /* Premium Dark Palette */
  /* --bg-body: #0f172a;
    --bg-surface: #1e293b;
    --bg-surface-glass: rgba(30, 41, 59, 0.7); */

  /* fitting palette */
  --bg-body: #ede4b3;
  --bg-surface: #16407a;
  --bg-surface-glass: rgba(30, 41, 59, 0.7);

  --text-primary: #f8fafc;
  --text-secondary: #16407a;
  --text-accent: #d3c11f;

  --border-color: rgba(148, 163, 184, 0.1);

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-glow: 0 0 20px rgba(56, 189, 248, 0.15);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--text-secondary);
  font-size: 1.125rem;
}

/* Layout */
.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* Navigation */
.main-nav {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: var(--spacing-sm) 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  margin-left: var(--spacing-md);
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text-accent);
}

/* Header */
.project-header {
  position: relative;
  height: 60vh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  margin-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--border-color);
}

.header-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    var(--bg-body) 0%,
    rgba(15, 23, 42, 0.4) 50%,
    rgba(15, 23, 42, 0.2) 100%
  );
  z-index: 10;
}

.header-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.7s ease-out;
}

.project-header:hover .header-img {
  transform: scale(1.05);
}

.project-title {
  position: relative;
  z-index: 20;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  margin-bottom: var(--spacing-lg);
  text-align: center;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  animation: fadeUp 0.8s ease-out;
}

/* Content */
.content-section {
  position: relative;
  z-index: 1;
}

.content-image {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
}

.content-image:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

/* Default Desktop Styles */
.content-image {
  max-width: 40%;
  margin: 1rem;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .content-image {
    width: 90%;
    max-width: 90%;
    float: none !important;
    display: block;
    margin: 1rem auto;
  }
}

.float-left {
  float: left;
  margin-right: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  width: 45%;
}

.float-right {
  float: right;
  margin-left: var(--spacing-md);
  margin-bottom: var(--spacing-sm);
  width: 45%;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* Materials Section */
.materials-section {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md);
  background: var(--bg-surface-glass);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--spacing-sm);
  list-style: none;
  padding: 0;
  margin-top: var(--spacing-md);
}

.materials-grid li {
  background: var(--bg-surface);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-accent);
  font-family: var(--font-mono);
  border: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

.materials-grid li:hover {
  background: var(--text-accent);
  color: var(--bg-body);
  transform: translateY(-2px);
}

/* Footer */
.main-footer {
  text-align: center;
  padding: var(--spacing-lg) 0;
  margin-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .float-left,
  .float-right {
    float: none;
    width: 100%;
    margin: var(--spacing-sm) 0;
  }

  .project-header {
    height: 40vh;
  }
}
