/**
* Template Name: MyResume
* Template URL: https://bootstrapmade.com/free-html-bootstrap-template-my-resume/
* Updated: Jun 29 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/
--------------------------------------------------------------*/
/* Fonts */
:root {
  --default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway",  sans-serif;
  --nav-font: "Poppins",  sans-serif;
}

/* Global Colors - Mountain Landscape Monochrome Palette */
:root { 
  --bg-primary: #0A0A0A;
  --bg-secondary: #141414;
  --bg-card: #1D1D1D;
  --bg-elevated: #252525;

  --text-primary: #F5F5F5;
  --text-secondary: #B0B0B0;

  --accent-primary: #F0A500;
  --accent-secondary: #B07800;

  --border-color: rgba(255,255,255,0.08);
  --shadow-color: rgba(0,0,0,0.4);

  --background-color: var(--bg-primary);
  --default-color: var(--text-primary);
  --heading-color: var(--text-primary);
  --accent-color: var(--accent-primary);
  --surface-color: var(--bg-card);
  --contrast-color: var(--text-primary);
}

/* Nav Menu Colors */
:root {
  --nav-color: var(--text-secondary);
  --nav-hover-color: var(--accent-primary);
  --nav-mobile-background-color: var(--bg-secondary);
  --nav-dropdown-background-color: var(--bg-card);
  --nav-dropdown-color: var(--text-primary);
  --nav-dropdown-hover-color: var(--accent-primary);
}

/* Color Presets - These classes override global colors when applied to any section or element, providing reuse of the sam color scheme. */

.light-background {
  --background-color: #f9f9f9;
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #060606;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #252525;
  --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--bg-primary);
  font-family: var(--default-font);
  line-height: 1.6;
}

main section {
  background-color: var(--bg-primary);
}

section,
.section {
  padding: 80px 0;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 0 15px;
  transition: all ease-in-out 0.3s;
  overflow-y: auto;
  z-index: 997;
  min-width: 200px;
}

@media (max-width: 1199px) {
  .header {
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    width: 300px;
    left: -100%;
  }
}

@media (min-width: 1200px) {
  .header~main {
    margin-left: 200px;
  }

  .header~main .hero {
    margin-left: -200px;
    width: calc(100% + 200px);
  }
}

.header.header-show {
  left: 0;
}

.header .header-toggle {
  color: var(--contrast-color);
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  cursor: pointer;
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 9999;
  transition: all 0.3s;
}

.header .header-toggle:hover {
  background: rgba(214, 214, 214, 0.1);
  border-color: rgba(214, 214, 214, 0.3);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.navmenu {
  padding: 0;
  z-index: 9997;
}

.navmenu ul {
  list-style: none;
  padding: 0 0 20px 0;
  margin: 0;
  width: 140px;
}

.navmenu a,
.navmenu a:focus {
  color: var(--nav-color);
  font-family: var(--nav-font);
  display: flex;
  align-items: center;
  padding: 10px 18px;
  margin-bottom: 8px;
  font-size: 15px;
  border-radius: 50px;
  background: color-mix(in srgb, var(--default-color), transparent 92%);
  height: 56px;
  width: 100%;
  overflow: hidden;
  transition: 0.3s;
}

.navmenu a i,
.navmenu a:focus i {
  font-size: 20px;
}

.navmenu a span,
.navmenu a:focus span {
  padding: 0 5px 0 7px;
}

@media (min-width: 992px) {

  .navmenu a,
  .navmenu a:focus {
    max-width: 56px;
  }

  .navmenu a span,
  .navmenu a:focus span {
    display: none;
  }
}

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus,
.navmenu li:hover>a {
  color: var(--contrast-color);
  background: var(--nav-hover-color);
}

.navmenu a:hover,
.navmenu li:hover>a {
  max-width: 100%;
  color: var(--contrast-color);
}

.navmenu a:hover span,
.navmenu li:hover>a span {
  display: block;
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: #2c3e50;
  font-size: 14px;
  text-align: center;
  padding: 30px 0;
  position: relative;
}

.footer h3 {
  font-size: 36px;
  font-weight: 700;
  position: relative;
  padding: 0;
  margin: 0 0 15px 0;
}

.footer p {
  font-size: 15;
  font-style: italic;
  padding: 0;
  margin: 0 0 30px 0;
}

.footer .social-links {
  margin: 0 0 30px 0;
}

.footer .social-links a {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  color: var(--contrast-color);
  line-height: 1;
  margin: 0 4px;
  border-radius: 50%;
  text-align: center;
  width: 36px;
  height: 36px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
  text-decoration: none;
}

.footer .copyright {
  padding-top: 25px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .credits {
  font-size: 13px;
  padding-top: 5px;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  --background-color: color-mix(in srgb, var(--default-color), transparent 96%);
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 20px 0;
  position: relative;
}

.page-title h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0 0 10px 0;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
}

.page-title .breadcrumbs ol li+li {
  padding-left: 10px;
}

.page-title .breadcrumbs ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  overflow: clip;
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2:before {
  content: "";
  position: absolute;
  display: block;
  width: 160px;
  height: 1px;
  background: color-mix(in srgb, var(--default-color), transparent 60%);
  left: 0;
  right: 0;
  bottom: 1px;
  margin: auto;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  padding: 80px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: grayscale(100%) contrast(1.15) brightness(0.85);
  transform-origin: center center;
  transition: transform 0.1s linear;
  will-change: transform;
}

/* Hero Overlay - Deep atmospheric gradient */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(10,10,10,0.95) 0%, transparent 70%),
    radial-gradient(ellipse 100% 60% at 50% 0%,  rgba(10,10,10,0.5) 0%, transparent 80%),
    linear-gradient(to bottom, rgba(10,10,10,0.2) 0%, rgba(10,10,10,0.55) 55%, rgba(10,10,10,0.97) 100%);
  pointer-events: none;
}

/* Edge vignette — frames the scene like a photograph */
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 110% 110% at 50% 50%,
    transparent 55%,
    rgba(0,0,0,0.35) 75%,
    rgba(0,0,0,0.75) 100%);
  pointer-events: none;
}

/* ── Stars canvas ── */
#hero-stars {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ── Fog layer base ── */
.fog-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 300%;
  z-index: 2;
  pointer-events: none;
  will-change: transform;
  --fog-push: 0px;
}

/* Fog 1 — heavy ground fog, slow drift right */
.fog-1 {
  height: 28%;
  bottom: -2%;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,80 C180,40 360,120 540,80 C720,40 900,130 1080,85 C1260,40 1380,110 1440,80 L1440,160 L0,160 Z' fill='rgba(200,200,200,0.18)'/%3E%3C/svg%3E") repeat-x bottom;
  opacity: 1;
  animation: fog-drift1 25s linear infinite;
  filter: blur(4px);
}

/* Fog 2 — mid fog, faster, slightly higher */
.fog-2 {
  height: 35%;
  bottom: 2%;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,100 C200,50 400,140 600,90 C800,40 1000,130 1200,80 C1320,50 1400,110 1440,95 L1440,180 L0,180 Z' fill='rgba(180,180,180,0.13)'/%3E%3C/svg%3E") repeat-x bottom;
  opacity: 1;
  animation: fog-drift2 35s linear infinite;
  filter: blur(8px);
}

/* Fog 3 — wispy high fog */
.fog-3 {
  height: 45%;
  bottom: 5%;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,120 C240,70 480,160 720,110 C960,60 1200,150 1440,100 L1440,200 L0,200 Z' fill='rgba(160,160,160,0.09)'/%3E%3C/svg%3E") repeat-x bottom;
  opacity: 1;
  animation: fog-drift3 50s linear infinite;
  filter: blur(14px);
}

/* Fog 4 — soft valley mist */
.fog-4 {
  height: 55%;
  bottom: 8%;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,140 C300,100 600,170 900,130 C1100,100 1300,160 1440,130 L1440,220 L0,220 Z' fill='rgba(140,140,140,0.07)'/%3E%3C/svg%3E") repeat-x bottom;
  opacity: 1;
  animation: fog-drift4 70s linear infinite;
  filter: blur(22px);
}

/* Fog 5 — high atmosphere haze */
.fog-5 {
  height: 65%;
  bottom: 15%;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,160 C360,120 720,190 1080,150 C1260,130 1380,170 1440,155 L1440,240 L0,240 Z' fill='rgba(120,120,120,0.05)'/%3E%3C/svg%3E") repeat-x bottom;
  opacity: 1;
  animation: fog-drift5 90s linear infinite;
  filter: blur(32px);
}

@keyframes fog-drift1 {
  0%   { transform: translateX(calc(0%          + var(--fog-push))); }
  100% { transform: translateX(calc(-33.33%     + var(--fog-push))); }
}
@keyframes fog-drift2 {
  0%   { transform: translateX(calc(-33.33%     + var(--fog-push))); }
  100% { transform: translateX(calc(0%          + var(--fog-push))); }
}
@keyframes fog-drift3 {
  0%   { transform: translateX(calc(0%          + var(--fog-push))); }
  100% { transform: translateX(calc(-33.33%     + var(--fog-push))); }
}
@keyframes fog-drift4 {
  0%   { transform: translateX(calc(-33.33%     + var(--fog-push))); }
  100% { transform: translateX(calc(0%          + var(--fog-push))); }
}
@keyframes fog-drift5 {
  0%   { transform: translateX(calc(0%          + var(--fog-push))); }
  100% { transform: translateX(calc(-33.33%     + var(--fog-push))); }
}

/* Hide legacy unused elements */
.light-rays,
#particles {
  display: none;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero h2 {
  margin: 0;
  font-size: 72px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #F5F5F5 0%, #B0B0B0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  margin: 12px 0 0 0;
  font-size: 28px;
  color: var(--text-secondary);
  font-weight: 300;
}

.hero p span.typed {
  letter-spacing: 0.5px;
  color: var(--accent-primary);
  border-bottom: 2px solid rgba(214, 214, 214, 0.3);
}

.hero .social-links {
  margin-top: 32px;
}

.hero .social-links a {
  font-size: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(214, 214, 214, 0.08);
  color: var(--text-secondary);
  margin-right: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero .social-links a:hover {
  transform: translateY(-2px);
}

.hero .social-links .social-link-facebook:hover {
  background: #4267B2;
  color: #ffffff;
}

.hero .social-links .social-link-linkedin:hover {
  background: #0077B5;
  color: #ffffff;
}

.hero .social-links .social-link-instagram:hover {
  background: #E1306C;
  color: #ffffff;
}

.hero .social-links .social-link-github:hover {
  background: #333333;
  color: #ffffff;
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 42px;
  }

  .hero p {
    font-size: 20px;
  }
}

/*--------------------------------------------------------------
# Section Title
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.section-title p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .content h2 {
  font-weight: 700;
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.about .content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 30px;
}

.about .content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.about .content ul li {
  margin-bottom: 16px;
  display: flex;
  align-items: flex-start;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.about .content ul li:hover {
  border-color: rgba(214, 214, 214, 0.2);
  transform: translateY(-2px);
}

.about .content ul strong {
  color: var(--accent-primary);
  margin-right: 8px;
  min-width: 80px;
  font-weight: 500;
}

.about .content ul span {
  color: var(--text-secondary);
}

.about .content ul i {
  font-size: 18px;
  margin-right: 12px;
  color: var(--accent-secondary);
  line-height: 1.2;
}

/*--------------------------------------------------------------
# Skills Section
--------------------------------------------------------------*/
.skills h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.skills p {
  color: var(--text-secondary);
  margin-bottom: 0;
}

.skills .row > div {
  margin-bottom: 24px;
}

/*--------------------------------------------------------------
# Resume Section
--------------------------------------------------------------*/
.resume .resume-title {
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.resume .resume-item {
  padding: 0 0 24px 24px;
  margin-top: -2px;
  border-left: 2px solid var(--border-color);
  position: relative;
}

.resume .resume-item::before {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  left: -7px;
  top: 0;
  background: var(--bg-card);
  border: 2px solid var(--accent-secondary);
}

.resume .resume-item h4 {
  line-height: 1.4;
  font-size: 18px;
  font-weight: 600;
  text-transform: none;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.resume .resume-item h5 {
  font-size: 14px;
  padding: 6px 12px;
  display: inline-block;
  font-weight: 500;
  margin-bottom: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--accent-primary);
}

.resume .resume-item p,
.resume .resume-item ul {
  color: var(--text-secondary);
}

.resume .resume-item ul {
  padding-left: 20px;
}

.resume .resume-item ul li {
  padding-bottom: 8px;
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio .portfolio-info {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 28px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio .portfolio-info:hover {
  border-color: rgba(214, 214, 214, 0.2);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px var(--shadow-color);
}

.portfolio .portfolio-info h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.portfolio .portfolio-info p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.portfolio .portfolio-links .btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.portfolio .portfolio-links .btn-outline-primary {
  color: var(--accent-primary);
  border-color: rgba(214, 214, 214, 0.3);
  background: transparent;
}

.portfolio .portfolio-links .btn-outline-primary:hover {
  background: #F0A500;
  border-color: var(--accent-primary);
  color: var(--bg-primary);
}

.portfolio .portfolio-links .btn-outline-success {
  color: var(--accent-primary);
  border-color: rgba(214, 214, 214, 0.3);
  background: transparent;
}

.portfolio .portfolio-links .btn-outline-success:hover {
  background: #32cd32;
  border-color: var(--accent-primary);
  color: var(--bg-primary);
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
}

.contact .info-item:hover {
  border-color: rgba(214, 214, 214, 0.2);
}

.contact .info-item i {
  font-size: 24px;
  color: var(--accent-primary);
  background: var(--bg-elevated);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  transition: all 0.3s ease;
}

.contact .info-item:hover i {
  background: rgba(214, 214, 214, 0.1);
  transform: scale(1.05);
}

.contact .info-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.contact .info-item p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.contact .btn.btn-contact-send {
  color: var(--accent-primary) !important;
  border-color: rgba(214, 214, 214, 0.3) !important;
  background-color: transparent !important;
  background: transparent !important;
  padding: 10px 20px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border-radius: 6px !important;
  transition: all 0.3s ease !important;
  border-style: solid !important;
  border-width: 2px !important;
  box-shadow: none !important;
}

.contact .btn.btn-contact-send:hover {
  background-color: #F0A500 !important;
  background: #F0A500 !important;
  border-color: var(--accent-primary) !important;
  color: var(--bg-primary) !important;
}

.contact .php-email-form .form-control {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 0.3s ease;
}

.contact .php-email-form .form-control:focus {
  border-color: #F0A500;
  box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.12);
  background: var(--bg-card);
  color: var(--text-primary);
}

.contact .php-email-form .form-control:not(:placeholder-shown) {
  color: var(--text-primary);
  background: var(--bg-card);
}

.contact .php-email-form .form-control::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
}

.footer h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.footer p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.header {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-right: 1px solid var(--border-color);
}

.navmenu ul {
  list-style: none;
  padding: 0 0 20px 0;
  margin: 0;
  width: 140px;
}

.navmenu a,
.navmenu a:focus {
  color: var(--nav-color);
  font-family: var(--nav-font);
  display: flex;
  align-items: center;
  padding: 12px 18px;
  margin-bottom: 8px;
  font-size: 14px;
  border-radius: 8px;
  background: transparent;
  height: auto;
  width: 100%;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus,
.navmenu li:hover > a {
  color: var(--nav-hover-color);
  background: rgba(214, 214, 214, 0.08);
}

.navmenu a i,
.navmenu a:focus i {
  font-size: 18px;
  margin-right: 12px;
}

.navmenu a span,
.navmenu a:focus span {
  padding: 0 5px 0 7px;
}

@media (min-width: 992px) {
  .navmenu a,
  .navmenu a:focus {
    max-width: 52px;
    padding: 14px;
    justify-content: center;
  }

  .navmenu a i,
  .navmenu a:focus i {
    margin-right: 0;
  }

  .navmenu a span,
  .navmenu a:focus span {
    display: none;
  }

  .navmenu a:hover,
  .navmenu li:hover > a {
    max-width: 100%;
  }

  .navmenu a:hover span,
  .navmenu li:hover > a span {
    display: block;
  }

  .navmenu a:hover i,
  .navmenu li:hover > a i {
    margin-right: 12px;
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-top i {
  font-size: 22px;
  color: var(--accent-primary);
  line-height: 0;
}

.scroll-top:hover {
  background: var(--bg-elevated);
  border-color: rgba(214, 214, 214, 0.3);
  transform: translateY(-4px);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Stats Section
--------------------------------------------------------------*/
.stats i {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  width: 54px;
  height: 54px;
  font-size: 24px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.stats .stats-item {
  margin-top: 10px;
  width: 100%;
  position: relative;
  text-align: center;
  z-index: 0;
}

.stats .stats-item span {
  font-size: 36px;
  display: block;
  font-weight: 700;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.stats .stats-item p {
  padding: 0;
  margin: 0;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 16px;
}

/*--------------------------------------------------------------
# Skills Section
--------------------------------------------------------------*/
.skills .progress {
  height: 60px;
  display: block;
  background: none;
  border-radius: 0;
}

.skills .progress .skill {
  color: var(--heading-color);
  padding: 0;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  display: block;
  font-weight: 600;
  font-family: var(--heading-font);
}

.skills .progress .skill .val {
  float: right;
  font-style: normal;
}

.skills .progress-bar-wrap {
  background: color-mix(in srgb, var(--default-color), transparent 90%);
  height: 10px;
}

.skills .progress-bar {
  width: 1px;
  height: 10px;
  transition: 0.9s;
  background-color: var(--accent-color);
}

/*--------------------------------------------------------------
# Resume Section
--------------------------------------------------------------*/
.resume .resume-title {
  color: var(--heading-color);
  font-size: 26px;
  font-weight: 700;
  margin-top: 20px;
  margin-bottom: 20px;
}

.resume .resume-item {
  padding: 0 0 20px 20px;
  margin-top: -2px;
  border-left: 2px solid var(--accent-color);
  position: relative;
}

.resume .resume-item h4 {
  line-height: 18px;
  font-size: 18px;
  font-weight: 600;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin-bottom: 10px;
}

.resume .resume-item h5 {
  font-size: 16px;
  padding: 5px 15px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 10px;
}

.resume .resume-item ul {
  padding-left: 20px;
}

.resume .resume-item ul li {
  padding-bottom: 10px;
}

.resume .resume-item:last-child {
  padding-bottom: 0;
}

.resume .resume-item::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50px;
  left: -9px;
  top: 0;
  background: var(--background-color);
  border: 2px solid var(--accent-color);
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio .portfolio-filters {
  padding: 0;
  margin: 0 auto 20px auto;
  list-style: none;
  text-align: center;
}

.portfolio .portfolio-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 8px 20px 10px 20px;
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 5px;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  font-family: var(--heading-font);
}

.portfolio .portfolio-filters li:hover,
.portfolio .portfolio-filters li.filter-active {
  color: var(--contrast-color);
  background-color: var(--accent-color);
}

.portfolio .portfolio-filters li:first-child {
  margin-left: 0;
}

.portfolio .portfolio-filters li:last-child {
  margin-right: 0;
}

@media (max-width: 575px) {
  .portfolio .portfolio-filters li {
    font-size: 14px;
    margin: 0 0 10px 0;
  }
}

.portfolio .portfolio-item {
  position: relative;
  overflow: hidden;
}

.portfolio .portfolio-item .portfolio-info {
  opacity: 0;
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -100%;
  z-index: 3;
  transition: all ease-in-out 0.5s;
  background: color-mix(in srgb, var(--background-color), transparent 10%);
  padding: 15px;
}

.portfolio .portfolio-item .portfolio-info h4 {
  font-size: 18px;
  font-weight: 600;
  padding-right: 50px;
}

.portfolio .portfolio-item .portfolio-info p {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 14px;
  margin-bottom: 0;
  padding-right: 50px;
}

.portfolio .portfolio-item .portfolio-info .preview-link,
.portfolio .portfolio-item .portfolio-info .details-link {
  position: absolute;
  right: 50px;
  font-size: 24px;
  top: calc(50% - 14px);
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  transition: 0.3s;
  line-height: 0;
}

.portfolio .portfolio-item .portfolio-info .preview-link:hover,
.portfolio .portfolio-item .portfolio-info .details-link:hover {
  color: var(--accent-color);
}

.portfolio .portfolio-item .portfolio-info .details-link {
  right: 14px;
  font-size: 28px;
}

.portfolio .portfolio-item:hover .portfolio-info {
  opacity: 1;
  bottom: 0;
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .service-item {
  background-color: var(--surface-color);
  box-shadow: 0px 5px 90px 0px rgba(0, 0, 0, 0.1);
  height: 100%;
  padding: 60px 30px;
  text-align: center;
  transition: 0.3s;
  border-radius: 5px;
}

.services .service-item .icon {
  margin: 0 auto;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: ease-in-out 0.3s;
  position: relative;
}

.services .service-item .icon i {
  font-size: 36px;
  transition: 0.5s;
  position: relative;
}

.services .service-item .icon svg {
  position: absolute;
  top: 0;
  left: 0;
}

.services .service-item .icon svg path {
  transition: 0.5s;
  fill: color-mix(in srgb, var(--default-color), transparent 95%);
}

.services .service-item h3 {
  font-weight: 700;
  margin: 10px 0 15px 0;
  font-size: 22px;
}

.services .service-item p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.services .service-item:hover {
  box-shadow: 0px 5px 35px 0px rgba(0, 0, 0, 0.1);
}

.services .service-item.item-cyan i {
  color: #0dcaf0;
}

.services .service-item.item-cyan:hover .icon i {
  color: #fff;
}

.services .service-item.item-cyan:hover .icon path {
  fill: #0dcaf0;
}

.services .service-item.item-orange i {
  color: #fd7e14;
}

.services .service-item.item-orange:hover .icon i {
  color: #fff;
}

.services .service-item.item-orange:hover .icon path {
  fill: #fd7e14;
}

.services .service-item.item-teal i {
  color: #20c997;
}

.services .service-item.item-teal:hover .icon i {
  color: #fff;
}

.services .service-item.item-teal:hover .icon path {
  fill: #20c997;
}

.services .service-item.item-red i {
  color: #df1529;
}

.services .service-item.item-red:hover .icon i {
  color: #fff;
}

.services .service-item.item-red:hover .icon path {
  fill: #df1529;
}

.services .service-item.item-indigo i {
  color: #6610f2;
}

.services .service-item.item-indigo:hover .icon i {
  color: #fff;
}

.services .service-item.item-indigo:hover .icon path {
  fill: #6610f2;
}

.services .service-item.item-pink i {
  color: #f3268c;
}

.services .service-item.item-pink:hover .icon i {
  color: #fff;
}

.services .service-item.item-pink:hover .icon path {
  fill: #f3268c;
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials .testimonials-carousel,
.testimonials .testimonials-slider {
  overflow: hidden;
}

.testimonials .testimonial-item .testimonial-content {
  border-left: 3px solid var(--accent-color);
  padding-left: 30px;
}

.testimonials .testimonial-item .testimonial-img {
  border-radius: 50%;
  border: 4px solid var(--background-color);
  margin: 0 auto;
}

.testimonials .testimonial-item h3 {
  font-size: 20px;
  font-weight: bold;
  margin: 10px 0 5px 0;
}

.testimonials .testimonial-item h4 {
  font-size: 14px;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  margin: 0 0 10px 0;
}

.testimonials .testimonial-item .stars i {
  color: #ffc107;
  margin: 0 1px;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--accent-color), transparent 50%);
  font-size: 26px;
  line-height: 0;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.testimonials .testimonial-item p {
  font-style: italic;
}

.testimonials .swiper-wrapper {
  height: auto;
}

.testimonials .swiper-pagination {
  margin-top: 30px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: color-mix(in srgb, var(--default-color), transparent 85%);
  opacity: 1;
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-item+.info-item {
  margin-top: 40px;
}

.contact .info-item i {
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  font-size: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  margin-right: 15px;
}

.contact .info-item h3 {
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.contact .info-item:hover i {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.contact .php-email-form {
  height: 100%;
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
  font-size: 14px;
  padding: 10px 15px;
  box-shadow: none;
  border-radius: 0;
  color: var(--default-color);
  background-color: color-mix(in srgb, var(--background-color), transparent 50%);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
}

.contact .php-email-form input[type=text]::placeholder,
.contact .php-email-form input[type=email]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .php-email-form button[type=submit] {
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 0;
  padding: 10px 30px;
  transition: 0.4s;
  border-radius: 50px;
}

.contact .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 25%);
}

/*--------------------------------------------------------------
# Portfolio Details Section
--------------------------------------------------------------*/
.portfolio-details .portfolio-details-slider img {
  width: 100%;
}

.portfolio-details .swiper-wrapper {
  height: auto;
}

.portfolio-details .swiper-button-prev,
.portfolio-details .swiper-button-next {
  width: 48px;
  height: 48px;
}

.portfolio-details .swiper-button-prev:after,
.portfolio-details .swiper-button-next:after {
  color: rgba(255, 255, 255, 0.8);
  background-color: rgba(0, 0, 0, 0.15);
  font-size: 24px;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.portfolio-details .swiper-button-prev:hover:after,
.portfolio-details .swiper-button-next:hover:after {
  background-color: rgba(0, 0, 0, 0.3);
}

@media (max-width: 575px) {

  .portfolio-details .swiper-button-prev,
  .portfolio-details .swiper-button-next {
    display: none;
  }
}

.portfolio-details .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.portfolio-details .swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: color-mix(in srgb, var(--default-color), transparent 85%);
  opacity: 1;
}

.portfolio-details .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.portfolio-details .portfolio-info h3:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  bottom: 0;
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.portfolio-details .portfolio-info ul li {
  display: flex;
  flex-direction: column;
  padding-bottom: 15px;
}

.portfolio-details .portfolio-info ul strong {
  text-transform: uppercase;
  font-weight: 400;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 14px;
}

.portfolio-details .portfolio-info .btn-visit {
  padding: 8px 40px;
  background: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 50px;
  transition: 0.3s;
}

.portfolio-details .portfolio-info .btn-visit:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.portfolio-details .portfolio-description p {
  padding: 0;
}

.portfolio-details .portfolio-description .testimonial-item {
  padding: 30px 30px 0 30px;
  position: relative;
  background: color-mix(in srgb, var(--default-color), transparent 97%);
  margin-bottom: 50px;
}

.portfolio-details .portfolio-description .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 50px;
  border: 6px solid var(--background-color);
  float: left;
  margin: 0 10px 0 0;
}

.portfolio-details .portfolio-description .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 15px 0 5px 0;
  padding-top: 20px;
}

.portfolio-details .portfolio-description .testimonial-item h4 {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
}

.portfolio-details .portfolio-description .testimonial-item .quote-icon-left,
.portfolio-details .portfolio-description .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--accent-color), transparent 50%);
  font-size: 26px;
  line-height: 0;
}

.portfolio-details .portfolio-description .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.portfolio-details .portfolio-description .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.portfolio-details .portfolio-description .testimonial-item p {
  font-style: italic;
  margin: 0 0 15px 0 0 0;
  padding: 0;
}

/*--------------------------------------------------------------
# Service Details Section
--------------------------------------------------------------*/
.service-details .service-box {
  padding: 20px;
  box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.1);
}

.service-details .service-box+.service-box {
  margin-top: 30px;
}

.service-details .service-box h4 {
  font-size: 20px;
  font-weight: 700;
  border-bottom: 2px solid color-mix(in srgb, var(--default-color), transparent 92%);
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.service-details .services-list a {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  background-color: color-mix(in srgb, var(--default-color), transparent 96%);
  display: flex;
  align-items: center;
  padding: 12px 15px;
  margin-top: 15px;
  transition: 0.3s;
}

.service-details .services-list a:first-child {
  margin-top: 0;
}

.service-details .services-list a i {
  font-size: 16px;
  margin-right: 8px;
  color: var(--accent-color);
}

.service-details .services-list a.active {
  color: var(--contrast-color);
  background-color: var(--accent-color);
}

.service-details .services-list a.active i {
  color: var(--contrast-color);
}

.service-details .services-list a:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 95%);
  color: var(--accent-color);
}

.service-details .download-catalog a {
  color: var(--default-color);
  display: flex;
  align-items: center;
  padding: 10px 0;
  transition: 0.3s;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.service-details .download-catalog a:first-child {
  border-top: 0;
  padding-top: 0;
}

.service-details .download-catalog a:last-child {
  padding-bottom: 0;
}

.service-details .download-catalog a i {
  font-size: 24px;
  margin-right: 8px;
  color: var(--accent-color);
}

.service-details .download-catalog a:hover {
  color: var(--accent-color);
}

.service-details .help-box {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  margin-top: 30px;
  padding: 30px 15px;
}

.service-details .help-box .help-icon {
  font-size: 48px;
}

.service-details .help-box h4,
.service-details .help-box a {
  color: var(--contrast-color);
}

.service-details .services-img {
  margin-bottom: 20px;
}

.service-details h3 {
  font-size: 26px;
  font-weight: 700;
}

.service-details p {
  font-size: 15px;
}

.service-details ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.service-details ul li {
  padding: 5px 0;
  display: flex;
  align-items: center;
}

.service-details ul i {
  font-size: 20px;
  margin-right: 8px;
  color: var(--accent-color);
}



/*--------------------------------------------------------------
# Professional Design Improvements
--------------------------------------------------------------*/

/* ── About: Profile Image ── */
.about-profile-wrap {
  position: relative;
  display: inline-block;
}

.about-profile-img {
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  transition: all 0.4s ease;
  max-width: 320px;
  width: 100%;
}

.about-profile-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  border-color: rgba(214, 214, 214, 0.2);
}

/* ── About: Info List Redesign ── */
.about .content ul li {
  border-left: 2px solid rgba(214, 214, 214, 0.15);
  border-top: none;
  border-right: none;
  border-bottom: none;
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
  padding: 10px 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.about .content ul li:hover {
  border-left-color: var(--accent-primary);
  transform: translateX(4px);
}

.about .content ul li i {
  font-size: 16px;
  color: var(--accent-secondary);
  flex-shrink: 0;
}

.about .content ul strong {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 60px;
}

.about .content ul span {
  color: var(--text-primary);
  font-size: 14px;
}

/* ── Available Badge ── */
.available-badge {
  display: inline-block;
  background: rgba(50, 205, 50, 0.1);
  color: #32cd32;
  border: 1px solid rgba(50, 205, 50, 0.25);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* ── Skills: Category Cards ── */
.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px 24px;
  height: 100%;
  transition: all 0.3s ease;
}

.skill-category:hover {
  border-color: rgba(214, 214, 214, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px var(--shadow-color);
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
}

.skill-category-header i {
  font-size: 18px;
  color: var(--accent-secondary);
}

.skill-category-header h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  display: inline-block;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 13px;
  font-family: var(--nav-font);
  transition: all 0.2s ease;
}

.skill-tag:hover {
  background: rgba(214, 214, 214, 0.08);
  color: var(--text-primary);
  border-color: rgba(214, 214, 214, 0.25);
}

/* ── Portfolio: Header with Tech Stack ── */
.portfolio-info-header {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.portfolio-info-header h4 {
  margin-bottom: 10px;
}

.portfolio-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-tag {
  display: inline-block;
  background: rgba(214, 214, 214, 0.05);
  color: var(--accent-secondary);
  border: 1px solid rgba(214, 214, 214, 0.12);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 12px;
  font-family: var(--nav-font);
  letter-spacing: 0.02em;
}

.portfolio .portfolio-info ul {
  padding-left: 16px;
  margin-bottom: 20px;
}

.portfolio .portfolio-info ul li {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  padding-bottom: 4px;
}

.portfolio .portfolio-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.portfolio .portfolio-links .btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── Contact Form ── */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
}

.contact-form .form-control {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.contact-form .form-control:focus {
  border-color: rgba(240, 165, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.08);
  background: var(--bg-elevated);
  color: var(--text-primary);
  outline: none;
}

.contact-form .form-control::placeholder {
  color: var(--accent-secondary);
  opacity: 0.6;
}

.btn-send-msg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text-primary) !important;
  border: 1px solid rgba(214, 214, 214, 0.25) !important;
  border-radius: 8px !important;
  padding: 12px 32px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-family: var(--nav-font);
}

.btn-send-msg:hover {
  background: #F0A500 !important;
  border-color: #F0A500 !important;
  color: #0A0A0A !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240, 165, 0, 0.25) !important;
}

/* ── Footer Redesign ── */
.footer {
  background: var(--bg-secondary) !important;
  border-top: 1px solid var(--border-color) !important;
  padding: 48px 0 32px !important;
  text-align: center;
  margin-left: 0;
}

@media (min-width: 1200px) {
  .footer {
    margin-left: 200px;
  }
}

.footer .sitename {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-family: var(--heading-font);
}

.footer > .container > p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
  font-style: normal !important;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 16px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social a:hover {
  background: rgba(214, 214, 214, 0.1);
  border-color: rgba(214, 214, 214, 0.3);
  color: var(--text-primary);
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.footer-bottom p {
  color: var(--accent-secondary);
  font-size: 13px;
  margin: 0;
  opacity: 0.7;
}

/* ── Section Title Enhancement ── */
.section-title h2::before {
  display: none;
}

.section-title h2 {
  padding-bottom: 20px;
}

.section-title h2::after {
  width: 48px;
  height: 2px;
  background: var(--accent-primary);
  opacity: 0.6;
  bottom: 0;
}

/* ── Nav Active State ── */
.navmenu .active,
.navmenu .active:focus {
  color: var(--text-primary) !important;
  background: rgba(214, 214, 214, 0.1) !important;
  border-left: 2px solid rgba(214, 214, 214, 0.5);
}

@media (min-width: 992px) {
  .navmenu .active,
  .navmenu .active:focus {
    border-left: none;
    border-bottom: 2px solid rgba(214, 214, 214, 0.5);
  }
}

/* ── Resume Timeline Polish ── */
.resume .resume-item {
  border-left-color: rgba(214, 214, 214, 0.15);
}

.resume .resume-item::before {
  width: 10px;
  height: 10px;
  left: -6px;
  background: var(--bg-primary);
  border: 2px solid var(--accent-secondary);
  box-shadow: 0 0 8px rgba(214, 214, 214, 0.15);
}

.resume .resume-item h4 {
  font-size: 16px;
  letter-spacing: 0.01em;
}

/* ── Responsive Tweaks ── */
@media (max-width: 768px) {
  .contact-form {
    padding: 20px;
  }

  .about-profile-img {
    max-width: 240px;
  }

  .skill-category {
    margin-bottom: 0;
  }
}


/*--------------------------------------------------------------
# Contact Toast Notification
--------------------------------------------------------------*/
.contact-toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 99999;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-elevated);
  border: 1px solid rgba(50, 205, 50, 0.25);
  border-left: 3px solid #32cd32;
  border-radius: 12px;
  padding: 18px 20px;
  min-width: 300px;
  max-width: 360px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  /* Hidden by default */
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.contact-toast-icon {
  flex-shrink: 0;
  font-size: 22px;
  color: #32cd32;
  line-height: 1;
  margin-top: 2px;
}

.contact-toast-body {
  flex: 1;
}

.contact-toast-title {
  font-family: var(--heading-font);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.contact-toast-msg {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.contact-toast-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: var(--accent-secondary);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
  margin-top: 1px;
}

.contact-toast-close:hover {
  color: var(--text-primary);
}

/* ── Send button loading spinner ── */
.btn-send-msg .spinner,
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(214, 214, 214, 0.2);
  border-top-color: var(--text-primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Inline error message ── */
.contact-form-error {
  text-align: center;
  color: #ff6b6b;
  font-size: 13px;
  margin-top: 12px;
  margin-bottom: 0;
  padding: 10px 16px;
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.2);
  border-radius: 8px;
}

@media (max-width: 480px) {
  .contact-toast {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: 100%;
    min-width: 0;
  }
}

/*--------------------------------------------------------------
# CV Download Button
--------------------------------------------------------------*/
.btn-download-cv {
  display: inline-flex;
  align-items: center;
  padding: 12px 28px;
  background: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--nav-font);
  letter-spacing: 0.3px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-download-cv:hover {
  background: var(--accent-primary);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240, 165, 0, 0.25);
  text-decoration: none;
}

/*--------------------------------------------------------------
# Skills — Enhanced with proficiency levels
--------------------------------------------------------------*/
.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  height: 100%;
  transition: all 0.3s ease;
}

.skill-category:hover {
  border-color: rgba(240, 165, 0, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--shadow-color);
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.skill-category-header i {
  font-size: 20px;
  color: var(--accent-primary);
}

.skill-category-header h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
}

.skill-category-note {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0 0 16px 0;
  opacity: 0.7;
  font-style: italic;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--nav-font);
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.skill-tag em {
  font-style: normal;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.75;
  padding: 2px 5px;
  border-radius: 3px;
}

/* Skill tag icons */
.skill-tag i {
  font-size: 14px;
  line-height: 1;
}

.skill-tag i.bi {
  color: var(--accent-primary);
}

.skill-tag i.devicon:not(.colored) {
  color: var(--text-primary);
}

/* Proficient — golden accent */
.skill-tag.skill-proficient {
  background: rgba(240, 165, 0, 0.1);
  color: var(--text-primary);
  border-color: rgba(240, 165, 0, 0.3);
}

.skill-tag.skill-proficient em {
  background: rgba(240, 165, 0, 0.2);
  color: var(--accent-primary);
}

.skill-tag.skill-proficient:hover {
  background: rgba(240, 165, 0, 0.18);
  border-color: rgba(240, 165, 0, 0.5);
}

/* Familiar — neutral/muted */
.skill-tag.skill-familiar {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border-color: var(--border-color);
}

.skill-tag.skill-familiar em {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.skill-tag.skill-familiar:hover {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

/* Proficiency Legend */
.skill-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-dot.legend-proficient {
  background: var(--accent-primary);
}

.legend-dot.legend-familiar {
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/*--------------------------------------------------------------
# Screenshots Section
--------------------------------------------------------------*/
.screenshots-project {
  margin-bottom: 56px;
}

.screenshots-project:last-child {
  margin-bottom: 0;
}

.screenshots-project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.screenshots-project-header h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 10px 0;
}

/* Prevent page-level horizontal scroll */
#screenshots {
  overflow-x: hidden;
}

/* Marquee Outer Container with Edge Fades (Fast GPU-friendly overlays) */
.screenshots-marquee-container {
  position: relative;
  overflow: hidden;
  padding: 12px 0 24px;
}

.screenshots-marquee-container::before,
.screenshots-marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50px;
  z-index: 5;
  pointer-events: none;
}

.screenshots-marquee-container::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary) 0%, transparent 100%);
}

.screenshots-marquee-container::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary) 0%, transparent 100%);
}

.screenshots-marquee {
  display: flex;
  overflow: hidden;
  gap: 28px;
  width: 100%;
  user-select: none;
  contain: layout paint;
}

/* Track group that scrolls continuously */
.screenshots-track-group {
  display: flex;
  gap: 28px;
  flex-shrink: 0;
  min-width: 100%;
  animation: continuousScreenshotsScroll 28s linear infinite;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

/* Reverse flow for alternate visual rhythm */
.screenshots-marquee-reverse .screenshots-track-group {
  animation: continuousScreenshotsScrollReverse 30s linear infinite;
}

/* Pause flow on hover anywhere on the marquee, container, or cards */
.screenshots-marquee-container:hover .screenshots-track-group,
.screenshots-marquee:hover .screenshots-track-group,
.screenshots-track-group:hover,
.screenshots-item:hover,
.screenshots-marquee-reverse:hover .screenshots-track-group {
  animation-play-state: paused !important;
}

@keyframes continuousScreenshotsScroll {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(calc(-100% - 28px), 0, 0);
  }
}

@keyframes continuousScreenshotsScrollReverse {
  from {
    transform: translate3d(calc(-100% - 28px), 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

/* Screenshot Item Card */
.screenshots-item {
  width: 380px;
  max-width: 82vw;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.screenshots-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  aspect-ratio: 16 / 9;
  background: var(--bg-card);
  display: block;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease,
              border-color 0.4s ease;
  cursor: pointer;
  text-decoration: none;
}

.screenshots-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Interactive Hover Micro-animations */
.screenshots-item:hover {
  transform: translateY(-8px);
  z-index: 15;
}

.screenshots-item:hover .screenshots-thumb {
  border-color: var(--accent-primary);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45),
              0 0 25px rgba(240, 165, 0, 0.25);
}

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

/* Hover Overlay & Glassmorphism Zoom Badge */
.screenshots-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.screenshots-hover-badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--accent-primary);
  color: #121316;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(240, 165, 0, 0.4);
  transform: translateY(12px) scale(0.9);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.screenshots-item:hover .screenshots-hover-badge {
  transform: translateY(0) scale(1);
}

/* Caption with glowing dot indicator */
.screenshots-caption {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  margin: 10px 0 0 0;
  text-align: center;
  letter-spacing: 0.2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: color 0.3s ease;
}

.screenshots-caption::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--text-secondary);
  opacity: 0.4;
  transition: all 0.3s ease;
}

.screenshots-item:hover .screenshots-caption {
  color: var(--accent-primary);
}

.screenshots-item:hover .screenshots-caption::before {
  background: var(--accent-primary);
  opacity: 1;
  box-shadow: 0 0 8px var(--accent-primary);
}

/* Screenshot Placeholder (for systems without live images) */
.screenshots-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-elevated) 100%);
  border: 1px dashed var(--border-color);
  color: var(--text-secondary);
  font-size: 13px;
  position: relative;
}

.screenshots-placeholder i {
  font-size: 32px;
  opacity: 0.7;
  color: var(--accent-primary);
  transition: transform 0.35s ease;
}

.screenshots-item:hover .screenshots-placeholder i {
  transform: scale(1.15);
}

.screenshots-placeholder span {
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .screenshots-item {
    width: 290px;
  }

  .screenshots-track-group {
    gap: 18px;
    animation-duration: 22s;
  }

  .screenshots-marquee-reverse .screenshots-track-group {
    animation-duration: 24s;
  }

  .screenshots-project-header {
    flex-direction: column;
  }
}

/*--------------------------------------------------------------
# Posters Section
--------------------------------------------------------------*/
.posters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 860px;
  margin: 0 auto;
}

.poster-item {
  break-inside: avoid;
}

.poster-thumb {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.poster-thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.poster-item:hover .poster-thumb {
  border-color: rgba(240, 165, 0, 0.45);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.45);
}

.poster-item:hover .poster-thumb img {
  transform: scale(1.03);
}

@media (max-width: 680px) {
  .posters-grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    gap: 24px;
  }
}

/*--------------------------------------------------------------
# Light Mode — Theme Variables
--------------------------------------------------------------*/
html[data-theme="light"] {
  --bg-primary:    #F7F5F0;
  --bg-secondary:  #EDEAE3;
  --bg-card:       #FFFFFF;
  --bg-elevated:   #F0EDE6;

  --text-primary:  #1A1A1A;
  --text-secondary:#5A5A5A;

  --accent-primary:  #C47F00;
  --accent-secondary:#8A5800;

  --border-color:  rgba(0,0,0,0.10);
  --shadow-color:  rgba(0,0,0,0.12);

  --background-color: var(--bg-primary);
  --default-color:    var(--text-primary);
  --heading-color:    var(--text-primary);
  --accent-color:     var(--accent-primary);
  --surface-color:    var(--bg-card);
  --contrast-color:   var(--text-primary);

  --nav-color:                    var(--text-secondary);
  --nav-hover-color:              var(--accent-primary);
  --nav-mobile-background-color:  var(--bg-secondary);
  --nav-dropdown-background-color:var(--bg-card);
  --nav-dropdown-color:           var(--text-primary);
  --nav-dropdown-hover-color:     var(--accent-primary);
}

/* ── Light mode: global overrides for hardcoded dark values ── */
html[data-theme="light"] body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

html[data-theme="light"] main section,
html[data-theme="light"] section,
html[data-theme="light"] .section {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

html[data-theme="light"] .header {
  background: rgba(247, 245, 240, 0.92);
  border-right-color: var(--border-color);
}

html[data-theme="light"] .navmenu a,
html[data-theme="light"] .navmenu a:focus {
  color: var(--text-secondary);
  background: transparent;
}

html[data-theme="light"] .navmenu a:hover,
html[data-theme="light"] .navmenu .active,
html[data-theme="light"] .navmenu .active:focus,
html[data-theme="light"] .navmenu li:hover > a {
  color: var(--accent-primary);
  background: rgba(196, 127, 0, 0.08);
}

html[data-theme="light"] .navmenu .active,
html[data-theme="light"] .navmenu .active:focus {
  border-left-color: var(--accent-primary);
}

/* ── Light mode: screenshot spotlight shadows ── */
html[data-theme="light"] .screenshots-slider .swiper-slide .screenshots-thumb {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .screenshots-slider .swiper-slide.swiper-slide-active .screenshots-thumb {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  border-color: rgba(196, 127, 0, 0.45);
}

/* ── Light mode: poster hover shadows ── */
html[data-theme="light"] .poster-item:hover .poster-thumb {
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.12);
  border-color: rgba(196, 127, 0, 0.45);
}

/* ── Light mode: Hero ── */
html[data-theme="light"] .hero::before {
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(247,245,240,0.90) 0%, transparent 70%),
    radial-gradient(ellipse 100% 60% at 50% 0%,  rgba(247,245,240,0.35) 0%, transparent 80%),
    linear-gradient(to bottom, rgba(247,245,240,0.15) 0%, rgba(247,245,240,0.45) 55%, rgba(247,245,240,0.95) 100%);
}

html[data-theme="light"] .hero-vignette {
  background: radial-gradient(ellipse 110% 110% at 50% 50%,
    transparent 55%,
    rgba(247,245,240,0.3) 75%,
    rgba(247,245,240,0.65) 100%);
}

html[data-theme="light"] .hero-background {
  filter: grayscale(60%) contrast(1.05) brightness(1.05);
}

html[data-theme="light"] #hero-stars {
  opacity: 0;
  pointer-events: none;
}

html[data-theme="light"] .fog-layer {
  opacity: 0.35;
}

html[data-theme="light"] .hero h2 {
  background: linear-gradient(180deg, #1A1A1A 0%, #4A4A4A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

html[data-theme="light"] .hero p {
  color: var(--text-secondary);
}

html[data-theme="light"] .hero .social-links a {
  background: rgba(0,0,0,0.06);
  color: var(--text-secondary);
}

/* ── Light mode: Cards & surfaces ── */
html[data-theme="light"] .about .content ul li,
html[data-theme="light"] .skill-category,
html[data-theme="light"] .portfolio .portfolio-info,
html[data-theme="light"] .contact .info-item,
html[data-theme="light"] .contact-form {
  background: var(--bg-card);
  border-color: var(--border-color);
  box-shadow: 0 2px 12px var(--shadow-color);
}

html[data-theme="light"] .skill-tag {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border-color: var(--border-color);
}

html[data-theme="light"] .tech-tag {
  background: rgba(0,0,0,0.04);
  color: var(--text-secondary);
  border-color: rgba(0,0,0,0.10);
}

html[data-theme="light"] .resume .resume-item h5 {
  background: var(--bg-elevated);
  border-color: var(--border-color);
  color: var(--accent-primary);
}

/* ── Light mode: form inputs ── */
html[data-theme="light"] .contact-form .form-control {
  background: var(--bg-elevated);
  border-color: var(--border-color);
  color: var(--text-primary);
}

html[data-theme="light"] .contact-form .form-control::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

html[data-theme="light"] .contact-form .form-control:focus {
  border-color: rgba(196, 127, 0, 0.5);
  box-shadow: 0 0 0 3px rgba(196, 127, 0, 0.10);
}

/* ── Light mode: preloader ── */
html[data-theme="light"] #preloader {
  background: var(--bg-primary);
}

/* ── Light mode: scroll top ── */
html[data-theme="light"] .scroll-top {
  background: var(--bg-card);
  border-color: var(--border-color);
  box-shadow: 0 2px 8px var(--shadow-color);
}

/* ── Light mode: footer ── */
html[data-theme="light"] .footer {
  background: var(--bg-secondary) !important;
  border-top-color: var(--border-color) !important;
}

html[data-theme="light"] .footer-social a {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-secondary);
}

html[data-theme="light"] .footer-bottom {
  border-top-color: var(--border-color);
}

/* ── Light mode: contact toast ── */
html[data-theme="light"] .contact-toast {
  background: var(--bg-card);
  box-shadow: 0 8px 32px var(--shadow-color);
}

/* ── Light mode: portfolio buttons ── */
html[data-theme="light"] .portfolio .portfolio-links .btn-outline-primary,
html[data-theme="light"] .portfolio .portfolio-links .btn-outline-success,
html[data-theme="light"] .btn-send-msg {
  color: var(--accent-primary) !important;
  border-color: rgba(196, 127, 0, 0.35) !important;
}

html[data-theme="light"] .available-badge {
  background: rgba(50, 180, 50, 0.08);
  border-color: rgba(50, 180, 50, 0.2);
}

/*--------------------------------------------------------------
# Theme Toggle Button
--------------------------------------------------------------*/
/* Theme Toggle Button — old sidebar rules removed, see switch styles below */

/* Expand label on hover / desktop nav hover */
@media (min-width: 992px) {
  /* old sidebar toggle rules removed — replaced by top-bar switch */
}

@media (max-width: 991px) {
  /* old sidebar toggle rules removed */
}

/*--------------------------------------------------------------
# Light mode: transition smoothing
--------------------------------------------------------------*/
body,
.header,
.hero::before,
.hero-background,
.hero h2,
.hero p,
section,
.section,
.about .content ul li,
.skill-category,
.skill-tag,
.portfolio .portfolio-info,
.contact .info-item,
.contact-form,
.contact-form .form-control,
.footer,
.scroll-top,
.resume .resume-item h5 {
  transition:
    background-color 0.35s ease,
    background     0.35s ease,
    color          0.35s ease,
    border-color   0.35s ease,
    box-shadow     0.35s ease;
}

/*--------------------------------------------------------------
# Top Navigation Bar — Full Rewrite
--------------------------------------------------------------*/

/* ── Reset side-nav layout ── */
.header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  width: 100% !important;
  min-width: unset !important;
  height: 64px !important;
  padding: 0 !important;
  overflow: visible !important;
  flex-direction: row !important;
  background: rgba(10, 10, 10, 0.88) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-right: none !important;
  border-bottom: 1px solid var(--border-color) !important;
  z-index: 9997 !important;
}

/* ── Remove old side-nav main offset ── */
.header ~ main {
  margin-left: 0 !important;
  padding-top: 64px !important;
}

.header ~ main .hero {
  margin-left: 0 !important;
  width: 100% !important;
  /* Hero is full-viewport again — subtract navbar height */
  min-height: calc(100vh - 64px) !important;
  margin-top: 0 !important;
}

/* ── Inner flex row ── */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 64px;
  padding: 0 28px;
  gap: 24px;
}

/* ── Logo ── */
.header-logo {
  font-family: var(--heading-font);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-primary) !important;
  text-decoration: none;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.header-logo:hover {
  opacity: 0.8;
  color: var(--accent-primary) !important;
}

/* ── Desktop nav ── */
.navmenu {
  flex: 1;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  padding: 0 !important;
  padding-right: 24px !important;
}

.navmenu ul {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 4px;
  list-style: none;
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
}

.navmenu a,
.navmenu a:focus {
  display: inline-flex !important;
  align-items: center;
  padding: 8px 14px !important;
  height: auto !important;
  max-width: none !important;
  width: auto !important;
  font-family: var(--nav-font);
  font-size: 13px !important;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nav-color) !important;
  background: transparent !important;
  border-radius: 6px !important;
  transition: color 0.2s ease, background 0.2s ease !important;
  white-space: nowrap;
  overflow: visible !important;
}

/* Hide all icons in top nav */
.navmenu a i,
.navmenu a .navicon {
  display: none !important;
}

/* Show spans (text labels) always */
.navmenu a span {
  display: inline !important;
  padding: 0 !important;
  max-width: none !important;
  font-size: 13px !important;
  color: inherit !important;
}

.navmenu a:hover,
.navmenu li:hover > a {
  color: var(--accent-primary) !important;
  background: rgba(240, 165, 0, 0.08) !important;
  max-width: none !important;
}

.navmenu .active,
.navmenu .active:focus {
  color: var(--accent-primary) !important;
  background: rgba(240, 165, 0, 0.1) !important;
  border-left: none !important;
  border-bottom: 2px solid var(--accent-primary) !important;
  border-radius: 0 !important;
}

/* ── Header right actions ── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ── Theme toggle in top bar ── */
.theme-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  color: var(--text-secondary) !important;
  cursor: pointer !important;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--text-secondary) !important;
}

/* ── Mobile hamburger ── */
.header-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  /* Override old fixed positioning */
  position: static !important;
  top: auto !important;
  right: auto !important;
  z-index: auto !important;
}

.header-toggle:hover {
  background: rgba(240, 165, 0, 0.1);
  border-color: rgba(240, 165, 0, 0.35);
  color: var(--accent-primary);
}

/* ── Mobile nav drawer ── */
.mobile-nav {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  width: 100%;
  background: rgba(14, 14, 16, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  padding: 10px 0 16px;
  z-index: 9998;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}

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

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

.mobile-nav a {
  display: block;
  padding: 12px 28px;
  font-family: var(--nav-font);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--nav-color);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--accent-primary);
  background: rgba(240, 165, 0, 0.08);
}

/* ── Responsive across all devices ── */
@media (max-width: 1199px) {
  .header-inner {
    padding: 0 20px;
  }

  .navmenu {
    display: none !important;
  }

  .header-toggle {
    display: inline-flex !important;
  }

  .header ~ main {
    padding-top: 64px !important;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 14px;
    gap: 10px;
  }

  .header-logo {
    font-size: 17px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-actions {
    gap: 8px;
  }

  .header-toggle {
    width: 36px;
    height: 36px;
    font-size: 19px;
  }
}

@media (max-width: 360px) {
  .header-inner {
    padding: 0 10px;
    gap: 6px;
  }

  .header-logo {
    font-size: 15px;
  }
}

/* ── Footer: remove old side-nav margin ── */
@media (min-width: 1200px) {
  .footer {
    margin-left: 0 !important;
  }
}

/* ── Light mode: top navbar ── */
html[data-theme="light"] .header {
  background: rgba(247, 245, 240, 0.94) !important;
  border-bottom-color: var(--border-color) !important;
  border-right: none !important;
}

html[data-theme="light"] .header-logo {
  color: var(--accent-primary) !important;
}

html[data-theme="light"] .navmenu a,
html[data-theme="light"] .navmenu a:focus {
  color: var(--text-secondary) !important;
  background: transparent !important;
}

html[data-theme="light"] .navmenu a:hover,
html[data-theme="light"] .navmenu li:hover > a,
html[data-theme="light"] .navmenu .active,
html[data-theme="light"] .navmenu .active:focus {
  color: var(--accent-primary) !important;
  background: rgba(196, 127, 0, 0.08) !important;
}

html[data-theme="light"] .navmenu .active,
html[data-theme="light"] .navmenu .active:focus {
  border-bottom-color: var(--accent-primary) !important;
  border-left: none !important;
}

html[data-theme="light"] .header-toggle {
  background: var(--bg-card) !important;
  border-color: var(--border-color) !important;
  color: var(--text-secondary) !important;
}

html[data-theme="light"] .mobile-nav {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

html[data-theme="light"] .mobile-nav a {
  color: var(--text-secondary);
}

html[data-theme="light"] .mobile-nav a:hover,
html[data-theme="light"] .mobile-nav a.active {
  color: var(--accent-primary);
  background: rgba(196, 127, 0, 0.08);
}

/*--------------------------------------------------------------
# Theme Toggle — Animated Switch (Sun left / Moon right)
--------------------------------------------------------------*/

/* Override generic .theme-toggle styles */
.theme-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: transparent !important;
  border-color: transparent !important;
}

/* ── Track ── */
.toggle-track {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 72px;
  height: 36px;
  border-radius: 999px;
  background: #2b2b2b;
  box-shadow:
    inset 0 2px 5px rgba(0,0,0,0.6),
    inset 0 -1px 2px rgba(255,255,255,0.04);
  transition: background 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
}

/* Light mode track */
html[data-theme="light"] .toggle-track {
  background: #e0e0e0;
  box-shadow:
    inset 0 2px 5px rgba(0,0,0,0.18),
    inset 0 -1px 2px rgba(255,255,255,0.7);
}

/* ── Sun icon — always on the LEFT ── */
.toggle-icon-sun {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(255,255,255,0.3);
  transition: color 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

/* In light mode, sun is under the knob (knob is left) → dim it */
html[data-theme="light"] .toggle-icon-sun {
  color: rgba(255,255,255,0.9);
}

/* ── Moon icon — always on the RIGHT ── */
.toggle-icon-moon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  transition: color 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
  z-index: 1;
}

/* In light mode, moon is exposed (knob is left) → dim it */
html[data-theme="light"] .toggle-icon-moon {
  color: rgba(0,0,0,0.25);
}

/* ── Knob ── */
.toggle-knob {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  /* Dark mode: knob is on the RIGHT covering the moon */
  transform: translateX(36px);
  background: radial-gradient(circle at 40% 35%,
    #555 0%,
    #3a3a3a 50%,
    #2a2a2a 100%);
  box-shadow:
    0 2px 6px rgba(0,0,0,0.6),
    0 1px 2px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.08);
  transition:
    transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1),
    background 0.4s ease,
    box-shadow 0.4s ease;
  z-index: 2;
}

/* Light mode: knob slides LEFT covering the sun, turns gold */
html[data-theme="light"] .toggle-knob {
  transform: translateX(0px);
  background: radial-gradient(circle at 38% 32%,
    #FFD84D 0%,
    #F0A500 55%,
    #C47F00 100%);
  box-shadow:
    0 2px 6px rgba(0,0,0,0.25),
    0 0 12px rgba(240,165,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.35);
}

/* ── Press squish ── */
.theme-toggle:active .toggle-knob {
  width: 32px;
}

/* In dark mode, knob is right — squish leftward */
html:not([data-theme="light"]) .theme-toggle:active .toggle-knob {
  transform: translateX(32px);
}

/* In light mode, knob is left — squish rightward */
html[data-theme="light"] .theme-toggle:active .toggle-knob {
  transform: translateX(0px);
  width: 32px;
}

/* ── Focus ring ── */
.theme-toggle:focus-visible .toggle-track {
  outline: 2px solid var(--accent-primary);
  outline-offset: 3px;
}

/* ── Remove old icon rules ── */
html:not([data-theme="light"]) .theme-icon-light,
html:not([data-theme="light"]) .theme-icon-dark,
html[data-theme="light"] .theme-icon-light,
html[data-theme="light"] .theme-icon-dark {
  display: none !important;
}


/*--------------------------------------------------------------
# Theme Switch — Final guaranteed visibility rules
--------------------------------------------------------------*/
#theme-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  margin: 0 !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  background: none !important;
  border: none !important;
  overflow: visible !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

#theme-toggle .toggle-track {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  width: 54px !important;
  height: 28px !important;
  border-radius: 999px !important;
  background: #2b2b2b !important;
  overflow: hidden !important;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.6) !important;
  flex-shrink: 0 !important;
}

html[data-theme="light"] #theme-toggle .toggle-track {
  background: #e0e0e0 !important;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.18) !important;
}

#theme-toggle .toggle-icon-sun {
  position: absolute !important;
  left: 5px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 16px !important;
  height: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 10px !important;
  color: rgba(255,255,255,0.3) !important;
  max-width: none !important;
  overflow: visible !important;
  z-index: 1 !important;
  transition: color 0.35s ease !important;
}

html[data-theme="light"] #theme-toggle .toggle-icon-sun {
  color: rgba(255,255,255,0.95) !important;
}

#theme-toggle .toggle-icon-moon {
  position: absolute !important;
  right: 5px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 16px !important;
  height: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 10px !important;
  color: rgba(255,255,255,0.85) !important;
  max-width: none !important;
  overflow: visible !important;
  z-index: 1 !important;
  transition: color 0.35s ease !important;
}

html[data-theme="light"] #theme-toggle .toggle-icon-moon {
  color: rgba(0,0,0,0.22) !important;
}

#theme-toggle .toggle-knob {
  position: absolute !important;
  top: 4px !important;
  left: 4px !important;
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  transform: translateX(26px) !important;
  background: radial-gradient(circle at 40% 35%, #555 0%, #3a3a3a 50%, #2a2a2a 100%) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.08) !important;
  z-index: 2 !important;
  transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1),
              background 0.4s ease,
              box-shadow 0.4s ease,
              width 0.15s ease !important;
}

html[data-theme="light"] #theme-toggle .toggle-knob {
  transform: translateX(0px) !important;
  background: radial-gradient(circle at 38% 32%, #FFD84D 0%, #F0A500 55%, #C47F00 100%) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25), 0 0 10px rgba(240,165,0,0.4), inset 0 1px 0 rgba(255,255,255,0.35) !important;
}

/*--------------------------------------------------------------
# Navbar hide on scroll down, show on scroll up
--------------------------------------------------------------*/
.header {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity  0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.header.nav-hidden {
  transform: translateY(-100%) !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/*--------------------------------------------------------------
# Dark mode — switch glow for visibility
--------------------------------------------------------------*/
html:not([data-theme="light"]) #theme-toggle .toggle-track {
  box-shadow:
    inset 0 2px 5px rgba(0,0,0,0.6),
    0 0 0 1px rgba(240,165,0,0.25),
    0 0 8px rgba(240,165,0,0.2),
    0 0 20px rgba(240,165,0,0.1) !important;
}

html:not([data-theme="light"]) #theme-toggle:hover .toggle-track {
  box-shadow:
    inset 0 2px 5px rgba(0,0,0,0.6),
    0 0 0 1px rgba(240,165,0,0.45),
    0 0 14px rgba(240,165,0,0.35),
    0 0 32px rgba(240,165,0,0.18) !important;
}

/*--------------------------------------------------------------
# Theme Switch — Website-Level Circular Wave Transitions
--------------------------------------------------------------*/
::view-transition-old(root),
::view-transition-new(root) {
  animation: none !important;
  mix-blend-mode: normal !important;
  display: block !important;
  height: 100% !important;
}

/* Light mode (Wave OUT from button): new light view expands on top */
.theme-wave-to-light::view-transition-old(root) {
  z-index: 1 !important;
}
.theme-wave-to-light::view-transition-new(root) {
  z-index: 99999 !important;
}

/* Dark mode (Wave IN back to button): old light view shrinks on top into button */
.theme-wave-to-dark::view-transition-old(root) {
  z-index: 99999 !important;
}
.theme-wave-to-dark::view-transition-new(root) {
  z-index: 1 !important;
}

/* Button-level Concentric Wave Burst */
#theme-toggle {
  position: relative !important;
}

#theme-toggle::before,
#theme-toggle::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  z-index: -1;
}

/* Wave In (Dark Mode) - Concentric Shockwaves converging back INTO the button */
#theme-toggle.wave-in-dark::before {
  animation: btnWaveInDark 0.65s cubic-bezier(0.2, 0.9, 0.3, 1) forwards;
}

#theme-toggle.wave-in-dark::after {
  animation: btnWaveInDark 0.65s cubic-bezier(0.2, 0.9, 0.3, 1) 0.1s forwards;
}

@keyframes btnWaveInDark {
  0% {
    transform: scale(2.6);
    opacity: 0;
    box-shadow: 0 0 25px rgba(240, 165, 0, 0.5);
    border: 2px solid rgba(240, 165, 0, 0.6);
  }
  40% {
    opacity: 0.85;
    border: 2px solid rgba(240, 165, 0, 0.85);
  }
  100% {
    transform: scale(0.85);
    opacity: 0;
    box-shadow: 0 0 0 0 rgba(240, 165, 0, 0), inset 0 0 10px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(240, 165, 0, 0);
  }
}

/* Wave Out (Light Mode) - Solar Golden Rays Shockwaves expanding OUTWARD from button */
#theme-toggle.wave-out-light::before {
  animation: btnWaveOutLight 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#theme-toggle.wave-out-light::after {
  animation: btnWaveOutLight 0.65s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

@keyframes btnWaveOutLight {
  0% {
    transform: scale(0.85);
    opacity: 0.9;
    box-shadow: 0 0 0 0 rgba(255, 200, 0, 0.85), 0 0 15px rgba(255, 216, 77, 0.65);
    border: 2px solid rgba(255, 216, 77, 0.95);
  }
  50% {
    opacity: 0.7;
    border: 2px solid rgba(255, 200, 0, 0.5);
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
    box-shadow: 0 0 40px rgba(255, 200, 0, 0), 0 0 35px rgba(255, 216, 77, 0);
    border: 1px solid rgba(255, 200, 0, 0);
  }
}

/* Knob elastic wave motion */
#theme-toggle.wave-in-dark .toggle-knob {
  animation: knobWaveDark 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#theme-toggle.wave-out-light .toggle-knob {
  animation: knobWaveLight 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes knobWaveDark {
  0% {
    transform: translateX(0) scale(1) rotate(0deg);
  }
  40% {
    transform: translateX(12px) scale(1.25, 0.85) rotate(-35deg);
  }
  75% {
    transform: translateX(28px) scale(0.9, 1.15) rotate(15deg);
  }
  100% {
    transform: translateX(26px) scale(1) rotate(0deg);
  }
}

@keyframes knobWaveLight {
  0% {
    transform: translateX(26px) scale(1) rotate(0deg);
  }
  40% {
    transform: translateX(14px) scale(1.25, 0.85) rotate(35deg);
  }
  75% {
    transform: translateX(-2px) scale(0.9, 1.15) rotate(-15deg);
  }
  100% {
    transform: translateX(0px) scale(1) rotate(0deg);
  }
}

/* Track shimmer wave */
#theme-toggle.wave-in-dark .toggle-track {
  animation: trackWaveDark 0.6s ease-out;
}

#theme-toggle.wave-out-light .toggle-track {
  animation: trackWaveLight 0.6s ease-out;
}

@keyframes trackWaveDark {
  0% {
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.6), 0 0 0 0 rgba(240,165,0,0.8);
  }
  50% {
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.6), 0 0 18px rgba(240,165,0,0.65);
  }
  100% {
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.6), 0 0 8px rgba(240,165,0,0.2);
  }
}

@keyframes trackWaveLight {
  0% {
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2), 0 0 0 0 rgba(255,216,77,0.9);
  }
  50% {
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2), 0 0 24px rgba(255,216,77,0.85);
  }
  100% {
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.18);
  }
}

/*--------------------------------------------------------------
# Scroll Progress Bar
--------------------------------------------------------------*/
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 99999;
  background: transparent;
  pointer-events: none;
}

#scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #C47F00, #F0A500, #FFD84D);
  box-shadow: 0 0 8px rgba(240, 165, 0, 0.6);
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/*--------------------------------------------------------------
# Services / What I Do Section
--------------------------------------------------------------*/
.services.section {
  background-color: var(--bg-primary);
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px 28px;
  height: 100%;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(135deg,
    rgba(240, 165, 0, 0.04) 0%,
    transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.service-card:hover {
  border-color: rgba(240, 165, 0, 0.25);
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35),
              0 0 0 1px rgba(240, 165, 0, 0.1);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(240, 165, 0, 0.08);
  border: 1px solid rgba(240, 165, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.35s ease;
}

.service-card-icon i {
  font-size: 22px;
  color: var(--accent-primary);
  transition: transform 0.35s ease;
}

.service-card:hover .service-card-icon {
  background: rgba(240, 165, 0, 0.14);
  border-color: rgba(240, 165, 0, 0.3);
}

.service-card:hover .service-card-icon i {
  transform: scale(1.15);
}

.service-card h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  font-family: var(--heading-font);
}

.service-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* Light mode adjustments */
html[data-theme="light"] .service-card {
  background: var(--bg-card);
  box-shadow: 0 2px 12px var(--shadow-color);
}

html[data-theme="light"] .service-card:hover {
  box-shadow: 0 16px 40px var(--shadow-color),
              0 0 0 1px rgba(196, 127, 0, 0.15);
  border-color: rgba(196, 127, 0, 0.3);
}

html[data-theme="light"] .service-card-icon {
  background: rgba(196, 127, 0, 0.08);
  border-color: rgba(196, 127, 0, 0.15);
}

/*--------------------------------------------------------------
# Feature 5 — Currently Learning skill tags
--------------------------------------------------------------*/
.skill-tag.skill-learning {
  background: transparent;
  color: var(--accent-primary);
  border: 1px dashed rgba(240, 165, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.skill-tag.skill-learning em {
  color: var(--accent-secondary);
  opacity: 0.85;
}

.skill-tag.skill-learning::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(240, 165, 0, 0.06) 50%,
    transparent 100%);
  animation: learning-shimmer 2.5s ease-in-out infinite;
}

@keyframes learning-shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.legend-dot.legend-learning {
  background: transparent;
  border: 1.5px dashed var(--accent-primary);
  box-shadow: none;
}

/* Currently Exploring block */
.currently-exploring {
  margin-top: 28px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px dashed rgba(240, 165, 0, 0.3);
  border-radius: 12px;
}

.exploring-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.exploring-header i {
  font-size: 15px;
  color: var(--accent-primary);
}

.exploring-header span {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-primary);
  font-family: var(--nav-font);
}

/*--------------------------------------------------------------
# Feature 6 — Scroll-to-top button gold styling
--------------------------------------------------------------*/
.scroll-top {
  background: var(--bg-card) !important;
  border: 1px solid rgba(240, 165, 0, 0.35) !important;
  box-shadow: 0 0 10px rgba(240, 165, 0, 0.15) !important;
  border-radius: 12px !important;
  width: 44px !important;
  height: 44px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.scroll-top i {
  color: var(--accent-primary) !important;
  font-size: 22px;
}

.scroll-top:hover {
  background: rgba(240, 165, 0, 0.1) !important;
  border-color: rgba(240, 165, 0, 0.6) !important;
  box-shadow: 0 0 18px rgba(240, 165, 0, 0.3) !important;
  transform: translateY(-3px) !important;
}

html[data-theme="light"] .scroll-top {
  background: var(--bg-card) !important;
  border-color: rgba(196, 127, 0, 0.3) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12) !important;
}

html[data-theme="light"] .scroll-top:hover {
  border-color: rgba(196, 127, 0, 0.55) !important;
  box-shadow: 0 4px 20px rgba(196, 127, 0, 0.2) !important;
}

/*--------------------------------------------------------------
# Feature 7 — Hero availability status
--------------------------------------------------------------*/
.hero-availability {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0 0;
  padding: 8px 16px;
  background: rgba(50, 205, 50, 0.07);
  border: 1px solid rgba(50, 205, 50, 0.2);
  border-radius: 999px;
  font-size: 13px;
  font-family: var(--nav-font);
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 20px rgba(50, 205, 50, 0.06);
  overflow: hidden;
  width: fit-content;
}

/* Pulsing green dot */
.hero-availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #32cd32;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(50, 205, 50, 0.5);
  animation: availability-pulse 2s ease-out infinite;
}

@keyframes availability-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(50, 205, 50, 0.5); }
  70%  { box-shadow: 0 0 0 7px rgba(50, 205, 50, 0);   }
  100% { box-shadow: 0 0 0 0   rgba(50, 205, 50, 0);   }
}

/* Text wrapper */
.hero-availability-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.availability-static {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 400;
  flex-shrink: 0;
}

/* Rotating words container */
.availability-rotating {
  position: relative;
  display: inline-block;
  height: 1.3em;
  overflow: hidden;
  width: 130px;
}

.availability-rotating span {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  font-weight: 600;
  color: #5ddb5d;
  opacity: 0;
  transform: translateY(100%);
  animation: word-rotate 8s ease-in-out infinite;
}

/* Stagger each word — 4 words, 8s total, 2s each */
.availability-rotating span:nth-child(1) { animation-delay: 0s;  }
.availability-rotating span:nth-child(2) { animation-delay: 2s;  }
.availability-rotating span:nth-child(3) { animation-delay: 4s;  }
.availability-rotating span:nth-child(4) { animation-delay: 6s;  }

@keyframes word-rotate {
  0%         { opacity: 0; transform: translateY(100%); }
  5%         { opacity: 1; transform: translateY(0);    }
  22%        { opacity: 1; transform: translateY(0);    }
  27%        { opacity: 0; transform: translateY(-100%);}
  100%       { opacity: 0; transform: translateY(-100%);}
}

html[data-theme="light"] .hero-availability {
  background: rgba(40, 170, 40, 0.07);
  border-color: rgba(40, 170, 40, 0.2);
  color: rgba(20, 20, 20, 0.7);
}

html[data-theme="light"] .availability-static {
  color: rgba(20, 20, 20, 0.5);
}

html[data-theme="light"] .availability-rotating span {
  color: #1a9e1a;
}

/*--------------------------------------------------------------
# Stats Bar
--------------------------------------------------------------*/
.stats-bar.section {
  background: var(--bg-secondary) !important;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 48px 0 !important;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
}

/* Vertical divider between items on desktop */
.col-md-3:not(:last-child) .stat-item::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--border-color);
}

@media (max-width: 767px) {
  .col-md-3:not(:last-child) .stat-item::after {
    display: none;
  }
}

.stat-number {
  font-family: var(--heading-font);
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  color: var(--accent-primary);
  display: inline-block;
  transition: color 0.3s ease;
}

.stat-suffix {
  font-family: var(--heading-font);
  font-size: 28px;
  font-weight: 600;
  color: var(--accent-secondary);
  line-height: 1;
  display: inline-block;
  vertical-align: top;
  margin-top: 6px;
  margin-left: 2px;
}

/* Number + suffix sit on the same line */
.stat-item {
  flex-direction: column;
}

.stat-value-row {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  font-family: var(--nav-font);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 8px 0 0 0;
  font-weight: 500;
}

/* Light mode */
html[data-theme="light"] .stats-bar.section {
  background: var(--bg-secondary) !important;
}

/*--------------------------------------------------------------
# Light mode — comprehensive visibility fixes
--------------------------------------------------------------*/

/* ── Hero: all text elements ── */
html[data-theme="light"] .hero h2 {
  background: linear-gradient(180deg, #111111 0%, #333333 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

html[data-theme="light"] .hero p {
  color: #2a2a2a !important;
}

/* Typed text cursor */
html[data-theme="light"] .hero .typed-cursor {
  color: var(--accent-primary) !important;
}

/* Typed span underline */
html[data-theme="light"] .hero p span {
  color: var(--accent-primary) !important;
  border-bottom-color: rgba(196, 127, 0, 0.4) !important;
}

/* Availability pill */
html[data-theme="light"] .hero-availability {
  background: rgba(196, 127, 0, 0.10) !important;
  border-color: rgba(196, 127, 0, 0.35) !important;
  color: #1a1a1a !important;
  box-shadow: 0 0 16px rgba(196, 127, 0, 0.12) !important;
}

html[data-theme="light"] .availability-static {
  color: #1a1a1a !important;
}

html[data-theme="light"] .availability-rotating span {
  color: #1a6e1a !important;
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-weight: 700 !important;
}

html[data-theme="light"] .availability-rotating span {
  color: #1a7a1a !important;
}

/* Social links */
html[data-theme="light"] .hero .social-links a {
  background: rgba(0,0,0,0.07) !important;
  color: #2a2a2a !important;
  border: 1px solid rgba(0,0,0,0.12) !important;
}

html[data-theme="light"] .hero .social-links a:hover {
  color: #ffffff !important;
}

/* ── Section titles ── */
html[data-theme="light"] .section-title h2 {
  color: var(--text-primary) !important;
}

html[data-theme="light"] .section-title p {
  color: var(--text-secondary) !important;
}

/* ── About section ── */
html[data-theme="light"] .about .content h2 {
  color: var(--text-primary) !important;
}

html[data-theme="light"] .about .content p {
  color: var(--text-secondary) !important;
}

html[data-theme="light"] .about .content ul li {
  color: var(--text-primary) !important;
  background: var(--bg-card) !important;
  border-color: var(--border-color) !important;
}

html[data-theme="light"] .about .content ul strong {
  color: var(--accent-primary) !important;
}

html[data-theme="light"] .about .content ul span {
  color: var(--text-primary) !important;
}

/* ── Stats bar ── */
html[data-theme="light"] .stat-number {
  color: var(--accent-primary) !important;
}

html[data-theme="light"] .stat-suffix {
  color: var(--accent-secondary) !important;
}

html[data-theme="light"] .stat-label {
  color: var(--text-secondary) !important;
}

/* ── Skills section ── */
html[data-theme="light"] .skill-category-header h4 {
  color: var(--text-primary) !important;
}

html[data-theme="light"] .skill-category-header i {
  color: var(--accent-primary) !important;
}

html[data-theme="light"] .skill-tag {
  background: var(--bg-elevated) !important;
  color: var(--text-secondary) !important;
  border-color: var(--border-color) !important;
}

html[data-theme="light"] .skill-tag em {
  color: var(--accent-secondary) !important;
}

html[data-theme="light"] .skill-tag.skill-proficient {
  color: var(--text-primary) !important;
}

html[data-theme="light"] .skill-tag.skill-learning {
  color: var(--accent-primary) !important;
  border-color: rgba(196,127,0,0.45) !important;
  background: transparent !important;
}

html[data-theme="light"] .currently-exploring {
  background: var(--bg-card) !important;
  border-color: rgba(196,127,0,0.28) !important;
}

html[data-theme="light"] .exploring-header span,
html[data-theme="light"] .exploring-header i {
  color: var(--accent-primary) !important;
}

html[data-theme="light"] .skill-legend .legend-item {
  color: var(--text-secondary) !important;
}

html[data-theme="light"] .skill-category-note {
  color: var(--text-secondary) !important;
}

/* ── Services section ── */
html[data-theme="light"] .service-card h4 {
  color: var(--text-primary) !important;
}

html[data-theme="light"] .service-card p {
  color: var(--text-secondary) !important;
}

/* ── Resume section ── */
html[data-theme="light"] .resume-title {
  color: var(--text-primary) !important;
  border-bottom-color: var(--border-color) !important;
}

html[data-theme="light"] .resume .resume-item h4 {
  color: var(--text-primary) !important;
}

html[data-theme="light"] .resume .resume-item h5 {
  color: var(--accent-primary) !important;
  background: var(--bg-elevated) !important;
  border-color: var(--border-color) !important;
}

html[data-theme="light"] .resume .resume-item p,
html[data-theme="light"] .resume .resume-item ul,
html[data-theme="light"] .resume .resume-item ul li {
  color: var(--text-secondary) !important;
}

/* ── Portfolio cards ── */
html[data-theme="light"] .portfolio .portfolio-info h4 {
  color: var(--text-primary) !important;
}

html[data-theme="light"] .portfolio .portfolio-info ul li {
  color: var(--text-secondary) !important;
}

html[data-theme="light"] .tech-tag {
  color: var(--text-secondary) !important;
  background: rgba(0,0,0,0.04) !important;
  border-color: rgba(0,0,0,0.10) !important;
}

/* ── Contact section ── */
html[data-theme="light"] .contact .info-item h3 {
  color: var(--text-primary) !important;
}

html[data-theme="light"] .contact .info-item p {
  color: var(--text-secondary) !important;
}

html[data-theme="light"] .contact-form .form-control {
  color: var(--text-primary) !important;
  background: var(--bg-elevated) !important;
  border-color: var(--border-color) !important;
}

html[data-theme="light"] .contact-form .form-control::placeholder {
  color: var(--text-secondary) !important;
  opacity: 0.65 !important;
}

/* ── Footer ── */
html[data-theme="light"] .footer .sitename {
  color: var(--text-primary) !important;
}

html[data-theme="light"] .footer > .container > p {
  color: var(--text-secondary) !important;
}

html[data-theme="light"] .footer-bottom p {
  color: var(--text-secondary) !important;
  opacity: 0.7 !important;
}

html[data-theme="light"] .footer-social a {
  color: var(--text-secondary) !important;
}

/*--------------------------------------------------------------
# Light mode — rotating words background highlight
--------------------------------------------------------------*/
html[data-theme="light"] .availability-rotating span {
  color: #1a7a1a !important;
  background: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* Whole badge — frosted glass in light mode, no solid bg */
html[data-theme="light"] .hero-availability {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(30, 140, 30, 0.55) !important;
  color: #1a1a1a !important;
  box-shadow: none !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

/*--------------------------------------------------------------
# Stats bar — entrance animation
--------------------------------------------------------------*/
.stat-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.stat-item.stat-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delay per item */
.col-md-3:nth-child(1) .stat-item { transition-delay: 0s;    }
.col-md-3:nth-child(2) .stat-item { transition-delay: 0.12s; }
.col-md-3:nth-child(3) .stat-item { transition-delay: 0.24s; }
.col-md-3:nth-child(4) .stat-item { transition-delay: 0.36s; }

/* Gold flash on number when counting */
.stat-number.counting {
  color: #FFD84D;
  transition: color 0.1s ease;
}

.stat-number.done {
  color: var(--accent-primary);
  transition: color 0.4s ease;
}

/*--------------------------------------------------------------
# Professional Portfolio Upgrades (Hero, Projects, Skills, Contact)
--------------------------------------------------------------*/

/* ── Hero Refinements & Unified Center Axis ── */
.hero .container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: clamp(16px, 4vw, 32px);
  padding-right: clamp(16px, 4vw, 32px);
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  margin: 0 auto;
}

.hero-name {
  font-size: clamp(2.3rem, 5.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 24px 0 !important;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
  width: 100%;
}

.hero-role-title {
  font-size: clamp(1.1rem, 2.2vw, 1.55rem);
  font-weight: 600;
  color: var(--accent-primary);
  letter-spacing: 0.5px;
  margin: 0 0 32px 0 !important;
  line-height: 1.4;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  text-align: center;
  width: 100%;
}

.hero-role-divider {
  color: rgba(255, 255, 255, 0.45) !important;
  margin: 0 10px;
  border-bottom: none !important;
  display: inline-block;
  vertical-align: middle;
}

.hero p span.hero-role-divider {
  border-bottom: none !important;
}

.hero-supporting-text {
  width: 100%;
  max-width: 920px;
  margin: 0 auto 34px auto !important;
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  line-height: 1.75;
  color: var(--text-secondary);
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  padding: 0 16px;
  box-sizing: border-box;
}

.hero-availability {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 32px auto !important;
  padding: 8px 18px;
  background: rgba(50, 205, 50, 0.07);
  border: 1px solid rgba(50, 205, 50, 0.2);
  border-radius: 999px;
  font-size: 13px;
  font-family: var(--nav-font);
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
  box-shadow: 0 0 20px rgba(50, 205, 50, 0.06);
  max-width: 100%;
}

.hero-availability-text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-align: center;
}

@media (max-width: 576px) {
  .hero-availability {
    padding: 8px 14px;
    border-radius: 16px;
  }
  .hero-availability-text {
    white-space: normal;
    text-align: center;
    line-height: 1.4;
    font-size: 12px;
  }
}

.hero-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 0 auto !important;
  width: 100%;
}

.hero .social-links {
  margin: 28px 0 0 0 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.hero .social-links a {
  margin-right: 0 !important;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, #F0A500 0%, #d89400 100%);
  color: #0c0c0c !important;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 18px rgba(240, 165, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid transparent;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(240, 165, 0, 0.5);
  color: #000 !important;
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 8px;
  background: rgba(37, 37, 37, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-primary) !important;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn-hero-secondary:hover {
  transform: translateY(-2px);
  background: var(--bg-elevated);
  border-color: rgba(255, 255, 255, 0.25);
  color: var(--text-primary) !important;
}

.btn-hero-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border-radius: 8px;
  background: transparent;
  color: var(--accent-primary) !important;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--accent-primary);
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-hero-outline:hover {
  transform: translateY(-2px);
  background: rgba(240, 165, 0, 0.12);
  color: #FFD84D !important;
}

/* ── About Section Polish ── */
.lead-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-primary);
}

.text-secondary-custom {
  color: var(--text-secondary);
  line-height: 1.65;
}

.about-info-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
}

.about-info-list li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}

.about-info-list li i {
  color: var(--accent-primary);
  font-size: 1.15rem;
}

.btn-work-together {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border-radius: 6px;
  background: transparent;
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary) !important;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.25s ease;
}

.btn-work-together:hover {
  background: rgba(240, 165, 0, 0.12);
  transform: translateY(-1px);
}

/* ── Skills Tags & Clean Categories ── */
.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  height: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.skill-category:hover {
  border-color: rgba(240, 165, 0, 0.3);
  transform: translateY(-2px);
}

.skill-category-learning {
  border-color: rgba(240, 165, 0, 0.25);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(240, 165, 0, 0.03) 100%);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.skill-tag i {
  font-size: 1.05rem;
}

.skill-tag:hover {
  border-color: rgba(240, 165, 0, 0.4);
  transform: translateY(-1px);
}

.skill-tag-highlight {
  border-color: rgba(240, 165, 0, 0.35);
  background: rgba(240, 165, 0, 0.08);
}

/* ── Projects Cards & Integrated Galleries ── */
/* ── Featured Projects Showcase Cards ── */
/*--------------------------------------------------------------
# Featured Projects Showcase (Horizontal Landscape Layout)
--------------------------------------------------------------*/
#portfolio .container {
  max-width: 1340px;
}

.projects-showcase-container {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px; /* balanced spacing between wide landscape cards */
}

.project-card-showcase {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 28px 32px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 0.6fr);
  gap: 32px 36px;
  align-items: center;
}

.project-card-showcase:hover {
  border-color: rgba(240, 165, 0, 0.35);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5);
  transform: translateY(-4px);
}

.project-card-showcase.flagship {
  border: 1.5px solid rgba(240, 165, 0, 0.45);
  background: linear-gradient(180deg, var(--bg-card) 0%, rgba(240, 165, 0, 0.025) 100%);
  box-shadow: 0 18px 52px rgba(240, 165, 0, 0.08);
}

/* Left Column: Project Information (approx 38-42%) */
.showcase-content-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.showcase-title {
  font-size: clamp(1.22rem, 1.7vw, 1.5rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-primary);
  margin-top: 6px;
  margin-bottom: 6px;
  line-height: 1.28;
}

.showcase-purpose {
  font-size: 0.92rem;
  line-height: 1.52;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.showcase-content-col .project-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 10px;
}

.showcase-features-list {
  list-style: none;
  padding-left: 0;
  margin: 8px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.showcase-features-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.35;
}

.showcase-features-list li i {
  color: var(--accent-primary);
  font-size: 0.92rem;
  flex-shrink: 0;
}

.showcase-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.showcase-actions .btn {
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 8px;
  font-weight: 600;
}

/* Right Column: Project Preview Area (approx 58-62%) */
.showcase-preview-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

/* ── Project Showcase Window (Browser / App Mockup Frame) ── */
.project-showcase-window {
  background: #14151a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  width: 100%;
}

.project-showcase-window:hover {
  border-color: rgba(240, 165, 0, 0.4);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.65);
}

.window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.window-controls {
  display: flex;
  gap: 6px;
}

.ctrl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.window-address-bar {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 3px 12px;
  font-size: 0.76rem;
  color: var(--text-secondary);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 320px;
  width: 100%;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window-viewport {
  position: relative;
  overflow: hidden;
  background: #090a0d;
  height: 275px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.window-viewport a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.window-viewport img {
  width: 100%;
  height: 100%;
  max-height: 275px;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.project-showcase-window:hover .window-viewport img {
  transform: scale(1.02);
}

.viewport-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.25s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.project-showcase-window:hover .viewport-overlay {
  opacity: 1;
}

.pos-gallery-thumbs,
.project-gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
}

.pos-gallery-thumbs a,
.project-gallery-thumbs a {
  transition: all 0.25s ease;
  font-size: 0.74rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 10px;
}

.pos-gallery-thumbs a:hover,
.project-gallery-thumbs a:hover {
  background: rgba(240, 165, 0, 0.2) !important;
  border-color: var(--accent-primary) !important;
  color: var(--accent-primary) !important;
  transform: translateY(-1px);
}

/* ── Responsive adjustments for Horizontal Landscape Layout ── */
@media (max-width: 1199px) {
  .project-card-showcase {
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
    padding: 24px 26px;
    gap: 24px;
  }
  .window-viewport {
    height: 250px;
  }
  .window-viewport img {
    max-height: 250px;
  }
}

@media (max-width: 991px) {
  .project-card-showcase {
    grid-template-columns: minmax(0, 0.44fr) minmax(0, 0.56fr);
    padding: 22px 20px;
    gap: 20px;
  }
  .window-viewport {
    height: 230px;
  }
  .window-viewport img {
    max-height: 230px;
  }
}

@media (max-width: 768px) {
  .project-card-showcase {
    grid-template-columns: 1fr;
    padding: 22px 18px;
    gap: 22px;
  }
  .projects-showcase-container {
    gap: 32px;
  }
  .window-viewport {
    height: 240px;
  }
  .window-viewport img {
    max-height: 240px;
  }
}

html[data-theme="light"] .pos-gallery-thumbs a,
html[data-theme="light"] .project-gallery-thumbs a {
  background: #f3f4f6 !important;
  color: #1f2937 !important;
  border-color: #d1d5db !important;
}

html[data-theme="light"] .pos-gallery-thumbs a:hover,
html[data-theme="light"] .project-gallery-thumbs a:hover {
  background: rgba(240, 165, 0, 0.15) !important;
  border-color: #d97706 !important;
  color: #b45309 !important;
}

html[data-theme="light"] .window-viewport {
  background: #f3f4f6;
}

.project-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-flagship {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #F0A500, #c48700);
  color: #000;
  font-weight: 700;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 12px;
  border-radius: 20px;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
}

.badge-status-completed {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-status-live {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-status-info {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-status-dev {
  background: rgba(240, 165, 0, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(240, 165, 0, 0.35);
}

.badge-pill-dev {
  background: rgba(240, 165, 0, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(240, 165, 0, 0.3);
  font-weight: 500;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
}

.project-title {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 4px;
  margin-bottom: 0;
}

.project-purpose {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.55;
}

.section-subheading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.project-features-list {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
  margin-bottom: 20px;
}

.project-features-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 11px;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.project-features-list li i {
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 0.95rem;
}

.project-features-list li strong {
  color: var(--text-primary);
  display: inline;
}

.project-gallery-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}

.gallery-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
}

.project-preview-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all 0.25s ease;
}

.project-preview-card:hover {
  border-color: rgba(240, 165, 0, 0.35);
  background: rgba(240, 165, 0, 0.04);
}

.preview-card-icon {
  font-size: 1.75rem;
  color: var(--accent-primary);
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240, 165, 0, 0.1);
  border-radius: 8px;
}

.preview-card-content h6 {
  margin-bottom: 3px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.preview-card-content p {
  margin-bottom: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.project-thumb-link {
  display: block;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #000;
}

.project-thumb-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-thumb-link:hover img {
  transform: scale(1.06);
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.4rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-thumb-link:hover .thumb-overlay {
  opacity: 1;
}

.thumb-caption {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 5px;
  text-align: center;
  font-weight: 500;
}

/* ── Creative Work Categories & Gallery ── */
.creative-categories {
  margin-bottom: 28px;
}

.creative-cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

.creative-cat-badge i {
  color: var(--accent-primary);
}

.creative-cat-badge.active,
.creative-cat-badge:hover {
  border-color: rgba(240, 165, 0, 0.45);
  color: var(--text-primary);
  background: rgba(240, 165, 0, 0.08);
}

.poster-item {
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.poster-item:hover {
  transform: translateY(-3px);
  border-color: rgba(240, 165, 0, 0.4);
}

.poster-thumb {
  display: block;
  position: relative;
  overflow: hidden;
}

.poster-thumb img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s ease;
}

.poster-thumb:hover img {
  transform: scale(1.05);
}

.poster-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.poster-thumb:hover .poster-overlay {
  opacity: 1;
}

/* ── Contact Panel ── */
.contact-info-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 32px;
  height: 100%;
}

.contact-info-panel .info-item i {
  color: var(--accent-primary);
  background: rgba(240, 165, 0, 0.1);
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-right: 16px;
}

.contact-info-panel .info-item h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.contact-info-panel .info-item p {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: 0.95rem;
}

.contact-info-panel .info-item a {
  color: var(--text-secondary);
}

.contact-info-panel .info-item a:hover {
  color: var(--accent-primary);
}

.link-download-cv {
  color: var(--accent-primary) !important;
  font-weight: 600;
  text-decoration: underline !important;
}

/* ── Light Mode Color Consistency ── */
html[data-theme="light"] .hero-name {
  color: #111827;
  text-shadow: none;
}

html[data-theme="light"] .hero-role-title {
  color: #b07800;
  text-shadow: none;
}

html[data-theme="light"] .hero-supporting-text {
  color: #4b5563;
  text-shadow: none;
}

html[data-theme="light"] .btn-hero-secondary {
  background: #ffffff;
  color: #111827 !important;
  border-color: #d1d5db;
}

html[data-theme="light"] .btn-hero-secondary:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

html[data-theme="light"] .lead-text {
  color: #1f2937;
}

html[data-theme="light"] .text-secondary-custom {
  color: #4b5563;
}

html[data-theme="light"] .skill-category {
  background: #ffffff;
  border-color: #e5e7eb;
}

html[data-theme="light"] .skill-tag {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #1f2937;
}

html[data-theme="light"] .skill-tag-highlight {
  background: rgba(240, 165, 0, 0.12);
  border-color: rgba(240, 165, 0, 0.4);
}

html[data-theme="light"] .project-card-showcase {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .project-card-showcase.flagship {
  border-color: rgba(240, 165, 0, 0.6);
  background: #ffffff;
  box-shadow: 0 12px 40px rgba(240, 165, 0, 0.12);
}

html[data-theme="light"] .showcase-title {
  color: #111827;
}

html[data-theme="light"] .showcase-purpose {
  color: #4b5563;
}

html[data-theme="light"] .showcase-features-list li {
  color: #4b5563;
}

html[data-theme="light"] .project-showcase-window {
  background: #ffffff;
  border-color: #e5e7eb;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .window-header {
  background: #f3f4f6;
  border-bottom-color: #e5e7eb;
}

html[data-theme="light"] .window-address-bar {
  background: #ffffff;
  color: #374151;
  border: 1px solid #e5e7eb;
}

html[data-theme="light"] .project-title {
  color: #111827;
}

html[data-theme="light"] .project-purpose {
  color: #4b5563;
}

html[data-theme="light"] .project-features-list li {
  color: #4b5563;
}

html[data-theme="light"] .project-features-list li strong {
  color: #111827;
}

html[data-theme="light"] .project-gallery-box {
  background: #f9fafb;
  border-color: #e5e7eb;
}

html[data-theme="light"] .project-preview-card {
  background: #ffffff;
  border-color: #e5e7eb;
}

html[data-theme="light"] .preview-card-content h6 {
  color: #111827;
}

html[data-theme="light"] .preview-card-content p {
  color: #4b5563;
}

html[data-theme="light"] .contact-info-panel {
  background: #ffffff;
  border-color: #e5e7eb;
}

html[data-theme="light"] .contact-info-panel .info-item h3 {
  color: #111827;
}

html[data-theme="light"] .contact-info-panel .info-item p {
  color: #4b5563;
}

html[data-theme="light"] .contact-info-panel .info-item a {
  color: #4b5563;
}

html[data-theme="light"] .contact-info-panel .info-item a:hover {
  color: #b07800;
}

html[data-theme="light"] .creative-cat-badge {
  background: #ffffff;
  border-color: #e5e7eb;
  color: #4b5563;
}

html[data-theme="light"] .creative-cat-badge.active,
html[data-theme="light"] .creative-cat-badge:hover {
  background: rgba(240, 165, 0, 0.12);
  border-color: rgba(240, 165, 0, 0.5);
  color: #111827;
}

html[data-theme="light"] .badge-status-dev {
  background: rgba(240, 165, 0, 0.12);
  color: #b45309;
  border-color: rgba(240, 165, 0, 0.4);
}

html[data-theme="light"] .badge-pill-dev {
  background: rgba(240, 165, 0, 0.1);
  color: #b45309;
  border-color: rgba(240, 165, 0, 0.35);
}

/* ── Project Details Modal ── */
.modal {
  z-index: 100000 !important;
}

.modal-backdrop {
  z-index: 99990 !important;
}

.modal-project .modal-dialog {
  margin: 80px auto 2rem;
  max-width: 820px;
}

.modal-project .modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  color: var(--text-primary);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
  max-height: calc(100vh - 110px);
}

.modal-project .modal-header {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 1.75rem 1.25rem;
  align-items: flex-start;
}

.modal-project .modal-header .btn-close {
  margin-top: 4px;
}

.modal-project .modal-title {
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.35rem;
}

.modal-project .modal-body {
  padding: 1.75rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.modal-project .modal-body p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.modal-project .modal-footer {
  border-top: 1px solid var(--border-color);
  padding: 1rem 1.75rem;
}

.modal-project .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.modal-project .btn-close:hover {
  opacity: 1;
}

html[data-theme="light"] .modal-project .modal-content {
  background: #ffffff;
  border-color: #e5e7eb;
  color: #111827;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .modal-project .modal-title {
  color: #111827;
}

html[data-theme="light"] .modal-project .modal-body,
html[data-theme="light"] .modal-project .modal-body p {
  color: #4b5563;
}

html[data-theme="light"] .modal-project .btn-close {
  filter: none;
}

/* ── Responsive adjustments ── */
@media (max-width: 768px) {
  .hero-cta-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
  }
  .btn-hero-primary,
  .btn-hero-secondary,
  .btn-hero-outline {
    width: 100%;
  }
  .project-card {
    padding: 22px 18px;
  }
  .modal-project .modal-dialog {
    margin: 70px 12px 1.5rem;
    max-width: calc(100% - 24px);
  }
}

/*--------------------------------------------------------------
# Work in Action / Personal Gallery Section
--------------------------------------------------------------*/
.gallery-section {
  padding: 80px 0;
  position: relative;
}

.gallery-highlight-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}

.gallery-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: all 0.25s ease;
}

.gallery-pill:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.gallery-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.gallery-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.gallery-card:hover {
  transform: translateY(-6px);
  border-color: rgba(240, 165, 0, 0.45);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(240, 165, 0, 0.15);
}

.gallery-card-media {
  position: relative;
  overflow: hidden;
  background: #0d0e12;
  cursor: pointer;
  display: block;
  aspect-ratio: 16 / 11;
}

.gallery-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}

.gallery-card:hover .gallery-card-media img {
  transform: scale(1.05);
}

/* Media Overlay on Hover */
.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.15) 0%, rgba(10, 10, 10, 0.75) 100%);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

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

.gallery-card-zoom-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(240, 165, 0, 0.95);
  color: #121316;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(240, 165, 0, 0.5);
  transform: scale(0.7) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-card:hover .gallery-card-zoom-btn {
  transform: scale(1) translateY(0);
}

/* Floating badge */
.gallery-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(14, 14, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
}

/* Card Content / Caption */
.gallery-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  background: var(--bg-card);
}

.gallery-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.35;
}

.gallery-card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 14px;
  flex-grow: 1;
}

.gallery-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.gallery-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  color: var(--accent-primary);
  font-weight: 500;
}

/* Light mode adjustments */
html[data-theme="light"] .gallery-card {
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .gallery-card:hover {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12), 0 0 20px rgba(196, 127, 0, 0.15);
}

html[data-theme="light"] .gallery-card-badge {
  background: rgba(255, 255, 255, 0.92);
  color: #1a1a1a;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .gallery-card-body {
  background: #ffffff;
}

html[data-theme="light"] .gallery-pill {
  background: #ffffff;
}

/* Responsive Grid */
@media (max-width: 991px) {
  .gallery-bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 680px) {
  .gallery-bento-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

