/* ----------------------------------
   ROOT THEME VARIABLES
---------------------------------- */
:root {
  --bg: #ffffff;
  --text: #111;
  --card: #ffffff;
  --border: #ddd;
  --accent: #000;
  --button-bg: #000000;        /* button background (light mode) */
  --button-text: #ffffff;      /* button text (light mode) */
  --panel-width: 360px;
  /* LIGHT MODE TEXTURES */
  --texture1: rgba(0,0,0,0.04);
  --texture2: rgba(0,0,0,0.02);
  --footer-bg: #eaeaea;  /* light grey for contrast */
  --footer-text: #111;
  --footer-muted: #555;
  --footer-border: #ccc;
}

/* ----------------------------------
   DARK MODE VARIABLES
---------------------------------- */
body.dark {
  --bg: #0d0d0d;
  --text: #f5f5f5;
  --card: #111111;
  --border: #333;
  --accent: #fff;
  --button-bg: #ffffff;        /* button background (dark mode) */
  --button-text: #000000;      /* button text (dark mode) */
  --texture1: rgba(255,255,255,0.05);
  --texture2: rgba(255,255,255,0.03);
  --footer-bg: #111;     /* darker than project cards */
  --footer-text: #f2f2f2;
  --footer-muted: #aaa;
  --footer-border: #444;
}

/* Initial state for all sections */
.section-animate {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s ease-out;
}

/* Animate into view */
.section-animate.show {
    opacity: 1;
    transform: translateY(0);
}


/* ----------------------------------
   GLOBAL BODY
---------------------------------- */
/* GLOBAL BODY — SAME GRID IN BOTH MODES */
body {
    margin: 0;
    padding: 0;
    font-family: Poppins, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    transition: 0.35s ease-in-out;

    /* PREMIUM GRID BOXES (APPLIED TO BOTH LIGHT & DARK) */
    background-image:
        linear-gradient(to right, var(--texture1) 1px, transparent 1px),
        linear-gradient(to bottom, var(--texture1) 1px, transparent 1px),
        radial-gradient(circle at top, var(--texture2), transparent);
    background-size: 45px 45px, 45px 45px, 100% 260px;
}

/* DARK MODE — ONLY COLOR VARIABLES CHANGE */
body.dark {
    background-image:
        linear-gradient(to right, var(--texture1) 1px, transparent 1px),
        linear-gradient(to bottom, var(--texture1) 1px, transparent 1px),
        radial-gradient(circle at top, var(--texture2), transparent);
}


/* ----------------------------------
   HEADER
---------------------------------- */
.header {
    padding: 18px 0;
    border-bottom: 2px solid var(--border);
    background: var(--bg);
    position: sticky;
    top: 0;
    backdrop-filter: blur(10px);
    z-index: 100;
}

.container {
    width: 92%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* NAVBAR */
nav a {
    margin-left: 25px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding-bottom: 4px;
    transition: 0.3s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
    border-radius: 10px;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

/* Knob & track */
.theme-toggle {
    margin-left: 25px;
    width: 52px;
    height: 28px;
    border-radius: 30px;
    background: #000; /* 🔥 light mode = black track */
    border: 1px solid #000000;
    cursor: pointer;
    position: relative;
    padding: 0;
    transition: background 0.3s ease, border-color 0.3s ease;
}

/* Knob */
.theme-toggle > .toggle-knob {
    position: absolute;
    top: 3px;
    left: 4px; /* light = left */
    width: 22px;
    height: 22px;
    border-radius: 50%;
    transition: left 0.3s ease, background 0.3s ease;
    background: transparent; /* knob transparent */
}

/* Move knob for dark */
body.dark .theme-toggle > .toggle-knob {
    left: 26px;
}

/* Track color for dark mode */
body.dark .theme-toggle {
    background: #fff;  /* 🔥 dark mode = white track */
    border-color: #444;
}

/* Icons inside knob */
.toggle-knob svg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 18px;  /* bigger solid icon */
    height: 18px;
    transform: translate(-50%, -50%);
    transition: fill 0.3s ease;
}

/* LIGHT MODE: fully solid icons */
.moon-icon {
    fill: #000;   /* black moon */
}
.sun-icon {
    fill: #fff;   /* white sun */
}

/* DARK MODE: fully solid icons */
body.dark .moon-icon {
    fill: #fff;   /* white moon */
}
body.dark .sun-icon {
    fill: #000;   /* black sun */
}

/* ----------------------------------
   MERGED HERO SECTION
---------------------------------- */
.merged-section {
    padding: 70px 20px;
    text-align: center;
    max-width: 760px;
    margin: auto;
}

.merged-section h2 {
    font-size: 36px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
}

.merged-section .subtitle {
    margin-top: 12px;
    font-size: 18px;
    opacity: 0.85;
}

.merged-section .about-text {
    margin-top: 22px;
    font-size: 16px;
    line-height: 1.55;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.92;
}

/* ABOUT BUTTONS */
.about-buttons {
    margin-top: 26px;
    display: flex;
    justify-content: center;
    gap: 18px;
}

.about-btn {
    padding: 10px 26px;
    border-radius: 0;
    font-weight: 700;
    background: #000;
    color: #fff;
    border: 1px solid #000;
    text-decoration: none;
    transition: 0.25s ease;
}

.about-btn:hover {
    background: #fff;
    color: #000;
    border-color: #000;
    transform: translateY(-2px);
}

/* Dark mode BTN */
body.dark .about-btn {
    background: #fff;
    color: #000;
    border-color: #fff;
}

body.dark .about-btn:hover {
    background: #000;
    color: #fff;
    border-color: #fff;
    transform: translateY(-2px);
}

/* ------------------------------
   OVERVIEW / STATS SECTION
------------------------------ */
.overview-section {
    padding: 10px 20px;           /* slightly less padding */
    text-align: center;
    background: inherit;          /* use page background */
    color: #000;
    font-family: 'Roboto', sans-serif;
}

.overview-section .section-title {
    font-size: 28px;              /* slightly smaller title */
    font-weight: 700;
    margin-bottom: 40px;
}

.overview-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px;
    max-width: 1000px;
    margin: auto;
}

.overview-item {
    flex: 1 1 150px;
    min-width: 130px;
    transition: transform 0.3s ease;
}

.overview-item:hover {
    transform: translateY(-3px);   /* subtle hover lift */
}

.overview-number {
    font-size: 36px;              /* smaller numbers */
    font-weight: 700;
    margin-bottom: 8px;
}

.overview-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

/* ------------------------------
   DARK MODE
------------------------------ */
body.dark .overview-section {
    background: inherit;          /* match page dark background */
    color: #fff;
}

body.dark .overview-number,
body.dark .overview-label {
    color: #fff;
}

/* ===============================
   SECTION
================================ */

.skills-section {
  padding: 120px 20px;
  max-width: 1200px;
  margin: auto;
}

/* TITLE */
.skills-main-title {
  text-align: center;
  font-size: 38px;
  margin-bottom: 70px;
  color: var(--text);
}

/* LAYOUT */
.skills-container {
  display: grid;
  grid-template-columns: 1.1fr 80px 1.4fr;
  align-items: start;
}

/* LEFT */
.skills-left {
  max-width: 420px;
}

.skills-desc {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  opacity: 0.85;
}

.brace {
  font-size: 34px;
  color: var(--accent);
  display: block;
}

.brace.top { margin-bottom: 10px; }
.brace.bottom { margin-top: 10px; }

/* DIVIDER */
.skills-divider {
  width: 3px;
  height: 300px;
  background: var(--border);
  margin: auto;
  border-radius: 4px;
  position: relative;
}

.skills-divider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  filter: blur(12px);
  opacity: 0.6;
}

/* RIGHT SIDE GRID */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 50px;
}

/* LIST */
.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  font-size: 16px;
  color: var(--text);
}

/* ICON SIZE */
.skills-list img {
  width: 44px;
  height: 44px;
}

/* DARK MODE SWITCH */
.icon-dark { display: none; }

body.dark .icon-light { display: none; }
body.dark .icon-dark { display: inline-block; }

/* RESPONSIVE */
@media (max-width: 1000px) {
  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .skills-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .skills-divider {
    display: none;
  }

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

  .skills-left {
    text-align: center;
    margin: auto;
  }
}
/* ===============================
   ACHIEVEMENT CTA
================================ */

.overview-cta {
  margin-top: 40px;
  text-align: center;
}

/* BASE BUTTON */
.achievement-btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 0; /* square */
  transition: background 0.25s ease, color 0.25s ease;
}

/* ===============================
   LIGHT MODE
================================ */

/* Default: BLACK */
body:not(.dark) .achievement-btn {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* Hover: WHITE */
body:not(.dark) .achievement-btn:hover {
  background: #fff;
  color: #000;
}

/* ===============================
   DARK MODE
================================ */

/* Default: WHITE */
body.dark .achievement-btn {
  background: #fff;
  color: #000;
  border-color: #fff;
}

/* Hover: BLACK */
body.dark .achievement-btn:hover {
  background: #000;
  color: #fff;
}

/* ===============================
   ACTIVE
================================ */

.achievement-btn:active {
  opacity: 0.85;
}

/* ===============================
   CERTIFICATES / COURSES SECTION
================================= */
.certificates-section {
    padding: 60px 20px;
    text-align: center;
    max-width: 1100px;
    margin: auto;
}

.certificates-section .section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.certificates-section .section-subtitle {
    font-size: 16px;
    opacity: 0.7;
    margin-bottom: 40px;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 28px;
    justify-items: center;
}

.certificate-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0px;
    padding: 16px;
    transition: 0.3s ease;
    text-align: center;
}


.certificate-card img {
    width: 100%;
    height: 140px;
    object-fit: contain;
    margin-bottom: 12px;
}

.certificate-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--accent);
}

.certificate-card p {
    font-size: 14px;
    opacity: 0.8;
}

/* =================================
   CERTIFICATE FULLSCREEN PREVIEW
================================= */

.certificate-img {
    cursor: zoom-in;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.certificate-img:hover {
    transform: scale(1.03);
    opacity: 0.9;
}

/* Modal background */
.certificate-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.88);

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

    padding: 30px;
    box-sizing: border-box;

    z-index: 10000;
}

/* Open state */
.certificate-modal.active {
    display: flex;
}

/* Certificate image inside modal */
.certificate-modal-content {
    width: 100%;
    height: 100%;

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

    overflow: auto;
}

.certificate-modal-content img {
    max-width: 95%;
    max-height: 92vh;

    width: auto;
    height: auto;

    object-fit: contain;

    background: #fff;

    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Close button */
.certificate-close {
    position: absolute;

    top: 20px;
    right: 25px;

    width: 45px;
    height: 45px;

    border: none;
    border-radius: 50%;

    background: #fff;
    color: #000;

    font-size: 25px;
    font-weight: bold;

    cursor: pointer;

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

    z-index: 10001;

    transition: 0.25s ease;
}

.certificate-close:hover {
    background: #000;
    color: #fff;
    transform: rotate(90deg);
}

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

    .certificate-modal {
        padding: 15px;
    }

    .certificate-modal-content img {
        max-width: 100%;
        max-height: 85vh;
    }

    .certificate-close {
        top: 12px;
        right: 12px;

        width: 40px;
        height: 40px;

        font-size: 22px;
    }
}


/* DARK MODE */
body.dark .certificate-card {
    border-color: rgba(255,255,255,0.12);
    background: var(--card);
}

body.dark .certificate-card h3,
body.dark .certificate-card p {
    color: #fff;
}

body.dark .certificate-card:hover {
    border-color: #fff;
}

/* ===============================
   BLOG SECTION
================================ */

.blog-section {
    padding: 70px 20px;
    max-width: 1100px;
    margin: auto;
    text-align: center;
}

.blog-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

/* BLOG CARD */

.blog-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0px; /* sharp edges */
    padding: 18px;
    text-align: left;
}

/* IMAGE */

.blog-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 0px;
    margin-bottom: 14px;
}

/* TITLE */

.blog-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text);
}

/* DESCRIPTION */

.blog-card p {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 14px;
}

/* REDIRECTION LINK */

.blog-link {
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    color: var(--accent);
    display: inline-block;
}

/* subtle hover only on text */

.blog-link:hover {
    text-decoration: underline;
}

/* PROJECT SECTION ---------------------------------------------*/
.project-section {
    padding: 0 20px;
    margin-top: 40px;
}

.section-title {
    text-align: center;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 22px;
    color: var(--text);
}

/* SLIDER WRAPPER ---------------------------------------------*/
.project-slider-wrap {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 50px;
}

/* SLIDER */
.project-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 8px 0;
    scrollbar-width: none;
}

.project-slider::-webkit-scrollbar {
    display: none;
}

/* CARD --------------------------------------------------------*/
.project-card {
    min-width: 260px;
    max-width: 260px;
    background: var(--card);
    color: var(--text);
    padding: 16px;
    border-radius: 0px;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: 0.3s ease;
    scroll-snap-align: start;
    transform: translateY(0px);
}

body.dark .project-card {
    border-color: rgba(255,255,255,0.12);
    box-shadow: 0 4px 12px rgba(255,255,255,0.05);
}


/* IMAGE --------------------------------------------------------*/
.project-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 0px;
    margin-bottom: 14px;
    border: 1px solid rgba(0,0,0,0.08);
}

body.dark .project-img {
    border-color: rgba(255,255,255,0.12);
}

/* TITLE + DESC -------------------------------------------------*/
.project-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.project-desc {
    font-size: 13px;
    opacity: 0.85;
    margin-bottom: 12px;
    line-height: 1.45;
}

/* TAGS ---------------------------------------------------------*/
.tags span {
    display: inline-block;
    padding: 5px 10px;
    background: rgba(0,0,0,0.06);
    color: var(--text);
    font-size: 11px;
    border-radius: 0px;
    margin-right: 5px;
    margin-bottom: 5px;
    border: 1px solid rgba(0,0,0,0.08);
}

body.dark .tags span {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.15);
}

/* VIEW BUTTON --------------------------------------------------*/
.view-btn {
    width: 100%;
    padding: 10px;
    border-radius: 0px;
    border: 1px solid var(--accent);
    background: var(--button-bg);
    color: var(--button-text);
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: 0.25s ease;
}

/* LIGHT MODE hover */
body:not(.dark) .view-btn:hover {
    background: #fff !important;
    color: #000 !important;
    border-color: #000 !important;
}

/* DARK MODE hover */
body.dark .view-btn:hover {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

/* ARROW BUTTONS ------------------------------------------------*/
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 0px;
    background: #000;
    color: #fff;
    border: 1px solid #000;
    font-size: 22px;
    font-weight: 900;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 20;
    transition: 0.25s ease;
}

/* Light mode hover */
body:not(.dark) .slider-btn:hover {
    background: #fff;
    color: #000;
    border-color: #000;
}

/* Dark Mode */
body.dark .slider-btn {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* Dark mode hover */
body.dark .slider-btn:hover {
    background: #000 !important;
    color: #fff !important;
    border-color: #fff !important;
}

/* Positions */
.slider-btn.left {
    left: 5px;
}

.slider-btn.right {
    right: 5px;
}

/* MOBILE -------------------------------------------------------*/
@media (max-width: 480px) {
    .project-card {
        min-width: 230px;
        max-width: 230px;
    }
}

/* ──────────────── CHAT SIDEBAR ──────────────── */
.chat-launch{
  position:fixed;
  right:24px;
  bottom:24px;
  width:58px;
  height:58px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--button-bg);
  color:var(--button-text);
  border:none;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(0,0,0,0.22);
  z-index:9999;
  font-size:24px;
  transition:transform .25s ease;
}
.chat-launch:hover{
  transform:scale(1.07);
}

#ai-sidebar{
  position:fixed;
  right:24px;
  top: 45px;
  bottom:90px;
  width:360px;
  height:520px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:0 12px 40px rgba(0,0,0,0.25);
  display:none;
  flex-direction:column;
  overflow:hidden;
  z-index:9998;
  opacity:0;
  transform:translateY(30px);
  transition:opacity .25s ease, transform .25s ease;
}
#ai-sidebar.open{
  display:flex;
  opacity:1;
  transform:translateY(0);
}

.ai-header{
  padding:14px 16px;
  font-weight:700;
  background:var(--card);
  border-bottom:1px solid var(--border);
  font-size:17px;
  color:var(--text);
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.close-chat{
  background:none;
  border:none;
  font-size:20px;
  cursor:pointer;
  color:var(--text);
}

.ai-notice {
    background: rgba(255, 193, 7, 0.12);
    color: #b66a00;
    padding: 10px 14px;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 10px;
}


/* Dark Mode */
body.dark .ai-notice {
    background: #3a3000;
    color: #ffcc66;
    border-left-color: #ffcc00;
}



.ai-messages{
  flex:1;
  padding:16px;
  overflow-y:auto;
  background:var(--bg);
  scroll-behavior:smooth;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.ai-msg{
  align-self:flex-start;
  max-width:80%;
  padding:12px 14px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:12px 12px 12px 4px;
  font-size:14.5px;
  color:var(--text);
  line-height:1.45;
}

.user-msg{
  align-self:flex-end;
  max-width:80%;
  padding:12px 14px;
  background:var(--button-bg);
  color:var(--button-text);
  border-radius:12px 12px 4px 12px;
  font-size:14.5px;
  line-height:1.45;
}


.ai-input {
  padding: 20px;
  display: flex;
  gap: 10px;
  border-top: 1px solid var(--border);
  background: var(--card);
}

.ai-input input {
  flex: 1;
  padding: 12px;
  border-radius: 0px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14.5px;
  outline: none;
  transition: 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.send-btn {
  padding: 12px 18px;
  border-radius: 0px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  cursor: pointer;
  font-weight: 700;
  transition: 0.25s ease, transform 0.2s ease, border-color 0.25s ease;
}

.send-btn:hover {
  background: var(--card);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

body.dark .send-btn {
  background: var(--accent);
  color: #000;
  border: 1px solid var(--accent);
}

body.dark .send-btn:hover {
  background: #000;
  color: #fff;
  border-color: #fff;
  transform: translateY(-2px);
}

.ai-input input:focus {
  border-color: var(--accent);
  background: var(--card);
  color: var(--text);
}

#ai-sidebar {
    display: none;
}
#ai-sidebar.open {
    display: flex;
}

/* =======================
   FOOTER GLOBAL STYLES
======================= */
footer {
    background: #ffffff; /* Light mode */
    color: var(--footer-text);
    padding: 80px 0 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    transition: 0.3s ease;
    font-family: 'Inter', sans-serif;
}

body.dark footer {
    background: #000000;
}

footer::before {
    content: "";
    display: block;
    width: 100%;
    height: 2px;
    background: rgba(0,0,0,0.15);
    margin-bottom: 40px;
    border-radius: 3px;
}

body.dark footer::before {
    background: rgba(255,255,255,0.15);
}

/* =======================
   FOOTER CONTAINER
======================= */
.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* Connect column on left */
.connect-column {
    flex: 0; /* don't grow */
}

/* Wrapper for middle + right columns */
.footer-right-wrapper {
    display: flex;
    gap: 40px;
    margin-left: auto; /* pushes everything inside to the right */
}

/* Footer Columns */
.footer-column {
    min-width: 150px;
}

/* Headings */
.footer-column h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--footer-text);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    text-transform: none;
}

/* Links */
.footer-column a {
    display: block;
    text-decoration: none;
    color: var(--footer-muted);
    margin: 10px 0;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.footer-column a:hover {
    color: var(--accent);
    transform: translateX(3px);
}

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

.icon-img {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.icon-img:hover {
    transform: scale(1.1);
    opacity: 0.85;
}

/* Footer bottom */
.footer-bottom {
    width: 100%;
    text-align: center;
    margin-top: 55px;
    padding-top: 20px;
    font-size: 13px;
    color: var(--footer-muted);
    border-top: 1px solid rgba(0,0,0,0.1);
    transition: 0.3s ease;
}

body.dark .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
}

.hamburger {
    display: none;
}

.mobile-nav {
    display: none;
}

@media (max-width: 768px) {

  /* ===================== MOBILE HEADER / NAV ===================== */

  .hamburger {
      display: block;
      cursor: pointer;
      font-size: 28px;
      margin-right: 15px;
  }

  /* Hide Desktop Nav */
  nav, 
  .nav-right nav {
      display: none !important;
  }
  /* -------------------------------
   MOBILE DARK MODE NAV
    ---------------------------------*/
    body.dark .mobile-nav {
        background: var(--card); /* dark background */
    }

    body.dark .mobile-nav a {
        color: var(--text); /* white text */
    }

    body.dark .mobile-nav a:hover {
        background: var(--accent); /* hover background in dark mode */
        color: var(--bg);           /* hover text in dark mode */
    }

    body.dark .mobile-close {
        color: var(--text); /* close button white */
    }

    body.dark .mobile-close:hover {
        color: var(--accent); /* hover color for close button */
    }

  /* Mobile Nav Dropdown */
  .mobile-nav {
      display: none;
      flex-direction: column;
      background: #fff;
      position: fixed;
      top: 60px;
      left: 0;
      width: 100%;
      padding: 10px 0;
      border-bottom: 1px solid #ccc;
      z-index: 9999 !important;
  }

  .mobile-nav.open {
      display: flex;
  }

  .mobile-nav a {
      padding: 12px 20px;
      color: #000;
      font-weight: 600;
      text-decoration: none;
      border-top: 1px solid #eee;
  }

  .mobile-nav a:first-child {
      border-top: none;
  }

  .mobile-nav a:hover {
      background: #000;
      color: #fff;
      transition: 0.2s ease;
  }

  .mobile-close {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text);
    text-align: right;
    width: 100%;
    padding: 10px 20px;
    cursor: pointer;
}

.mobile-close:hover {
    color: var(--accent);
}

  /* ===================== HERO / MERGED SECTION ===================== */
  .merged-section {
      padding: 50px 15px;
      text-align: center;
      max-width: 100%;
      margin: auto;
  }

  .merged-section h2 {
      font-size: 28px;
  }

  .merged-section .subtitle {
      font-size: 16px;
  }

  .merged-section .about-text {
      font-size: 14px;
      max-width: 100%;
      margin: auto;
  }
    
  .project-card {
    min-width: 160px;
  }

  .about-buttons {
      flex-direction: column;
      gap: 12px;
  }

  .about-btn {
      width: 100%;
      text-align: center;
      padding: 10px 26px;
      border-radius: 0;
      font-weight: 700;
      background: #000;
      color: #fff;
      border: 1px solid #000;
      text-decoration: none;
      transition: 0.25s ease;
  }

  .about-btn:hover {
      background: #fff;
      color: #000;
      border-color: #000;
      transform: translateY(-2px);
  }

  /* ===================== SKILLS SECTION ===================== */
  .skills-section {
      padding: 25px 15px;
      max-width: 100%;
      text-align: center;
  }

  .section-title {
      font-size: 28px;
  }

  .section-subtitle {
      font-size: 16px;
  }

  .skills-text-strips {
      max-width: 100%;
      padding: 0 5px;
      margin: 40px 0;
  }

  .skill-line {
      font-size: 14px;
  }

  .skill-title {
      font-size: 18px;
  }

  .skill-line p {
      font-size: 13px;
  }

  /* ===================== PROJECT SLIDER ===================== */
  .project-slider-wrap {
      padding: 0 15px;
      max-width: 100%;
  }

  .project-card {
      min-width: 200px;
      max-width: 200px;
      padding: 12px;
  }

  .project-title {
      font-size: 16px;
  }

  .project-desc {
      font-size: 12px;
  }

  .tags span {
      font-size: 10px;
      padding: 4px 8px;
  }

  .view-btn {
      font-size: 12px;
      padding: 8px;
  }

  .slider-btn {
      width: 36px;
      height: 36px;
      font-size: 18px;
  }

  /* ===================== AI CHAT SIDEBAR ===================== */
  #ai-sidebar {
      width: 90%;
      max-width: 320px;
      right: 5%;            /* FIX: keep fully visible */
      left: 5%;             /* instead of translate issues */
      bottom: 70px;
      top: auto;
      height: 450px;
      position: fixed;
      z-index: 200;
  }

  .ai-messages {
      padding: 12px;
      gap: 8px;
  }

  .ai-input {
      padding: 14px;
      flex-direction: column;
  }

  .ai-input input {
      width: 100%;
      margin-bottom: 8px;
  }

  .send-btn {
      width: 100%;
      padding: 10px;
      font-size: 13px;
  }

  /* ===================== FOOTER ===================== */
   .footer-container {
        flex-direction: row;      /* horizontal layout */
        justify-content: space-between; /* spread out columns */
        flex-wrap: wrap;          /* wrap if screen is too small */
        text-align: left;
        gap: 20px;
    }

    .footer-right-wrapper {
        flex-direction: row;      /* horizontal columns */
        gap: 20px;
        margin-left: 0;
    }

    .footer-column {
        flex: 1;                  /* evenly distribute space */
        min-width: 120px;         /* avoid being too narrow */
    }

    .footer-bottom {
        text-align: center;
        margin-top: 40px;
    }
}
