/* RESET */
html, body {
    height: 100%;
    margin: 0;
        overflow: hidden;   /* ⭐ REQUIRED */
    font-family: 'Segoe UI', sans-serif;
}


/* THEME VARIABLES */
:root {
    --bg: #0f172a;
    --panel: #020617;
    --text: #e5e7eb;
    --accent: #38bdf8;
}

body.light {
    --bg: #f8fafc;
    --panel: #ffffff;
    --text: #020617;
    --accent: #2563eb;
}

/* GLOBAL */
body {
    background: var(--bg);
    color: var(--text);
}

/* TOP BAR */
.topbar {
    height: 60px;
    background: var(--panel);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 25px;
     position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.15);
}

.title span {
    display: block;
    font-size: 13px;
    opacity: 0.7;
}
/* ===== NAVBAR TITLE RESPONSIVE ===== */

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

}

/* Profile image */
.title-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    display: none;              /* hidden on desktop */
    border: 2px solid var(--accent);
    cursor: pointer;
        transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.title-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 3px rgba(56,189,248,0.35);
}
/* Desktop text */
.title-text b {
    font-size: 15px;
     cursor: pointer;
      transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.title-text span {
    display: block;
    font-size: 13px;
    opacity: 0.7;
}

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

    /* Show avatar */
    .title-avatar {
        display: block;
    }

    /* Hide text */
    .title-text {
        display: none;
    }
}

.actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.actions .icon {
    color: var(--accent);
    font-size: 18px;
}

.btn {
    padding: 6px 12px;
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
}

/* LAYOUT */
.app-container {
    margin-top: 60px;   /* navbar height */
    margin-left: 70px;  /* sidebar width */

    height: calc(100vh - 60px);
    display: flex;
}


/* SIDEBAR */
.sidebar {
  position: fixed;
    top: 60px; /* height of topbar */
    left: 0;
    height: calc(100vh - 60px);
    width: 70px;
    background: var(--panel);
    padding: 15px 10px;
    border-right: 1px solid rgba(0,0,0,0.15);
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu li {
    position: relative;
    padding: 14px;
    margin-bottom: 8px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
}

.menu li i {
    font-size: 20px;
    color: var(--text);
}

.menu li:hover {
    background: rgba(255,255,255,0.08);
}

body.light .menu li:hover {
    background: rgba(0,0,0,0.06);
}

/* ACTIVE */
.menu li.active {
    background: var(--accent);
}

.menu li.active i {
    color: var(--panel);
}

/* TOOLTIP */
.menu li::after {
    content: attr(data-label);
    position: absolute;
    left: 85px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--panel);
    color: var(--text);
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.menu li:hover::after {
    opacity: 1;
}
.menu li:focus {
    outline: none;
    background: rgba(56,189,248,0.25);
}

body.light .menu li:focus {
    background: rgba(37,99,235,0.2);
}

/* CONTENT */
.content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
    background: var(--bg);
    scroll-behavior: smooth;

}


@keyframes fade {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* CARDS */
.card {
    background: var(--panel);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.highlight {
    color: var(--accent);
}
/* ===== SKILL BARS ===== */

.skill {
    margin-bottom: 20px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 14px;
}

.skill-name {
    font-weight: 600;
}

.skill-percent {
    opacity: 0.8;
}

.skill-bar {
    height: 10px;
    width: 100%;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    overflow: hidden;
}

body.light .skill-bar {
    background: rgba(0,0,0,0.1);
}

.skill-progress {
    height: 100%;
    width: 0;
    background: linear-gradient(
        90deg,
        var(--accent),
        #22d3ee
    );
    border-radius: 8px;
    transition: width 1.2s ease;
}
/* ===== ABOUT SECTION ===== */

.about-layout {
    display: flex;
    gap: 30px;
    align-items: center;
}

.about-image img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--accent);
}

.about-content {
    flex: 1;
}

.about-content .subtitle {
    opacity: 0.75;
    margin-bottom: 12px;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.about-list li {
    margin-bottom: 6px;
}

/* Buttons */
.about-actions {
    margin-top: 18px;
    display: flex;
    gap: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    .about-layout {
        flex-direction: column;
        text-align: center;
    }

    .about-actions {
        justify-content: center;
    }
}
.exp-item h4,
.project-item h4 {
    margin-bottom: 4px;
}

.exp-duration {
    font-size: 13px;
    opacity: 0.7;
}

.project-item ul,
.exp-item ul {
    margin-top: 8px;
}
/* ===== FOOTER ===== */


body.light .footer {
    border-top: 1px solid rgba(0,0,0,0.1);
}

.footer-note {
    margin-top: 6px;
    font-size: 13px;
    opacity: 0.75;
}

.footer-ack {
    margin-top: 4px;
    font-size: 12px;
    opacity: 0.65;
}
.form-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.2);
    background: transparent;
    color: var(--text);
}

body.light .form-input {
    border: 1px solid rgba(0,0,0,0.2);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
}
/* ===== FILTER BUTTONS ===== */
.gallery-filters {
    display: flex;
    gap: 10px;
    margin: 15px 0 25px;
}

.filter-btn {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    cursor: pointer;
    font-size: 14px;
}

.filter-btn.active {
    background: var(--accent);
    color: #000;
}

/* ===== LAZY IMAGE EFFECT ===== */
.lazy-img {
    filter: blur(12px);
    transform: scale(1.05);
    transition: filter 0.6s ease, transform 0.6s ease;
}

.lazy-img.loaded {
    filter: blur(0);
    transform: scale(1);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h3 {
    color: #fff;
}
/* ===== ABOUT UNIQUE DESIGN ===== */

.about-wrapper {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 30px;
}

/* PROFILE CARD */
.about-profile {
  background: var(--panel);
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.05);
}

.about-profile img {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  margin-bottom: 15px;
}

.about-profile h3 {
  margin: 10px 0 4px;
}

.about-profile .role {
  font-size: 14px;
  opacity: 0.75;
  margin-bottom: 18px;
}

/* QUICK STATS */
.quick-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.quick-stats div {
  text-align: center;
}

.quick-stats span {
  display: block;
  font-weight: bold;
  color: var(--accent);
}

.quick-stats small {
  font-size: 12px;
  opacity: 0.7;
}

.btn.full {
  width: 100%;
}

/* RIGHT SIDE */
.about-details h2 {
  margin-bottom: 12px;
}

.section-title {
  margin: 25px 0 12px;
}

/* SKILLS */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.skill-box span {
  font-size: 14px;
}

.skill-box .bar {
  height: 8px;
  background: rgba(255,255,255,0.15);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 6px;
}

body.light .skill-box .bar {
  background: rgba(0,0,0,0.12);
}

.skill-box .bar div {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #22d3ee);
  border-radius: 6px;
}

/* TAGS */
.tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-group span {
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(56,189,248,0.15);
  color: var(--accent);
  font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .about-wrapper {
    grid-template-columns: 1fr;
  }
}
/* ===== EXPERIENCE TIMELINE ===== */

.section-heading {
  margin: 30px 0 15px;
}

.timeline-wrapper {
  max-width: 1100px;
}

.timeline {
  position: relative;
  padding-left: 30px;
  margin-bottom: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--accent), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 30px;
}

.timeline-item .dot {
  position: absolute;
  left: -2px;
  top: 10px;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: 50%;
}

.timeline-card {
  background: var(--panel);
  padding: 20px;
  border-radius: 14px;
  margin-left: 25px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.timeline-date {
  font-size: 13px;
  opacity: 0.7;
  display: block;
  margin-bottom: 6px;
}

/* Highlight current role */
.highlight-item .timeline-card {
  border-left: 4px solid var(--accent);
}

/* BADGES */
.badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.badge-group span {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 14px;
  background: rgba(56,189,248,0.15);
  color: var(--accent);
}

/* PROJECTS */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--panel);
  padding: 18px;
  border-radius: 14px;
  transition: transform 0.3s ease;
}

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

.project-card .tech {
  font-size: 13px;
  opacity: 0.7;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .timeline {
    padding-left: 20px;
  }

  .timeline-card {
    margin-left: 20px;
  }
}
/* ===== HOME HERO ===== */

.home-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* HERO TEXT */
.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(56,189,248,0.15);
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 14px;
}

.hero-subtitle {
  font-size: 18px;
  opacity: 0.8;
  margin-bottom: 14px;
}

.hero-desc {
  max-width: 520px;
  line-height: 1.6;
  opacity: 0.9;
}

.hero-actions {
  margin-top: 25px;
  display: flex;
  gap: 15px;
}

.btn.primary {
  background: var(--accent);
  color: var(--panel);
}

/* STATS */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.stat-card {
  background: var(--panel);
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.stat-card h3 {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 4px;
}

.stat-card p {
  font-size: 13px;
  opacity: 0.75;
}

/* SERVICES */
.home-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-bottom: 35px;
}

.service-card {
  background: var(--panel);
  padding: 24px;
  border-radius: 18px;
  transition: transform 0.3s ease;
}

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

.service-card i {
  font-size: 26px;
  color: var(--accent);
  margin-bottom: 10px;
}

.service-card h4 {
  margin-bottom: 8px;
}

/* TECH STRIP */
.home-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-tech span {
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.08);
  font-size: 13px;
}

body.light .home-tech span {
  background: rgba(0,0,0,0.08);
}

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

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* === GAMES SECTION === */
.games-section {
  max-width: 900px;
  margin: auto;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.game-card {
  background: linear-gradient(145deg, #0f172a, #020617);
  border-radius: 14px;
  padding: 22px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.game-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.4);
  border-color: var(--accent);
}

.game-icon {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.game-card h3 {
  margin: 8px 0 5px;
}

.game-card p {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 15px;
}

.play-btn {
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--accent);
  letter-spacing: 0.5px;
}

/* Mobile */
@media (max-width: 600px) {
  .game-card {
    text-align: center;
  }
}
@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .app-container {
        margin-left: 0;
    }
}
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 22px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
}
.mobile-sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    width: 220px;
    height: calc(100vh - 60px);
    background: var(--panel);
    padding: 15px;
    z-index: 1200;

    transform: translateX(-100%);
    transition: transform 0.25s ease;
}

.mobile-sidebar.open {
    transform: translateX(0);
}

.mobile-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-sidebar li {
    padding: 14px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    font-size: 15px;
}

.mobile-sidebar li:hover {
    background: rgba(56,189,248,0.15);
    color: var(--accent);
}

