/* =========================================
   1. GLOBAL VARIABLES & BASE
   ========================================= */
:root {
  --bg-main: #09090b;       /* Deep slate/black */
  --bg-surface: #18181b;    /* Slightly lighter for cards/header */
  --border-subtle: #27272a;
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;
  --accent: #38bdf8;        /* Sharp tech cyan/blue */
  --accent-hover: #7dd3fc;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

/* =========================================
   2. NAVIGATION (HEADER)
   ========================================= */
header {
  background: var(--bg-main); /* Starts completely solid */
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

/* The active state applied by Javascript */
header.nav-scrolled {
  background: rgba(9, 9, 11, 0.7); /* Slightly transparent dark slate */
  backdrop-filter: blur(12px);     /* Blurs the background behind it */
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
}

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

/* Make the logo accent on hover for a nice touch */
.logo:hover {
  color: var(--accent);
}

.nav-links a {
  margin-left: 24px;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
}

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

/* =========================================
   3. MAIN LAYOUT & TYPOGRAPHY
   ========================================= */
main {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px;
}

main h2, .about h2 {
  color: var(--text-primary);
  font-size: 1.75rem;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

/* =========================================
   4. PAGE SPECIFIC: ABOUT
   ========================================= */
.about p {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.about ul {
  list-style: none; /* Removing default discs for a cleaner look */
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.about ul li {
  margin-bottom: 12px;
  padding-left: 1.5rem;
  position: relative;
}

/* Custom bullet points */
.about ul li::before {
  content: "▹";
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 0;
}

/* =========================================
   5. PAGE SPECIFIC: PROJECTS
   ========================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.card a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.9rem;
}

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

/* =========================================
   6. PAGE SPECIFIC: CONTACT
   ========================================= */
ul.contact-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  text-align: left;
  display: inline-block;
}

ul.contact-list li {
  margin-bottom: 16px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}

ul.contact-list a {
  color: var(--accent);
  font-weight: 500;
}

ul.contact-list a:hover {
  color: var(--accent-hover);
}

.contact-icon {
  margin-right: 12px;
}

/* =========================================
   7. FOOTER & SOCIALS
   ========================================= */
footer {
  background: var(--bg-main);
  text-align: center;
  padding: 40px 0;
  margin-top: 60px;
  border-top: 1px solid var(--border-subtle);
}

.socials {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.social-icon {
  width: 20px;
  height: 20px;
  fill: var(--text-secondary);
  transition: fill 0.2s ease;
}

.socials a:hover .social-icon,
.card a:hover .social-icon {
  fill: var(--accent);
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* =========================================
   8. HOMEPAGE: HERO SECTION
   ========================================= */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 80px;
  margin-top: 20px;
}

.hero-content {
  flex: 1;
}

.hero-title {
  font-size: 3rem;
  color: var(--text-primary);
  margin-bottom: 10px;
  letter-spacing: -1px;
  font-weight: 800;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 20px;
  font-weight: 600;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
}

.btn {
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-main);
  border: 1px solid var(--accent);
}

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

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  background: rgba(255,255,255,0.05);
  transform: translateY(-2px);
}

.hero-image {
  flex: 0.8;
  display: flex;
  justify-content: flex-end;
}

.hero-image img {
  width: 100%;
  max-width: 280px;
  border-radius: 20px; /* Slightly rounded square looks very modern */
  border: 1px solid var(--border-subtle);
  box-shadow: 0 12px 30px rgba(0,0,0,0.6);
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.featured-projects h2 {
  margin-bottom: 24px;
}

/* Make it responsive for mobile */
@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero-image {
    justify-content: center;
  }
  .hero-buttons {
    justify-content: center;
  }
}