/* VARIABLES */
:root {
  --primary: #2b2e4a;
  --secondary: #e84545;
  --tertiary: #903749;
  --quaternary: #53354a;
  --gradient-accent: linear-gradient(135deg, var(--secondary), var(--tertiary));
  --focus-ring: 0 0 0 3px rgba(232,69,69,0.4);
}

/* GLOBALS */
* {
  font-family: "Righteous", cursive;
}
html {
  background-image: url("bg-bezeir.svg");
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  scroll-behavior: smooth;
}
.footer-abs {
  position: absolute;
  bottom: 0;
  width: 100%;
}
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 10;
}

.burger {
  display: none;
  transition: all 2s;
}

.burger .burger-img {
  content: url("burger.svg");
  transition: all 2s;
}
.burger.clicked .burger-img {
  content: url("burger-close.svg");
}

body { margin:0; }

/* Responsive images */
img { max-width:100%; height:auto; }
.profile-image { width:100%; max-width:500px; height:auto !important; object-fit:cover; }

/* NEW LAYOUT UTILITIES */
.container { width: min(1200px, 92%); margin-inline: auto; }
.section-title { letter-spacing: 2px; text-transform: uppercase; position: relative; }
.section-title:after { content:""; display:block; width:60px; height:4px; margin:10px auto 0; background:var(--secondary); border-radius:2px; }
.home-hero { min-height: 100vh; display:flex; flex-direction:column; justify-content:center; }
.hero-heading { font-size: clamp(2rem, 5vw, 3.5rem); line-height:1.1; }
.eyebrow { font-size: .9rem; letter-spacing:4px; text-transform:uppercase; opacity:.85; }
.role { font-size: clamp(1.1rem, 2.5vw, 1.8rem); color: var(--secondary); }
.role-animated { height: 3.5rem; }
.more-projects-note { opacity:.8; font-style:italic; }

/* BUTTON ENHANCEMENTS */
.btn-gradient { background: var(--gradient-accent); border: none; position:relative; overflow:hidden; transition: background .3s, transform .25s; display:inline-block; }
.btn-gradient:hover, .btn-gradient:focus { transform: translateY(-2px); }
.btn-gradient:active { transform: translateY(0); }

/* FOCUS STYLES */
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius:4px; }

/* NAV ACTIVE STATE */
.nav-link { transition: background .3s, color .3s; position:relative; }
.nav-link.active, .nav-link:hover { background: var(--tertiary); }
.nav-link.active:after { content:""; position:absolute; left:50%; transform:translateX(-50%); bottom:-6px; width:8px; height:8px; background:var(--secondary); border-radius:50%; }

/* BURGER BUTTON RESET */
.burger { background: transparent; border: none; cursor:pointer; }

/* POSITIONING */
.centered {
  margin: auto;
}
.v-centered {
  margin: auto 0;
}
.h-centered {
  margin: 0 auto;
}
.centered-width-fit {
  margin: auto;
  width: fit-content;
}

.color-font-white{

  color: white;
}
.color-font-black{
  color: black!important;
}

/* BUTTONS and NAVS */
a.button-click.bg-secondary:hover{
  background-color:hwb(0 27% 20%);
}
a.button-click.bg-tertiary:hover{
  background-color:hwb(348 22% 50%);
}
.button-click {
  padding: 10px;
  text-decoration: none;
}
.navs {
  display: block;
  font-family: "Righteous", cursive;
  font-size: medium;
}
.logo {
  display: block;
  font-family: "Righteous", cursive;
  text-decoration: none;
}
.logo-name {
  text-decoration: none;
}

/* FLEX LAYOUT */
.flex-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* GRID LAYOUT */
[class*="grid-container-"] {
  display: grid;
  column-gap: 10px;
  grid-template-rows: auto;

}
.grid-container-1 {
  grid-template-columns: 1fr;
}
.grid-container-2 {
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: dense;
}
.grid-container-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-container-4 {
  grid-template-columns: repeat(4, 1fr);
}
.grid-container-12 {
  grid-template-columns: repeat(12, 1fr);
}

/* ALIGNERS */
.align-r {
  margin-left: auto;
  margin-right: 0;
}
.align-l {
  margin-left: 0;
  margin-right: auto;
}
.txt-align-center {
  text-align: center;
}
.txt-align-end {
  text-align: end;
}
.txt-align-start {
  text-align: start;
}
/* BG */
.bg-primary {
  background-color: var(--primary);
}
.bg-secondary {
  background-color: var(--secondary);
}
.bg-tertiary {
  background-color: var(--tertiary);
}
.bg-quaternary {
  background-color: var(--quaternary);
}
.bg-circles {
  background-image: url("circles-bg.svg");
  background-position: center;
  background-size: cover;
}

/* PARALLAX BG */
[class*="parallax-bg-"] {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.parallax-bg-1 {
  background-image: url("pexels-max-deroin-249203.jpg");
}

.parallax-bg-2 {
  background-image: url("pexels-soumil-kumar-735911.jpg");
}
.parallax-bg-3 {
  background-image: url("pexels-realtoughcandycom-11035537.jpg");
}
.parallax-bg-4 {
  background-image: url("pexels-ekrulila-2255355.jpg");
}

/* PADDINGS */
.pdng-0 {
  padding: 0 !important;
}
.pdng-1 {
  padding: 10px;
}
.pdng-2 {
  padding: 20px;
}
.pdng-3 {
  padding: 30px;
}
.pdng-4 {
  padding: 40px;
}
.pdng-5 {
  padding: 50px;
}

.pdng-t-0 {
  padding-top: 0 !important;
}
.pdng-t-1 {
  padding-top: 10px;
}
.pdng-t-2 {
  padding-top: 20px;
}
.pdng-t-3 {
  padding-top: 30px;
}
.pdng-t-4 {
  padding-top: 40px;
}
.pdng-t-5 {
  padding-top: 50px;
}

.pdng-b-0 {
  padding-bottom: 0 !important;
}
.pdng-b-1 {
  padding-bottom: 10px;
}
.pdng-b-2 {
  padding-bottom: 20px;
}
.pdng-b-3 {
  padding-bottom: 30px;
}
.pdng-b-4 {
  padding-bottom: 40px;
}
.pdng-b-5 {
  padding-bottom: 50px;
}

.pdng-r-0 {
  padding-right: 0 !important;
}
.pdng-r-1 {
  padding-right: 10px;
}
.pdng-r-2 {
  padding-right: 20px;
}
.pdng-r-3 {
  padding-right: 30px;
}
.pdng-r-4 {
  padding-right: 40px;
}
.pdng-r-5 {
  padding-right: 50px;
}

.pdng-l-0 {
  padding-left: 0 !important;
}
.pdng-l-1 {
  padding-left: 10px;
}
.pdng-l-2 {
  padding-left: 20px;
}
.pdng-l-3 {
  padding-left: 30px;
}
.pdng-l-4 {
  padding-left: 40px;
}
.pdng-l-5 {
  padding-left: 50px;
}

/* MARGINS */
.mrgn-0 {
  margin: 0 !important;
}
.mrgn-1 {
  margin: 10px;
}
.mrgn-2 {
  margin: 20px;
}
.mrgn-3 {
  margin: 30px;
}
.mrgn-4 {
  margin: 40px;
}
.mrgn-5 {
  margin: 50px;
}

.mrgn-t-0 {
  margin-top: 0 !important;
}
.mrgn-t-1 {
  margin-top: 10px;
}
.mrgn-t-2 {
  margin-top: 20px;
}
.mrgn-t-3 {
  margin-top: 30px;
}
.mrgn-t-4 {
  margin-top: 40px;
}
.mrgn-t-5 {
  margin-top: 50px;
}

.mrgn-b-0 {
  margin-bottom: 0 !important;
}
.mrgn-b-1 {
  margin-bottom: 10px;
}
.mrgn-b-2 {
  margin-bottom: 20px;
}
.mrgn-b-3 {
  margin-bottom: 30px;
}
.mrgn-b-4 {
  margin-bottom: 40px;
}
.mrgn-b-5 {
  margin-bottom: 50px;
}

.mrgn-r-0 {
  margin-right: 0 !important;
}
.mrgn-r-1 {
  margin-right: 10px;
}
.mrgn-r-2 {
  margin-right: 20px;
}
.mrgn-r-3 {
  margin-right: 30px;
}
.mrgn-r-4 {
  margin-right: 40px;
}
.mrgn-r-5 {
  margin-right: 50px;
}

.mrgn-l-0 {
  margin-left: 0 !important;
}
.mrgn-l-1 {
  margin-left: 10px;
}
.mrgn-l-2 {
  margin-left: 20px;
}
.mrgn-l-3 {
  margin-left: 30px;
}
.mrgn-l-4 {
  margin-left: 40px;
}
.mrgn-l-5 {
  margin-left: 50px;
}
/* BORDER_RAIDUS */

.b-rad {
  border-radius: 5px;
}

.relatives{
  position: relative;
}

.absolutes{
  position: absolute;
}

.font-normal {
  font-size: medium;
}

section {
  padding-top: 110px;
  min-height: 100vh;
  background-image: none;
  background-size: cover;
  background-position: center;
}
hr {
  background-color: #53354a;
  width: 90%;
}
.animated-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.animated-txt-1 {
  margin: 0;
  position: absolute;
  color: transparent;
  -webkit-text-stroke: 0.5px var(--tertiary);
}
.animated-txt-2 {
  margin: 0;
  color: var(--tertiary);
  animation: animate-bg 4s ease-in-out infinite;
}

.navi-list li a {
  text-decoration: none;
}

.navi-list {
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  list-style: none;
  padding: 0;
  border-radius: 0 !important;
  overflow: hidden;
  display: block;
  height: 0px;
  z-index: 4;
  transition: all ease-in-out 0.5s;
}

/* CAROUSELINGS */
.carousel{
  position: relative;
  width: 80%;
  margin: auto;
}
.carousel-item{
  position: relative;
  border-radius: 20px;
  height: 500px;
  width: 100%;
  background-color: var(--quaternary);
  display: none;
}
.carousel-item img{
  position: absolute;
  width: inherit;
  height: inherit;
  border-radius: 10px;
  image-rendering: pixelated;
}
.carousel-item .img-description{
  z-index: 3;
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 10px;
  left: 0;
  right: 0;
  background: #53354a77;
  color: #fff;
  visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity .2s, visibility .2s;
}
.carousel-item:hover .img-description{
  visibility: visible;
  opacity: 1;
}
.carousel-item.selected{
  display: block;
}
.carousel-nav{
  width: fit-content;
  margin: auto;
}
.carousel-button{
  margin: 10px 20px;
  display: inline-block;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background-color: hwb(348 22% 60%);
}
.carousel-button.clicked{
  display: inline-block;
  background-color: #903749;
}

/* CARDINGS */

.card{
  position: relative;
  display: inline-block;
  background-color: var(--tertiary);
  width: 300px;
  height: 400px;
  overflow: hidden;
}

.card-header{
  top: 0;
  position: absolute;
  width: inherit;
  height: 20%;
  background-color: var(--quaternary);
}

.card-content{
  height: 80%;
  min-height: 80%;
  bottom: 0;
  position: absolute;
  background-color: white;
  width: inherit;
}

.content-fit{
  width: fit-content;
  height: fit-content;
}

/* VIDEO CARDS */
.videos-grid { align-items:start; grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); gap:80px; }
.video-card { background:#ffffff10; backdrop-filter:blur(4px); border-radius:14px; padding:14px; margin:0; width:100%; box-shadow:0 4px 14px -4px #00000055; display:flex; flex-direction:column; gap:10px; }
.video-card:focus-within { box-shadow:0 0 0 3px rgba(232,69,69,0.4); }
.video-aspect { position:relative; width:100%; aspect-ratio:16/9; background:#000; overflow:hidden; border-radius:10px; }
.video-aspect iframe { position:absolute; inset:0; width:100%; height:100%; border:0; max-width:100%; }
.video-caption { font-size:.85rem; letter-spacing:1px; text-align:center; color:#fff; opacity:.9; }
@supports not (aspect-ratio:16/9){
  .video-aspect { padding-top:56.25%; }
  .video-aspect iframe { height:100%; }
}
@media (max-width:840px){
  .videos-grid { grid-template-columns:1fr !important; gap:16px; }
  .video-card { margin:0; }
}

/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  background: var(--primary);
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: var(--secondary);
  border-radius: 5px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: var(--tertiary);
}

/* M-QUERIES */
@media screen and (max-width: 4000px) {
  .burger {
    display: none;
  }
  #intro {
    font-size: 40px;
  }
  .navi-list {
    height: 0px;
  }
}
@media screen and (max-width: 1024px) {
  .grid-container-4 {
    grid-template-columns: repeat(4, 1fr) !important;
  }
  .v-centered {
    margin: auto;
  }
  .h-centered {
    margin: auto;
  }
  .burger {
    display: none;
  }
  .profile-image { width:100%; max-width:400px; }
  #intro {
    text-align: center;
    font-size: 30px;
  }
  .navi-list {
    height: 0px;
  }
}
@media screen and (max-width: 840px) {
  .grid-container-1 {
    grid-template-columns: 1fr !important;
    column-gap: 0px;
  }

  .navs {
    display: none;
  }
  .bg-grunge {
    background-image: none;
    background-repeat: no-repeat;
    background-size: cover;
  }
  .burger {
    display: block;
  }
  .profile-image { width:100%; max-width:250px; }
  #intro {
    text-align: center;
    font-size: 30px;
  }
  .navi-list.show {
    height: 105px;
  }
  #about_icons{
    height: 60px;
    width: 60px;
  }
  #skill_icons{
    height: 70px;
    width: 70px;
  }
  #contacts_icons{
    height: 70px;
    width: 70px;
  }
  .carousel-item{
    height: 200px;
  }
}
@media screen and (max-width: 425px) {
  .grid-container-1 {
    grid-template-columns: 1fr !important;
    column-gap: 0px;
  }
  .navs {
    display: none;
  }
  .bg-grunge {
    background-image: none;
    background-repeat: no-repeat;
    background-size: cover;
  }
  .profile-image { width:100%; max-width:200px; }
  .burger {
    display: block;
  }
  #intro {
    text-align: center;
    font-size: 20px !important;
  }
  .navi-list.show {
    height: 105px;
  }
  #about_icons{
    height: 50px;
    width: 50px;
  }
  #skill_icons{
    height: 50px;
    width: 50px;
  }
  #contacts_icons{
    height: 50px;
    width: 50px;
  }
  .carousel-item{
    height: 200px;
  }
}

@keyframes animate-bg {
  0%,
  100% {
    clip-path: polygon(
      0% 45%,
      16% 44%,
      33% 50%,
      54% 60%,
      70% 61%,
      84% 59%,
      100% 52%,
      100% 100%,
      0% 100%
    );
  }

  50% {
    clip-path: polygon(
      0% 60%,
      15% 65%,
      34% 66%,
      51% 62%,
      67% 50%,
      84% 45%,
      100% 46%,
      100% 100%,
      0% 100%
    );
  }
}

/* SHADOWS */
.shadow-sm { box-shadow: 0 4px 12px -2px #00000033; }
.shadow-inner { box-shadow: inset 0 2px 10px -4px #000000aa; }

/* ABOUT ICONS ROW */
.about-icons-row img { transition: transform .4s; }
.about-icons-row img:hover { transform: translateY(-6px) scale(1.05); }

/* SOCIAL LINKS */
.social-links a { text-decoration:none; }
.social-links span { font-size:.85rem; letter-spacing:1px; }

/* FORM FRAME */
.form-frame { background: #ffffff10; backdrop-filter: blur(4px); border-radius:12px; }

/* GRADIENT TEXT ANIMATION (reusing existing) */
.animated-txt-2 { background: var(--gradient-accent); -webkit-background-clip:text; background-clip:text; }

/* REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  .animated-txt-2 { animation:none; }
  .profile-image { transition:none; }
  .btn-gradient { transition:none; }
}

/* RESPONSIVE REFINEMENTS */
@media (max-width: 840px){
  .hero-media { order:2; }
  .hero-intro { order:1; text-align:center; }
  .role-animated { height:2.5rem; }
}
@media (max-width: 600px){
  .section-title { font-size:1.6rem; }
  .site-header { backdrop-filter: blur(6px); background: #2b2e4acc; }
}

/* VARIABLES */
/* ...rest of existing code... */

/* --- Responsive video cards for mobile --- */
@media (max-width: 840px){
  .videos-grid { grid-template-columns:1fr !important; }
  .video-card { width:100%; max-width:100%; margin:10px 0; padding:10px; }
  .video-aspect { aspect-ratio:16/9; width:100%; min-width:0; }
  .video-caption { font-size:1rem; padding:4px 0; }
}
@media (max-width: 600px){
  .videos-grid { grid-template-columns:1fr !important; }
  .video-card { width:100%; max-width:100%; margin:8px 0; padding:6px; border-radius:10px; }
  .video-aspect { aspect-ratio:16/9; width:100%; min-width:0; border-radius:8px; }
  .video-caption { font-size:.95rem; padding:2px 0; }
}
@media (max-width: 425px){
  .videos-grid { grid-template-columns:1fr !important; }
  .video-card { width:100%; max-width:100%; margin:6px 0; padding:4px; border-radius:8px; }
  .video-aspect { aspect-ratio:16/9; width:100%; min-width:0; border-radius:6px; }
  .video-caption { font-size:.9rem; padding:2px 0; }
}
