/* ====== Root Variables ====== */
:root {
  --bg: #0f172a;           /* Background */
  --card: #111827;         /* Card background */
  --muted: #94a3b8;        /* Muted text */
  --text: #e5e7eb;         /* Main text */
  --brand: #3b82f6;        /* Primary blue */
  --brand-700: #1d4ed8;    
  --border: #1f2937;       
  --chip: #0b1326;         
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 12px;          
  --transition: 0.2s ease;
}

/* ====== Base Styles ====== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 500px at 20% -10%, #15213a 0%, transparent 60%), var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
  border-radius: var(--radius);
}
a, button {
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

a:hover, button:hover {
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3); /* light shadow */
  transform: translateY(-2px); /* subtle lift */
}

/* ====== Containers ====== */
.container {
  width: min(1100px, 92%);
  margin-inline: auto;
}

/* ====== Sections ====== */
.section {
  padding: 72px 0;
}

.section.alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
}

/* ====== Header / Navigation ====== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(15, 23, 42, 0.75);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--brand);
  color: white;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.brand-text h1 {
  margin: 0;
  font-size: 1.2rem;
}

.tagline {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav {
  display: flex;
  gap: 18px;
}

.nav a {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--text);
  transition: var(--transition);
}

.nav a:hover {
  background: #0b1223;
  text-decoration: none;
}

/* ====== Hero ====== */
.hero {
  padding: 72px 0 36px;
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  text-align: center;
}

.hero h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

.hero p {
  color: var(--muted);
  margin: 0 0 22px;
}

.cta-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ====== Buttons ====== */
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #0b1223;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--transition), background var(--transition);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn.primary:hover {
  background: var(--brand-700);
}

.btn.ghost {
  background: transparent;
}

/* ====== Grids ====== */
.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
}

@media (max-width: 860px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.about-img img {
  height: 450px;      /* set your desired height */
  width: auto;        /* maintain aspect ratio */
  border: 1px solid var(--border);
  border-radius: var(--radius);
}


/* ====== Skills Chips ====== */
.chips {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips li {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--chip);
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
}

/* ====== Project Cards ====== */
.cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
}

.card {
  grid-column: span 4;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition);
}

.card:hover {
  transform: translateY(-5px);
}

.card img {
  aspect-ratio: 16/9;
  object-fit: cover;
}

.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .card {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .card {
    grid-column: span 12;
  }
}

/* ====== Resume ====== */
.center {
  text-align: center;
}

/* ====== Contact ====== */
.contact-list {
  padding-left: 0;
  list-style: none;
}

.contact-list a {
  text-decoration: underline;
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 18px;
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #0b1223;
  color: var(--text);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand);
  outline: none;
}

/* ====== Footer ====== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
  margin-top: 32px;
  background: #0b1223;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.back-to-top {
  color: var(--muted);
}

.back-to-top:hover {
  color: var(--text);
}

/* ====== Typography ====== */
h3 {
  margin-top: 0;
  font-size: 1.6rem;
}

h4 {
  margin: 0;
  font-size: 1.2rem;
}

p {
  margin: 0 0 8px;
  color: #cbd5e1;
}
/* ====== Social Icons ====== */
.socials {
  margin-top: 1.5rem;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ====== Social Icons ====== */
.socials img {
  width: 45px; /* slightly bigger */
  height: 45px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Default hover zoom */
.socials img:hover {
  transform: scale(1.25);
}

/* Brand glow effects */
.socials a[href*="linkedin"]:hover img {
  box-shadow: 0 4px 12px rgba(10, 102, 194, 0.6);
  border-color: #0a66c2;
}

.socials a[href*="github"]:hover img {
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.6);
  border-color: #fff;
}

.socials a[href*="leetcode"]:hover img {
  box-shadow: 0 4px 12px rgba(248, 159, 27, 0.6);
  border-color: #f89f1b;
}

.socials a[href*="geeksforgeeks"]:hover img {
  box-shadow: 0 4px 12px rgba(47, 141, 70, 0.6);
  border-color: #2f8d46;
}

.socials a[href*="instagram"]:hover img {
  box-shadow: 0 4px 12px rgba(225, 48, 108, 0.6);
  border-color: #e1306c;
}
