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

body {
  background: #0a0a0a;
  color: #e0e0e0;
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cfilter id='noise' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100' height='100' filter='url(%23noise)' opacity='0.15'/%3E%3C/svg%3E");
  background-size: 250px 250px;
  background-blend-mode: overlay;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header / Hero */
header {
  position: relative;
  height: 100vh;
  min-height: 800px;
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom right, #0f0f1f, #0a0a0a);
  background-image: url('background_05.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 70%, rgba(66, 245, 173, 0.12) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 20, 0.90); /* Adjustable overlay: change the rgba opacity (last value) as needed for readability */
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(4.5rem, 12vw, 9rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #f54b42, #42f5ad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 60px rgba(66, 245, 173, 0.4);
}

.subtitle {
  font-size: clamp(1.25rem, 4vw, 1.8rem);
  color: #42f5ad;
  margin-bottom: 2.5rem;
  opacity: 0.9;
}

.tagline {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 3rem;
  color: #b0b0b0;
}

/* Projects Section */
.projects-section {
  padding: 8rem 0;
  background: #0d0d0d;
  background-image: 
    linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 50%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.05) 25%, transparent 50%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.05) 80%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.05) 80%); /* Creates a subtle grid texture */
  background-size: 10px 10x; /* Adjust size for finer/coarser texture */
  background-color: #02100a; /* Dark base color to match cyber theme; change as needed */
  padding: 40px 0;
}

h2 {
  text-align: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 3.5rem;
  margin-bottom: 4rem;
  background: linear-gradient(90deg, #f54b42, #42f5ad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);     /* Always 2 columns */
  gap: 2.5rem;
  max-width: 1100px;                         /* Optional: prevents it from getting too wide on large screens */
  margin: 0 auto;
}

.project-card {
  background: #111;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #222;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.project-grid a {
  text-decoration: none; /* Removes the underline */
  color: inherit; /* Keeps the original text color */
}

.project-grid a:visited {
  color: inherit; /* Prevents color change after visiting (e.g., from blue to purple) */
}

.project-card:hover {
  transform: translateY(-12px);
  border-color: #42f5ad;
  box-shadow: 0 20px 50px rgba(66, 245, 173, 0.25);
}

.project-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.project-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-title {
  padding: 1.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: #e0e0ff;
}

/* Mobile - stack into 1 column */
@media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr;              /* 1 column on smaller screens */
    gap: 2rem;
  }

  .title { font-size: 5.5rem; }
  h2 { font-size: 2.8rem; }
  .projects-section { padding: 5rem 0; }
}

/* Links Section */
.links-section {
  padding: 3rem 0 2rem;
  background: #0d0d0d;
  text-align: center;
}

.links-section h2 {
  margin-bottom: 1.2rem;      /* ← this is the main reduction */
}

.links-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0.5rem auto 1.5rem; /* ← tightened top and bottom */
}

.links-list li a {
  font-family: 'VT323', monospace;
  letter-spacing: 1px;
  font-size: 1.5rem;
  --color: #42f5ad;
  color: #42f5ad;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  display: inline-block;
}

.links-list li a:hover {
  color: #86efac;
}

.links-section p a {
  color: #42f5ad;
  text-decoration: none;
}

.links-section p a:hover {
  text-decoration: underline;
  color: #86efac;
}

/* Footer */
footer {
  padding: 2rem 0 1rem;            /* Bottom padding down to 1rem */
  text-align: center;
  color: #666;
  font-size: 0.9rem;               /* Slightly smaller text is optional */
  border-top: 1px solid #1a1a1a;
}