:root {
    --bg-dark: #0a0a1a;
    --primary-blue: #00BFFF;
    --secondary-purple: #8A2BE2;
    --text-light: #e0e0e0;
    --text-dark: #333;
    --card-bg: #10102a;
    --border-color: rgba(0, 191, 255, 0.2); /* ✅ FIX ADDED */
    --header-font: 'Chakra Petch', sans-serif;
    --body-font: 'Poppins', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--body-font);
    line-height: 1.7;
}

/* Container */
.container {
    width: min(1200px, 90%);
    margin: auto;
}

/* Header */
.header {
    background-color: var(--bg-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--header-font);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    gap: 20px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    transition: 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-blue);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    border-radius: 3px;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
}

.hero-avatar {
    border-radius: 50%;
    border: 3px solid var(--primary-blue);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 2.4rem;
    font-family: var(--header-font);
    margin: 16px 0;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--primary-blue);
    height: 28px;
}

/* Buttons */
.cta-box {
    margin: 28px 0;
}

.cta-button {
    padding: 12px 22px;
    background-color: var(--primary-blue);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    margin-right: 12px;
    display: inline-block;
    transition: 0.3s ease;
}

.cta-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.cta-button:hover {
    opacity: 0.8;
}

/* Quick Links */
.quick-links {
    list-style: none;
    padding: 0;
    margin-top: 16px;
}

.quick-links li {
    margin: 8px 0;
}

.incore-link {
    color: var(--primary-blue);
    font-weight: 600;
}

.incore-link:hover {
    opacity: 0.8;
}

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

.section-title {
    font-size: 2rem;
    font-family: var(--header-font);
    margin-bottom: 25px;
    text-align: center;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 25px;
}

.service-card {
    background-color: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: 0.3s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,191,255,0.15);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

/* Blog Section */
.blog-list-container {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
    gap: 25px;
}

.blog-card {
    background-color: var(--card-bg);
    padding: 22px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,191,255,0.15);
}

.blog-card-content h3 {
    font-family: var(--header-font);
    margin-bottom: 8px;
}

.blog-date {
    color: #9ab;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background-color: #050512;
    padding: 40px 0;
    text-align: center;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-social a {
    color: var(--primary-blue);
    margin: 0 12px;
    font-size: 24px;
}

.footer p {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #9ab;
}

/* Fade Animation */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Mobile Fixes */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 65px;
        right: 20px;
        background-color: #0f0f27;
        padding: 20px;
        border-radius: 8px;
        width: 200px;
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }
}

/* Blog content styling */
.blog-content p {
    color: var(--text-light);
    margin: 12px 0;
}

.blog-content h1,
.blog-content h2,
.blog-content h3 {
    font-family: var(--header-font);
}

.blog-content img {
    max-width: 100%;
    border-radius: 8px;
    margin: 25px 0;
}

.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.blog-content th, 
.blog-content td {
    border: 1px solid var(--border-color);
    padding: 12px 16px;
    text-align: left;
    color: var(--text-light);
}

.blog-content th {
    background-color: rgba(0, 191, 255, 0.15);
    color: #fff;
    font-family: var(--header-font);
}
/* Typing text styling (bigger, readable) */
.typing-box {
  margin-top: 12px;
  font-size: 1.14rem;
  color: rgba(255,255,255,0.95);
  min-height: 34px;
  font-weight: 500;
  font-family: 'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, Arial;
  letter-spacing: 0.15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* Visible block cursor aligned to text height */
.typing-cursor {
  width: 10px;
  height: 1.18em;
  background: #ffdf66;
  border-radius: 2px;
  display: inline-block;
  vertical-align: middle;
  box-shadow: 0 2px 8px rgba(255,223,102,0.15);
  animation: cursorBlink 1000ms steps(2, start) infinite;
}

@keyframes cursorBlink {
  0%   { opacity: 1; transform: scaleY(1); }
  50%  { opacity: 0; transform: scaleY(0.92); }
  100% { opacity: 1; transform: scaleY(1); }
}

@media (max-width:760px) {
  .typing-box { font-size: 1.0rem; min-height: 30px; }
  .typing-cursor { width: 8px; height: 1.12em; }
}
/* ---------- Projects page: responsive image and CTA fixes ---------- */

/* Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  align-items: start;
}

/* Card */
.project-card {
  background: var(--card-bg, rgba(255,255,255,0.02));
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.35);
  transition: transform .28s ease, box-shadow .28s ease;
  border: 1px solid rgba(255,255,255,0.03);
  display: flex;
  flex-direction: column;
}
.project-card:hover { transform: translateY(-6px); box-shadow: 0 14px 36px rgba(0,0,0,0.48); }

/* Image container */
.project-media { display:block; width:100%; text-decoration:none; }
.project-img { display:block; width:100%; height:auto; object-fit:cover; }

/* Body */
.project-body { padding: 18px; display:flex; flex-direction:column; gap:12px; }
.project-body h3 { margin:0; font-size:1.15rem; }
.tech-stack { color: rgba(255,255,255,0.6); font-size:0.92rem; margin:0; }

/* Links row */
.project-links { display:flex; gap:10px; align-items:center; margin-top:auto; }

/* Live demo button (visible + accessible) */
.btn-demo {
  display:inline-block;
  background: var(--primary-blue, #00bfff);
  color: #001018;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight:600;
  text-decoration:none;
  box-shadow: 0 8px 20px rgba(0,191,255,0.10);
  transition: transform .14s ease, box-shadow .14s ease, opacity .14s ease;
}
.btn-demo:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(0,191,255,0.14); opacity:0.98; }

/* Fallback link style */
.link-underline { color: var(--link, #45c0ff); text-decoration:underline; font-weight:600; }

/* Responsive tweaks */
@media (max-width:760px) {
  .project-body { padding: 14px; }
  .project-card { border-radius:10px; }
  .section-title { font-size:1.5rem; }
  .lead { font-size:0.98rem; }
}
/* Fix hero image responsive sizing (services-hero-800.webp) */
.hero-illustration {
  width: 100%;
  height: auto;
  max-width: 900px;
  margin: 0 auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

/* Mobile tweak */
@media (max-width: 600px) {
  .hero-illustration {
    max-width: 100%;
    border-radius: 10px;
  }
}
/* ====== Projects heading color + optional gradient ====== */

/* Solid premium blue (recommended) */
.section-title.projects-title {
  color: #00b4ff; /* premium bright blue */
}

/* Optional gradient style — uncomment if you prefer premium gradient */
.section-title.projects-title.gradient {
  background: linear-gradient(90deg, #00b4ff 0%, #4dc9ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Small spacing tweak so case study headings look tidy */
.case-study h4, .case-study h5 { margin-top: 12px; margin-bottom: 8px; }
.case-study ul { margin-left: 18px; }