@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Libre+Baskerville:wght@400;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root{
  
  --bg:#1a1a1a;
  --card:#2a2a2a;
  --text:#ffffff;
  --muted:rgba(255,255,255,.7);
  --accent:#ffffff; 
  --accent-secondary:#e0e0e0; 
  --line:rgba(255,255,255,.1);
  --shadow:0 12px 40px rgba(0,0,0,.4);
  --radius:16px;
  --header-bg: rgba(26,26,26,.95);
  --footer-bg: rgba(42,42,42,.6);
}


body.light{
  --bg:#f5f7fa;
  --card:#ffffff;
  --text:#1a1f2e;
  --muted:rgba(26,31,46,.75);
  --accent:#8b7355;
  --accent-secondary:#5a7fa5;
  --line:rgba(26,31,46,.08);
  --shadow:0 8px 24px rgba(20,20,20,.08);
  --header-bg: rgba(255,255,255,.97);
  --footer-bg: rgba(245,247,250,.8);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }

body{
  margin:0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background-color .3s ease, color .3s ease;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  animation: pageLoad 0.6s ease-out;
}

@keyframes pageLoad {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


a{ color:inherit; text-decoration:none; }


.header-actions{ display:flex; gap:10px; align-items:center; }

.lang-selector {
  position: relative;
  display: inline-block;
}

.lang-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--text);
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 13px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 80px;
}

.lang-dropdown-btn:hover {
  background: rgba(255,255,255,.05);
  border-color: var(--accent);
  transform: scale(1.02);
}

.lang-current {
  flex: 1;
  text-align: left;
}

.lang-arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.lang-dropdown-btn.open .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px;
  min-width: 180px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
  backdrop-filter: none;
}

.lang-dropdown-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: transparent;
  border: none;
  color: #000000;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
}

.lang-option:hover {
  background: rgba(0,0,0,.08);
  transform: translateX(4px);
}

.lang-option.active {
  background: var(--accent);
  color: #000;
  font-weight: 600;
}

.lang-option.active:hover {
  background: var(--accent);
  transform: translateX(2px);
}

.lang-flag {
  font-size: 20px;
  line-height: 1;
}

.lang-name {
  flex: 1;
}

.theme-toggle{
  background:transparent;
  border:1px solid var(--line);
  color:var(--text);
  padding:8px 10px;
  border-radius:10px;
  cursor:pointer;
  font-size:16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover{ 
  background: rgba(255,255,255,.02);
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

body.light .theme-toggle {
  filter: brightness(0.3);
}

body.dark .lang-dropdown-menu {
  background: #000000 !important;
}

body.dark .lang-option {
  color: #ffffff;
}

body.dark .lang-option:hover {
  background: rgba(255,255,255,.08);
}

body.dark .lang-option.active {
  background: rgba(212, 175, 55, 0.3);
  color: #d4af37;
}

body.dark .lang-option.active:hover {
  background: rgba(212, 175, 55, 0.4);
}


img{ max-width:100%; height:auto; display:block; }


.thumb-row{ display:flex; gap:12px; flex-wrap:wrap; }
.thumb{ flex:1 1 160px; }
.thumb img{ width:100%; height:auto; display:block; border-radius:8px; }


.container{
  width: min(1400px, calc(100% - 80px));
  margin: 0 auto;
}

@media (max-width: 1024px) and (min-width: 641px) {
  .container {
    width: calc(100% - 60px);
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
  }
}


.header{
  position: sticky;
  top:0;
  z-index:1000;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 18px;
  padding: 18px 0;
}


.navbar > .brand{ order:1; }
.navbar > .menu{ order:2; margin-left:auto; }
.navbar > .header-actions{ order:3; }
.navbar > .search{ order:4; }

.brand{
  display:flex;
  align-items:center;
  gap:12px;
}

.brand-mark{
  width:48px;
  height:48px;
  border-radius:12px;
  background: linear-gradient(135deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.08) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.15);
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}


body.light .brand-mark {
  background: linear-gradient(135deg, rgba(139, 115, 85, 0.12) 0%, rgba(90, 127, 165, 0.12) 100%);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid rgba(139, 115, 85, 0.2);
}

.brand-mark::before {
  content: '🪑';
  filter: sepia(100%) saturate(50%) hue-rotate(160deg) brightness(1.2);
  transform: scale(1.3);
  position: relative;
  z-index: 1;
}

.brand:hover .brand-mark {
  transform: scale(1.05) rotate(-2deg);
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  background: linear-gradient(135deg, rgba(255,255,255,.18) 0%, rgba(255,255,255,.12) 100%);
}

body.light .brand:hover .brand-mark {
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  background: linear-gradient(135deg, rgba(139, 115, 85, 0.18) 0%, rgba(90, 127, 165, 0.18) 100%);
}

.brand-text{
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.brand-text small{
  display:block;
  font-size:12px;
  opacity:.65;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}


.menu{
  display:flex;
  align-items:center;
  gap:32px;
  font-family: 'Space Grotesk', sans-serif;
  font-size:14px;
  font-weight:600;
  letter-spacing:1px;
  text-transform:uppercase;
}

.menu a,
.menu button{
  background:none;
  border:none;
  color:inherit;
  cursor:pointer;
  opacity:.9;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  padding: 0;
  position: relative;
  transition: opacity 0.3s ease;
}

.menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  transition: width 0.3s ease;
}

.menu a:hover::after {
  width: 100%;
}

.menu a:hover,
.menu button:hover{ 
  opacity:1;
}


.dd{ position:relative; }

.caret{
  margin-left:6px;
  border-left:5px solid transparent;
  border-right:5px solid transparent;
  border-top:6px solid var(--text);
  display:inline-block;
}

.dd-panel{
  position:absolute;
  top:42px;
  left:0;
  width:240px;
  background: var(--card);
  color: var(--text);
  border-radius:8px;
  padding:6px 6px;
  box-shadow:var(--shadow);
  display:none;          
  z-index:2000;
  max-height: 400px;
  overflow-y: auto;
}


.dd-panel.open{
  display:block;
}

.dd-panel a{
  display:block;
  padding:10px 14px;
  font-size:15px;
  font-weight:700;
  color:var(--text);
}

.dd-panel a:hover{
  background: rgba(0,0,0,.06);
}




.mobile-toggle{
  display:none;                 
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  cursor: pointer;
}


@media (max-width: 768px){
  .mobile-toggle{ display:block; }

  .navbar{ flex-wrap: wrap; justify-content: center; }

  .navbar > .brand{ 
    order:1; 
    width: 100%;
    justify-content: center;
    margin-bottom: 8px;
  }
  
  .navbar > .header-actions{ 
    order:2; 
    margin-left: 0;
    justify-content: center;
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 12px;
  }

  .header-actions .lang-selector {
    order: 1;
    flex: 0 0 auto;
    max-width: 90px;
  }

  .header-actions .lang-dropdown-btn {
    width: 100%;
    padding: 8px 10px;
    font-size: 12px;
    min-width: 70px;
  }

  .header-actions .mobile-toggle {
    order: 2;
    margin: 0;
    padding: 10px 18px;
    font-size: 13px;
    flex: 1;
  }

  .header-actions .theme-toggle {
    order: 3;
    padding: 10px 12px;
    font-size: 18px;
  }
  
  .navbar > .menu{ order:3; width:100%; }

  .menu{
    display:none;
    width:100%;
    flex-direction:column;
    gap:0;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.4s ease;
  }

  .menu.open{
    display:flex;
    max-height: 1000px;
    opacity: 1;
  }

  .menu > a,
  .menu > .dd{
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
  }

  .menu > .dd button{
    text-align: center;
    width: 100%;
  }

  
  .dd-panel{
    position: static;
    width: 100%;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    background: var(--bg);
    border: none;
    display:none; 
  }

  .dd-panel a{
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    border-top: 1px solid var(--line);
    color: var(--text);
    text-align: center;
  }

  .dd-panel a:first-child{
    border-top: none;
  }

  .dd-panel a:hover{
    background: var(--line);
  }
}


.project-card{
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.06);
}

.project-img{
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
}

.project-title{
  position:absolute;
  left:14px;
  bottom:14px;
  background: rgba(0,0,0,.65);
  padding: 10px 14px;
  border-radius: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
}




.banner{
  min-height:720px;
  display:flex;
  align-items:flex-end;
  position:relative;
  overflow: hidden;
}

@media (max-width: 1024px) and (min-width: 641px) {
  .banner {
    min-height: 500px;
  }
}

.banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  animation: float 20s ease-in-out infinite;
}

.banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(74, 144, 226, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  animation: float 25s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.1); }
}

.banner-bg{
  position:absolute;
  inset:0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.45), rgba(0,0,0,.6)),
    url("img1.jpg") center/cover no-repeat;
  filter: saturate(.9) contrast(.95);
}

.banner-inner{
  position:relative;
  padding:50px 0 70px;
  margin-top: 0;
}

.banner-title{
  font-family: 'Playfair Display', 'Libre Baskerville', Georgia, serif;
  font-size:clamp(36px,6vw,78px);
  font-weight:700;
  margin:0;
  line-height:1.1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #f4d03f 0%, #16a7e0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)) drop-shadow(0 0 30px rgba(212,175,55,0.4));
  animation: fadeInUp 1s ease-out;
}

.banner-subtitle{
  margin-top:20px;
  font-family: 'Inter', sans-serif;
  letter-spacing:3px;
  font-size:13px;
  font-weight: 600;
  opacity:.85;
  text-transform: uppercase;
  animation: fadeInUp 1s ease-out 0.3s both;
}

body.light .banner-subtitle {
  color: #e5e7eb;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.section{
  padding:32px 0;
}

.section-title{
  font-family: 'Playfair Display', Georgia, serif;
  font-size:32px;
  font-weight:700;
  margin-bottom:24px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary));
  border-radius: 3px;
}

@media (max-width: 640px) {
  .section-title {
    width: 100%;
    text-align: center;
  }
  
  .section-title::after {
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
  }
}


.cards{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:26px;
}

@media(max-width:640px){
  .cards{ grid-template-columns:1fr; }
}


@media (max-width: 700px){
  .banner{ min-height:360px; align-items:center; }
  .banner-inner{ padding:36px 0 34px; }
  .banner-title{ font-size:clamp(28px,8vw,48px); }
  .banner-subtitle{ 
    letter-spacing: 2px;
    font-size: 12px;
  }
}


.project-card{ width:100%; border-radius:12px; overflow:hidden; background:rgba(255,255,255,.03); }
.project-img{ width:100%; height:auto; display:block; object-fit:cover; }


.card{
  background:var(--card);
  color:var(--text);
  border-radius:24px;
  overflow:hidden;
  box-shadow:var(--shadow);
  transition: box-shadow 0.4s ease;
  position: relative;
  border: 1px solid transparent;
  min-height: 500px;
}

.card::after {
  content: '+';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 60px;
  color: white;
  background: rgba(0,0,0,0.6);
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 10;
}

.card:hover::after {
  opacity: 1;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover {
  box-shadow: 0 20px 40px rgba(212, 175, 55, 0.12), 0 10px 20px rgba(0,0,0,.2);
}

.card:hover::before {
  opacity: 1;
}

.card img{
  width:100%;
  height:500px;
  object-fit:cover;
  transition: filter 0.3s ease;
}

.card img.zoomable {
  cursor: zoom-in;
  position: relative;
}

@media (max-width: 1024px) and (min-width: 641px) {
  .card img {
    height: 380px;
  }
  
  .card {
    min-height: 380px;
  }
}

@media (max-width: 640px) {
  .card img {
    height: 250px;
  }
  
  .card {
    min-height: 250px;
  }
}

.card:hover img {
  filter: brightness(0.9);
}

.card-body{ padding:18px; }

.card-title{
  font-family: 'Space Grotesk', sans-serif;
  font-size:20px;
  font-weight:700;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.card-desc{
  margin:12px 0 16px;
  font-size:15px;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 400;
}

.card-price{
  font-family: 'Space Grotesk', sans-serif;
  font-size:22px;
  font-weight:700;
  letter-spacing: -0.5px;
}


.footer{
  background: var(--footer-bg);
  border-top: 2px solid var(--accent);
  padding:56px 0 32px;
}

.footer-grid{
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  gap: 32px;
}

.footer-grid > div {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  width: 360px;
  height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  text-align: center;
  padding-top: 6px;
  position: relative;
  border: 1px solid transparent;
}

.footer-grid > div::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.footer-grid > div:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(212, 175, 55, 0.15), 0 8px 20px rgba(0,0,0,0.3);
}

.footer-grid > div:hover::before {
  opacity: 1;
}

.footer-grid > div:nth-child(1) {
  padding-top: 32px;
}

.footer-grid > div:nth-child(2) {
  padding-top: 32px;
}

.footer-grid > div:nth-child(3) {
  padding-top: 32px;
}

body.light .footer-grid > div:hover {
  box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}
.footer .container{
  max-width: 1200px;  
  margin: 0 auto;
}

.footer .brand-text {
  color: #8b7355 !important;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
  font-size: 22px;
  letter-spacing: -0.3px;
}

.footer .brand-text small {
  color: var(--muted);
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
  opacity: 1;
  font-size: 13px;
  margin-top: 4px;
}

.footer .brand-mark {
  width: 50px;
  height: 50px;
  font-size: 32px;
}

.footer .brand + p{
  max-width: 320px;
  line-height: 1.7;
}

.footer-grid > div:nth-child(1) .brand {
  margin-bottom: 22px;
  justify-content: center;
}

@media (max-width: 900px){
  .footer-grid{
    flex-direction: column;
    gap: 40px;
  }
  .footer-grid > div {
    width: 100%;
    height: auto;
  }
}


.project-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
@media (max-width:1000px){ .project-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .project-grid{ grid-template-columns:1fr; } }

.footer p span.small{
  display: block;
  margin-bottom: -15px;
  line-height: 1.2;
}


.footer h3{
  font-family: 'Space Grotesk', sans-serif;
  font-size:20px;
  font-weight:700;
  margin-bottom:24px;
  margin-top:0;
  text-transform:uppercase;
  color: #8b7355 !important;
  letter-spacing: 1.5px;
}

.footer-grid > div:nth-child(2) h3 {
  margin-bottom: 10px;
}

.footer-grid > div:nth-child(3) h3 {
  margin-bottom: 24px;
}

.footer p{
  margin-bottom:18px;
  line-height:2;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
}

.footer-bottom{
  margin-top:32px;
  padding-top:20px;
  border-top:1px solid var(--line);
  font-size:13px;
  color: var(--muted);
  text-align: center;
}


.footer-social {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin: 28px 0 32px;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(80, 80, 80, 0.8) 0%, rgba(60, 60, 60, 0.8) 100%);
  color: #e0e0e0;
  font-size: 26px;
  font-weight: 700;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.social-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.social-btn:hover::before {
  opacity: 1;
}

.social-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, rgba(100, 100, 100, 0.9) 0%, rgba(80, 80, 80, 0.9) 100%);
}

.social-btn:active {
  transform: translateY(-1px) scale(1.02);
}

body.light .social-btn {
  background: linear-gradient(135deg, rgba(220, 220, 220, 0.9) 0%, rgba(200, 200, 200, 0.9) 100%);
  color: #4a4a4a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.light .social-btn:hover {
  background: linear-gradient(135deg, rgba(180, 180, 180, 0.95) 0%, rgba(160, 160, 160, 0.95) 100%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

@media (max-width: 640px) {
  .footer-social {
    gap: 16px;
    margin: 24px 0 24px;
  }
  
  .social-btn {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
}


.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, rgba(70, 70, 70, 0.85) 0%, rgba(50, 50, 50, 0.85) 100%);
  color: #d0d0d0;
  border: none;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, rgba(90, 90, 90, 0.9) 0%, rgba(70, 70, 70, 0.9) 100%);
}

.back-to-top:active {
  transform: translateY(-1px);
}

body.light .back-to-top {
  background: linear-gradient(135deg, rgba(210, 210, 210, 0.9) 0%, rgba(190, 190, 190, 0.9) 100%);
  color: #4a4a4a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.light .back-to-top:hover {
  background: linear-gradient(135deg, rgba(170, 170, 170, 0.95) 0%, rgba(150, 150, 150, 0.95) 100%);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

@media (max-width: 640px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    font-size: 22px;
  }
}


@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}


.card {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

body.light .card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover img {
  transform: scale(1.05);
}


.project-card {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.project-card img {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover img {
  transform: scale(1.08);
  filter: brightness(1.1);
}

.project-title {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-title {
  background: rgba(212, 175, 55, 0.95);
  color: #1a1f2e;
  transform: translateX(4px);
}


.theme-toggle,
.mobile-toggle {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover,
.mobile-toggle:hover {
  transform: scale(1.05);
  border-color: var(--accent);
}

.theme-toggle:active,
.mobile-toggle:active {
  transform: scale(0.95);
}


.menu a,
.menu button {
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu a::after,
.menu button::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.menu a:hover::after,
.menu button:hover::after {
  width: 100%;
}


a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}


img {
  opacity: 0;
  animation: fadeIn 0.6s ease-in forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}


::selection {
  background: var(--accent);
  color: #1a1f2e;
}

::-moz-selection {
  background: var(--accent);
  color: #1a1f2e;
}


::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 6px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-secondary);
}


.skeleton {
  background: linear-gradient(
    90deg,
    var(--line) 25%,
    rgba(255, 255, 255, 0.05) 50%,
    var(--line) 75%
  );
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
