

/* Poppins */
@font-face { font-family: 'Poppins'; font-weight: 100; font-style: normal; src: url('../Fonts/Aubrey,Manrope,Playfair_Display,Poppins,Roboto/Poppins/Poppins-Thin.ttf') format('truetype'); }
@font-face { font-family: 'Poppins'; font-weight: 200; font-style: normal; src: url('../Fonts/Aubrey,Manrope,Playfair_Display,Poppins,Roboto/Poppins/Poppins-ExtraLight.ttf') format('truetype'); }
@font-face { font-family: 'Poppins'; font-weight: 300; font-style: normal; src: url('../Fonts/Aubrey,Manrope,Playfair_Display,Poppins,Roboto/Poppins/Poppins-Light.ttf') format('truetype'); }
@font-face { font-family: 'Poppins'; font-weight: 400; font-style: normal; src: url('../Fonts/Aubrey,Manrope,Playfair_Display,Poppins,Roboto/Poppins/Poppins-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Poppins'; font-weight: 500; font-style: normal; src: url('../Fonts/Aubrey,Manrope,Playfair_Display,Poppins,Roboto/Poppins/Poppins-Medium.ttf') format('truetype'); }
@font-face { font-family: 'Poppins'; font-weight: 600; font-style: normal; src: url('../Fonts/Aubrey,Manrope,Playfair_Display,Poppins,Roboto/Poppins/Poppins-SemiBold.ttf') format('truetype'); }
/* Manrope */
@font-face { font-family: 'Manrope'; font-weight: 400; font-style: normal; src: url('../Fonts/Aubrey,Manrope,Playfair_Display,Poppins,Roboto/Manrope/static/Manrope-Regular.ttf') format('truetype'); }
@font-face { font-family: 'Manrope'; font-weight: 500; font-style: normal; src: url('../Fonts/Aubrey,Manrope,Playfair_Display,Poppins,Roboto/Manrope/static/Manrope-Medium.ttf') format('truetype'); }
@font-face { font-family: 'Manrope'; font-weight: 600; font-style: normal; src: url('../Fonts/Aubrey,Manrope,Playfair_Display,Poppins,Roboto/Manrope/static/Manrope-SemiBold.ttf') format('truetype'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-style: normal; src: url('../Fonts/Aubrey,Manrope,Playfair_Display,Poppins,Roboto/Manrope/static/Manrope-Bold.ttf') format('truetype'); }
@font-face { font-family: 'Manrope'; font-weight: 800; font-style: normal; src: url('../Fonts/Aubrey,Manrope,Playfair_Display,Poppins,Roboto/Manrope/static/Manrope-ExtraBold.ttf') format('truetype'); }
/* Playfair Display */
@font-face { font-family: 'Playfair Display'; font-weight: 700; font-style: normal; src: url('../Fonts/Aubrey,Manrope,Playfair_Display,Poppins,Roboto/Playfair_Display/static/PlayfairDisplay-Bold.ttf') format('truetype'); }

/* Scoped Reset */
body, h1, h2, h3, p, a, img, ul, li {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}
a { 
    text-decoration: none; 
    border: none; 
    outline: none; 
}
html { 
    font-size: 62.5%;
 }
body { 
    width: 100%;
    height: 100vh; 
    overflow-x: hidden; 
    background-color: black; 
    color: white; 
}

/* Header */
header {
  margin-top: 0;
  position: fixed;
  width: 100%;
  left: 0;
  box-sizing: border-box;
  background: rgba(9, 11, 17, 0.56);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex; 
  justify-content: space-between; 
  align-items: center;
  z-index: 100;
  gap: 2rem;
  padding: 1.2rem 5%;
}

.logo img {
height: 50px; 
width: auto;
object-fit: contain; 
}

.logo:hover { 
transform: scale(1.1); 
}
nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  transform: none;
}


nav a {
  font-size: 1.8rem; 
  color: white; 
  margin-left: 0;
  font-weight: 500; 
  transition: 0.3s ease; 
  border-bottom: 3px solid transparent;
}

nav a:hover, nav a.active { 
    color: #b74b4b; 
    border-bottom: 
    3px solid #b74b4b; 
}

/* Sections */
section { 
    min-height: 100vh; 
    padding: 5rem 9% 5rem; 
}

/* Home */
.home {
  display: flex; 
  justify-content: flex-start;
  align-items: center; 
  gap: 18rem;
  background: linear-gradient(135deg, rgba(0,0,0,0.8) 0%, rgba(183,75,75,0.2) 100%);
  padding-top: 10rem; 
  position: relative; 
  overflow: hidden;
}
.home::before {
  content: ''; 
  position: absolute; 
  top: 0; 
  left: 50%; 
  width: 100%; 
  height: 100%;
  background-image: url('../images/JMC07498.jpg'); 
  background-size: cover;
  background-position: right center; 
  background-repeat: no-repeat;
  opacity: 0.15;
  z-index: -1;
}
.home-content { 
    max-width: 600px; 
    z-index: 2; 
    animation:slideInLeft 0.8s ease;
 }

.home-content h1 {
  font-size: 6rem;
  font-weight: 700; 
  line-height: 1.3;
  background: linear-gradient(120deg, white 0%, #b74b4b 100%);
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent; 
  background-clip: text;
  margin-bottom: 1rem;
}
.home-content h3 {
 font-size: 4rem; 
 margin-bottom: 1rem; 
 font-weight: 700; 
 }
.home-content p {
  font-size: 1.6rem; 
  line-height: 1.8;
  color: rgba(255,255,255,0.9);
  margin: 2rem 0; 
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

@keyframes slideInLeft { 
    from {opacity:0; transform:translateX(-50px);} 
    to {opacity:1; transform:translateX(0);} 
}

.home-img img {
  width: 32vw;
  border-radius: 10%;
  box-shadow: 0 0 25px solid #b74b4b;
  cursor: pointer;
  transition: 0.2s linear;
}
.social-icons a {
  display:inline-flex; 
  justify-content:center; 
  align-items:center;
  width:4rem;
  height:4rem; 
  overflow:hidden;
  border:0.2rem solid #b74b4b; 
  font-size:2rem;
  border-radius:50%; 
  margin:3rem 1.5rem 3rem 0; 
  transition:0.3s ease; 
  color:#b74b4b;
}

.social-icons a img {
  width:65%;
  height:65%;
  object-fit:contain;
  display:block;
}

.social-icons a:hover { 
    color:black; 
    transform:scale(1.3) 
    translateY(-5px); 
    background-color:#b74b4b; 
    box-shadow:0 0 25px #b74b4b; 
}

.btn {
  display:inline-block; 
  padding:1rem 2.8rem; 
  background:linear-gradient(120deg,#b74b4b 0%,#d66a6a 100%);
  border-radius:4rem; 
  font-size:1.6rem; 
  color:black; 
  letter-spacing:0.3rem; 
  font-weight:600;
  border:2px solid transparent; 
  transition:0.3s ease; 
  cursor:pointer; 
  box-shadow:0 4px 15px rgba(183,75,75,0.4);
}

.btn:hover { 
    transform:translateY(-3px) scale(1.05);
     box-shadow:0 8px 25px rgba(183,75,75,0.6);
}

/* Typing Text */
.typing-text { 
    font-size:34px; 
    font-weight:600; 
    min-width:280px; 
}

.typing-text span { 
    position:relative; 
    color:#b74b4b;
}

@keyframes blink { 
    0%,50%{opacity:1;} 
    51%,100%{opacity:0;} 
}

/* About Section */
.about {
  background: linear-gradient(135deg, rgba(0,0,0,0.95) 0%, rgba(20,20,20,0.98) 100%);
  padding: 6rem 9%;
}
.about h2 {
  font-size: 4rem; 
  font-weight: 700; 
  text-align: center; 
  margin-bottom: 4rem;
  color: white; 
  position: relative; 
  display: inline-block;
  width: 100%;
}

.about h2::after {
  content: ''; 
  position: absolute; 
  bottom: -1rem; 
  left: 50%; 
  transform: translateX(-50%);
  width: 8rem; 
  height: 0.4rem; 
  background: linear-gradient(90deg, #b74b4b, #ff6b6b); 
  border-radius: 0.2rem;
}

.about-content { 
    display: flex; 
    gap: 4rem; 
    margin-top: 3rem; 
    flex-direction: row-reverse;
   
}
.about-img img {
  width: 32vw; 
  max-width: 350px;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(183,75,75,0.3);
  transition: 0.4s ease;
  border: 2px solid #b74b4b;
}
.about-img img:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 15px 50px rgba(183,75,75,0.5); 
}

.about-text p { 
    font-size: 1.6rem; 
    line-height: 1.9; 
    color: #c0c0c0; 
    margin-bottom: 6px; 
    text-align: justify;
    padding-top: 50px;
     
}

.about .btn { 
    padding: 1.2rem 3rem; 
    background-color: #b74b4b; 
    color: white; 
    font-size: 1.6rem; 
    font-weight: 600; 
    border-radius: 0.5rem; 
    transition: 0.3s ease; 
    margin-top: 1rem; 
}


.about .btn:hover {
  background: linear-gradient(135deg, #b74b4b, #ff6b6b);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(183,75,75,0.4);
}

#content {
height: 220px;
background-color: #8c8c8c;
background-image: url('../images/pat.png');
}




/* Skills Section */
.skills {
  background: linear-gradient(135deg, rgba(0,0,0,0.95) 0%, rgba(20,20,20,0.98) 100%);
  padding: 6rem 9%;
  color: white;
}

.skills h2 {
  font-size: 4rem; 
  font-weight: 700; 
  text-align: center; 
  margin-bottom: 4rem; 
  position: relative;
}

.skills h2::after {
  content: ''; 
  position: absolute; 
  bottom: -1rem; 
  left: 50%; 
  transform: translateX(-50%);
  width: 8rem; 
  height: 0.4rem; 
  background: linear-gradient(90deg, #b74b4b, #ff6b6b); 
  border-radius: 0.2rem;
}

.skills-content {
     display: flex; 
     gap: 4rem; 
     align-items: flex-start; flex-direction: row-reverse; 
    }

.skills-text { 
    flex: 1; 
    font-size: 1.6rem; 
    line-height: 1.9; 
    color: #c0c0c0;
 }


.skills-icons {
  flex: 1; 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem; 
  justify-items: center;
}

.skill { 
    text-align: center; 
    transition: 0.3s ease; 
}

.skill i { 
    font-size: 4rem; 
    color: #b74b4b; 
    margin-bottom: 1rem; 
}
.skill span { 
    display: block; 
    font-size: 1.4rem; 
    font-weight: 600; 
}
.skill:hover { 
    transform: translateY(-5px); 
}
/* Services Section */
.service__grid {
  margin-top: 2rem;
   display: grid; 
   gap: 1rem;
}

.service__card {
  padding: 2rem 1rem; 
  text-align: center;
  background-image: var(--gradient-2);
  border-radius: 1rem;
  box-shadow: 5px 5px 10px rgba(0,0,0,0.2);
}

.service__card span {
  display: inline-block; 
  margin-bottom: 1rem; 
  font-size: 2rem;
}

.service__card h4 {
  margin-bottom: 1rem; 
  font-size: 1.2rem;
   font-weight: 700;
}

.service__card p {
  color: var(--extra-light); 
  line-height: 2rem;
}




/* Skills Page Modern Layout */
.skills-page {
  --bg-deep: #090c11;
  --bg-soft: #151b23;
  --card: rgba(255, 255, 255, 0.06);
  --card-border: rgba(255, 255, 255, 0.14);
  --text-main: #f6f7f9;
  --text-muted: #b6bec9;
  --accent: #b74b4b;
  --accent-2: #ff6b6b;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 107, 107, 0.12), transparent 32%),
    radial-gradient(circle at 83% 10%, rgba(183, 75, 75, 0.2), transparent 40%),
    linear-gradient(135deg, var(--bg-deep), #0e1319 55%, var(--bg-soft));
  color: var(--text-main);
  font-family: 'Manrope', sans-serif;
  overflow-x: clip;
}

.skills-page section {
  min-height: auto;
  padding: 0;
  box-sizing: border-box;
}

.skills-page main {
  width: min(1160px, calc(100% - 2.4rem));
  margin-inline: auto;
  box-sizing: border-box;
  padding: 12rem 1.6rem 7rem;
  display: grid;
  gap: 3.2rem;
}

.skills-page .panel {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--card-border);
  border-radius: 2rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.skills-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(30rem, 0.9fr);
  gap: 4rem;
  padding: 6.8rem 6.8rem 10.8rem;
  align-items: start;
  animation: riseIn 0.8s ease-out;
}

/* Demo Reel */
.demoreel-section {
  padding: 4.8rem 6.8rem;
  text-align: center;
  animation: riseIn 0.8s ease-out;
}

.demoreel-section h2 {
  font-size: 2.8rem;
  margin-bottom: 2.4rem;
  color: white;
}

.demoreel-placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1.2rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demoreel-placeholder video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.2rem;
}

.skills-hero > div,
.hero-metrics {
  min-width: 0;
}

.skills-hero > div:first-child {
  display: grid;
  gap: 2.4rem;
  align-content: start;
  padding: 2.4rem 2.8rem 2.4rem 2rem;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(183, 75, 75, 0.14);
  border: 1px solid rgba(255, 107, 107, 0.4);
  color: var(--accent-2);
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0;
}

.skills-page h1 {
  font-family: 'Playfair Display', serif;
  font-size: 4.2rem;
  line-height: 1.08;
  margin-bottom: 0;
  color: #fff8ea;
}

.skills-page .lead {
  font-size: 1.8rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 60ch;
  margin: 0;
}

.hero-metrics {
  display: grid;
  gap: 2.8rem;
  align-content: center;
  margin-top: 2rem;
  padding-top: 1.2rem;
  padding-bottom: 1.6rem;
  padding-inline: 2.4rem;
}

.metric {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.2rem;
  padding: 3.4rem 3.8rem;
}

.metric strong {
  display: block;
  font-size: 2.2rem;
  color: var(--accent-2);
  margin-bottom: 0.3rem;
}

.metric span {
  font-size: 1.3rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.skills-lab {
  padding: 7rem 5.2rem;
  animation: riseIn 1s ease-out;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.4rem;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: 2.9rem;
  margin: 0;
  color: #fff3df;
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  font-size: 1.5rem;
  color: var(--text-muted);
  max-width: 56ch;
  text-align: left;
  line-height: 1.6;
}

.skills-lab .section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(34rem, 48rem);
  gap: 2rem;
  padding-inline: 2.2rem;
  padding-top: 1.4rem;
  margin-bottom: 3.2rem;
}

.skills-lab .section-head h2 {
  font-size: 3.6rem;
  line-height: 1.05;
}

.skills-lab .section-head p {
  font-size: 1.85rem;
  max-width: 34ch;
  line-height: 1.5;
  justify-self: end;
  padding-top: 0.3rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  padding-inline: 2.2rem;
  padding-bottom: 2rem;
  grid-auto-rows: auto;
  align-items: stretch;
}

.skill-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.4rem;
  padding: 2.2rem;
  display: grid;
  gap: 1.2rem;
  height: auto;
  min-height: 22rem;
  align-content: start;
  overflow: visible;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 107, 0.45);
}

.skill-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.skill-title .name {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.8rem;
  font-weight: 700;
}

.skill-title .name i {
  color: var(--accent);
  width: 3.2rem;
  font-size: 3.2rem;
  text-align: center;
}

.skill-title .name img {
  width: 3.2rem;
  height: 3.2rem;
  object-fit: contain;
}

.skill-title .level {
  font-size: 1.4rem;
  color: var(--accent-2);
  font-weight: 700;
}

.skill-bar {
  position: relative;
  height: 0.8rem;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  overflow: hidden;
}

.skill-bar span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  animation: loadBar 1.2s ease-out;
}

.bar-95 { width: 95%; }
.bar-92 { width: 92%; }
.bar-91 { width: 91%; }
.bar-90 { width: 90%; }
.bar-89 { width: 89%; }
.bar-88 { width: 88%; }

.skill-card p {
  font-size: 1.45rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.works {
  margin-top: 2.4rem;
  padding: 7.8rem 7rem;
  animation: riseIn 1.15s ease-out;
}

.works .section-head {
  padding-inline: 2rem;
  margin-bottom: 3.6rem;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 1.8rem;
  row-gap: 3.2rem;
  padding-inline: 2rem;
  padding-bottom: 2rem;
  align-items: stretch;
}

a.work-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.work-card {
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.09);
}

.work-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  transition: transform 0.35s ease;
}

.work-card:hover .work-thumb img {
  transform: scale(1.05);
}

.work-info {
  padding: 1.8rem 2rem 2rem;
}

.work-info h3 {
  margin: 0 0 0.7rem;
  font-size: 1.9rem;
  color: #fff;
}

.work-info p {
  margin: 0 0 1.2rem;
  color: var(--text-muted);
  font-size: 1.45rem;
  line-height: 1.6;
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.work-tags span {
  font-size: 1.2rem;
  padding: 0.35rem 1rem;
  border-radius: 10rem;
  background: rgba(183, 75, 75, 0.15);
  color: var(--accent-2, #ddd);
  border: 1px solid rgba(183, 75, 75, 0.3);
  letter-spacing: 0.02em;
}

/* Works Gallery Page */
.works-page main {
  padding: 10rem 5% 4rem;
}

.works-page {
  height: auto;
  min-height: 100vh;
}

.works-showcase {
  padding: 4rem;
  animation: riseIn 1s ease-out;
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.video-item {
  border-radius: 1.2rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.video-item video {
  width: 100%;
  display: block;
}

.video-grid-center {
  max-width: 700px;
  margin: 0 auto;
  display: block;
}


.works-showcase .section-head {
  margin-bottom: 3.6rem;
}

.works-showcase .section-head p {
  color: var(--text-muted, #aaa);
  font-size: 1.5rem;
  margin-top: 0.8rem;
}

.works-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}

.gallery-item {
  position: relative;
  border-radius: 1.2rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: block;
}

div.gallery-item {
  aspect-ratio: 16 / 9;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 1.2rem;
  background: #000;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h3 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.gallery-overlay span {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.7);
}


.gallery-section {
  margin-top: 2.4rem;
  padding: 4rem;
  animation: riseIn 1.25s ease-out;
}

.carousel-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.carousel-viewport {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 1.4rem;
}

.carousel-track {
  --slide-size: 34rem;
  --slide-gap: 1.2rem;
  display: flex;
  gap: var(--slide-gap);
  width: max-content;
  animation: skillsCarouselLoop 24s linear infinite;
  will-change: transform;
}

.gallery-slide {
  flex: 0 0 var(--slide-size);
  min-width: var(--slide-size);
}

.carousel-viewport:hover .carousel-track {
  animation-play-state: paused;
}

.carousel-btn {
  width: 4.2rem;
  height: 4.2rem;
  border: 1px solid rgba(255, 107, 107, 0.45);
  border-radius: 50%;
  background: rgba(183, 75, 75, 0.18);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.carousel-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 107, 107, 0.35);
}

.carousel-dots {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.7rem;
  justify-content: center;
}

.carousel-btn,
.carousel-dots {
  display: none;
}

.carousel-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.carousel-dot.is-active {
  background: var(--accent-2);
  transform: scale(1.2);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.6rem;
}

.gallery-placeholder {
  min-height: 32rem;
  aspect-ratio: 2048 / 1152;
  border-radius: 1.4rem;
  border: 1px dashed rgba(255, 107, 107, 0.45);
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.03),
      rgba(255, 255, 255, 0.03) 8px,
      transparent 8px,
      transparent 16px
    );
  display: grid;
  place-content: center;
  text-align: center;
  padding: 1.8rem;
  gap: 0.8rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.gallery-placeholder:has(img) {
  padding: 0;
  display: block;
  overflow: hidden;
  position: relative;
  border: none;
  background: none;
}

.gallery-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 1.4rem;
}

.gallery-placeholder:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 107, 0.8);
}

.gallery-placeholder i {
  font-size: 2.8rem;
  color: var(--accent-2);
}

.gallery-placeholder h3 {
  margin: 0;
  font-size: 1.6rem;
  color: #fff6e6;
}

.gallery-placeholder p {
  margin: 0;
  font-size: 1.3rem;
  color: var(--text-muted);
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loadBar {
  from {
    width: 0;
  }
}

@keyframes skillsCarouselLoop {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-6 * (var(--slide-size) + var(--slide-gap))));
  }
}

/* Education Page */
.education-page {
  --edu-bg-deep: #090b11;
  --edu-bg-soft: #171b24;
  --edu-card: rgba(255, 255, 255, 0.05);
  --edu-border: rgba(255, 255, 255, 0.14);
  --edu-text: #f4f6fb;
  --edu-muted: #b4bcc9;
  --edu-accent: #b74b4b;
  --edu-accent-2: #ff6b6b;
  --edu-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 107, 107, 0.15), transparent 34%),
    radial-gradient(circle at 88% 8%, rgba(183, 75, 75, 0.2), transparent 38%),
    linear-gradient(135deg, var(--edu-bg-deep), #0f141c 52%, var(--edu-bg-soft));
  color: var(--edu-text);
  font-family: 'Manrope', sans-serif;
  overflow-x: hidden;
}

.education-page header {
  margin-top: 0;
  padding: 1.2rem 5%;
  background: rgba(9, 11, 17, 0.56);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}



.education-page main {
  width: min(1160px, 100% - 3.2rem);
  margin-inline: auto;
  padding: 10rem 0 4.8rem;
  display: grid;
  gap: 1.8rem;
}

.edu-shell {
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--edu-border);
  border-radius: 1.6rem;
  box-shadow: var(--edu-shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: riseIn 0.75s ease-out;
}

.edu-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(26rem, 0.8fr);
  gap: 1.5rem;
  padding: 2.2rem;
  align-items: center;
}

.edu-intro {
  display: grid;
  gap: 1.1rem;
}

.edu-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(183, 75, 75, 0.14);
  border: 1px solid rgba(255, 107, 107, 0.45);
  color: var(--edu-accent-2);
  border-radius: 999px;
  padding: 0.65rem 1.25rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: fit-content;
}

.edu-hero h1 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  color: #fff4f4;
  font-size: 3.7rem;
  line-height: 1.08;
}

.edu-hero p {
  margin: 0;
  color: var(--edu-muted);
  font-size: 1.55rem;
  line-height: 1.68;
  max-width: 62ch;
}

.edu-stat-grid {
  display: grid;
  gap: 1rem;
}

.edu-stat {
  background: var(--edu-card);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 1rem;
  padding: 1.2rem 1.3rem;
}

.edu-stat strong {
  display: block;
  color: var(--edu-accent-2);
  font-size: 2rem;
  margin-bottom: 0.3rem;
}

.edu-stat span {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--edu-muted);
}

.edu-shell:not(.edu-hero) {
  padding: 2.1rem;
}

.edu-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}

.edu-head h2 {
  margin: 0;
  color: #fff0f0;
  font-size: 2.5rem;
}

.edu-head p {
  margin: 0;
  color: var(--edu-muted);
  font-size: 1.4rem;
  max-width: 56ch;
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.road-card {
  padding: 1.35rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.road-year {
  display: inline-block;
  margin-bottom: 0.55rem;
  color: var(--edu-accent-2);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.road-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.8rem;
  color: #fff6f6;
}

.road-card p {
  margin: 0;
  color: var(--edu-muted);
  font-size: 1.35rem;
  line-height: 1.6;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.badge-card {
  padding: 1.4rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.badge-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 107, 107, 0.5);
}

.badge-card i {
  font-size: 1.9rem;
  color: var(--edu-accent-2);
  margin-bottom: 0.8rem;
}

.badge-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.7rem;
  color: #fff0f0;
}

.badge-card p {
  margin: 0;
  color: var(--edu-muted);
  font-size: 1.3rem;
  line-height: 1.56;
}

.mosaic-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.mosaic-card {
  min-height: 17rem;
  border-radius: 1.1rem;
  border: 1px dashed rgba(255, 107, 107, 0.55);
  background:
    linear-gradient(142deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.03),
      rgba(255, 255, 255, 0.03) 8px,
      transparent 8px,
      transparent 16px
    );
  padding: 1.3rem;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.6rem;
}

.mosaic-card.large {
  grid-column: span 3;
  min-height: 22rem;
}

.mosaic-card.wide {
  grid-column: span 3;
}

.mosaic-card i {
  color: var(--edu-accent-2);
  font-size: 2.2rem;
}

.mosaic-card h3 {
  margin: 0;
  color: #fff4f4;
  font-size: 1.45rem;
}

.mosaic-card p {
  margin: 0;
  color: var(--edu-muted);
  font-size: 1.2rem;
}

/* Education Process Timeline */
.education-page main {
  width: min(980px, 100% - 2.6rem);
  padding: 9.8rem 0 4.8rem;
}

.process-section {
  position: relative;
  padding: 2.8rem 0 2.2rem;
}

.process-kicker {
  margin: 0;
  text-align: center;
  color: #f6bf42;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.15rem;
  font-weight: 700;
}

.process-title {
  margin: 0.6rem 0 0.8rem;
  text-align: center;
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: #fff2f2;
}

.process-subtitle {
  margin: 0 auto;
  text-align: center;
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.35rem;
  max-width: 60ch;
}

.process-line {
  position: relative;
  margin-top: 3.8rem;
  display: grid;
  gap: 3.2rem;
}

.process-line::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(255, 107, 107, 0.15), rgba(255, 107, 107, 0.55), rgba(255, 107, 107, 0.18));
}

.process-card {
  position: relative;
  width: min(40rem, calc(50% - 2.6rem));
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03));
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.34);
  padding: 1.35rem 1.35rem 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.process-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(255, 107, 107, 0.15);
  border-color: rgba(255, 107, 107, 0.4);
}

.process-card.left {
  margin-right: auto;
}

.process-card.right {
  margin-left: auto;
}

.process-card::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #0f1a2b;
  border: 2px solid rgba(255, 107, 107, 0.8);
  box-shadow: 0 0 0 5px rgba(255, 107, 107, 0.16);
  transform: translateY(-50%);
}

.process-card.left::before {
  right: -3.2rem;
}

.process-card.right::before {
  left: -3.2rem;
}

.process-icon {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ff8e8e;
  background: rgba(255, 107, 107, 0.12);
  border: 1px solid rgba(255, 107, 107, 0.35);
  margin-bottom: 0.9rem;
}

.process-icon img {
  width: 1.8rem;
  height: 1.8rem;
  object-fit: contain;
}

.process-year {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: 1.18rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.process-card h3 {
  margin: 0 0 0.55rem;
  font-size: 2rem;
  color: #fff4f4;
}

.process-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.35rem;
  line-height: 1.55;
}

.process-photo-frame {
  margin-top: 1.2rem;
  border-radius: 1rem;
  border: 1px dashed rgba(255, 107, 107, 0.4);
  overflow: hidden;
  text-align: center;
  padding: 0;
}

.process-photo-frame img {
  width: 100%;
  max-height: 40rem;
  object-fit: contain;
  border-radius: 1rem;
  display: block;
  transition: transform 0.35s ease;
}

.process-card:hover .process-photo-frame img {
  transform: scale(1.05);
}

.process-photo-frame i {
  font-size: 2.2rem;
  color: #ff8e8e;
}

.process-photo-frame span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.45;
}

.process-tag {
  width: fit-content;
  margin: 3rem auto 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.75);
  padding: 0.55rem 1.3rem;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grad-photo-panel {
  margin-top: 3.2rem;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 2rem;
  align-items: center;
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.28);
  padding: 2rem;
}

.grad-photo-copy {
  display: grid;
  gap: 0.9rem;
}

.grad-photo-kicker {
  margin: 0;
  color: #f6bf42;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1.05rem;
  font-weight: 700;
}

.grad-photo-copy h2 {
  margin: 0;
  font-size: 2.2rem;
  color: #fff3f3;
}

.grad-photo-copy p:last-child {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.4rem;
  line-height: 1.6;
}

.grad-photo-frame {
  min-height: 30rem;
  aspect-ratio: 2048 / 1152;
  border-radius: 1.2rem;
  border: 1px dashed rgba(255, 107, 107, 0.45);
  background:
    linear-gradient(142deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(
      -45deg,
      rgba(255, 255, 255, 0.03),
      rgba(255, 255, 255, 0.03) 10px,
      transparent 10px,
      transparent 20px
    );
  display: grid;
  place-content: center;
  text-align: center;
  gap: 0.8rem;
  padding: 2rem;
}

.grad-photo-frame i {
  font-size: 2.8rem;
  color: #ff8e8e;
}

.grad-photo-frame span {
  color: #fff4f4;
  font-size: 1.7rem;
  font-weight: 700;
}

.grad-photo-frame small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

/* ─── Contact Page ─────────────────────────────────────────── */
.contact-page {
  --con-bg-deep: #090c11;
  --con-bg-soft: #141b24;
  --con-card: rgba(255, 255, 255, 0.05);
  --con-border: rgba(255, 255, 255, 0.14);
  --con-text: #f4f6fb;
  --con-muted: #b4bcc9;
  --con-accent: #b74b4b;
  --con-accent-2: #ff6b6b;
  --con-shadow: 0 20px 44px rgba(0, 0, 0, 0.36);
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 15%, rgba(255, 107, 107, 0.13), transparent 32%),
    radial-gradient(circle at 85% 5%, rgba(183, 75, 75, 0.2), transparent 38%),
    linear-gradient(135deg, var(--con-bg-deep), #0f141c 52%, var(--con-bg-soft));
  color: var(--con-text);
  font-family: 'Manrope', sans-serif;
  overflow-x: hidden;
}

.contact-page header {
  margin-top: 0;
  padding: 1.2rem 5%;
  background: rgba(9, 11, 17, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.contact-page main {
  width: min(1100px, 100% - 3.2rem);
  margin-inline: auto;
  padding: 10rem 0 5rem;
  display: grid;
  gap: 2.4rem;
}

/* Hero panel: info + form side by side */
.contact-shell {
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--con-border);
  border-radius: 2rem;
  box-shadow: var(--con-shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: riseIn 0.75s ease-out;
}

.contact-hero-panel {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  padding: 4rem 5rem;
  align-items: start;
}

/* Left column */
.contact-hero-text {
  display: grid;
  gap: 1.4rem;
}

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  background: rgba(183, 75, 75, 0.14);
  border: 1px solid rgba(255, 107, 107, 0.45);
  color: var(--con-accent-2);
  border-radius: 999px;
  padding: 1rem 2.4rem 1rem 1.4rem;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: fit-content;
}

.contact-hero-text h1 {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 3.8rem;
  line-height: 1.1;
  color: #fff4f4;
}

.contact-hero-text > p {
  margin: 0;
  color: var(--con-muted);
  font-size: 1.55rem;
  line-height: 1.68;
}

.contact-info-list {
  display: grid;
  gap: 1rem;
  margin-top: 0.6rem;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.5rem;
  color: var(--con-muted);
}

.contact-info-item i {
  color: var(--con-accent-2);
  width: 1.8rem;
  text-align: center;
  flex-shrink: 0;
}

.contact-info-item img {
  width: 6rem;
  height: 6rem;
  object-fit: contain;
  flex-shrink: 0;
}

.contact-chip img {
  width: 7rem;
  height: 7rem;
  object-fit: contain;
}

/* Social icons row */
.contact-socials,
.contact-page .social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 0.4rem;
}

.contact-socials a,
.contact-page .social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  border: 0.2rem solid var(--con-accent);
  color: var(--con-accent);
  font-size: 1.8rem;
  transition: 0.25s ease;
}

.contact-socials a img,
.contact-page .social-icons a img {
  width: 3.6rem;
  height: 3.6rem;
  object-fit: contain;
}

.contact-socials a:hover,
.contact-page .social-icons a:hover {
  background: var(--con-accent);
  color: #fff;
  box-shadow: 0 0 18px rgba(183, 75, 75, 0.55);
  transform: translateY(-3px);
}

/* Form */
.contact-form {
  display: grid;
  gap: 1.4rem;
}

.form-group {
  display: grid;
  gap: 0.55rem;
}

.form-group label {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--con-text);
  letter-spacing: 0.03em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1rem;
  padding: 1.1rem 1.4rem;
  font-size: 1.5rem;
  font-family: 'Manrope', sans-serif;
  color: var(--con-text);
  transition: border-color 0.25s ease, background 0.25s ease;
  outline: none;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--con-accent-2);
  background: rgba(255, 255, 255, 0.1);
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.6rem 3.6rem;
  background: linear-gradient(120deg, var(--con-accent), var(--con-accent-2));
  border: none;
  border-radius: 999px;
  font-size: 2rem;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 18px rgba(183, 75, 75, 0.4);
  width: fit-content;
}

.contact-btn img {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: contain;
}

.contact-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(255, 107, 107, 0.55);
}

.form-success {
  display: none;
  font-size: 1.45rem;
  color: #4cda8b;
  font-weight: 600;
  margin: 0;
}

.form-success.visible {
  display: block;
}

/* ─── Footer ───────────────────────────────────────────────── */
.site-footer {
  width: 100%;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 5rem 0 0;
  margin-top: 4rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Poppins', sans-serif;
}

.footer-inner {
  width: min(1160px, calc(100% - 4rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.footer-logo img {
  height: 5rem;
  width: auto;
}

.footer-brand p {
  font-size: 1.4rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  max-width: 30rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-nav h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-nav a {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.25s ease;
}

.footer-nav a:hover {
  color: #ff6b6b;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  padding: 2rem 0;
}

.footer-bottom p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.03em;
}

/* Responsive */
@media (max-width: 860px) {
  .contact-hero-panel {
    grid-template-columns: 1fr;
    padding-left: 1.2rem;
    padding-right: 3.6rem;
  }

  .contact-form {
    padding-right: 2rem;
  }

  .contact-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .contact-page main {
    width: min(1100px, 100% - 1.6rem);
    padding-top: 12rem;
  }

  .contact-hero-text h1 {
    font-size: 2.6rem;
  }
}

/* Navigation for mobile
start */
@media(max-width:995px) {
  header,
  .skills-page header,
  .education-page header,
  .contact-page header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 2000 !important;
    box-sizing: border-box;
    gap: 1.2rem;
    flex-direction: column;
    align-items: center;
    padding: 1rem 4%;
  }
  nav {
    position: static;
    display: flex;
    transform: none;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 1.4rem;
    border: none;
    padding: 0;
    background-color: transparent;
  }
  nav a { 
    display: inline-block; 
    font-size: 1.5rem; 
    margin: 0;
 }
  nav a:hover, nav a.active { 
    padding-bottom: 0.3rem;
    border-radius: 0;
    border-bottom: 0.2rem solid #b74b4b;
     }
}

@media
(max-width: 995px) { 
    .skills-content { 
        flex-direction: column;
         gap: 2rem; 
        } 
    }


@media (max-width: 1200px) and (min-width: 996px) {
  header {
    gap: 2rem;
    padding: 1rem 3.5%;
  }

  nav {
    gap: 1.6rem;
  }

  nav a {
    font-size: 1.65rem;
  }
}


@media
(max-width: 995px) { 
    .skills-content { 
        flex-direction: column;
         gap: 2rem; 
        } 
    }

/* Responsive Adjustments */
@media(max-width:995px) {
  .home { 
    flex-direction: column; 
    gap: 2.5rem;
    padding-top: 17rem;
    margin: 2rem 1.5rem;
 }
  .home-img img { 
    width: 70vw;
     margin-top: 1rem; 
    }
  .about-content {
     flex-direction: column; 
     gap: 2rem; 
    }
  .about-img img {
     width: 70vw;
      max-width: none;
     }
  .skills-content { 
    flex-direction: column; 
    gap: 2rem; 
}
}

@media (max-width: 1280px) {
  .skills-lab .section-head {
    grid-template-columns: 1fr;
    gap: 1.2rem;
    padding-inline: 1rem;
    margin-bottom: 2.2rem;
  }

  .skills-lab .section-head h2 {
    font-size: 2.8rem;
    line-height: 1.08;
  }

  .skills-lab .section-head p {
    justify-self: start;
    max-width: 60ch;
    font-size: 1.55rem;
    padding-top: 0;
  }
}

@media (max-width: 500px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}


@media (max-width: 900px) {
  .works-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .works-page main {
    padding: 9rem 1.2rem 3rem;
  }

  .works-showcase {
    padding: 2rem;
  }

  .works-gallery {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    animation: none;
  }
}

@media (max-width: 1024px) {
  .skills-page main {
    padding-top: 10.5rem;
  }

  .demoreel-section {
    margin-top: 3rem;
  }

  .skills-hero {
    grid-template-columns: 1fr;
    gap: 2.4rem;
    padding: 2.8rem;
  }

  .hero-metrics {
    margin-top: 0;
  }

  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skills-lab .section-head {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-inline: 0.8rem;
    margin-bottom: 2rem;
  }

  .skills-lab .section-head h2 {
    font-size: 3.2rem;
  }

  .skills-lab .section-head p {
    max-width: 60ch;
    justify-self: start;
    font-size: 1.6rem;
    padding-top: 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .skills-page main {
    padding: 9.8rem 1.2rem 4.5rem;
    gap: 2.2rem;
  }

  .skills-hero,
  .skills-lab,
  .works,
  .gallery-section {
    padding: 2.1rem;
    border-radius: 1.5rem;
  }

  .skills-grid,
  .works-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .works .section-head,
  .works-grid {
    padding-inline: 0;
  }

  .skills-lab .section-head,
  .skills-grid {
    padding-inline: 0;
  }

  .carousel-wrap {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  
  .skills-page .lead {
    font-size: 1.6rem;
  }

  .skills-lab .section-head h2 {
    font-size: 2.2rem;
  }

  .gallery-placeholder {
    min-height: 22rem;
  }
}

@media (max-width: 1100px) {
  .education-page main {
    width: min(1160px, 100% - 2.2rem);
  }

  .edu-hero {
    grid-template-columns: 1fr;
  }

  .badge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mosaic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mosaic-card.large,
  .mosaic-card.wide {
    grid-column: auto;
    min-height: 17rem;
  }
}

@media (max-width: 995px) {
  .education-page header {
    padding: 1rem 4%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
  }

  .education-page main {
    padding-top: 12rem;
  }
}

@media (max-width: 760px) {
  .education-page main {
    width: min(1160px, 100% - 1.2rem);
    padding-top: 7.9rem;
  }

  .edu-chip {
    font-size: 1.15rem;
    padding: 0.6rem 1.1rem;
  }

  .edu-head {
    margin-bottom: 1.2rem;
  }

  .edu-head p {
    font-size: 1.3rem;
  }

  .roadmap,
  .badge-grid,
  .mosaic-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .education-page main {
    padding-top: 7.4rem;
    gap: 1rem;
  }

  .edu-hero h1 {
    font-size: 2.2rem;
  }
}


@media (max-width: 900px) {
  .education-page main {
    width: min(980px, 100% - 1.6rem);
  }

  .process-line {
    gap: 1.5rem;
    padding-left: 2.2rem;
  }

  .process-line::before {
    left: 0.7rem;
    transform: none;
  }

  .process-card,
  .process-card.left,
  .process-card.right {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .process-card.left::before,
  .process-card.right::before {
    left: -2.15rem;
    right: auto;
  }

  .grad-photo-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .process-title {
    font-size: 2.8rem;
  }

  .process-card h3 {
    font-size: 1.75rem;
  }

  .process-card p {
    font-size: 1.27rem;
  }

  .grad-photo-panel {
    padding: 1.6rem;
  }

  .grad-photo-frame {
    min-height: 22rem;
  }
}


@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-nav {
    align-items: center;
  }
}


/* ============================================================
   JS EFFECTS — added by main.js
   ============================================================ */

/* ── Scroll Progress Bar ── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #b74b4b, #ff6b6b, #ffb347);
  z-index: 9999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px rgba(183, 75, 75, 0.7);
}

/* ── Custom Cursor ── */
#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: #ff6b6b;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: opacity 0.2s;
}

#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(183, 75, 75, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

#cursor-ring.cursor-hover {
  width: 52px;
  height: 52px;
  border-color: #ff6b6b;
  background: rgba(183, 75, 75, 0.08);
}

@media (hover: none) {
  #cursor-dot, #cursor-ring { display: none; }
}

/* ── Navbar scroll states ── */
header.nav-scrolled {
  background: rgba(9, 11, 17, 0.88) !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
  transition: background 0.3s, transform 0.35s ease, box-shadow 0.3s;
}

header.nav-hidden {
  transform: translateY(-110%) !important;
}

header {
  transition: background 0.3s, transform 0.35s ease, box-shadow 0.3s;
}

/* ── Scroll-Reveal ── */
.sr-hidden {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.sr-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

/* ── Ripple Effect ── */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  transform: scale(0);
  animation: ripple-anim 0.55s linear;
  pointer-events: none;
}

@keyframes ripple-anim {
  to { transform: scale(3); opacity: 0; }
}

/* ── Glitch Effect ── */
.glitch-target {
  position: relative;
  cursor: default;
}

.glitch-active::before,
.glitch-active::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  background-image: linear-gradient(120deg, white 0%, #b74b4b 100%);
}

.glitch-active::before {
  left: 2px;
  text-shadow: none;
  animation: glitch-1 0.3s infinite linear;
  clip-path: polygon(0 20%, 100% 20%, 100% 40%, 0 40%);
}

.glitch-active::after {
  left: -2px;
  animation: glitch-2 0.3s infinite linear;
  clip-path: polygon(0 60%, 100% 60%, 100% 80%, 0 80%);
}

@keyframes glitch-1 {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(-3px); }
  50%  { transform: translateX(3px); }
  75%  { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}

@keyframes glitch-2 {
  0%   { transform: translateX(0); }
  25%  { transform: translateX(3px); }
  50%  { transform: translateX(-3px); }
  75%  { transform: translateX(2px); }
  100% { transform: translateX(0); }
}

/* ── Download CV Button ── */
.btn-group {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn-cv {
  background: linear-gradient(120deg, #b74b4b 0%, #d66a6a 100%) !important;
  border: 2px solid transparent !important;
  color: #000 !important;
}

.btn-cv:hover {
  background: linear-gradient(120deg, #b74b4b 0%, #d66a6a 100%) !important;
  box-shadow: 0 8px 25px rgba(183, 75, 75, 0.6) !important;
}