:root {
  --bg: #0f1724;
  --card: #ffffff;
  --muted: #7b7f8b;
  --accent: #00d4ff;
  --accent-2: #6a8cff;
  --text: #0b1220;
  --glass: rgba(255, 255, 255, 0.06);
  --radius: 12px;
  --maxw: 1100px;
}

/* Light theme variables (default) */
:root[data-theme="light"] {
  --bg: linear-gradient(135deg, #f7f9fc, #eef6ff);
  --card: #ffffff;
  --muted: #6b7280;
  --accent: #4facfe;
  --accent-2: #00f2fe;
  --text: #071022;
  --glass: rgba(10, 14, 20, 0.03);
}

/* Dark theme overrides */
:root[data-theme="dark"] {
  --bg: linear-gradient(135deg, #0f1724, #121827);
  --card: #0b1220;
  --muted: #9aa3b2;
  --accent: #00d4ff;
  --accent-2: #6a8cff;
  --text: #e6eef8;
  --glass: rgba(255, 255, 255, 0.03);
}

/* Reset + Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}



/* NAV */
.site-header {
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent);
}

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

.nav-link {
  color: var(--text);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 8px;
  transition: all .18s;
}

.nav-link:hover {
  background: var(--glass);
}

.controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.icon-btn {
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
}

.hamburger {
  display: none;
}

.nav-link.active {
  color: var(--accent);
  /* highlighted link color */
  font-weight: 600;
}


/* S Logo in Nav */
#s-logo {
  width: 50px;
  /* smaller for nav */
  height: 50px;
  cursor: pointer;
  /* shows it's interactive */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

/* Hover effect: slight scale and color glow */
#s-logo:hover {
  transform: scale(1.15);
}

/* Optional: Responsive for mobile nav */
@media (max-width: 768px) {
  #s-logo {
    width: 40px;
    height: 40px;
  }
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  /* space between logo and text */
}


/* blog-single.css */

/* Container */
.blog-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Blog Post */
.blog-container .blog-post {
  background-color: #fff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Meta Info */
.blog-container .post-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 25px;
}

/* Blog Image */
.blog-container .blog-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  margin-bottom: 25px;
  border-radius: 8px;
}

/* Blog Content */
.blog-container .blog-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #444;
}

/* Paragraphs */
.blog-container .blog-content p {
  margin-bottom: 15px;
}

/* Links inside content */
.blog-container .blog-content a {
  color: #007bff;
  text-decoration: none;
}

.blog-container .blog-content a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-container {
    padding: 0 15px;
    margin: 20px auto;
  }

  .blog-container .blog-post h1 {
    font-size: 2rem;
  }

  .blog-container .blog-content {
    font-size: 0.95rem;
  }
}









/* Professional Footer Design */
/* Footer */
.site-footer {
  background: var(--card);
  color: var(--text);
  padding: 60px 20px 30px;
  font-family: 'Poppins', sans-serif;
  border-top: 2px solid var(--accent-2);
  backdrop-filter: blur(8px);
  border-radius: var(--radius);
}

/* Footer Container */
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 35px;
  max-width: var(--maxw);
  margin: 0 auto 30px;
}

/* Footer Cards */
.footer-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-card h4 {
  font-size: 1.15rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
}

.footer-card h4::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  margin-top: 6px;
  border-radius: 2px;
}

.footer-card ul {
  list-style: none;
  padding: 0;
}

.footer-card li {
  margin-bottom: 8px;
}

.footer-card a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s;
}

.footer-card a:hover {
  color: var(--accent-2);
  transform: translateX(4px);
}

.footer-card p {
  color: var(--muted);
  margin-bottom: 6px;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-size: 1.3rem;
  border-radius: 50%;
  background: var(--glass);
  color: var(--text);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s;
}

.social-icons a i {
  color: inherit;
}

/* Brand colors on hover */
.social-icons a[aria-label="GitHub"]:hover {
  background: #181717;
  color: #fff;
}

.social-icons a[aria-label="LinkedIn"]:hover {
  background: #0077B5;
  color: #fff;
}

.social-icons a[aria-label="Twitter"]:hover {
  background: #1DA1F2;
  color: #fff;
}

.social-icons a:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 20px;
}

/* Responsive Footer */
@media (max-width: 700px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  .footer-card h4::after {
    margin: 6px auto 0;
  }
}


/* Responsive */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-card {
    flex-direction: column;
    align-items: center;
  }

  .form-row {
    flex-direction: column;
  }

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

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.6rem;
  }

  .hero-sub {
    font-size: 1rem;
  }
}

/* ---------------- MOBILE NAV ---------------- */
@media (max-width: 768px) {

  /* Hide normal nav */
  .nav {
    display: none;
  }

  /* Show hamburger */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 27px;
    height: 22px;
    cursor: pointer;
    padding: 0;
    position: relative;
    font-size: 0;
    z-index: 2100;
  }

  .hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: #53575f;
    border-radius: 4px;
    transition: all 0.3s ease;
  }

  /* Hamburger animation (X) */
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Mobile nav container */
  .nav.mobile-active {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 12px;

    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;

    background: var(--bg);
    backdrop-filter: blur(12px);
    padding: 80px 24px 24px;

    transition: right 0.4s ease;
    z-index: 2000;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav.mobile-active.show {
    right: 0;
  }

  /* Mobile nav links */
  .nav.mobile-active .nav-link {
    width: 100%;
    font-size: 1.05rem;
    padding: 12px 16px;
    border-radius: var(--radius);
    color: var(--text);
    text-decoration: none;
    transition: background 0.25s, color 0.25s, transform 0.2s;
  }

  .nav.mobile-active .nav-link:hover {
    background: var(--glass);
    color: var(--accent);
    transform: scale(1.03);
  }

  /* Nav row spacing */
  .nav-row {
    justify-content: space-between;
    align-items: center;
  }

}

/* Prevent body scroll when nav is open */
body.no-scroll {
  overflow: hidden;
  height: 100%;
}


/* BACK BUTTON */
.back-button {
  display: inline-block;
  margin: 40px auto 0;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  background-color: #00aaff;
  border: 1px solid #00aaff;
  border-radius: 12px;
  cursor: pointer;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  display: block; /* center horizontally */
}

.back-button:hover {
  background-color: #008ecc;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Responsive adjustments */

/* Medium screens: tablets */
@media (max-width: 1024px) {
  .back-button {
    padding: 10px 20px;
    font-size: 0.95rem;
  }
}

/* Small screens: mobile portrait */
@media (max-width: 768px) {
  .back-button {
    padding: 9px 18px;
    font-size: 0.9rem;
  }
}

/* Very small screens: small phones */
@media (max-width: 480px) {
  .back-button {
    padding: 8px 16px;
    font-size: 0.85rem;
  }
}

.blog-skeleton {
  animation: pulse 1.5s infinite;
}
.skeleton-title {
  width: 60%;
  height: 28px;
  background: #e0e0e0;
  margin-bottom: 12px;
  border-radius: 6px;
}
.skeleton-meta {
  width: 40%;
  height: 16px;
  background: #e0e0e0;
  margin-bottom: 16px;
  border-radius: 6px;
}
.skeleton-image {
  width: 100%;
  height: 200px;
  background: #e0e0e0;
  margin-bottom: 16px;
  border-radius: 12px;
}
.skeleton-content .skeleton-line {
  width: 100%;
  height: 14px;
  background: #e0e0e0;
  margin-bottom: 8px;
  border-radius: 6px;
}
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.4; }
  100% { opacity: 1; }
}


/* Blog page light mode (default) */
.blog-post {
  background: #fff;
  color: #222; /* dark text on light bg */
  border-radius: 10px;
  padding: 20px;
  transition: background 0.3s, color 0.3s;
}

.blog-content {
  color: #222; /* normal text */
  line-height: 1.7;
}

.blog-content a {
  color: #0077ff;
  text-decoration: underline;
}

.blog-content a:hover {
  color: #ff6600;
}

.post-meta {
  color: #555;
}

.back-button {
  background: #0077ff;
  color: white;
  border-radius: 5px;
  padding: 10px 15px;
  cursor: pointer;
}

.back-button:hover {
  background: #005ecc;
}

/* Blog page dark mode */
[data-theme="dark"] .blog-post {
  background: #121212; /* dark background */
  color: #e0e0e0; /* readable light text */
}

[data-theme="dark"] .blog-content {
  color: #e0e0e0; /* main text readable */
}

[data-theme="dark"] .blog-content a {
  color: #4da3ff;
}

[data-theme="dark"] .blog-content a:hover {
  color: #ffa366;
}

[data-theme="dark"] .post-meta {
  color: #aaa;
}

[data-theme="dark"] .back-button {
  background: #333;
  color: #eee;
}

[data-theme="dark"] .back-button:hover {
  background: #555;
}

/* Blog Post Title (Light mode default) */
.blog-post h1,
.blog-title {
  color: var(--text);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
}

/* Blog Post Title (Dark mode override) */
:root[data-theme="dark"] .blog-post h1,
:root[data-theme="dark"] .blog-title {
  color: #ffffff;  /* force white in dark mode */
}

