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

html, body{
  height:100%;
}

body{
  background:#0b1626;
  color:white;
  overflow-x:hidden;
  display:flex;
  flex-direction:column;
  min-height:100vh;
}

/* ================= HERO ================= */

.hero{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 8%;
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 75% 35%, rgba(0,150,255,0.15), transparent 60%),
    radial-gradient(circle at 70% 80%, rgba(255,120,0,0.15), transparent 60%),
    linear-gradient(135deg,#0b1626,#111f36);
}

.hero::before{
  content:"";
  position:absolute;
  width:700px;
  height:700px;
  background:radial-gradient(circle, rgba(0,200,255,0.25), transparent 70%);
  top:-250px;
  right:-200px;
  filter:blur(120px);
  animation:floatBg 14s ease-in-out infinite alternate;
}

@keyframes floatBg{
  0%{ transform:translateY(0); }
  100%{ transform:translateY(100px); }
}

/* LEFT */

.hero-left{
  width:45%;
  z-index:2;
}

.hero-left h1{
  font-size:90px;
  font-weight:900;
  line-height:0.9;
  letter-spacing:-2px;
}

.subtitle{
  margin-top:25px;
  font-size:18px;
  opacity:0.75;
  line-height:1.6;
}

/* BUTTONS */

.cta-group{
  margin-top:40px;
  display:flex;
  gap:20px;
  flex-wrap:wrap;
}

.cta{
  display:inline-block;
  padding:15px 35px;
  border-radius:50px;
  background:linear-gradient(90deg,#00c6ff,#0072ff);
  font-weight:600;
  text-decoration:none;
  color:white;
  border:0;
  cursor:pointer;
  box-shadow:0 10px 40px rgba(0,140,255,0.5);
  transition:0.4s ease;
}

.cta:hover{
  transform:translateY(-4px);
  box-shadow:0 20px 60px rgba(0,140,255,0.7);
}

.cta.secondary{
  background:transparent;
  color:#22d3ee;
  border:2px solid #22d3ee;
  box-shadow:none;
}

.cta.secondary:hover{
  background:#22d3ee;
  color:#0f172a;
  transform:translateY(-4px);
}

/* RIGHT */

.hero-right{
  position:relative;
  width:50%;
  display:flex;
  align-items:center;
  justify-content:center;
}

.bg-text{
  position:absolute;
  right:0;
  top:50%;
  transform:translateY(-50%);
  font-size:220px;
  font-weight:900;
  line-height:0.8;
  text-align:right;
  color:rgba(255,255,255,0.03);
  pointer-events:none;
}

.accent-glow{
  position:absolute;
  right:-150px;
  width:350px;
  height:100%;
  background:linear-gradient(to bottom, transparent, rgba(255,120,0,0.5), transparent);
  filter:blur(90px);
}

/* ===== CARD SMOOTH FLOAT ===== */

.floating-card{
  position:relative;
  width:90%;
  max-width:900px;
  height:520px;
  border-radius:42px;
  overflow:hidden;
  background:rgba(255,255,255,0.05);
  backdrop-filter:blur(25px);
  box-shadow:
    0 70px 180px rgba(0,0,0,0.75),
    0 0 0 1px rgba(255,255,255,0.05);
  animation:floatCard 10s ease-in-out infinite alternate;
  transition:transform 0.6s ease;
  will-change:transform;
}

/* Плавное медленное "дыхание" */
@keyframes floatCard{
  0%   { transform:translate3d(0,0,0); }
  100% { transform:translate3d(0,-8px,0); }
}

.floating-card:hover{
  transform:scale(1.03);
}

/* ===== IMAGE AUTO ZOOM ===== */

.floating-card img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:42px;
  animation:autoZoom 24s ease-in-out infinite alternate;
  transform-origin:center;
  will-change:transform;
}

/* Очень плавный медленный zoom */
@keyframes autoZoom{
  0%   { transform:scale(1.08); }
  100% { transform:scale(1.18); }
}


/* FOOTER */

.site-footer{
  background:#08111e;
  padding:22px 0;
  text-align:center;
}

.footer-content{
  color:#8a94a6;
  font-size:14px;
  letter-spacing:0.5px;
}

/* ================= MODAL ================= */

.modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(5,10,20,0.75);
  backdrop-filter:blur(14px);
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  z-index:9999;
}

.modal-backdrop.open{
  display:flex;
}

.modal{
  position:relative;
  width:min(560px, 94vw);
  border-radius:26px;
  overflow:hidden;
  background:rgba(15,31,53,0.9);
  backdrop-filter:blur(20px);
  border:1px solid rgba(255,255,255,0.08);
  box-shadow:0 80px 200px rgba(0,0,0,0.8);
  animation:modalIn .28s ease forwards;
}

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

.modal-header{
  padding:20px 24px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.modal-title{
  font-weight:800;
  font-size:20px;
  letter-spacing:0.5px;
}

.modal-close{
  width:36px;
  height:36px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.1);
  background:rgba(255,255,255,0.05);
  color:white;
  cursor:pointer;
  transition:0.2s ease;
}

.modal-close:hover{
  background:rgba(255,255,255,0.15);
  transform:scale(1.05);
}

/* BODY */

.modal-body{
  padding:0 24px 26px 24px;
}

.modal-hint{
  font-size:14px;
  opacity:0.75;
  margin-bottom:18px;
}

.form-grid{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.field{
  width:100%;
  padding:16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,0.10);
  background:rgba(255,255,255,0.06);
  color:#fff;
  font-size:15px;
  outline:none;
  transition:0.25s ease;
}

.field::placeholder{
  color:rgba(255,255,255,0.5);
}

.field:focus{
  border-color:#22d3ee;
  box-shadow:0 0 0 4px rgba(34,211,238,0.15);
  background:rgba(255,255,255,0.08);
}

textarea.field{
  min-height:120px;
  resize:vertical;
}

/* BUTTONS */

.modal-actions{
  margin-top:20px;
  display:flex;
  gap:14px;
  justify-content:flex-end;
}

.btn{
  padding:12px 20px;
  border-radius:14px;
  font-weight:700;
  cursor:pointer;
  border:0;
  transition:0.25s ease;
}

.btn-primary{
  background:linear-gradient(90deg,#00c6ff,#0072ff);
  color:#fff;
  box-shadow:0 12px 40px rgba(0,140,255,0.35);
}

.btn-primary:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 55px rgba(0,140,255,0.5);
}

.btn-ghost{
  background:transparent;
  color:#22d3ee;
  border:2px solid #22d3ee;
}

.btn-ghost:hover{
  background:#22d3ee;
  color:#0f172a;
}


/* ================= LANGUAGE SWITCH ================= */

.lang-switch{
  position:relative;
  font-size:14px;
}

.lang-current{
  display:flex;
  align-items:center;
  gap:6px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.15);
  background:rgba(255,255,255,0.06);
  color:white;
  cursor:pointer;
  backdrop-filter:blur(10px);
  transition:0.2s ease;
}

.lang-current:hover{
  background:rgba(255,255,255,0.12);
}

.lang-caret{
  transition:0.2s ease;
}

.lang-switch.open .lang-caret{
  transform:rotate(180deg);
}

.lang-menu{
  position:absolute;
  top:120%;
  right:0;
  background:rgba(15,31,53,0.95);
  border:1px solid rgba(255,255,255,0.08);
  backdrop-filter:blur(20px);
  border-radius:14px;
  overflow:hidden;
  display:none;
  min-width:160px;
  box-shadow:0 20px 60px rgba(0,0,0,0.6);
}

.lang-switch.open .lang-menu{
  display:block;
}

.lang-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 16px;
  background:none;
  border:none;
  color:white;
  width:100%;
  text-align:left;
  cursor:pointer;
  transition:0.2s ease;
}

.lang-item:hover{
  background:rgba(255,255,255,0.08);
}

.lang-flag{
  font-size:16px;
}


/* ================= FIXED LANGUAGE SWITCH ================= */

.lang-switch.fixed{
  position:fixed;
  top:28px;
  right:36px;
  z-index:3000;
}












/* ================= ABOUT PAGE ================= */

.about-section{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:120px 8% 80px 8%;
  background:
    radial-gradient(circle at 75% 35%, rgba(0,150,255,0.15), transparent 60%),
    radial-gradient(circle at 70% 80%, rgba(255,120,0,0.15), transparent 60%),
    linear-gradient(135deg,#0b1626,#111f36);
}

.about-container{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:80px;
  width:100%;
  max-width:1400px;
}

.about-left{
  width:45%;
}

.about-left h1{
  font-size:70px;
  font-weight:900;
  margin-bottom:30px;
}

.about-text{
  font-size:18px;
  opacity:0.8;
  margin-bottom:20px;
  line-height:1.6;
}

.about-skills{
  margin-top:30px;
  display:flex;
  flex-direction:column;
  gap:10px;
  font-weight:600;
  color:#22d3ee;
}

.about-right{
  width:50%;
}

/* ================= CAROUSEL ================= */

.carousel{
  position:relative;
  width:100%;
  height:500px;
  border-radius:42px;
  overflow:hidden;
  background:rgba(255,255,255,0.05);
  backdrop-filter:blur(25px);
  box-shadow:
    0 70px 180px rgba(0,0,0,0.75),
    0 0 0 1px rgba(255,255,255,0.05);
}

.carousel-track{
  width:100%;
  height:100%;
  position:relative;
}

.carousel-item{
  position:absolute;
  width:100%;
  height:100%;
  opacity:0;
  transition:opacity 0.6s ease;
}

.carousel-item.active{
  opacity:1;
}

.carousel-item img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:42px;
  transition:transform 10s ease;
}

.carousel-item.active img{
  transform:scale(1.1);
}

/* Buttons */

.carousel-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:rgba(0,0,0,0.4);
  border:none;
  color:white;
  font-size:28px;
  width:48px;
  height:48px;
  border-radius:50%;
  cursor:pointer;
  z-index:2;
  transition:0.3s ease;
}

.carousel-btn:hover{
  background:#22d3ee;
  color:#0f172a;
}

.carousel-btn.prev{ left:20px; }
.carousel-btn.next{ right:20px; }


/* ================= BACK BUTTON INLINE ================= */

.back-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;

  margin-top:50px;

  padding:14px 28px;
  border-radius:50px;

  font-weight:600;
  text-decoration:none;
  color:#22d3ee;

  border:2px solid #22d3ee;
  background:rgba(0,0,0,0.25);

  transition:all 0.3s ease;
}

.back-btn:hover{
  background:#22d3ee;
  color:#0f172a;
  transform:translateY(-3px);
  box-shadow:0 15px 40px rgba(34,211,238,0.35);
}
