/* ======================
   GLOBAL
====================== */
* {
  box-sizing: border-box;
}

:root {
  --primary: #00c6ff;
  --primary-dark: #0284c7;
  --text-dark: #111827;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --border: #e5e7eb;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-light);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem;
}

section {
  padding: 4rem 0;
}

/* ======================
   HEADER
====================== */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  transition: 0.2s ease;
}

nav a.active,
nav a:hover {
  color: var(--primary);
}

/* ======================
   HERO
====================== */
.hero {
  padding: 6rem 2rem;
  text-align: center;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.5;
  color: #e0e7ff;
}

/* ======================
   BUTTONS
====================== */
.button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 1rem 2rem;
  background: var(--primary);
  color: #0f2027;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ======================
   SKILLS
====================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 2rem;
}

.skill-card {
  background: white;
  color: var(--text-dark);
  padding: 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ======================
   PROJECTS
====================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 2rem;
}

.project-card {
  display: flex;
  flex-direction: column;          /* Stack content vertically */
  justify-content: space-between;   /* Push header to top, button/paragraph to bottom */
  align-items: center;
  padding: 1.5rem;
  background: #ffffff;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  height: 300px;                   /* Fixed height for uniform cards */
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  background: #e0f2ff;
}

.project-card h4 {
  margin: 0;
}

.project-card p {
  flex-grow: 1;       /* Takes up space to push button to bottom */
  margin: 1rem 0;     /* Optional spacing above/below paragraph */
}

.project-card button {
  align-self: center; 
  padding: 8px 12px;
  border: none;
  background-color: var(--primary);
  color: #0f2027;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}

.project-card button:hover {
  background-color: var(--primary-dark);
}

/* ======================
   FOOTER
====================== */
.site-footer {
  background: linear-gradient(90deg, #203a43, #0f2027);
  color: #e0e7ff;
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.site-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}