:root{
  --bg: #0e1116;
  --card: rgba(255,255,255,0.05);
  --muted: #a1a7b3;
  --text: #eef2f6;
  --accent: #ADC26B; 
  --glass: rgba(255,255,255,0.08);
}

:root[data-theme='light']{
  --bg: #f4f6f8;
  --card: #ffffff;
  --muted: #5f6b7a;
  --text: #0e1116;
  --accent: #ADC26B;
  --glass: rgba(255,255,255,0.9);
}

:root[data-theme='light'] .theme-toggle {
  background: rgba(0,0,0,0.05);
  border-color: rgba(0,0,0,0.15);
}

/* Reset */
* { box-sizing: border-box }
html, body { height: 100% }

body{
  margin: 0;
  font-family: 'Inter', system-ui, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  cursor: none;
}

.container{
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Header */
.topglass{
  position: sticky;
  top: 12px;
  margin: 12px 0;
  border-radius: 14px;
  padding: 10px 16px;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, var(--glass), rgba(255,255,255,0.02));
  box-shadow: 0 6px 20px rgba(2,6,23,0.6);
  z-index: 10;
}

.header-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-row .brand{
  margin-left: -180px;
}

@media (max-width:720px){
  .header-row .brand{ margin-left: 0; }
}

.brand .name{
  font-weight: 700;
}

.brand .role{
  font-size: 13px;
  color: var(--muted);
}

.icon-btn{
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
}

/* Hero */
.hero{
  padding: 40px 0;
  display:flex;
  align-items:center;
  gap:20px;
}

.hero h1{
  font-size: 42px;
  margin: 0 0 12px;
}

.lead{
  max-width: 66ch;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions{
  margin-top: 20px;
}

/* Hero photo (small, right side) */
.hero-figure{flex:0 0 45px;margin:0}
.hero-photo{width:180px;height:180px;object-fit:cover;border-radius:12px;border:1px solid rgba(255,255,255,0.06);box-shadow:0 8px 20px rgba(2,6,23,0.5);display:block}
.hero-content{flex:1}

@media (max-width:720px){
  .hero{flex-direction:column;align-items:flex-start}
  .hero-figure{flex:0 0 88px}
  .hero-photo{width:88px;height:88px}
}

/* Buttons */
.btn{
  display: inline-block;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  margin-right: 10px;
  font-weight: 600;
}

.btn.primary{
  background: var(--accent);
  color: #071018;
}

.btn.ghost{
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
}

/* Cards */
.card{
  margin: 30px 0;
  padding: 24px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: 0 6px 18px rgba(2,6,23,0.45);
}

.card h2{
  margin-top: 0;
}

.detail-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:18px;
  margin-top:12px;
}
.detail{background:transparent;padding:8px;border-radius:8px}
.detail h3{margin:0 0 6px;font-size:16px}
.detail p{margin:0;color:var(--muted);line-height:1.45}

@media (max-width:900px){
  .detail-grid{grid-template-columns:1fr}
}

/* Skills */
.skills-list{
  list-style: none;
  padding: 0;
  margin: 0;
}

.skills-list li{
  margin: 10px 0;
  color: var(--muted);
}

/* Contacts */
.contacts a{
  color: var(--accent);
  text-decoration: none;
}

/* ===== CAROUSEL ===== */

.carousel-wrap{
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel{
  overflow: hidden;
  width: 100%;
  border-radius: 14px;
}

.carousel-track{
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.slide{
  min-width: 100%;
  padding: 24px;
}

.slide h3{
  margin-top: 0;
}

.carousel-btn{
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 34px;
  cursor: pointer;
  user-select: none;
  transition: color .2s ease, transform .2s ease;
}

.carousel-btn:hover{
  color: var(--accent);
  transform: scale(1.15);
}

/* ===== Custom cursor ===== */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ADC26B;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 9999;
  transition:
    width .2s ease,
    height .2s ease,
    border-color .2s ease;
  will-change: transform;
}

.cursor::after {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* hover state */
.cursor.hover {
  width: 48px;
  height: 48px;
  border-color: var(--accent);
}

/* Interactive hover */
a, button{
  cursor: pointer;
}

/* Responsive */
@media (max-width: 720px){
  .hero h1{
    font-size: 30px;
  }

  .container{
    margin: 20px auto;
  }

  .carousel-btn{
    font-size: 28px;
  }
}

/* Theme toggle */
.theme-toggle {
  width: 44px;
  height: 26px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  position: relative;
  cursor: pointer;
  padding: 0;
}

.theme-toggle .toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform .25s ease;
}

/* light mode */
:root[data-theme='light'] .theme-toggle .toggle-thumb {
  transform: translateX(18px);
}

/* Text labels for clarity */
.theme-toggle::before,
.theme-toggle::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-family: 'Inter', system-ui, Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  pointer-events: none;
  opacity: 0.7;
}
.theme-toggle::before { content: 'dark'; left: -72px; }
.theme-toggle::after  { content: 'light'; right: -72px; }

/* Active highlight */
:root[data-theme='light'] .theme-toggle::before { opacity: 0.45; color: var(--muted); }
:root[data-theme='light'] .theme-toggle::after  { opacity: 1; color: var(--accent); }
:root[data-theme='dark']  .theme-toggle::before { opacity: 1; color: var(--accent); }
:root[data-theme='dark']  .theme-toggle::after  { opacity: 0.45; color: var(--muted); }

@media (max-width: 520px) {
  .theme-toggle::before,
  .theme-toggle::after { display: none; }
}

