/* ====== styles.css (Final Clean + Documented Version) ====== */

/* -------------------- Root Variables -------------------- */
:root {
  --light-bg: #ffffff;
  --light-fg: #0f172a;
  --light-accent: #00b7ff;
  --dark-bg: #0b1220;
  --dark-fg: #e5e7eb;
  --dark-accent: #38bdf8;
  --radius: 10px;
  --transition: 0.3s ease;
}
[data-theme="light"] {
  --bg: var(--light-bg);
  --fg: var(--light-fg);
  --accent: var(--light-accent);

  /* Blog-specific vars for light mode */
  --blog-card-bg: rgba(0, 0, 0, 0.03);
  --blog-card-shadow: rgba(0, 0, 0, 0.08);
  --blog-overlay-from: rgba(255, 255, 255, 0.88);
  --blog-overlay-to: rgba(255, 255, 255, 0.18);
  --blog-overlay-text: var(--light-fg);
  --skill-card-bg: rgba(0, 0, 0, 0.03);
  --skill-card-shadow: rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
  --bg: var(--dark-bg);
  --fg: var(--dark-fg);
  --accent: var(--dark-accent);

  /* Blog-specific vars for dark mode */
  --blog-card-bg: rgba(0, 183, 255, 0.05);
  --blog-card-shadow: rgba(0, 183, 255, 0.25);
  --blog-overlay-from: rgba(0, 0, 0, 0.75);
  --blog-overlay-to: rgba(0, 0, 0, 0.1);
  --blog-overlay-text: var(--dark-fg);
  --skill-card-bg: rgba(0, 183, 255, 0.06);
  --skill-card-shadow: rgba(0, 183, 255, 0.15);
}

/* -------------------- Global Styles -------------------- */
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg);
  color: var(--fg);
  margin: 0;
  line-height: 1.7;
  font-weight: 400;
  transition:
    background-color var(--transition),
    color var(--transition);
}
.container {
  width: min(1100px, 90%);
  margin: 0 auto;
}
h1,
h2,
h3,
h4 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  letter-spacing: -0.3px;
}

/* -------------------- Navbar -------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar {
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  transition:
    background-color 0.4s ease,
    box-shadow 0.4s ease;
  backdrop-filter: blur(6px);
}
.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.6);
}
[data-theme="dark"] .navbar.scrolled {
  background-color: rgba(17, 24, 39, 0.6);
}

.logo {
  font-weight: 700;
  font-size: 2rem;
  color: var(--accent);
  transition: transform 0.3s ease;
}
.logo:hover {
  transform: scale(1.05);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--fg);
  font-weight: 600;
  font-size: 1.05rem; /* base size */

  opacity: 0.9;
  display: inline-block;

  transition:
    font-size 0.25s ease,
    color 0.3s ease,
    opacity 0.3s ease;
}

.nav-links a:hover {
  transform: scale(1.08) translateY(-2px); /* only lift */

  color: var(--accent);
  opacity: 1;
}
#theme-toggle {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--fg);
  transition: transform 0.3s ease;
}
#theme-toggle:hover {
  transform: scale(1.1);
}

/* -------------------- Background Accent -------------------- */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(
      circle at 20% 30%,
      rgba(0, 183, 255, 0.08),
      transparent 60%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(56, 189, 248, 0.08),
      transparent 60%
    );
  z-index: -1;
}

/* -------------------- Hero Section -------------------- */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 95vh;
  padding: 60px 0 10px;
  position: relative;
  gap: 40px;
}
.hero-text {
  flex: 1;
  gap: 10px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}
.hero-text h1 {
  font-size: 3.2rem;
  line-height: 1.2;
  font-weight: 600;
}
.hero-subtext {
  font-size: 1.1rem;
  margin: 10px 0 18px;
  opacity: 0.8;
  line-height: 1.6;
}
.highlight {
  color: var(--accent);
  font-weight: 600;
}
.hero-text p {
  font-size: 1.2rem;
  margin: 0 0 20px;
  color: var(--fg);
  opacity: 0.85;
}
.hero-buttons {
  display: flex;
  gap: 15px;
}

/* -------------------- Social Bar -------------------- */
.hero-social-bar {
  position: absolute;
  left: -60px;
  top: 56%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  z-index: 5;
}
.hero-social-bar a {
  color: var(--accent);
  font-size: 1.8rem;
  transition:
    transform 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease,
    border 0.25s ease;
  opacity: 0.9;
}
.hero-social-bar a:hover {
  transform: scale(1.2);

  border: 1px solid rgba(0, 183, 255, 0.5);

  box-shadow:
    0 0 0 2px rgba(0, 183, 255, 0.15),
    0 6px 12px rgba(0, 183, 255, 0.25);

  color: var(--accent);
}

/* Responsive for Hero Social Bar */
@media (max-width: 1024px) {
  .hero-social-bar {
    position: relative;
    left: 0;
    top: auto;
    transform: none;
    flex-direction: row;
    justify-content: center;
    margin-top: 2rem;
    gap: 1.5rem;
  }
}
@media (max-width: 768px) {
  .hero-social-bar {
    display: none;
  }
}

/* -------------------- Hero Image -------------------- */
.hero-image {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.blob {
  position: absolute;
  width: 420px;
  height: 420px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.08;
  animation: blob 6s ease-in-out infinite;
  pointer-events: none;
}
.profile-photo {
  z-index: 2;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--accent);
  background-color: var(--bg);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.profile-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 183, 255, 0.25);
}

/* -------------------- Scroll Button -------------------- */
.scroll-down {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 60px;
  font-size: 1.9rem;
  color: var(--accent);
  cursor: pointer;
  opacity: 0.9;
  z-index: 50;
  animation: scroll-bounce 2s infinite ease-in-out;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
  pointer-events: auto;
}
.scroll-down {
  pointer-events: none;
}

.scroll-down i {
  pointer-events: auto;
}
.scroll-down:hover {
  opacity: 1;
  transform: translateX(-50%) translateY(5px);
}
@keyframes scroll-bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(8px);
  }
}
@media (max-width: 768px) {
  .scroll-down {
    bottom: 40px;
    font-size: 1.7rem;
  }
}

/* -------------------- Buttons -------------------- */
/* ================= BUTTON BASE ================= */
.btn {
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  border: none;
  cursor: pointer;
  text-decoration: none;

  position: relative;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border 0.25s ease;
}

/* ================= PRIMARY ================= */
.btn.primary {
  background: var(--accent);
  color: #fff;

  box-shadow: 0 4px 12px rgba(0, 183, 255, 0.15);
  border: 1px solid transparent;
}

/* ================= SECONDARY ================= */
.btn.secondary {
  background: var(--accent); /* same as primary */
  color: #fff;
  border: 1px solid transparent;
}

/* ================= HOVER EFFECT ================= */
.btn:hover {
  transform: scale(1.05); /* smooth enlarge */
}

/* white highlight border */
.btn.primary:hover,
.btn.secondary:hover {
  background: #0369a1; /* darker blue */

  border: 1px solid rgba(255, 255, 255, 0.6);

  box-shadow:
    0 6px 18px rgba(0, 183, 255, 0.25),
    0 0 0 2px rgba(255, 255, 255, 0.12);
}

/* Contact form button */
.collaborate-btn {
  position: relative;
  display: inline-flex;
  align-items: center;

  background: var(--accent);
  color: white;

  border-radius: 999px;

  /* space for arrow */
  padding: 15px 170px 15px 31px;

  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;

  transition: all 0.4s ease;
}

/* TEXT */
.collaborate-btn span {
  position: relative;
  z-index: 1;
  display: inline-block;
  transition: transform 0.4s ease;
}

/* ICON CIRCLE */
.collaborate-btn i {
  position: absolute;
  right: 8px;

  width: 28px;
  height: 28px;

  background: white;
  color: black;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 2;

  transition: right 0.4s ease;
}

/* ARROW */
.collaborate-btn svg {
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
}

/* HOVER EFFECT */
.collaborate-btn:hover span {
  transform: translateX(18px);
}

.collaborate-btn:hover i {
  right: calc(100% - 43px);
}

.collaborate-btn:hover svg {
  transform: rotate(0deg);
}

/* -------------------- About Section -------------------- */
#about p {
  max-width: 800px;
  margin: 0 auto 22px;
  line-height: 1.85;
  font-size: 1.08rem;
  color: var(--fg);
  text-align: justify;
  opacity: 0.95;
}

/* -------------------- General Section Layout -------------------- */
.section {
  padding: 120px 0;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.section.visible {
  opacity: 1;
  transform: translateY(0);
}
.section-title {
  color: var(--accent);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  margin-bottom: 50px;
  text-transform: uppercase;
  position: relative;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -10px;
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* -------------------- Skills Section -------------------- */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 40px;
}

.skills-card {
  background: rgba(0, 183, 255, 0.05);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  padding: 1.6rem;
  text-align: left;

  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.skills-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(0, 183, 255, 0.25);
}

.skills-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;

  color: var(--accent);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.skills-card p {
  color: var(--fg);
  opacity: 0.9;
  font-size: 0.95rem;
  line-height: 1.6;
}

.category-icon {
  width: 40px;
  height: 40px;
}

/* responsive */

@media (max-width: 900px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* -------------------- Projects Section -------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 25px;
  margin-top: 50px;
}
.project-card {
  background: rgba(0, 183, 255, 0.05);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  padding: 1.8rem;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(0, 183, 255, 0.25);
}
.project-card h3 {
  color: var(--accent);
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}
.project-card p {
  color: var(--fg);
  opacity: 0.9;
  font-size: 0.95rem;
  line-height: 1.6;
}
.project-card a {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.project-card a:hover {
  color: #0099ff;
}

/* -------------------- Experience Section -------------------- */
#experience {
  padding-top: 80px;
  padding-bottom: 60px;
  margin-top: -40px;
}
.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}
#experience .scroll-down {
  bottom: 10px;
}
@media (max-width: 900px) {
  .experience-grid {
    grid-template-columns: 1fr;
  }
}
.exp-card {
  background: rgba(0, 183, 255, 0.05);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  padding: 1.8rem;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.exp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(0, 183, 255, 0.25);
}
.exp-card h3 {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.exp-card p {
  color: var(--fg);
  opacity: 0.9;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* -------------------- Education Section -------------------- */
#education {
  padding-top: 100px;
  padding-bottom: 80px;
  margin-top: 30px;
  position: relative;
  z-index: 10;
}
#education .scroll-down {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -30px;
  font-size: 1.9rem;
  color: var(--accent);
  animation: scroll-bounce 2s infinite;
  z-index: 50;
  cursor: pointer;
}
#education .scroll-down {
  pointer-events: none;
}

#education .scroll-down i {
  pointer-events: auto;
}
.edu-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  justify-content: center;
  margin-top: 80px;
}
@media (max-width: 900px) {
  .edu-grid {
    grid-template-columns: 1fr;
  }
}
.edu-card {
  background: rgba(0, 183, 255, 0.05);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  padding: 1.8rem;
  text-align: left;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.edu-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(0, 183, 255, 0.25);
}
.edu-card h3 {
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.edu-card p {
  color: var(--fg);
  opacity: 0.9;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* -------------------- Contact Section -------------------- */
#contact {
  padding: 75px 0 30px;
  text-align: center;
  position: relative;
  justify-content: center;
  z-index: 1;
}
#contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  background: rgba(0, 183, 255, 0.05);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  padding: 40px 30px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
#contact-form:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(0, 183, 255, 0.2);
}
#contact-form input,
#contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.8px solid rgba(0, 183, 255, 0.3);
  border-radius: 8px;
  background-color: var(--bg);
  color: var(--fg);
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
#contact-form input:focus,
#contact-form textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 8px rgba(0, 183, 255, 0.25);
}
#contact-form textarea {
  min-height: 140px;
  resize: vertical;
}
#contact-form button {
  align-self: center;
  width: 160px;
  font-size: 1rem;
  margin-top: 10px;
}
#contact .scroll-down {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent);
  font-size: 2rem;
  animation: scroll-bounce 2s infinite;
}
.error-msg {
  color: #ff4d4f;
  font-size: 0.9rem;
  margin-top: 5px;
  display: block;
  text-align: left;
}
.success-msg {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid #22c55e;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.95rem;
  margin-top: 12px;
  text-align: center;
}
.error-msg.centered {
  text-align: center;
}
.contact-wrapper {
  display: flex;
  gap: 60px;
  align-items: flex-start;
  margin-top: 40px;
}
#contact p {
  opacity: 0.8;
  line-height: 1.6;
}

.contact-left {
  flex: 1;
  max-width: 400px;
  text-align: left;
}

.contact-left h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.contact-left p {
  opacity: 0.8;
  line-height: 1.6;
}

.contact-details {
  margin-top: 20px;
}

.contact-form {
  flex: 1;
  background: rgba(0, 183, 255, 0.05);
  padding: 30px;
  border-radius: 12px;
  border: 1px solid rgba(0, 183, 255, 0.2);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
.input-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.input-row input {
  flex: 1;
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 12px;
  border-radius: 8px;
  border: 1px solid rgba(0, 183, 255, 0.2);
  background: transparent;
  color: var(--fg);
}

.contact-form textarea {
  min-height: 120px;
}

/* -------------------- Footer -------------------- */
footer {
  background: rgba(0, 183, 255, 0.06);
  padding: 25px 0;
  text-align: center;
  color: var(--fg);
  font-size: 0.95rem;
  margin-top: 40px;
  border-top: 1px solid rgba(0, 183, 255, 0.15);
}
footer p {
  margin: 0;
  opacity: 0.85;
}
footer .social-links {
  display: flex;
  justify-content: center;
  gap: 22px;
  margin-top: 10px;
}
footer .social-links a {
  color: var(--accent);
  font-size: 1.6rem;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}
footer .social-links a:hover {
  transform: scale(1.15);
  color: #0099ff;
}

/* -------------------- Scrollbar -------------------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #e5e7eb;
}
::-webkit-scrollbar-thumb {
  background-color: #60a5fa;
  border-radius: 4px;
}
[data-theme="dark"]::-webkit-scrollbar-track {
  background: #1f2937;
}
[data-theme="dark"]::-webkit-scrollbar-thumb {
  background-color: #3b82f6;
}

/* -------------------- Project Modal -------------------- */
.project-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(10px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.project-modal {
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid var(--accent);
  border-radius: 16px;
  padding: 30px;
  width: min(600px, 90%);
  text-align: left;
  box-shadow: 0 8px 30px rgba(0, 183, 255, 0.35);
  backdrop-filter: blur(18px);
  animation: modalPop 0.35s ease;
  position: relative;
}
[data-theme="light"] .project-modal {
  background: #f8fafc;
  color: #0b1220;
}
[data-theme="dark"] .project-modal {
  background: rgba(15, 23, 42, 0.92);
  color: #e5e7eb;
}
.project-modal h3 {
  margin-top: 0;
  color: var(--accent);
  font-size: 1.65rem;
  text-shadow: 0 0 12px rgba(0, 183, 255, 0.4);
}
.project-modal p {
  line-height: 1.7;
  font-size: 1rem;
  margin-top: 10px;
  opacity: 0.95;
}
.project-modal .skills-line {
  margin-top: 12px;
  font-weight: 500;
}
.project-modal .skills-line span {
  color: var(--accent);
  font-weight: 600;
}
.project-modal a.btn {
  margin-top: 20px;
  background: var(--accent);
  color: white;
  border: none;
  box-shadow: 0 0 12px rgba(0, 183, 255, 0.4);
}
.project-modal a.btn:hover {
  box-shadow: 0 0 18px rgba(0, 183, 255, 0.8);
  transform: translateY(-2px);
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 2rem;
  cursor: pointer;
}
.modal-close:hover {
  transform: scale(1.15);
}

/* -------------------- Animations -------------------- */
@keyframes blob {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}
@keyframes modalPop {
  from {
    transform: scale(0.85);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
/* ===== Fix: Restore 'View Details' Hover Glow ===== */
.view-more {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  transition:
    text-shadow 0.3s ease,
    transform 0.2s ease,
    color 0.3s ease;
}

.view-more:hover {
  text-shadow: 0 0 10px rgba(0, 183, 255, 0.9);
  transform: translateY(-2px);
  color: #0099ff;
}

/* ===== Fix: Logo Link Hover ===== */
.logo {
  cursor: pointer;
  text-decoration: none;
  color: var(--accent);
}
.logo:hover {
  color: #0099ff;
  text-shadow: 0 0 10px rgba(0, 183, 255, 0.6);
}

/* -------------------- Blogs Section -------------------- */
.blogs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
  justify-items: center;
}

/* -------------------- Blog Card -------------------- */
.blog-card {
  position: relative;
  width: 380px;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  border-left: 4px solid var(--accent);
  background: var(--blog-card-bg); /* ✅ theme-aware background */
  box-shadow: 0 0 25px var(--blog-card-shadow); /* ✅ theme-aware glow */
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column; /* ✅ stack image + text */
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 35px rgba(0, 183, 255, 0.25);
}

/* ✅ IMAGE SECTION */
.blog-banner-full {
  width: 100%;
  height: 240px; /* control image height */
  object-fit: cover; /* keeps proportions and fills box neatly */
  object-position: center 38%;
  display: block;
  transition:
    transform 0.4s ease,
    object-position 0.3s ease;
}

.blog-card:hover .blog-banner-full {
  transform: scale(1.03);
  object-position: center 40%;
}

/* ✅ TEXT SECTION BELOW IMAGE */
.blog-overlay {
  padding: 2px 12px 15px;
  background: linear-gradient(
    to top,
    var(--blog-overlay-from),
    var(--blog-overlay-to)
  );
  color: var(--blog-overlay-text);
  text-align: left;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-overlay h3 {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 8px;
  line-height: 1.4;
}

.blog-overlay p {
  font-size: 0.92rem;
  opacity: 0.95;
  line-height: 1.5;
}

/* ✅ RESPONSIVE FIX */
@media (max-width: 768px) {
  .blog-card {
    width: 92%;
  }
  .contact-wrapper {
    flex-direction: column;
  }

  .input-row {
    flex-direction: column;
  }
  .blog-banner-full {
    height: 210px;
  }

  .blog-overlay {
    padding: 18px 20px 22px;
  }

  .blog-overlay h3 {
    font-size: 1rem;
  }

  .blog-overlay p {
    font-size: 0.88rem;
  }
}
/* =====================
   MOBILE OPTIMIZATION
   ===================== */

@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    min-height: auto;
    padding-top: 100px;
  }

  .hero-text h1 {
    font-size: 2.1rem;
  }

  #typing {
    font-size: 1.1rem;
  }

  .hero-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .profile-photo {
    width: 220px;
    height: 220px;
  }

  .blob {
    width: 260px;
    height: 260px;
  }

  .nav-links {
    display: none;
  }

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

  .project-card {
    padding: 1.4rem;
  }

  .experience-grid,
  .edu-grid {
    grid-template-columns: 1fr;
  }

  .project-modal {
    width: 92%;
    padding: 22px;
  }

  #contact-form {
    padding: 28px 20px;
  }

  .navbar.scrolled {
    background-color: transparent !important;
  }
}
