:root{
  --bg:#050816;
  --bg2:#0b1024;
  --card:rgba(255,255,255,.08);
  --text:#f8fafc;
  --muted:#94a3b8;
  --primary:#38bdf8;
  --secondary:#818cf8;
  --border:rgba(255,255,255,.14);
  --shadow:0 24px 60px rgba(0,0,0,.35);
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:Arial, Helvetica, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.7;
  overflow-x:hidden;
}

a{
  color:inherit;
  text-decoration:none;
}

.bg-animation{
  position:fixed;
  inset:0;
  z-index:-1;
  background:
    radial-gradient(circle at 20% 20%, rgba(56,189,248,.22), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(129,140,248,.22), transparent 30%),
    radial-gradient(circle at 50% 90%, rgba(14,165,233,.14), transparent 35%),
    linear-gradient(135deg, #050816, #0f172a);
}

.header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:1000;
  background:rgba(5,8,22,.75);
  backdrop-filter:blur(18px);
  border-bottom:1px solid var(--border);
}

.navbar{
  width:min(1180px,92%);
  margin:auto;
  height:76px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.logo{
  font-size:1.6rem;
  font-weight:800;
  letter-spacing:2px;
  color:var(--primary);
}

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

.nav-links a{
  font-size:.95rem;
  color:var(--muted);
  transition:.3s;
}

.nav-links a:hover{
  color:var(--primary);
}

.menu-btn{
  display:none;
  background:none;
  border:none;
  color:var(--text);
  font-size:1.5rem;
  cursor:pointer;
}

.section{
  width:min(1180px,92%);
  margin:auto;
  padding:105px 0;
}

.hero{
  min-height:100vh;
  display:grid;
  grid-template-columns:1.15fr .85fr;
  align-items:center;
  gap:70px;
  padding-top:140px;
}

.eyebrow{
  color:var(--primary);
  font-weight:700;
  margin-bottom:16px;
  letter-spacing:1px;
  text-transform:uppercase;
}

.hero h1{
  font-size:clamp(2.6rem,6vw,5.5rem);
  line-height:1.05;
  margin-bottom:20px;
}

.hero h1 span{
    background: linear-gradient(135deg,var(--primary),var(--secondary));

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
    color: transparent;
}
.hero h2{
  font-size:clamp(1.2rem,2vw,1.8rem);
  color:#dbeafe;
  margin-bottom:24px;
  min-height:48px;
}

#typingText{
  color:var(--primary);
}

.hero-description{
  max-width:720px;
  color:var(--muted);
  font-size:1.05rem;
  margin-bottom:34px;
}

.hero-buttons{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom:30px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:13px 24px;
  border-radius:999px;
  font-weight:700;
  transition:.3s;
  border:1px solid transparent;
}

.primary-btn{
  background:linear-gradient(135deg,var(--primary),var(--secondary));
  color:#020617;
}

.primary-btn:hover{
  transform:translateY(-3px);
  box-shadow:0 14px 30px rgba(56,189,248,.28);
}

.secondary-btn{
  border-color:var(--border);
  color:var(--text);
  background:rgba(255,255,255,.05);
}

.secondary-btn:hover{
  border-color:var(--primary);
  color:var(--primary);
}

.social-links{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
}

.social-links a{
  width:44px;
  height:44px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:var(--card);
  border:1px solid var(--border);
  color:var(--primary);
  transition:.3s;
}

.social-links a:hover{
  transform:translateY(-4px);
  background:var(--primary);
  color:#020617;
}

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

.image-glow{
  position:absolute;
  width:360px;
  height:360px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--primary),var(--secondary));
  filter:blur(60px);
  opacity:.45;
}

.hero-image{
  position:relative;
  width:350px;
  height:350px;
  border-radius:50%;
  padding:8px;
  background:linear-gradient(135deg,var(--primary),var(--secondary));
  box-shadow:var(--shadow);
}

.hero-image img{
  width:100%;
  height:100%;
  border-radius:50%;
  object-fit:cover;
  display:block;
  border:8px solid #07111f;
}

.floating-card{
  position:absolute;
  background:rgba(15,23,42,.78);
  backdrop-filter:blur(18px);
  border:1px solid var(--border);
  border-radius:22px;
  padding:18px 22px;
  box-shadow:var(--shadow);
}

.floating-card span{
  display:block;
  font-size:1.6rem;
  font-weight:800;
  color:var(--primary);
}

.floating-card p{
  color:var(--muted);
  font-size:.9rem;
}

.card-one{
  left:0;
  bottom:60px;
}

.card-two{
  right:0;
  top:70px;
}

.stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
  padding-top:40px;
}

.stat-card,
.experience-card,
.skill-card,
.publication-card,
.certificate-card,
.contact-card,
.timeline-content{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow:var(--shadow);
}

.stat-card{
  text-align:center;
  padding:28px 18px;
}

.stat-card h3{
  font-size:2.4rem;
  color:var(--primary);
}

.stat-card p{
  color:var(--muted);
}

.section-heading{
  text-align:center;
  margin-bottom:55px;
}

.section-heading p{
  color:var(--primary);
  text-transform:uppercase;
  letter-spacing:1px;
  font-weight:800;
}

.section-heading h2{
  font-size:clamp(2rem,4vw,3.3rem);
  margin-top:8px;
}

.about-content{
  display:grid;
  grid-template-columns:1.3fr .7fr;
  gap:34px;
}

.about-text{
  color:var(--muted);
  font-size:1.05rem;
}

.about-text p{
  margin-bottom:18px;
}

.about-info{
  display:grid;
  gap:16px;
}

.about-info div{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  padding:18px;
}

.about-info span{
  color:var(--primary);
  font-weight:800;
  font-size:.9rem;
}

.about-info p{
  color:var(--text);
  margin-top:4px;
}

.timeline{
  position:relative;
  max-width:900px;
  margin:auto;
}

.timeline::before{
  content:"";
  position:absolute;
  left:18px;
  top:0;
  width:2px;
  height:100%;
  background:linear-gradient(var(--primary),var(--secondary));
}

.timeline-item{
  position:relative;
  padding-left:58px;
  margin-bottom:30px;
}

.timeline-dot{
  position:absolute;
  left:7px;
  top:25px;
  width:24px;
  height:24px;
  border-radius:50%;
  background:var(--primary);
  box-shadow:0 0 0 8px rgba(56,189,248,.16);
}

.timeline-content{
  padding:26px;
}

.timeline-content span,
.experience-card span,
.publication-card span,
.certificate-card span{
  color:var(--primary);
  font-weight:800;
  font-size:.9rem;
}

.timeline-content h3,
.experience-card h3,
.skill-card h3,
.publication-card h3,
.certificate-card h3{
  margin:8px 0;
  font-size:1.25rem;
}

.timeline-content h4,
.experience-card h4{
  color:#dbeafe;
  margin-bottom:10px;
}

.timeline-content p,
.experience-card p,
.skill-card p,
.publication-card p,
.certificate-card p{
  color:var(--muted);
}

.experience-grid,
.skills-grid,
.certificate-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:22px;
}

.experience-card,
.skill-card,
.certificate-card{
  padding:26px;
  transition:.3s;
}

.experience-card:hover,
.skill-card:hover,
.publication-card:hover,
.certificate-card:hover{
  transform:translateY(-6px);
  border-color:rgba(56,189,248,.55);
}

.skills-grid{
  grid-template-columns:repeat(4,1fr);
}

.skill-card i{
  font-size:2.1rem;
  color:var(--primary);
  margin-bottom:15px;
}

.publication-list{
  display:grid;
  gap:20px;
}

.publication-card{
  padding:26px;
  transition:.3s;
}

.contact-wrapper{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:28px;
}

.contact-info{
  display:grid;
  gap:16px;
}

.contact-card{
  display:flex;
  align-items:center;
  gap:16px;
  padding:20px;
}

.contact-card i{
  width:48px;
  height:48px;
  border-radius:16px;
  display:grid;
  place-items:center;
  background:rgba(56,189,248,.12);
  color:var(--primary);
  font-size:1.2rem;
}

.contact-card h3{
  font-size:1rem;
}

.contact-card a,
.contact-card p{
  color:var(--muted);
  word-break:break-word;
}

.contact-card a:hover{
  color:var(--primary);
}

.contact-form{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:24px;
  padding:26px;
  box-shadow:var(--shadow);
  display:grid;
  gap:16px;
}

.contact-form input,
.contact-form textarea{
  width:100%;
  padding:15px 16px;
  border-radius:14px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.06);
  color:var(--text);
  outline:none;
  font-family:inherit;
}

.contact-form input:focus,
.contact-form textarea:focus{
  border-color:var(--primary);
}

.contact-form textarea{
  resize:none;
}
.connect-card{
    background:var(--card);
    border:1px solid var(--border);
    border-radius:24px;
    padding:40px;
    box-shadow:var(--shadow);
}

.connect-card h3{
    font-size:2rem;
    margin-bottom:18px;
}

.connect-card p{
    color:var(--muted);
    line-height:1.8;
    margin-bottom:30px;
}

.connect-buttons{
    display:grid;
    gap:16px;
}

.connect-btn{
    display:flex;
    align-items:center;
    gap:14px;
    padding:18px 22px;
    border-radius:16px;
    background:rgba(255,255,255,.05);
    border:1px solid var(--border);
    transition:.3s;
    font-weight:600;
}

.connect-btn i{
    font-size:1.2rem;
    color:var(--primary);
}

.connect-btn:hover{
    transform:translateX(8px);
    border-color:var(--primary);
    background:rgba(56,189,248,.08);
}
.footer{
  border-top:1px solid var(--border);
  padding:32px 5%;
  text-align:center;
  background:rgba(5,8,22,.65);
}

.footer p{
  color:var(--muted);
  margin-bottom:14px;
}

.footer-links{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:18px;
}

.footer-links a{
  color:var(--muted);
}

.footer-links a:hover{
  color:var(--primary);
}

.scroll-top{
  position:fixed;
  right:22px;
  bottom:22px;
  width:46px;
  height:46px;
  border-radius:50%;
  border:none;
  background:linear-gradient(135deg,var(--primary),var(--secondary));
  color:#020617;
  cursor:pointer;
  display:none;
  place-items:center;
  z-index:999;
}

.scroll-top.show{
  display:grid;
}

@media(max-width:980px){
  .hero,
  .about-content,
  .contact-wrapper{
    grid-template-columns:1fr;
  }

  .hero{
    text-align:center;
  }

  .hero-buttons,
  .social-links{
    justify-content:center;
  }

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

  .card-one{
    left:8%;
  }

  .card-two{
    right:8%;
  }
}

@media(max-width:760px){
  .menu-btn{
    display:block;
  }

  .nav-links{
    position:absolute;
    top:76px;
    left:0;
    width:100%;
    background:rgba(5,8,22,.96);
    flex-direction:column;
    text-align:center;
    padding:24px 0;
    border-bottom:1px solid var(--border);
    display:none;
  }

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

  .hero-image{
    width:280px;
    height:280px;
  }

  .image-glow{
    width:280px;
    height:280px;
  }

  .floating-card{
    display:none;
  }

  .stats,
  .experience-grid,
  .skills-grid,
  .certificate-grid{
    grid-template-columns:1fr;
  }

  .section{
    padding:78px 0;
  }

  .hero{
    padding-top:120px;
  }
}
.reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity .7s ease, transform .7s ease;
}

.reveal.visible{
  opacity:1;
  transform:translateY(0);
}
.click-hint{
    display:block;
    margin-top:16px;
    color:var(--primary);
    font-size:.9rem;
    font-weight:600;
}

.english-score-card{
    cursor:pointer;
    transition:.3s;
}

.english-score-card:hover{
    transform:translateY(-6px);
}

.english-modal{
    position:fixed;
    inset:0;
    display:none;
    justify-content:center;
    align-items:center;
    background:rgba(0,0,0,.65);
    backdrop-filter:blur(8px);
    z-index:99999;
}

.english-modal.show{
    display:flex;
}

.english-modal-content{
    width:min(700px,92%);
    max-height:85vh;
    overflow-y:auto;
    background:#0f172a;
    border:1px solid rgba(255,255,255,.15);
    border-radius:24px;
    padding:35px;
    position:relative;
    box-shadow:0 24px 60px rgba(0,0,0,.45);
    animation:popup .3s ease;
}

.close-modal{
    position:absolute;
    top:18px;
    right:20px;
    width:40px;
    height:40px;
    border:none;
    border-radius:50%;
    background:rgba(255,255,255,.08);
    color:#fff;
    font-size:28px;
    cursor:pointer;
}

.close-modal:hover{
    background:var(--primary);
    color:#050816;
}
.cefr{
    color:var(--primary);
    font-weight:bold;
    margin-bottom:20px;
}

.score-box{
    background:rgba(255,255,255,.05);
    padding:20px;
    border-radius:18px;
    margin-top:18px;
}

.score-box h3{
    margin-bottom:8px;
}

.score-box a{
    display:inline-block;
    margin-top:12px;
    color:var(--primary);
    font-weight:bold;
}

@keyframes popup{
    from{
        transform:scale(.9);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}
.chatbot-btn{
    position:fixed;
    right:22px;
    bottom:84px;
    width:56px;
    height:56px;
    border:none;
    border-radius:50%;
    background:linear-gradient(135deg,var(--primary),var(--secondary));
    color:#020617;
    font-size:1.4rem;
    cursor:pointer;
    z-index:9999;
}

.chatbot-box{
    position:fixed;
    right:22px;
    bottom:150px;
    width:340px;
    background:#0f172a;
    border:1px solid var(--border);
    border-radius:22px;
    box-shadow:var(--shadow);
    display:none;
    z-index:9999;
    overflow:hidden;
}

.chatbot-box.show{
    display:block;
}

.chatbot-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:16px;
    background:rgba(255,255,255,.06);
}

.chatbot-header button{
    background:none;
    border:none;
    color:white;
    font-size:24px;
    cursor:pointer;
}

.chatbot-messages{
    padding:16px;
}

.bot-message{
    background:rgba(255,255,255,.06);
    padding:12px;
    border-radius:14px;
    color:var(--muted);
    margin-bottom:10px;
}

.chatbot-questions{
    display:grid;
    gap:8px;
    padding:16px;
}

.chatbot-questions button{
    border:none;
    border-radius:12px;
    padding:10px;
    background:rgba(56,189,248,.12);
    color:var(--primary);
    cursor:pointer;
    font-weight:700;
}

.chatbot-questions button:hover{
    background:var(--primary);
    color:#020617;
}

@media(max-width:480px){
    .chatbot-box{
        width:90%;
        right:5%;
    }
}

/* Featured master's thesis defense – photo + research details */
.thesis-spotlight{
  display:grid;
  grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr);
  gap:0;
  overflow:hidden;
  border-radius:28px;
  border:1px solid rgba(56,189,248,.25);
  background:linear-gradient(140deg,rgba(30,41,59,.96),rgba(15,23,42,.96));
  box-shadow:0 28px 75px rgba(0,0,0,.38);
}
.thesis-defense-figure{
  position:relative;
  min-height:630px;
  margin:0;
  overflow:hidden;
  background:#16253b;
}
.thesis-defense-figure > a{
  display:block;
  position:absolute;
  inset:0;
  overflow:hidden;
}
.thesis-defense-figure img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 37%;
  display:block;
  transition:transform .55s ease;
}
.thesis-defense-figure a:hover img,
.thesis-defense-figure a:focus-visible img{
  transform:scale(1.04);
}
.thesis-photo-caption{
  position:absolute;
  pointer-events:none;
  inset:auto 0 0;
  padding:80px 26px 24px;
  background:linear-gradient(0deg,rgba(3,8,23,.96),rgba(3,8,23,.72) 50%,transparent);
  display:flex;
  flex-direction:column;
  gap:3px;
}
.thesis-photo-caption span{
  color:#7dd3fc;
  font-size:.78rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.thesis-photo-caption strong{
  font-size:1.22rem;
  letter-spacing:.01em;
  color:#fff;
  line-height:1.3;
}
.thesis-photo-caption small{
  color:#cbd5e1;
  font-size:.77rem;
  line-height:1.5;
}
.thesis-spotlight-body{
  padding:clamp(24px,3.7vw,46px);
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  min-width:0;
}
.thesis-kicker{
  color:#7dd3fc;
  font-weight:700;
  font-size:.78rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  margin-bottom:16px;
}
.thesis-kicker i{margin-right:6px}
.thesis-spotlight-body h3{
  font-size:clamp(1.55rem,2.6vw,2.45rem);
  line-height:1.23;
  letter-spacing:-.02em;
  margin:0 0 20px;
}
.thesis-spotlight-body > p,
.thesis-findings p{
  color:var(--muted);
  line-height:1.75;
  font-size:.95rem;
  margin-bottom:18px;
}
.thesis-tags{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0 22px}
.thesis-tags span{
  font-size:.77rem;
  padding:5px 11px;
  background:rgba(56,189,248,.1);
  border:1px solid rgba(56,189,248,.25);
  border-radius:999px;
  color:#bae6fd;
}
.thesis-findings{
  width:100%;
  border-top:1px solid var(--border);
  padding-top:20px;
}
.thesis-findings h4{font-size:1.05rem;margin-bottom:9px}
.thesis-findings h4 i{color:var(--primary);margin-right:5px}
.thesis-metrics{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}
.thesis-metrics div{
  text-align:center;
  padding:13px 8px;
  border-radius:15px;
  border:1px solid rgba(56,189,248,.17);
  background:rgba(56,189,248,.065);
}
.thesis-metrics strong{display:block;font-size:clamp(1.35rem,2.5vw,1.9rem);color:var(--primary);line-height:1.4}
.thesis-metrics strong small{font-size:.65em}
.thesis-metrics span{font-size:.76rem;color:#cbd5e1}
.thesis-findings .thesis-note{font-size:.77rem;line-height:1.55;margin:0 0 20px}
.thesis-download{gap:10px;font-size:.92rem}
.thesis-download i:last-child{font-size:.72rem}

@media(max-width:850px){
  .thesis-spotlight{grid-template-columns:1fr}
  .thesis-defense-figure{min-height:0;aspect-ratio:4/3}
  .thesis-defense-figure img{object-position:center 36%}
  .thesis-spotlight-body{padding:28px}
}
@media(max-width:520px){
  .thesis-spotlight{border-radius:21px}
  .thesis-defense-figure{aspect-ratio:4/4.2}
  .thesis-spotlight-body{padding:22px 20px 26px}
  .thesis-spotlight-body h3{font-size:1.48rem}
  .thesis-photo-caption{padding:64px 18px 17px}
  .thesis-download{width:100%;text-align:center;font-size:.83rem}
}
@media(prefers-reduced-motion:reduce){
  .thesis-defense-figure img{transition:none}
}
