:root{
  /* colors & gradients */
  --bg:#181c2d;
  --panel:#1b1f34;
  --accent1: rgba(171,66,0,0.7);
  --accent2: rgba(65,148,255,0.7);
  --text:#eeffdd;
  --muted-text:#ccc;
  --tag-bg:#643113;
  --card-grad: linear-gradient(135deg, rgba(171, 66, 0, 0.259), rgba(65, 148, 255, 0.1));
  --card-hover-grad: linear-gradient(135deg, rgba(122, 49, 0, 0.496), rgba(25, 24, 101, 0.408));
  --shadow-strong: 1px 3px 8px rgba(22,22,38,0.408);
  --shadow-soft: 0 5px 20px rgba(0,0,0,0.4);
  --heading-padding: 0.75rem 2rem;
  --section-gap: 17rem;
}

/* =========================
   GLOBAL STYLES
   ========================= */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300&family=Manrope:wght@700&display=swap');

*,*::before,*::after{box-sizing:border-box}

html {
  scroll-padding-top: 130px;
}

html,body{margin:0;padding:0}

body{
  background-color:var(--bg);
  color:var(--text);
  font-family:'Barlow',sans-serif;
  margin:0;
  padding:0;
}

.container{max-width:100%;margin:0 auto}

h1,h2,h3,h4,h5,h6{
  font-family:'Manrope',sans-serif;
  font-weight:700;
  color:#eeffdd;
  text-shadow:2px 1px 0px rgba(255,140,52,0.609);
}

p{
  font-family:'Barlow',sans-serif;
  font-weight:300;
  line-height:1.6;
  margin:0; /* safer baseline */
}

a{ color:#f6ffed; text-decoration:none; transition:color .3s ease}
a:hover{ color:#ff9441 }

section{
  margin: var(--section-gap) auto;
}
section:first-of-type{ margin-top:5rem }

main section:nth-of-type(2) {
  margin-bottom: 6rem;
}
main section:nth-of-type(3) {
  margin-top: 6rem;
}
section:last-of-type{ margin-bottom:0rem; margin-top:1rem; }

/* =========================
   HEADER
   ========================= */

header{
  background-color:var(--panel);
  padding:20px 0;
  box-shadow:0 2px 1px rgba(14,14,14,0.2);
  margin-bottom:5rem;
  position:sticky; top:0; z-index:1000;
}

.header-inner{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

header nav a {
    font-weight: 600;
}

.header-inner h1{ font-size:1.5rem; margin:0 0 5px 0 }

.logo-area{ padding-left:50px; display:flex; flex-direction:column }

.email-address {
  display: inline;
}
.email-logo {
  display: none;
}

.name-subtitle{ margin:0; font-size:.9em; font-weight:300 }

.header-contact{
  display:flex;
  align-items:center;
  gap:1.5rem;
  padding-right:50px;
}

.header-contact .icon {
  display: flex;      
  align-items: center;   
  justify-content: center; 
  line-height: 0;       
  vertical-align: middle;  
}

.header-contact a:first-child{
  position:relative;
  display:inline-block;
  color:var(--text);
  text-decoration:none;
  font-weight: 300;
}

.header-contact a:hover{
  color: #ff9441;
}

.header-contact a:first-child::after{
  content:''; position:absolute; left:0; bottom:-6px;
  width:100%; height:1.5px;
  background:linear-gradient(135deg,var(--accent1),var(--accent2));
  border-radius:2px;
}

.header-contact a img,
footer .social-icons a img{
  width:32px; height:32px; object-fit:contain;
  transition:transform .3s ease, opacity .3s ease;
}

.header-contact a img:hover,
footer .social-icons a:hover img{ transform:scale(1.2); opacity:.8 }

footer .social-icons a:last-child img{ width:27px; height:27px }

nav{
  position:absolute; left:50%; transform:translateX(-50%);
  font-family:'Manrope',sans-serif;
}
nav ul{ list-style:none; display:flex; gap:30px; margin:0; padding:0 }
nav a{ padding:5px 0; position:relative; color:var(--text) }
nav a::after{
  content:''; display:block; width:0; height:2px; background:linear-gradient(135deg, var(--accent1), var(--accent2));
  transition:width .3s; position:absolute; bottom:-2px; left:0;
}
nav a:hover::after{ width:100% }

/* =========================
   HOME INTRO
   ========================= */

.home-intro{
  position:relative;
  max-width:32%;
  text-align:center;
  padding: 20px 0 20px 0;
  border-radius:12px;
  backdrop-filter:blur(4px);
  background-color:var(--panel);
  margin-left:auto; margin-right:auto;
  box-shadow:0 5px 20px rgba(0,0,0,0.2);
}
.home-intro::before{
  content:""; position:absolute; inset:0; border-radius:12px; padding:3px;
  background:linear-gradient(135deg,var(--accent1),var(--accent2));
  -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude; pointer-events:none;
}
.home-intro p{ line-height:20px; font-size: 1.05rem; }

/* =========================
   REELS
   ========================= */

.audio-reels{
  display:flex;
  max-width:80%;
  gap:40px;
  justify-content:center;
  flex-wrap:nowrap;
}

.reel{
  flex:1 1 0;
  min-width:250px;
  padding:20px;
  background:linear-gradient(140deg, rgba(255, 98, 0, 0.16), rgba(36,122,235,0.1));
  border-radius:12px;
  backdrop-filter:blur(4px);
  text-align:center;
  transition:transform .3s ease, background .3s ease;
  display:flex; flex-direction:column; justify-content:center; align-items:center;
  box-shadow:var(--shadow-strong);
}
.reel h2{ margin:0 0 15px 0; font-size:1.7rem; color:var(--text); text-shadow:2px 2px 0.5px rgba(255,140,52,0.716) }
.reel:hover{ transform:translateY(-7px); box-shadow:0 12px 30px rgba(0,0,0,0.2) }

.reel:nth-child(1):hover{ background:linear-gradient(140deg, rgba(210,81,16,0.57), rgba(29,0,58,0.57)) }
.reel:nth-child(2):hover{ background:linear-gradient(140deg, rgba(100,255,150,0.3), rgba(36,122,235,0.15)) }
.reel:nth-child(3):hover{ background:linear-gradient(140deg, rgba(100,150,255,0.3), rgba(36,122,235,0.15)) }

.video-container{
  width:100%; position:relative; padding-bottom:56.25%; border-radius:8px; overflow:hidden;
  box-shadow:0 4px 12px rgba(0,0,0,0.2);
}
.video-container iframe{ position:absolute; top:0; left:0; width:100%; height:100% }

/* =========================
   PROJECTS
   ========================= */

.projects h2,
.about h2,
.advantages h2,
.contact h2{
  font-size:2rem; font-weight:600; text-align:center; margin:0 0 4rem 0;
  color:var(--text); position:relative; display:inline-block; padding:var(--heading-padding);
}
.projects h2::before,
.about h2::before,
.advantages h2::before,
.contact h2::before{
  content:''; position:absolute; top:-3px; left:-3px; right:-3px; bottom:-3px;
  border-radius:15px; padding:3px;
  background:linear-gradient(135deg,var(--accent1),var(--accent2));
  -webkit-mask:linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite:xor; mask-composite:exclude; pointer-events:none; z-index:-1;
}

.projects{ max-width:80%; text-align:center }
.project-carousel{ position:relative; max-width:100%; margin:auto; overflow:visible }
.carousel-track{ display:flex; gap:1rem; justify-content:space-between }

.project-card{
  min-width:150px; max-width:300px;
  background:var(--card-grad);
  border-radius:12px; padding:1rem; backdrop-filter:blur(4px);
  transition:transform .2s ease; flex:1 1 0; text-align:center;
  display:flex; flex-direction:column; justify-content:flex-start;
  box-shadow:var(--shadow-strong);
}
.project-card:hover{ transform:scale(1.02); background:var(--card-hover-grad); box-shadow:0 12px 30px rgba(0,0,0,0.1) }
.project-card img{ max-width:100%; border-radius:8px; display:block; margin-bottom:.5rem }
.project-card h3{ margin:.5rem 0 .25rem; font-size:1.1rem }
.project-card p{ font-size:.9rem; color:var(--muted-text); padding-top: 7px; }
.project-card .tags{ margin-top:auto; display:flex; flex-wrap:wrap; gap:6px; padding-top:15px; }
.project-card .tag{
  background:var(--tag-bg); color:#fff; padding:4px 8px; font-size:.75rem;
  border-radius:12px; text-transform:uppercase; letter-spacing:.5px;
}

/* =========================
   ABOUT ME
   ========================= */

.about{ max-width:80%; text-align:center;}
.about-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  position: relative; 
  justify-content: center;
}

.about-image {
  flex: 0 0 50%; 
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 1; 
}

.about-text {
  flex: 0 0 50%; 
  text-align: left;
  background: #232942;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-strong);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 2; 
}
.about-image img{ width:90%; max-width:100%; border-radius:12px; object-fit:cover; box-shadow:var(--shadow-soft) }

.about-text{
  text-align:left;
  background:#232942;
  padding:1.5rem; border-radius:12px;
  box-shadow:var(--shadow-strong);
  transition:transform .3s ease, box-shadow .3s ease;
  max-width: 85%;
}

.about-texts {
  display: flex;
  flex-direction: column;
  z-index: 2;
  gap: 1rem;
  margin-left:-8%;
}

.about-text:hover{ transform:translateY(-5px); box-shadow:0 12px 30px rgba(0,0,0,0.4) }
.about-text p{ font-size:1.15rem; line-height:1.6; color:var(--text) }

/* =========================
   WHY WORK WITH ME
   ========================= */

.advantages{ max-width:80%; text-align:center; margin: 22rem auto;}
.advantages-cards{ display:flex; gap:1rem; justify-content:space-between; flex-wrap:wrap; }

.advantage-card {
  flex: 1 1 250px;
  max-width: 23%;
  background:#1a233e;
  border-radius: 16px;
  padding: 2rem 2rem;
  backdrop-filter: blur(6px);
  box-shadow:0 2px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.advantage-card:hover {
  transform: translateY(-3px) scale(1.005);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
  background: linear-gradient(135deg, rgba(42, 89, 150, 0.25), rgba(28, 34, 75, 0.75));
}

.advantage-card h3 {
  display: inline-block;
  margin: 0.5rem 0 1rem;
  font-size: 1.35rem;
  font-weight: 600;
  text-shadow: 0 1px 5px rgba(0,0,0,0.3);
  padding: 0.5rem 1rem;
  cursor: default;
  position: relative;
}

.advantage-card h3::after {
  content: "";
  position: absolute;
  left: 50%; 
  bottom: -6px;
  width: 30%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent1), var(--accent2));
  transform: translateX(-50%);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.advantage-card p {
  font-size: 1rem;
  color: #ffffff;
  line-height: 1.5;
  margin: auto 0 auto 0;
  padding-top: 10px;
}

/* =========================
   CONTACT ME
   ========================= */

.contact {
  max-width: 30%;
  margin: 4rem auto;
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.contact-text {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 12px;
  background: #232942;
  font-size: 1rem;
  outline: none;
  color: #eeffdd;
  font-family: 'Barlow', sans-serif;
}

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

.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 12px;
  background: #232942;
  font-size: 1rem;
  outline: none;
  resize: none;
}

.contact-form button {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #0a3874, #7a3103);
  font-family: 'Manrope', sans-serif;
  font-size: 1rem;
  color: #eeffdd;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  width: 50%;
  align-self: center; 
}

.contact-form button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  background: linear-gradient(135deg, #08489d, #8c3804);
}

/* =========================
   QUOTE SECTION
   ========================= */

.quote-section{
  width:100vw; max-width:100%; padding:60px 20px;
  background:linear-gradient(135deg,#1b1f35,#1e3568);
  color:var(--text); text-align:center; position:relative;
}
.quote-section blockquote{
  font-size:2rem; font-weight:500; line-height:1.4; max-width:60%; margin:0 auto; padding:20px; position:relative;
}




/* =========================
   FOOTER
   ========================= */

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 2rem 32px;
  background: #111;
}

footer .social-icons {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-left: 50px;
}

footer .footer-text {
  text-align: center;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
}

footer .captcha-disclaimer {
  justify-self: end;
  padding-right: 50px;
  font-size: 0.75rem;
  color: var(--text);
}

/* =========================
   BURGER MENU
   ========================= */
   
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  cursor: pointer;
  z-index: 1100;
}
.burger span {
  display: block;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.burger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* =========================
   HEADER BASE
   ========================= */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
}
.logo-area {
  margin-right: auto;
  transition: margin 0.3s ease;
}
.header-contact {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 120px;
  transition: flex 0.3s ease;
}
nav {
  display: flex;
}
nav ul {
  display: flex;
  gap: 2rem;
}

/* =========================
   BREAKPOINTS
   ========================= */

/* Desktops 1600px+ */
@media (min-width:1600px){
  .container{ width:100% }
}

@media (max-width:1600px){
  .container{ width:100% }
  .home-intro{max-width:40%}
}

@media (max-width:1305px){
  .home-intro{max-width:50%}
}

/* Laptops ≤1200px */
@media (max-width:1200px){
  .container{ width:85% }
  .header-inner h1{ font-size:1.6rem }
  .home-intro{ max-width:60% }
  .projects, .about, .advantages{ max-width:90% }
  .contact{ max-width:40% }
}

/* Tablets & small laptops ≤1000px */
@media (max-width:1000px){
  .container{ width:90% }

  .header-inner{ 
    padding: 0 1rem;
  }
  .logo-area{ 
    margin-right: min(4vw, 1rem); 
  }
  .logo-area h1{ font-size:1.3rem }
  .name-subtitle{ font-size:0.8rem }

   .burger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
  }

  .header-contact{ 
    flex:0 1 auto; 
    gap:0.5rem; 
  }
  nav { 
    display: flex; /* show nav container */
    position: relative;
    top: 0; left: 0; right: 0; 
    flex-direction: column;
    align-items: center;
  }

nav ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: fixed; /* take out of flow */
    top: 70px; /* just below header */
    left: 50%;
    transform: translateX(-50%);
    width: 60%; /* wide popup */
    max-width: 900px;
    min-width: 300px;
    background-color: var(--panel);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    pointer-events: none;
  }

  nav ul.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
  }

  nav ul li a {
    font-size: 1.5rem; /* larger links */
  }
nav ul a:hover {
    color: #ff9441;
}

  /* Dim the rest of the page when menu is open */
  body.menu-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(2px);
    z-index: 900;
  }

  
  /* Sections */
  section{ margin:8rem auto }
  .home-intro{ max-width:65%; padding:1rem }
  .audio-reels{ flex-direction:column; gap:2rem; max-width:100% }

  .carousel-track{ flex-wrap:wrap; justify-content:center }
  .project-card{ flex:1 1 45%; max-width:45% }

  .about-row{ flex-direction:column; gap:2rem }
  .about-image, .about-text{ flex:0 0 100%; max-width:100% }
  .about-image img{ width:100% }
  .about-texts{ margin-left:0 }

  .advantages{ margin:12rem auto }
  .advantages-cards{ flex-direction:column; align-items:center }
  .advantage-card{ max-width:80% }

  .contact{ max-width:70% }
  .contact-form button{ width:70% }

  .quote-section blockquote{ max-width:90%; font-size:1.4rem }

   footer {
    grid-template-columns: 1fr; /* single column */
    gap: 1rem;
    text-align: center;
  }

  footer .social-icons {
    justify-self: center;
    padding-left: 0;
  }

  footer .captcha-disclaimer {
    justify-self: center;
    padding-right: 0;
    text-align: center;
  }
}

@media (max-width:890px){
  .container{ width:100% }
  .home-intro{max-width:70%}
}

@media (max-width:670px){
  .logo-area {
    display: none; /* heading still disappears */
  }

  .burger {
    margin-left: 50px;
  }

  .header-contact a img {
    margin-left: 10px;
  }

  /* ensure header wrappers don't break fixed centering */
  header,
  .header-inner,
  nav {
    transform: none !important;
    filter: none !important;
    perspective: none !important;
  }

  nav ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: fixed;          /* anchored to viewport */
    top: 80px;                /* just below header */
    left: 50%;                /* center horizontally */
    transform: translateX(-50%);
    width: 80%; 
    max-width: 900px;
    min-width: 300px;
    background-color: var(--panel);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    justify-content: center;
    align-items: center;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    z-index: 1000;
    transition: opacity 0.25s ease, transform 0.25s ease;
    opacity: 0;
    pointer-events: none;
  }

  nav ul.show {
    opacity: 1;
    pointer-events: auto;
  }

  nav ul li a {
    font-size: 1.5rem;
  }
   .home-intro{ max-width:90%;}
}



/* Phones ≤480px */
@media (max-width:480px){
  .container{ width:95% }
  h1{ font-size:1.4em }
  .logo-area h1{ font-size:1.1rem }
  .name-subtitle{ font-size:0.75rem }
  p{ font-size:.95em }
  nav a{ font-size:.9em }

  .header-inner{ padding:0 0.5rem; }
  .logo-area{ margin-right:0.5rem; }
  .burger{ width:24px; height:18px; }
  .header-contact{ gap:0.25rem; }

  .home-intro{ max-width:95%; font-size:.95rem }
  .reel{ padding:1rem }
  .reel h2{ font-size:1.3rem }

  .project-card{ flex:1 1 100%; max-width:100% }
  .about-text p{ font-size:1rem }

  .advantage-card h3{ font-size:1.2rem }
  .advantage-card p{ font-size:.95rem }

  .contact{ max-width:90% }
  .contact-form button{ width:100% }

  .quote-section blockquote{ font-size:1.2rem }

  .email-address {
    display: none !important;
  }
  .email-logo {
    display: inline !important;
  }
  .email-logo img {
    width:30px !important;
    height:30px !important;
    object-fit:contain;
  }
   footer {
    padding: 1.5rem 16px;
    gap: 0.75rem;
  }

  footer .footer-text {
    font-size: 0.8rem;
  }

  footer .captcha-disclaimer {
    font-size: 0.7rem;
    line-height: 1.4;
  }

  footer .social-icons {
    gap: 1rem;
  }

.burger.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}
}