/* ================================
   VARIABLES / COLORS / FONTS
================================ */
:root {
  --bg: #0f1724;          /* Deep navy background */
  --card: #0b1220;        /* Slightly lighter section bg */
  --accent: #3b82f6;      /* Bright blue accent */
  --accent-light: #60a5fa;
  --text: #e6eef6;        /* Light text */
  --muted: #9aa4b2;       /* Gray text */
  --radius: 14px;
  font-family: 'Inter', sans-serif;
}

/* ================================
   GLOBAL STYLES
================================ */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

h1, h2, h3, p {
  margin: 0 0 12px 0;
}

p {
  line-height: 1.6;
  color: var(--text);
}

a {
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  transition: color 0.2s ease;
}

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

/* ================================
   NAVBAR / LOGO
================================ */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.logo {
  display: inline-block;
  font-weight: 700;
  font-size: 26px;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent); /* fallback */
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 50px;
  border-radius: 50%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.logo:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(59,130,246,0.5);
}

nav a {
  color: var(--muted);
  margin-left: 18px;
}

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

/* ================================
   HERO / ABOUT SECTION
================================ */
.about-section {
  margin-top: 60px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
}

.about-image {
  text-align: center;
}

.avatar-circle {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--accent);
  transition: transform 0.3s ease;
}

.avatar-circle:hover {
  transform: scale(1.05);
}

.about-text h1 {
  font-size: 28px;
  margin-bottom: 12px;
}

.about-text h2 {
  font-size: 20px;
  color: var(--accent);
  margin-top: 20px;
  margin-bottom: 8px;
}

/* ================================
   PROJECTS SECTION
================================ */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.5);
}

/* ================================
   SKILLS SECTION
================================ */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.skills-grid span {
  background: rgba(59,130,246,0.2);
  color: var(--accent);
  padding: 8px 10px;
  border-radius: 6px;
  font-weight: 600;
}

/* ================================
   CONTACT FORM
================================ */
form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 500px;
}

input, textarea {
  border: 1px solid rgba(255,255,255,0.1);
  padding: 10px;
  border-radius: 8px;
  font-size: 15px;
  background: var(--card);
  color: var(--text);
}

button {
  background: var(--accent);
  color: var(--text);
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  background: var(--accent-light);
}

/* ================================
   FADE-IN ANIMATIONS
================================ */
.fade-in-left, .fade-in-right {
  opacity: 0;
  transform: translateX(20px);
  transition: all 1s ease-out;
}

.fade-in-left {
  transform: translateX(-50px);
}

.appear {
  opacity: 1;
  transform: translateX(0);
}

/* ================================
   BUTTONS
================================ */
.btn {
  background: var(--accent);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.btn:hover {
  background: var(--accent-light);
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 820px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-text h2 {
    margin-top: 15px;
  }

  .avatar-circle {
    width: 150px;
    height: 150px;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

/* Resume Section */
.resume-section {
  text-align: center;
  margin: 4rem auto;
  max-width: 600px;
}

.resume-section h2 {
  color: var(--accent);
  margin-bottom: 1rem;
}

.resume-section p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.resume-section .btn {
  background: var(--accent);
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
}

.resume-section .btn:hover {
  background: #60a5fa;
  transform: scale(1.05);
}
