/* =========================
   Enhanced AWS-style Portfolio CSS
========================= */

/* ===== Variables ===== */
:root {
  --bg-dark: #232f3e;
  --bg-card: #1f2937;
  --bg-gradient-2: #2c3e50;
  --bg-gradient-3: #1a202c;
  --text-main: #ffffff;
  --text-muted: #cbd5e1;
  --accent: #ff9900;
  --accent-hover: #f59e0b;
  --button-text: #042f2e;
}

/* ===== Global Styles ===== */
* {
  box-sizing: border-box;
  transition: all 0.3s ease;
}

body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: linear-gradient(270deg, var(--bg-dark), #2c3f5a, var(--bg-gradient-2), var(--bg-gradient-3));
  background-size: 600% 600%;
  animation: bganim 50s ease infinite;
  color: var(--text-main);
}

/* ===== Background Animation ===== */
@keyframes bganim {
  0% { background-position: 0% 50%; }
  25% { background-position: 50% 50%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 50% 50%; }
  100% { background-position: 0% 50%; }
}

/* ===== Links ===== */
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-hover);
}

/* ===== Main Container ===== */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 30px;
}

/* ===== Nav ===== */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}
nav .brand {
  font-weight: bold;
  font-size: 1.4rem;
  color: var(--accent);
}
nav ul {
  list-style: none;
  display: flex;
  gap: 12px;
}
nav ul li a {
  color: var(--accent);
  padding: 6px 14px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  display: inline-block;
  transition: all 0.3s ease;
}
nav ul li a:hover {
  background: var(--accent);
  color: var(--button-text);
  transform: scale(1.05);
}

/* ===== Hero Section ===== */
.hero {
  display: grid;
  gap: 15px;
  padding: 40px 0;
}
.hero h1 {
  font-size: 40px;
  margin: 0;
  animation: fadeDown 1s ease forwards;
}
.hero p {
  color: var(--text-muted);
  font-size: 18px;
  animation: fadeIn 1.2s ease forwards;
}

/* ===== Cards ===== */
.card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
.card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0,0,0,0.4);
}

/* ===== Grid ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 15px;
}

/* ===== Section Titles ===== */
.section-title {
  margin: 35px 0 15px;
  font-size: 22px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
  padding-bottom: 4px;
}

/* ===== Footer ===== */
.footer {
  color: var(--text-muted);
  font-size: 14px;
  padding: 30px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  text-align: center;
}

/* ===== Badge ===== */
.badge {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--accent);
  background: rgba(255,153,0,0.1);
}
.badge:hover {
  background: rgba(255,153,0,0.2);
  transform: scale(1.1);
}

/* ===== Buttons ===== */
button.cta {
  background: var(--accent);
  color: var(--button-text);
  font-weight: bold;
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  cursor: pointer;
}
button.cta:hover {
  background: var(--accent-hover);
  transform: translateY(-3px) scale(1.05);
}

/* ===== Social Tags ===== */
.socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tag {
  font-size: 12px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.05);
}
.tag:hover {
  background: rgba(255,153,0,0.15);
  transform: scale(1.1);
  border-color: var(--accent);
  color: var(--text-main);
}

/* ===== Animations ===== */
@keyframes fadeDown {
  0% { opacity: 0; transform: translateY(-30px); }
  100% { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}
