/* Works in Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 10px;              /* scrollbar width */
}

::-webkit-scrollbar-track {
  background: #111;         /* track (background) */
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color); /* draggable part */
  border-radius: 10px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff8620;      /* hover effect */
}

/* Works in Firefox */
html {
  scrollbar-width: thin;              /* auto | thin | none */
  scrollbar-color: var(--primary-color) #111;  /* thumb color | track color */
  scroll-behavior: smooth;
}

body {
  background-color: black;
  color: white;
 font-family: "Roboto", sans-serif !important;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
  max-width: 100%;
}
:root {
  --primary-color: #00ffef;
  --secondary-color: #ff6347;
  --bg: #e9e8e6;
  --ink: #0f172a; /* slate-900 */
  --muted: #475569; /* slate-600 */
  --pill: #e5e7eb; /* gray-200 */
  --ring: rgba(15, 23, 42, 0.06);
  --card-radius: 26px;
}
/* #region nav */
nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.8rem;
    position: relative; /* Add this */
  z-index: 1000;
}

nav .logo h1 {
  font-size: 2rem;
}
nav .logo h1 span {
  color: var(--primary-color);
  font-weight: bold;
  text-shadow: 0 0 10px #00ffef, 0 0 20px #00ffef;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
}

nav a {
  text-decoration: none;
  color: white;
  transition: all 0.3s;
}

nav a:hover {
  text-decoration: underline;
}
a.active {
  text-decoration: underline;
  color: var(--primary-color);
  font-weight: bold;
}
.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--primary-color);
}
@media (max-width: 768px) {
  nav {
   justify-content: space-between;
  }
   .hamburger {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.9);
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    text-align: center;
    display: none; /* hidden by default */
    padding: 1rem 0;
  }
    nav ul.show {
    display: flex; /* visible when toggled */
  }
}
/* #endregion */

/* #region hero */

.hero {
  display: flex;
  justify-content: space-around !important;
  align-items: flex-start;
  height: 90vh;
  max-width: 100%;
  text-align: center;
  flex-direction: row;
  gap: 1rem;
  padding-top: 5%;
  margin-top: 5%;
}
.hero h1 {
  font-size: 2.5rem;
}
.hero h2 {
  font-size: 2rem;
  margin: 0.5rem 0;
}
.hero .highlight {
  color: var(--primary-color);
}
.hero h2 {
  display: flex;
}
.hero .sliding {
  display: inline-block;
  width: 0; /* start with no width */
  white-space: nowrap;
  overflow: hidden;
  padding-left: 5px;
  color: var(--primary-color);
  border-right: 2px solid white; /* blinking cursor */
  animation: typing 3s steps(25, end) infinite alternate,
    blink 0.6s step-end infinite alternate;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 25ch;
  } /* match number of characters */
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 10%;
  width: 50%;
}
.hero-content ion-icon {
  font-size: 1.5rem;
  margin: 0.6rem 0.5rem;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  padding: 0.5rem;
  margin-bottom: 3%;
}
.hero-content ion-icon:hover {
  background-color: var(--primary-color);
  color: black;
  cursor: pointer;
}
.hero-content .btn {
  background-color: var(--primary-color);
  color: black;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 0.5rem;
}
.hero-content a {
  text-decoration: none;
}
.hero-content p {
  width: 80%;
  text-align: justify;
  margin: 3% 0;
}
.hero-content .btn:hover {
  background-color: transparent;
  color: white;
  transform: scale(1.1);
  border: 1px solid var(--primary-color);
}
.hero-image {
  height: 100%;
  align-items: center;
  width: 50%;
}
.hero-image img {
  width: 300px;
  height: 300px;
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 20px 5px #00ffef;
  border-radius: 50%;
  object-fit: cover;
}
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    height: auto;
    max-width: 100%;
  }
  .hero h2{
    justify-content: center;
    font-size: 1.5rem;
  }
  .hero-content {
    align-items: center;
    padding-left: 0;
    width: 100%;
  }
  .hero-content p {
    width: 50%;
  }
  .hero-image {
    width: 100%;
    margin-top: 2rem;
  }
  .hero-image img {
    width: 200px;
    height: 200px;
  }
  
}
/* #endregion */

/* #region timeline */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 50px auto;
  padding: 20px 0;
}
.timeline .title {
  text-align: center;
  margin-top: -10%;
  font-size: 3rem;
  color: white;
  font-weight: bolder;
}
/* vertical line */
.timeline::after {
  content: "";
  position: absolute;
  width: 4px;
  background: #00f0ff;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  box-shadow: 0 0 20px #00f0ff;
}

.container {
  padding: 20px;
  position: relative;
  max-width: 100%;
  background-color: black;
}

.left {
  left: -7%;
}

.right {
  left: 53%;
}

/* glowing content box */
.content {
  display: flex;
  flex-direction: column;
  width: 350px; /* adjust to your layout */
  min-height: 120px;
  padding: 20px;
  border: 2px solid #00f0ff;
  border-radius: 10%;
  box-shadow: 0 0 20px #00f0ff;
  position: relative;
  transition: all 0.3s;
}
.content:hover {
  transform: scale(1.02);
}
.content .heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
/* circles on the line */
.container::before {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  right: 42.2%;
  background: #00f0ff;
  border-radius: 50%;
  top: 30px;
  z-index: 1;
  box-shadow: 0 0 10px #00f0ff;
}

.right::before {
  left: -3.8%;
}

h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #00f0ff;
}
h3 ion-icon {
  margin-right: 0.5rem;
}

p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}
.content li {
  margin: 0 0 20px 0px;
  color: #747474;
}
@media (max-width: 768px) {
  .timeline {
    padding: 10px 0;
   max-width: 80%;
    margin-top: 20%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  .timeline::after {
   display: none;
  }
  .container {
    max-width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  .container::before {
    display: none;
  }
  .left,
  .right {
    left: 0%;
  }
  
}
/* #endregion */

/* #region skills */
.skills {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.skills-container {
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  align-items: flex-start;
  padding: 2rem;
  gap: 2rem;
  flex-wrap: wrap;
}

.skill {
  background: #111;
  border: 2px solid #00f0ff;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 0 10px #00f0ff;
  transition: transform 0.3s;
  flex: 1 1 400px;
  height: 200px;
  margin: 1rem;
  text-align: center;
  transition: all 0.3s;
}
.skill .icon {
  font-size: 2.5rem;
  color: #00f0ff;
  margin-bottom: 0.5rem;
}
.skill:hover {
  transform: scale(1.05);
  background-color: var(--primary-color);
  color: black;
}
.skill:hover .icon,
.skill:hover h3 {
  color: black;
}
@media (max-width: 768px) {
  .skills-container {
    flex-direction: column;
    align-items: center;
  }
  .skill {
    width: 80%;
  
  }
  
}
/* #endregion */

/* #region resume */
.resume {
  display: flex;
  flex-direction: column;
  padding: 2rem;

  margin: 5% 0 10% 0;
  text-align: center;
}
.resume h2 {
  color: white;
  margin-bottom: 8%;
  font-size: 2rem;
}

.cv-section a {
  color: #00f0ff;
  text-decoration: none;
  transition: color 0.3s;
  border: 1px solid var(--primary-color);
  border-radius: 12px;
  padding: 12px;
  
   transition: all 0.3s;
}
.cv-section a:hover {
  color: black;
  background-color: var(--primary-color);
transform: scale(1.1);
}
.cv-section .cv-download{
  background: var(--primary-color);
  color: black;
  transition: all 0.3s;
}
.cv-section .cv-download:hover {
  background: transparent;
  color: var(--primary-color);
  
}
/* #endregion */

/* #region projects */

.shell {
  max-width: 100%;
  margin: 32px auto;
  background: var(--bg);
  border-radius: 20px;
  padding: 20px 16px 28px;
  /* subtle paper texture with layered noise */
  background-image: radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    radial-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px);
  background-size: 12px 12px, 16px 16px;
  background-position: 0 0, 8px 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.06);

}


.nav {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 12px;
}
.nav-left,
.nav-right {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-left a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
}
.brand {
  flex: 0 0 auto;
  text-align: center;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.brand a {
  text-decoration: none;
  color: var(--ink);
  font-size: 20px;
}
.nav-right {
  justify-content: flex-end;
}
.btn {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: #fff;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 500;
  box-shadow: 0 1px 0 var(--ring) inset;
}
.btn:hover {
  box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.04);
}

/* Tablet (≤ 1024px) */
@media (max-width: 1024px) {
  .nav {
    gap: 10px;
    padding: 10px;
  }
  .nav-left a {
    font-size: 14px;
  }
  .brand a {
    font-size: 18px;
  }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
  .projects {
    margin-top: 20%;
    max-width: 100%;
  }
  .shell {
    margin: 20px;
    padding: 16px 12px 24px;
  }
  .nav {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .nav-left,
  .nav-right {
    justify-content: center;
    gap: 12px;
  }
  .brand a {
    font-size: 17px;
  }
}

/* Small Mobile (≤ 480px) */
@media (max-width: 480px) {
  .nav-left,
  .nav-right {
    flex-direction: column;
    gap: 8px;
  }
  .btn {
    width: 100%;
    padding: 10px;
  }
  .brand a {
    font-size: 16px;
  }
}
/* #endregion */
/* #region Title */
.hero {
  text-align: center;
  padding: 12px 10px 4px;
}
.hero h1 {

  font-size: clamp(36px, 6vw, 56px);
  margin: 8px 0 6px;
  font-weight: 600;
}
.hero p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15.5px;
}

/* Controls (arrows) */
.controls {
  position: relative;
  height: 0;
}
.arrow {
  position: absolute;
  top: -35px;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 999px;
  border: 2px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.08);
}
.arrow:hover {
  box-shadow: 0 0 0 6px rgba(15, 23, 42, 0.05), 0 6px 22px rgba(0, 0, 0, 0.1);
  
  background-color: var(--primary-color);
  color: black;
}
.arrow span {
  font-size: 20px;
}
.arrow.prev {
  left: 8px;
}
.arrow.next {
  right: 8px;
}

/* Cards scroller */
.carousel {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 16px 10px 8px;
  margin-top: 12px;
}
.carousel::-webkit-scrollbar {
  height: 10px;
}
.carousel::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.2);
  border-radius: 6px;
}
.carousel::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.06);
}

.card {
  position: relative;
  flex: 0 0 auto;
  width: clamp(240px, 28vw, 320px);
  height: clamp(340px, 45vw, 460px);
  border-radius: var(--card-radius);
  overflow: hidden;
  background: #d9d9d9;
  scroll-snap-align: start;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  isolation: isolate;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 640px) {
  .carousel {
    scroll-snap-type: x proximity;
    padding: 16px 0 8px;
    gap: 14px;
  }
  .card {
    width: clamp(240px, 70vw, 320px);
    height: clamp(340px, 90vw, 460px);
  }

  
}
/* Featured overlay card */
.card.featured::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(4, 18, 32, 0.85) 0%,
    rgba(4, 18, 32, 0.55) 42%,
    rgba(4, 18, 32, 0.25) 70%,
    rgba(4, 18, 32, 0) 100%
  );
}
.card .overlay {
  position: absolute;
  inset: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
  color: #eef5f8;
}
.overlay h3 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.overlay p {
  margin: 0 0 14px;
  color: #d9e6ea;
  font-size: 14.5px;
  line-height: 1.55;
}
.pills {
  display: flex;
  gap: 10px;
  
  flex-wrap: wrap;
}
.pill {
  background: rgba(255, 255, 255, 0.9);
  color: #0b2030;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.go {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 34px;
  height: 34px;
  color: black;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

/* Small utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .nav-left {
    display: none;
  }
  .brand a {
    font-size: 18px;
  }
  .arrow {
    display: none;
  }
}
/* #endregion */
/* #region contact */
 .contact{
  display: flex;
  flex-direction: column;
  text-align: center;
  justify-content: center;
  width: 100%;
  margin-top: 5%;
}
.contact h2{
  font-size: 3rem;
  margin-bottom: 5%;
}
.section-title .back {
  position: absolute;
margin-top: -4%;
  left: 50%;
  transform: translate(-50%, -50%); /* perfectly center */
  font-size: 5rem; /* much bigger */
  font-weight: 900;
  color: rgba(56, 56, 56, 0.356); /* black but transparent */
  z-index: 1; /* behind front text */
  pointer-events: none; /* ignore clicks */
}
 .contact .contentt{
  display: flex;
  flex-direction: row;
  text-align: center;
  justify-content: space-around;
 }
 .contact .cotentt .info{
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
 }
 .contact .contentt .info ion-icon{
  font-size: 3.2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  background-color: #111;
  padding: 30px;
  border-radius: 50px;
 }
 .contact .contentt .info:hover{
  transform: scale(1.1);
 }
 .contact .contentt .info h4{
  font-size: 1.3rem;
  font-weight: bold;
 }
 .contact .contentt .info a{
  text-decoration: none;
  color: white;
 }
 .contact .contentt .info a:hover{
  text-decoration: underline;
 }
 @media (max-width: 768px) {
  .contact .contentt{
    flex-direction: column;
    gap: 3rem;
   }
  .contact .contentt .info{
    align-items: center;
   }
  
 }
/* #endregion */
/* #region footer */
.footer {
  background: var(--dark);
  color: #fff;
  padding: 40px 20px;
  text-align: center;
  margin-top: 10%;
}

.footer .container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column; /* stack vertically */
  align-items: center;
  gap: 20px; /* space between sections */
}

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

.footer .social-links a {
  text-decoration: none;
}

.footer .social-links ion-icon {
  font-size: 1.8rem;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 12px;
  border-radius: 50%;
  transition: 0.3s ease;
}

.footer .social-links ion-icon:hover {
  background: var(--primary-color);
  color: #000;
}

.footer .quick-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer .quick-links h2 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.footer .quick-links a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s ease;
}

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

.footer p {
  font-size: 0.9rem;
  opacity: 0.7;
  margin: 4px 0;
}
@media (max-width: 768px) {
  .footer .container {
    padding: 0 10px;
  }
  .footer .social-links {
    gap: 12px;
  }
  .footer .social-links ion-icon {
    font-size: 1.5rem;
    padding: 10px;
  }
  .footer .quick-links {
    gap: 6px;
  }
  .footer .quick-links h2 {
    font-size: 1rem;
  }
}
/* #endregion */
