:root{
  --bg: #050505;
  --bg-soft: #0b0b0b;
  --card: #111111;
  --text: #ffffff;
  --muted: rgba(255,255,255,.78);
  --btn-bg: #ffffff;
  --btn-text: #000000;
  --border: rgba(255,255,255,.12);
}

body.light-mode{
  --bg: #f5f5f5;
  --bg-soft: #ffffff;
  --card: #ffffff;
  --text: #111111;
  --muted: rgba(17,17,17,.8);
  --btn-bg: #111111;
  --btn-text: #ffffff;
  --border: rgba(0,0,0,.12);
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:Poppins, sans-serif;
}

html{
  scroll-behavior:smooth;
}

body{
  color:var(--text);
  line-height:1.6;
  transition: background .3s ease, color .3s ease;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,.22) 1.1px, transparent 1.2px);
  background-size:
    52px 52px,
    52px 52px,
    52px 52px;
  background-position:
    0 0,
    0 0,
    26px 26px;
  background-attachment: fixed;
}

body.light-mode{
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(0,0,0,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.05) 1px, transparent 1px),
    radial-gradient(circle, rgba(0,0,0,.18) 1.1px, transparent 1.2px);
  background-size:
    52px 52px,
    52px 52px,
    52px 52px;
  background-position:
    0 0,
    0 0,
    26px 26px;
  background-attachment: fixed;
}

a,
button,
.card,
.project-card,
.logo,
.nav-links li,
.theme-toggle,
.lang-switcher button,
.btn,
.container img,
.section,
.dark,
input,
textarea,
.about-image,
.about-image-frame,
.project-card img,
.project-btn,
.project-tags span,
.chatbot-toggle,
.chatbot-box,
.gallery-item,
.gallery-item img{
  transition:all .35s ease;
}

.navbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 60px;
  position:fixed;
  width:100%;
  top:0;
  left:0;
  background:rgba(5,5,5,.82);
  backdrop-filter:blur(10px);
  z-index:1000;
}

body.light-mode .navbar{
  background:rgba(255,255,255,.82);
  box-shadow:0 8px 24px rgba(0,0,0,.06);
}

.logo{
  font-size:24px;
  font-weight:800;
  color:var(--text);
  cursor:pointer;
  line-height:1;
}

.logo:hover{
  transform:scale(1.05);
  text-shadow:0 0 12px rgba(255,255,255,.2);
}

body.light-mode .logo:hover{
  text-shadow:0 0 12px rgba(0,0,0,.12);
}

.site-logo-image{
  height:42px;
  width:auto;
  max-width:160px;
  object-fit:contain;
  display:block;
}

.logo.has-image .site-logo-text{
  display:none;
}

.logo.has-image{
  padding:0;
}


.nav-links{
  display:flex;
  gap:30px;
  list-style:none;
}

.navbar a{
  color:var(--text);
  text-decoration:none;
  opacity:.85;
  position:relative;
}

.navbar a:hover{
  opacity:1;
  transform:translateY(-2px);
}

.navbar a::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  width:0;
  height:2px;
  background:currentColor;
  transition:width .3s ease;
}

.navbar a:hover::after{
  width:100%;
}

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

.lang-switcher{
  display:flex;
  gap:6px;
  padding:6px;
  border:1px solid var(--border);
  border-radius:999px;
  background:rgba(255,255,255,.04);
}

body.light-mode .lang-switcher{
  background:rgba(0,0,0,.03);
}

.lang-switcher button{
  border:none;
  background:transparent;
  color:var(--text);
  cursor:pointer;
  padding:6px 10px;
  border-radius:999px;
  font-size:14px;
}

.lang-switcher button:hover{
  background:var(--btn-bg);
  color:var(--btn-text);
  transform:translateY(-2px);
}

.theme-toggle{
  width:38px;
  height:38px;
  border-radius:50%;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--text);
  cursor:pointer;
  font-size:16px;
}

body.light-mode .theme-toggle{
  background:rgba(0,0,0,.03);
}

.theme-toggle:hover{
  transform:rotate(20deg) scale(1.1);
}

.hero{
  min-height:100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:120px 20px 40px;
  position:relative;
  overflow:hidden;
  background:transparent;
}

.hero h1{
  font-size:clamp(56px,9vw,140px);
  font-weight:800;
  line-height:1;
}

.hero h2{
  margin-top:18px;
  font-weight:300;
  font-size:clamp(28px,2.6vw,54px);
}

.hero p{
  opacity:.85;
  margin-top:10px;
  font-size:clamp(18px,1.6vw,28px);
}

.hero-bg{
  display:none;
}

.hero-content{
  position:relative;
  z-index:2;
}

.btn{
  display:inline-block;
  background:var(--btn-bg);
  color:var(--btn-text);
  padding:12px 24px;
  border:none;
  border-radius:10px;
  margin-top:18px;
  cursor:pointer;
  text-decoration:none;
  position:relative;
  overflow:hidden;
}

.btn:hover{
  transform:translateY(-4px) scale(1.05);
  box-shadow:0 15px 30px rgba(0,0,0,.25);
}

.btn::before{
  content:"";
  position:absolute;
  top:0;
  left:-120%;
  width:80%;
  height:100%;
  background:linear-gradient(120deg,transparent,rgba(255,255,255,.4),transparent);
  transition:left .6s ease;
}

.btn:hover::before{
  left:140%;
}

.section{
  padding:120px 10%;
  background:transparent;
}

.dark{
  background:transparent;
}

.center{
  text-align:center;
}

.container{
  display:flex;
  align-items:center;
  gap:60px;
}

.container img{
  width:400px;
  border-radius:10px;
  display:block;
}

.container img:hover{
  transform:scale(1.04);
  box-shadow:0 20px 40px rgba(0,0,0,.25);
}

.about-section{
  padding:140px 6% 120px;
  background:transparent;
}

.about-grid{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:80px;
  align-items:center;
}

.about-text{
  max-width:780px;
}

.about-title{
  font-size:clamp(56px,6vw,92px);
  line-height:.95;
  font-weight:800;
  margin-bottom:22px;
}

.about-subtitle{
  font-size:clamp(20px,1.8vw,32px);
  color:var(--muted);
  margin-bottom:26px;
}

.about-line{
  width:90px;
  height:4px;
  background:var(--text);
  margin:0 0 42px;
  border-radius:999px;
  opacity:.9;
}

.about-text p{
  font-size:clamp(21px,1.8vw,34px);
  line-height:1.65;
  margin-bottom:28px;
}

.about-btn{
  margin-top:18px;
}

.about-image-wrap{
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
}

.about-image-frame{
  position:absolute;
  width:min(92%,540px);
  aspect-ratio:4 / 5;
  border:3px solid rgba(255,255,255,.8);
  transform:translate(22px,22px);
  z-index:1;
  pointer-events:none;
}

body.light-mode .about-image-frame{
  border-color:rgba(0,0,0,.7);
}

.about-image{
  position:relative;
  width:min(92%,540px);
  aspect-ratio:4 / 5;
  object-fit:cover;
  z-index:2;
  border-radius:2px;
  display:block;
  filter:grayscale(1) saturate(.5) contrast(1.02);
}

.about-image:hover{
  filter:grayscale(0) saturate(1.15) contrast(1.04);
  transform:translateY(-6px) scale(1.01);
  box-shadow:0 22px 50px rgba(0,0,0,.28);
}

body.light-mode .about-image:hover{
  box-shadow:0 18px 40px rgba(0,0,0,.16);
}

.projects-section{
  padding:140px 8%;
  background:transparent;
  color:var(--text);
  opacity:1;
  transform:none;
}

.projects-header-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:30px;
}

.projects-header{
  max-width:900px;
}

.projects-header h2{
  font-size:clamp(60px,7vw,110px);
  line-height:1;
  font-weight:800;
  margin-bottom:20px;
  letter-spacing:-2px;
}

.projects-header p{
  font-size:clamp(18px,1.6vw,24px);
  color:var(--muted);
  margin-bottom:30px;
  max-width:760px;
}

.projects-line{
  width:120px;
  height:5px;
  background:var(--text);
  border-radius:999px;
}

.view-more-link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:var(--text);
  text-decoration:none;
  font-size:clamp(20px,1.6vw,32px);
  font-weight:700;
  white-space:nowrap;
  margin-top:18px;
  opacity:.95;
  transition:transform .3s ease, opacity .3s ease, color .3s ease;
}

.view-more-link::after{
  display:none !important;
}

.view-more-link i{
  font-size:1.2em;
  transition:transform .3s ease;
}

.view-more-link:hover{
  opacity:1;
  transform:translateX(4px);
}

.view-more-link:hover i{
  transform:translateX(6px);
}

.projects-grid{
  margin-top:80px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:40px;
}

.project-card{
  background:rgba(17,17,17,.92);
  border-radius:30px;
  overflow:hidden;
  border:1px solid var(--border);
  position:relative;
  backdrop-filter:blur(2px);
  opacity:1;
  transform:none;
}

body.light-mode .project-card{
  background:rgba(255,255,255,.95);
}

.project-card:hover{
  transform:translateY(-10px) scale(1.01);
  box-shadow:0 25px 60px rgba(0,0,0,.35);
}

.project-card img{
  width:100%;
  height:360px;
  object-fit:cover;
  display:block;
  filter:grayscale(100%);
}

.project-card:hover img{
  filter:grayscale(0%);
  transform:scale(1.05);
}

.project-content{
  padding:34px;
}

.project-icon{
  width:52px;
  height:52px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:20px;
  font-size:22px;
}

body.light-mode .project-icon{
  background:rgba(0,0,0,.03);
}

.project-content h3{
  font-size:28px;
  margin-bottom:16px;
  line-height:1.2;
}

.project-content p{
  font-size:18px;
  color:var(--muted);
  margin-bottom:24px;
  line-height:1.6;
}

.project-tags{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:30px;
}

.project-tags span{
  padding:7px 12px;
  font-size:13px;
  border-radius:8px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.04);
  color:var(--text);
}

body.light-mode .project-tags span{
  background:rgba(0,0,0,.03);
}

.project-btn{
  display:block;
  text-align:center;
  padding:16px;
  border-radius:14px;
  border:1px solid var(--border);
  text-decoration:none;
  color:var(--text);
  font-weight:600;
  letter-spacing:.5px;
}

.project-btn:hover{
  background:var(--btn-bg);
  color:var(--btn-text);
  transform:translateY(-2px);
}

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

.card{
  background:rgba(17,17,17,.92);
  padding:20px;
  border-radius:10px;
  border:1px solid var(--border);
  position:relative;
  overflow:hidden;
}

body.light-mode .card{
  background:rgba(255,255,255,.95);
}

.card:hover{
  transform:translateY(-10px) scale(1.02);
  box-shadow:0 20px 45px rgba(0,0,0,.3);
}

.card img{
  width:100%;
  border-radius:6px;
  margin-bottom:10px;
  display:block;
}

.card img:hover{
  transform:scale(1.05);
}

.contact-form{
  max-width:500px;
  margin:auto;
  display:flex;
  flex-direction:column;
  gap:15px;
}

.contact-form input,
.contact-form textarea{
  padding:12px;
  border:1px solid var(--border);
  border-radius:8px;
  background:var(--card);
  color:var(--text);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder{
  color:var(--muted);
}

.contact-form input:focus,
.contact-form textarea:focus{
  outline:none;
  border-color:#888;
  box-shadow:0 0 0 3px rgba(255,255,255,.06);
}

body.light-mode .contact-form input:focus,
body.light-mode .contact-form textarea:focus{
  box-shadow:0 0 0 3px rgba(0,0,0,.06);
}

footer{
  text-align:center;
  padding:40px;
  opacity:.6;
  background:transparent;
}

.section,
.card{
  opacity:0;
  transform:translateY(40px);
  transition:opacity .7s ease, transform .7s ease, background .35s ease, color .35s ease;
}

.show-section{
  opacity:1;
  transform:translateY(0);
}

.hero,
.hero *{
  opacity:1;
}

.hero-name{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:0.02em;
  user-select:none;
}

.chatbot{
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2000;
}

.chatbot-toggle{
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.22);
  background: #0d0d0d;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.chatbot-toggle:hover{
  transform: translateY(-3px) scale(1.08);
  background: #ffffff;
  color: #000000;
}

.chatbot-toggle svg{
  width: 24px;
  height: 24px;
}

.chatbot-box{
  position: absolute;
  right: 0;
  bottom: 76px;
  width: 360px;
  max-width: calc(100vw - 24px);
  height: 500px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,.35);
  display: none;
  flex-direction: column;
}

.chatbot-box.open{
  display:flex;
}

.chatbot-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  padding:18px 18px 14px;
  border-bottom:1px solid var(--border);
  background:var(--bg-soft);
}

.chatbot-header h3{
  font-size:18px;
  margin:0 0 4px;
}

.chatbot-header p{
  font-size:13px;
  color:var(--muted);
  margin:0;
}

.chatbot-close{
  border:none;
  background:transparent;
  color:var(--text);
  font-size:20px;
  cursor:pointer;
}

.chatbot-messages{
  flex:1;
  padding:16px;
  overflow-y:auto;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.user-message,
.bot-message{
  max-width:85%;
  padding:12px 14px;
  border-radius:16px;
  line-height:1.5;
  font-size:14px;
}

.user-message{
  align-self:flex-end;
  background:var(--btn-bg);
  color:var(--btn-text);
  border-bottom-right-radius:6px;
}

.bot-message{
  align-self:flex-start;
  background:rgba(255,255,255,.06);
  color:var(--text);
  border:1px solid var(--border);
  border-bottom-left-radius:6px;
}

body.light-mode .bot-message{
  background:rgba(0,0,0,.04);
}

.chatbot-input-area{
  display:flex;
  gap:10px;
  padding:14px;
  border-top:1px solid var(--border);
  background:var(--bg-soft);
}

.chatbot-input-area input{
  flex:1;
  border:1px solid var(--border);
  background:var(--bg);
  color:var(--text);
  border-radius:12px;
  padding:12px 14px;
}

.chatbot-input-area input:focus{
  outline:none;
  border-color:#888;
}

.chatbot-input-area button{
  border:none;
  background:var(--btn-bg);
  color:var(--btn-text);
  border-radius:12px;
  padding:0 16px;
  cursor:pointer;
  font-weight:600;
}

.chatbot-input-area button:hover{
  transform:translateY(-2px);
}

.talk-section{
  padding:140px 6% 120px;
  background:transparent;
  color:#fff;
}

body.light-mode .talk-section{
  background:transparent;
  color:#111;
}

.talk-wrapper{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:70px;
  align-items:start;
}

.talk-left{
  padding-top:10px;
}

.talk-label{
  font-size:14px;
  letter-spacing:3px;
  color:rgba(255,255,255,.65);
  margin-bottom:20px;
}

.talk-title{
  font-size:clamp(56px,8vw,120px);
  line-height:.95;
  font-weight:800;
  margin-bottom:26px;
  letter-spacing:-2px;
}

.talk-text{
  font-size:clamp(20px,1.8vw,34px);
  line-height:1.5;
  color:rgba(255,255,255,.72);
  max-width:780px;
  margin-bottom:55px;
}

.talk-links{
  display:flex;
  gap:34px;
  flex-wrap:wrap;
}

.talk-item{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:14px;
  text-decoration:none;
  color:#fff;
}

.talk-icon{
  width:84px;
  height:84px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:30px;
  transition:all .35s ease;
}

.talk-item span{
  font-size:18px;
  letter-spacing:2px;
  color:rgba(255,255,255,.72);
  transition:all .35s ease;
}

.talk-item:hover .talk-icon{
  transform:translateY(-6px) scale(1.05);
  border-color:rgba(255,255,255,.35);
}

.talk-item:hover span{
  color:#fff;
}

.talk-right{
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  border-radius:34px;
  padding:42px;
  backdrop-filter:blur(2px);
}

.talk-form{
  display:flex;
  flex-direction:column;
  gap:18px;
}

.talk-form label{
  font-size:14px;
  letter-spacing:2px;
  color:rgba(255,255,255,.62);
}

.talk-form input,
.talk-form textarea{
  width:100%;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  padding:20px 22px;
  color:#fff;
  font-size:16px;
  outline:none;
  transition:all .3s ease;
}

.talk-form input::placeholder,
.talk-form textarea::placeholder{
  color:rgba(255,255,255,.45);
}

.talk-form input:focus,
.talk-form textarea:focus{
  border-color:rgba(255,255,255,.25);
  background:rgba(255,255,255,.05);
}

.talk-form textarea{
  min-height:160px;
  resize:vertical;
}

.talk-btn{
  margin-top:18px;
  width:100%;
  border:none;
  background:#fff;
  color:#000;
  padding:22px;
  border-radius:20px;
  font-size:18px;
  font-weight:700;
  letter-spacing:2px;
  cursor:pointer;
  transition:all .35s ease;
}

.talk-btn:hover{
  transform:translateY(-3px);
  box-shadow:0 18px 40px rgba(0,0,0,.3);
}

body.light-mode .talk-label{
  color:rgba(0,0,0,.55);
}

body.light-mode .talk-text{
  color:rgba(0,0,0,.68);
}

body.light-mode .talk-item{
  color:#111;
}

body.light-mode .talk-icon{
  border:1px solid rgba(0,0,0,.12);
}

body.light-mode .talk-item span{
  color:rgba(0,0,0,.65);
}

body.light-mode .talk-item:hover span{
  color:#111;
}

body.light-mode .talk-right{
  background:rgba(0,0,0,.02);
  border:1px solid rgba(0,0,0,.08);
}

body.light-mode .talk-form label{
  color:rgba(0,0,0,.55);
}

body.light-mode .talk-form input,
body.light-mode .talk-form textarea{
  background:rgba(0,0,0,.025);
  border:1px solid rgba(0,0,0,.08);
  color:#111;
}

body.light-mode .talk-form input::placeholder,
body.light-mode .talk-form textarea::placeholder{
  color:rgba(0,0,0,.42);
}

body.light-mode .talk-btn{
  background:#111;
  color:#fff;
}

.typing-text{
  font-size:clamp(28px,2.6vw,54px);
  font-weight:300;
  margin-top:18px;
  letter-spacing:2px;
}

#typing::after{
  content:"|";
  margin-left:5px;
  animation:blink 1s infinite;
}

@keyframes blink{
  0%{opacity:1;}
  50%{opacity:0;}
  100%{opacity:1;}
}

/* =========================
   GALLERY SECTION - OLD
========================= */

.gallery-section{
  padding:100px 8%;
  background:transparent;
  color:var(--text);
}

.gallery-header-row{
  display:flex;
  align-items:flex-start;
  gap:30px;
}

.gallery-header{
  flex:1;
  margin-bottom:50px;
}

.gallery-header h2{
  font-size:clamp(2.5rem, 6vw, 5rem);
  font-weight:800;
  margin-bottom:15px;
}

.gallery-header p{
  font-size:1.2rem;
  color:var(--muted);
  max-width:700px;
  line-height:1.8;
}

.gallery-section .view-more-link{
  margin-left:auto;
  align-self:flex-start;
  text-align:right;
}

.gallery-line{
  display:block;
  width:80px;
  height:5px;
  background:#fff;
  margin-top:25px;
  border-radius:20px;
}

body.light-mode .gallery-line{
  background:#111;
}

.gallery-grid{
  display:grid;
  grid-template-columns:repeat(12, 1fr);
  gap:24px;
}

.gallery-item{
  position:relative;
  overflow:hidden;
  border-radius:24px;
  background:rgba(17,17,17,.92);
  min-height:260px;
  box-shadow:0 12px 28px rgba(0,0,0,.18);
}

body.light-mode .gallery-item{
  background:rgba(255,255,255,.95);
  box-shadow:0 10px 24px rgba(0,0,0,.08);
}

.gallery-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .5s ease;
}

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

.gallery-item.tall{
  grid-column:span 4;
  grid-row:span 2;
  min-height:640px;
}

.gallery-item.wide{
  grid-column:span 8;
  min-height:330px;
}

.gallery-item:not(.tall):not(.wide){
  grid-column:span 4;
  min-height:300px;
}

@media (max-width:1100px){
  .about-grid{
    grid-template-columns:1fr;
    gap:50px;
  }

  .about-text{
    max-width:none;
  }

  .about-image-wrap{
    order:2;
  }

  .about-title{
    font-size:clamp(46px,9vw,72px);
  }

  .about-text p{
    font-size:clamp(18px,3vw,24px);
  }
}

@media (max-width:992px){
  .gallery-grid{
    grid-template-columns:repeat(2, 1fr);
  }

  .gallery-item,
  .gallery-item.tall,
  .gallery-item.wide{
    grid-column:span 1;
    grid-row:span 1;
    min-height:260px;
  }
}

@media (max-width:980px){
  .talk-wrapper{
    grid-template-columns:1fr;
    gap:45px;
  }

  .talk-right{
    padding:28px;
  }
}

@media (max-width:900px){
  .navbar{
    padding:18px 20px;
    flex-wrap:wrap;
    gap:16px;
  }

  .logo{
    font-size:20px;
  }

  .nav-links{
    width:100%;
    justify-content:center;
    flex-wrap:wrap;
    gap:16px;
  }

  .top-controls{
    width:100%;
    justify-content:center;
  }

  .container{
    flex-direction:column;
  }

  .container img{
    width:100%;
    max-width:420px;
  }

  .projects-header-row{
    flex-direction:column;
    align-items:flex-start;
  }

  .gallery-header-row{
    flex-direction:column;
    align-items:flex-start;
  }

  .view-more-link{
    margin-top:8px;
  }

  .gallery-section .view-more-link{
    margin-left:0;
    margin-top:8px;
  }

  .projects-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .project-card img{
    height:280px;
  }

  .projects-header h2{
    font-size:52px;
  }
}

@media (max-width:768px){
  body{
    background-size:
      36px 36px,
      36px 36px,
      36px 36px;
    background-position:
      0 0,
      0 0,
      18px 18px;
  }

  body.light-mode{
    background-size:
      36px 36px,
      36px 36px,
      36px 36px;
    background-position:
      0 0,
      0 0,
      18px 18px;
  }

  .section{
    padding:100px 7%;
  }

  .about-section{
    padding:110px 7% 100px;
  }

  .projects-section{
    padding:110px 7%;
  }

  .gallery-section{
    padding:80px 6%;
  }

  .gallery-grid{
    grid-template-columns:1fr;
    gap:16px;
  }

  .gallery-item,
  .gallery-item.tall,
  .gallery-item.wide{
    min-height:240px;
  }

  .gallery-header p{
    font-size:1rem;
  }

  .about-subtitle{
    font-size:18px;
  }

  .about-text p{
    font-size:18px;
    line-height:1.8;
  }

  .project-content{
    padding:24px 20px;
  }

  .project-content h3{
    font-size:24px;
  }

  .project-content p{
    font-size:16px;
  }

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

  .chatbot{
    right:16px;
    bottom:16px;
  }

  .chatbot-box{
    width:calc(100vw - 24px);
    right:0;
    height:70vh;
    bottom:74px;
  }

  .chatbot-toggle{
    width:56px;
    height:56px;
  }

  .talk-section{
    padding:110px 7% 100px;
  }

  .talk-links{
    gap:22px;
  }

  .talk-icon{
    width:72px;
    height:72px;
    font-size:24px;
  }

  .talk-item span{
    font-size:16px;
  }

  .talk-form input,
  .talk-form textarea{
    padding:16px 18px;
    border-radius:14px;
  }

  .talk-btn{
    padding:18px;
    border-radius:16px;
    font-size:16px;
  }
}

.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  overflow:hidden;
}

.hero-bg{
  position:absolute;
  right:0;
  bottom:0;
  height:100%;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  pointer-events:none;
  z-index:1;
}

.hero-bg img{
  height:90vh;
  max-height:850px;
  object-fit:contain;
  opacity:0.9;
}

.hero-content{
  position:relative;
  z-index:2;
}

.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}

.hero-bg{
  position:absolute;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  z-index:1;
  pointer-events:none;
}

.hero-bg img{
  height:90vh;
  max-height:850px;
  object-fit:contain;
  opacity:0.9;
}

.hero-content{
  position:relative;
  z-index:2;
  text-align:center;
}

/* HERO SECTION */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  overflow:hidden;
}

.hero-image{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  z-index:1;
  pointer-events:none;
}

.hero-image img{
  height:85vh;
  max-height:900px;
  filter: grayscale(100%) brightness(1.1);
  opacity:0.35;
  object-fit:contain;
}

.hero-content{
  position:relative;
  z-index:2;
}

.hero-name{
  font-size:clamp(50px,8vw,120px);
  font-weight:800;
  letter-spacing:3px;
}

.hero-name{
  font-size:clamp(50px,8vw,120px);
  font-weight:800;
  letter-spacing:3px;
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:2px;
  line-height:1;
}

.hero-name span{
  display:inline-block;
  cursor:pointer;
  transition:
    transform 0.25s ease,
    color 0.25s ease,
    text-shadow 0.25s ease,
    opacity 0.25s ease;
}

.hero-name span:hover{
  transform:translateY(-12px) scale(1.08) rotate(-4deg);
  text-shadow:0 0 18px rgba(255,255,255,0.45);
}

body.light-mode .hero-name span:hover{
  text-shadow:0 0 18px rgba(0,0,0,0.18);
}

.hero-name .space{
  width:22px;
  cursor:default;
}

.hero-name .space:hover{
  transform:none;
  text-shadow:none;
}

.hero-name span.shake{
  animation:letterShake 0.35s ease;
}

@keyframes letterShake{
  0%   { transform:translateX(0) rotate(0); }
  20%  { transform:translateX(-3px) rotate(-6deg); }
  40%  { transform:translateX(3px) rotate(6deg); }
  60%  { transform:translateX(-3px) rotate(-4deg); }
  80%  { transform:translateX(3px) rotate(4deg); }
  100% { transform:translateX(0) rotate(0); }
}

/* =========================
   PLATFORMS SECTION
========================= */
.platforms{
  padding:110px 8% 90px;
  position:relative;
}

.platforms-header{
  max-width:780px;
  margin-bottom:50px;
}

.platforms-header h2{
  font-size:clamp(3rem, 7vw, 6rem);
  line-height:1;
  font-weight:800;
  letter-spacing:-2px;
  margin-bottom:18px;
  color:var(--text);
}

.platforms-header p{
  font-size:1.2rem;
  color:var(--muted);
  max-width:700px;
  margin-bottom:28px;
}

.platforms-line{
  width:105px;
  height:6px;
  border-radius:999px;
  background:#fff;
}

.platforms-grid{
  margin-top:70px;
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:26px 28px;
}

.platform-item{
  --platform-color:#ffffff;
  position:relative;
  display:block;
  text-decoration:none;
  color:var(--text);
  border-radius:22px;
  overflow:hidden;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size:18px 18px;
  border:1px solid rgba(255,255,255,0.10);
  min-height:92px;
  transition:transform .28s ease, border-color .28s ease, box-shadow .28s ease, background-color .28s ease;
  backdrop-filter:blur(6px);
}

.platform-item::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  opacity:1;
  transition:opacity .28s ease, background .28s ease;
}

.platform-item::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:22px;
  pointer-events:none;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,0.03);
}

.platform-inner{
  position:relative;
  z-index:2;
  height:100%;
  min-height:92px;
  display:flex;
  align-items:center;
  gap:14px;
  padding:0 22px;
}

.platform-icon{
  font-size:1.45rem;
  color:rgba(255,255,255,0.95);
  transition:color .28s ease, transform .28s ease, text-shadow .28s ease;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.platform-name{
  font-size:1.05rem;
  font-weight:700;
  letter-spacing:1.4px;
  text-transform:uppercase;
  color:rgba(255,255,255,0.82);
  transition:color .28s ease, text-shadow .28s ease, letter-spacing .28s ease;
}

.platform-item:hover{
  transform:translateY(-4px);
  border-color:color-mix(in srgb, var(--platform-color) 55%, rgba(255,255,255,0.16));
  box-shadow:
    0 12px 35px rgba(0,0,0,0.28),
    0 0 18px color-mix(in srgb, var(--platform-color) 22%, transparent);
}

.platform-item:hover::before{
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--platform-color) 18%, transparent),
      rgba(255,255,255,0.02)
    );
}

.platform-item:hover .platform-icon{
  color:var(--platform-color);
  text-shadow:0 0 12px color-mix(in srgb, var(--platform-color) 40%, transparent);
  transform:scale(1.08);
}

.platform-item:hover .platform-name{
  color:var(--platform-color);
  text-shadow:0 0 12px color-mix(in srgb, var(--platform-color) 22%, transparent);
  letter-spacing:1.7px;
}

.platform-item.github{
  --platform-color:#ffffff;
}

.platform-item.linkedin{
  --platform-color:#0A66C2;
}

.platform-item.twitter{
  --platform-color:#ffffff;
}

.platform-item.instagram{
  --platform-color:#E1306C;
}

.platform-item.youtube{
  --platform-color:#FF0000;
}

.platform-item.facebook{
  --platform-color:#1877F2;
}

.platform-item.linktree{
  --platform-color:#39ff14;
}

.platform-item.tiktok{
  --platform-color:#ff0050;
}

body.light-mode .platform-item.github{
  --platform-color:#111111;
}

body.light-mode .platform-item.twitter{
  --platform-color:#111111;
}

@media (max-width:1200px){
  .platforms-grid{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }
}

@media (max-width:900px){
  .platforms{
    padding:90px 6% 80px;
  }

  .platforms-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap:20px;
  }

  .platform-inner{
    padding:0 18px;
  }

  .platform-name{
    font-size:0.95rem;
  }
}

@media (max-width:560px){
  .platforms-grid{
    grid-template-columns:1fr;
  }

  .platforms-header p{
    font-size:1rem;
  }

  .platform-item,
  .platform-inner{
    min-height:78px;
  }
}

body.light-mode .platforms-header h2{
  color:#111111;
}

body.light-mode .platforms-header p{
  color:rgba(17,17,17,0.75);
}

body.light-mode .platforms-line{
  background:#111111;
}

body.light-mode .platform-item{
  background:
    radial-gradient(circle at center, rgba(0,0,0,0.06) 1px, transparent 1px);
  background-size:18px 18px;
  border:1px solid rgba(0,0,0,0.12);
  box-shadow:0 8px 22px rgba(0,0,0,0.05);
}

body.light-mode .platform-item::before{
  background:linear-gradient(90deg, rgba(0,0,0,0.03), rgba(0,0,0,0.01));
}

body.light-mode .platform-item::after{
  box-shadow:inset 0 0 0 1px rgba(0,0,0,0.03);
}

body.light-mode .platform-icon{
  color:rgba(17,17,17,0.9);
}

body.light-mode .platform-name{
  color:rgba(17,17,17,0.78);
}

body.light-mode .platform-item:hover{
  border-color:var(--platform-color);
  box-shadow:
    0 12px 28px rgba(0,0,0,0.10),
    0 0 0 1px color-mix(in srgb, var(--platform-color) 20%, transparent),
    0 0 20px color-mix(in srgb, var(--platform-color) 18%, transparent);
}

body.light-mode .platform-item:hover::before{
  background:
    linear-gradient(
      90deg,
      color-mix(in srgb, var(--platform-color) 12%, white),
      rgba(255,255,255,0.35)
    );
}

body.light-mode .platform-item:hover .platform-icon,
body.light-mode .platform-item:hover .platform-name{
  color:var(--platform-color);
  text-shadow:none;
}

/* =========================
   MOBILE UX IMPROVEMENTS
========================= */

.menu-toggle{
  display:none;
  font-size:24px;
  background:none;
  border:none;
  color:var(--text);
  cursor:pointer;
}

@media (max-width:768px){

  .navbar{
    padding:15px 20px;
  }

  .menu-toggle{
    display:block;
  }

  .nav-links{
    position:absolute;
    top:70px;
    left:0;
    width:100%;
    background:var(--bg-soft);
    flex-direction:column;
    align-items:center;
    gap:20px;
    padding:20px 0;
    display:none;
  }

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

  .hero{
    padding-top:120px;
  }

  .hero h1{
    font-size:42px;
  }

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

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

  .section{
    padding:80px 20px;
  }

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

  .about-title{
    font-size:36px;
  }

  .projects-grid{
    grid-template-columns:1fr;
    gap:25px;
  }

  .project-card img{
    height:220px;
  }

  .gallery-grid{
    grid-template-columns:1fr;
    gap:16px;
  }

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

  .talk-wrapper{
    grid-template-columns:1fr;
  }

  .btn{
    width:100%;
    text-align:center;
  }

  .view-more-link{
    font-size:18px;
  }
}

.project-details-page{min-height:100vh;padding:70px 20px 40px;max-width:1100px;margin:0 auto}.back-projects-link{display:inline-flex;align-items:center;gap:8px;margin-bottom:24px;color:var(--text);text-decoration:none;border:1px solid var(--border);padding:12px 18px;border-radius:14px;background:rgba(255,255,255,.03)}.project-details-shell{display:block}.project-details-card{background:rgba(17,17,17,.92);border:1px solid var(--border);border-radius:30px;overflow:hidden}.project-details-image{width:100%;height:420px;object-fit:cover;display:block}.project-details-content{padding:34px}.project-details-badge{display:inline-flex;padding:8px 14px;border:1px solid var(--border);border-radius:999px;margin-bottom:18px;color:var(--muted)}.project-details-content h1{font-size:44px;line-height:1.1;margin:0 0 16px}.project-details-summary{font-size:19px;color:var(--muted);margin:0 0 22px;line-height:1.7}.project-details-tags{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:22px}.project-details-tags span{padding:8px 14px;border-radius:999px;border:1px solid var(--border);background:rgba(255,255,255,.04)}.project-details-text{font-size:17px;line-height:1.9;color:var(--text)}.details-btn{margin-top:24px}@media (max-width:768px){.project-details-image{height:240px}.project-details-content{padding:24px}.project-details-content h1{font-size:30px}.project-details-summary,.project-details-text{font-size:16px}}


.menu-toggle{
  display:none;
  width:44px;
  height:44px;
  border:1px solid var(--border);
  border-radius:12px;
  background:rgba(255,255,255,.04);
  color:var(--text);
  cursor:pointer;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
  padding:0;
}

body.light-mode .menu-toggle{
  background:rgba(0,0,0,.03);
}

.menu-toggle span{
  display:block;
  width:20px;
  height:2px;
  background:currentColor;
  border-radius:999px;
}

.menu-toggle.active span:nth-child(1){ transform:translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2){ opacity:0; }
.menu-toggle.active span:nth-child(3){ transform:translateY(-7px) rotate(-45deg); }

.nav-mobile-tools{
  display:none;
}

@media (max-width: 900px){
  .navbar{
    padding:14px 16px;
    gap:12px;
  }

  .desktop-controls{
    display:none;
  }

  .menu-toggle{
    display:flex;
    margin-left:auto;
  }

  .nav-links{
    position:fixed;
    top:72px;
    left:16px;
    right:16px;
    width:auto;
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:8px;
    padding:16px;
    background:rgba(5,5,5,.96);
    border:1px solid var(--border);
    border-radius:20px;
    box-shadow:0 18px 40px rgba(0,0,0,.35);
    opacity:0;
    pointer-events:none;
    transform:translateY(-10px);
    z-index:999;
  }

  body.light-mode .nav-links{
    background:rgba(255,255,255,.98);
  }

  .nav-links.active{
    opacity:1;
    pointer-events:auto;
    transform:translateY(0);
  }

  .nav-links li{
    width:100%;
    list-style:none;
  }

  .nav-links a{
    display:block;
    width:100%;
    padding:10px 12px;
    border-radius:12px;
  }

  .nav-links a:hover{
    background:rgba(255,255,255,.05);
  }

  body.light-mode .nav-links a:hover{
    background:rgba(0,0,0,.05);
  }

  .nav-mobile-tools{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-top:8px;
    padding-top:10px;
    border-top:1px solid var(--border);
  }

  .nav-mobile-tools .lang-switcher{
    flex:1;
    justify-content:center;
  }

  .nav-mobile-tools .theme-toggle{
    flex:0 0 44px;
  }

  .hero{
    min-height:auto;
    padding:120px 18px 48px;
  }

  .hero h1{
    font-size:clamp(40px, 13vw, 72px);
    line-height:1.05;
  }

  .hero h2{
    font-size:clamp(24px, 7vw, 36px);
  }

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

  .section, .projects-section, .gallery-section, .talk-section{
    padding:84px 18px;
  }

  .about-grid, .talk-wrapper{
    grid-template-columns:1fr !important;
    gap:28px;
  }

  .about-image-wrap{
    max-width:420px;
    margin:0 auto;
  }

  .projects-grid, .platforms-grid, .grid, .gallery-grid{
    gap:18px;
  }

  .projects-grid{
    grid-template-columns:1fr !important;
  }

  .platforms-grid{
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
  }

  .talk-form input, .talk-form textarea{
    width:100%;
  }

  .talk-links{
    justify-content:flex-start;
    flex-wrap:wrap;
    gap:16px;
  }
}

@media (max-width: 640px){
  .platforms-grid{
    grid-template-columns:1fr !important;
  }

  .site-logo-image{
    max-width:120px;
    height:34px;
  }

  .logo{
    font-size:20px;
  }

  .gallery-grid{
    grid-template-columns:1fr !important;
  }

  .gallery-item.wide, .gallery-item.tall{
    grid-column:auto !important;
    grid-row:auto !important;
  }

  .talk-btn, .btn{
    width:100%;
    text-align:center;
  }
}


.seo-aliases{
  color: var(--muted);
  font-size: .98rem;
}

.seo-summary{
  padding: 0 8% 2rem;
}

.seo-summary .section{
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,.03);
  color: var(--muted);
}

body.light-mode .seo-summary .section{
  background: rgba(0,0,0,.03);
}
