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

body {
    background:
        radial-gradient(circle at 50% 15%, rgba(124, 58, 237,.55), transparent 60%),
        radial-gradient(circle at 50% 85%, rgba(49, 17, 84,.85), transparent 60%),
        linear-gradient(180deg, #0a0912, #0c0a15);
    color: #eaeaea;
    margin: 0;
    overflow-x: hidden;
}

/* MAIN */

#intro {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}


.main {
    width: 92%;
    max-width: 1200px;
}

.card {
    background: rgba(255,255,255,0.05);
    border-radius: 26px;
    padding: 42px;
    backdrop-filter: blur(28px);
    box-shadow: 0 0 90px rgba(124, 58, 237,.28);
}

/* TOP TAGS */
.top-tags {
    display: flex;
    gap: 14px;
    margin-bottom: 34px;
}

.top-tags span {
    font-size: 11px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.15);
    letter-spacing: 1px;
    color: #cfcfcf;
}

.dot {
    color: #8b5cf6;
}

/* CONTENT */
.content {
    display: flex;
    gap: 60px;
}

/* LEFT */
.left h1 {
    font-size: 50px;
    font-weight: 600;
    line-height: 1.15;
    color: #f3f3f3;
}

.desc {
    margin: 18px 0 28px;
    font-size: 15px;
    color: #b8b8b8;
    max-width: 460px;
}

.live-line {
    margin-bottom: 22px;
}

.live-line span {
    font-size: 12px;
    letter-spacing: 2px;
    color: #8b5cf6;
}

/* BUTTONS */
.buttons {
    display: flex;
    gap: 14px;
}

.btn {
    font-size: 12px;
    padding: 8px 16px;
    border-radius: 22px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: .3s;
}

.btn i {
    color: #8b5cf6;
}

.btn:hover {
    background: rgba(139, 92, 246,0.15);
    box-shadow: 0 0 16px rgba(139, 92, 246,.45);
}

/* SITE LINK (LEFT) */
.site-link {
    margin-top: 22px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.15);
    color: #8b5cf6;
}

/* RIGHT CARD */
.right {
    flex: 1;
    background: linear-gradient(180deg, rgba(30, 20, 55,.9), rgba(13, 10, 25,.95));
    border-radius: 22px;
    padding: 28px;
    box-shadow: inset 0 0 40px rgba(124, 58, 237,.08);
    position: relative;
}

/* RIGHT HEADER */
.right-head {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    letter-spacing: 2px;
    color: #bdbdbd;
    margin-bottom: 20px;
}

.online {
    color: #7cffb2;
}

/* ORBIT */
.orbit-box {
    width: 240px;
    height: 240px;
    margin: auto;
    position: relative;
}

.orbit {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246,.35);
    animation: spin 16s linear infinite;
}

.orbit i {
    position: absolute;
    background: #0d0b16;
    color: #8b5cf6;
    padding: 7px;
    border-radius: 50%;
    box-shadow: 0 0 14px rgba(139, 92, 246,.55);
    font-size: 13px;
}

.i1 { top: -8px; left: 50%; transform: translateX(-50%); }
.i2 { right: -8px; top: 50%; transform: translateY(-50%); }
.i3 { bottom: -8px; left: 50%; transform: translateX(-50%); }
.i4 { left: -8px; top: 50%; transform: translateY(-50%); }

/* CENTER */
.core {
    position: absolute;
    inset: 52px;
    border-radius: 50%;
    background: radial-gradient(circle, #5b21b6, #241344);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(124, 58, 237,.6);
}

.core span {
    font-family: 'Orbitron', sans-serif;
    font-size: 12px;
    letter-spacing: 3px;
    color: #f0f0f0;
}

/* STATS */
.stats {
    display: flex;
    gap: 18px;
    margin-top: 22px;
}

.stats div {
    flex: 1;
    padding: 14px;
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    text-align: left;
}

.stats h4 {
    font-size: 22px;
    font-weight: 500;
    color: #f2f2f2;
}

.stats p {
    font-size: 12px;
    color: #bdbdbd;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.fade-in {
    opacity: 0;
    transform: translateY(25px);
    animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.smooth-out {
    animation: smoothOut 1.2s ease forwards;
}

@keyframes smoothOut {
    from {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
    to {
        opacity: 0;
        transform: scale(1.1);
        filter: blur(25px);
    }
}

/* ===== ANIMATION TYPES ===== */

/* من فوق */
.from-top {
    opacity: 0;
    transform: translateY(-40px);
    animation: fromTop 0.8s ease forwards;
}
@keyframes fromTop {
    to { opacity: 1; transform: translateY(0); }
}

/* من اليسار */
.from-left {
    opacity: 0;
    transform: translateX(-40px);
    animation: fromLeft 0.8s ease forwards;
}
@keyframes fromLeft {
    to { opacity: 1; transform: translateX(0); }
}

/* من اليمين */
.from-right {
    opacity: 0;
    transform: translateX(40px);
    animation: fromRight 0.8s ease forwards;
}
@keyframes fromRight {
    to { opacity: 1; transform: translateX(0); }
}

/* من تحت */
.from-bottom {
    opacity: 0;
    transform: translateY(40px);
    animation: fromBottom 0.8s ease forwards;
}
@keyframes fromBottom {
    to { opacity: 1; transform: translateY(0); }
}

/* زووم */
.zoom-in {
    opacity: 0;
    transform: scale(0.8);
    animation: zoomIn 0.8s ease forwards;
}
@keyframes zoomIn {
    to { opacity: 1; transform: scale(1); }
}

/* ===== TYPEWRITER ===== */
.typewriter {
    border-right: 2px solid #8b5cf6;
    white-space: nowrap;
    overflow: hidden;
}
.from-top {
    opacity: 0;
    transform: translateY(-40px);
    animation: fromTop 0.8s ease forwards;
}
.from-left {
    opacity: 0;
    transform: translateX(-40px);
    animation: fromLeft 0.8s ease forwards;
}
.from-right {
    opacity: 0;
    transform: translateX(40px);
    animation: fromRight 0.8s ease forwards;
}
.from-bottom {
    opacity: 0;
    transform: translateY(40px);
    animation: fromBottom 0.8s ease forwards;
}
.zoom-in {
    opacity: 0;
    transform: scale(0.85);
    animation: zoomIn 0.8s ease forwards;
}

@keyframes fromTop { to { opacity:1; transform:translateY(0);} }
@keyframes fromLeft { to { opacity:1; transform:translateX(0);} }
@keyframes fromRight { to { opacity:1; transform:translateX(0);} }
@keyframes fromBottom { to { opacity:1; transform:translateY(0);} }
@keyframes zoomIn { to { opacity:1; transform:scale(1);} }


/* ===== END TYPEWRITER ===== */


header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

/* Container */
.header-list {
  margin: 15px 20px;
}

/* Menu Box */
.div-list {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

/* UL */
.ul-list {
  list-style: none;
  display: flex;
  gap: 3rem;
  padding: 12px 28px;
  border-radius: 30px;

  /* DARK RED GLASS */
  background: rgba(91, 33, 182, 0.45);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(139, 92, 246, 0.25);

  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.25);
}

/* LI */
.ul-list li {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 25px;
  padding: 8px 14px;
  transition: 0.3s ease;
}

/* LINKS */
.ul-list li a {
  font-family: "Montserrat", sans-serif;
  text-decoration: none;
  color: #ddd6fe;
  font-size: 14px;
  transition: 0.3s;
}

/* ICONS */
.ul-list li i {
  color: #8b5cf6;
}

/* HOVER */
.ul-list li:hover {
  background: rgba(139, 92, 246, 0.25);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.4);
}

/* ACTIVE */
.ul-list li.active {
  background: linear-gradient(135deg, #8b5cf6, #4c1d95);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.6);
}

.ul-list li.active a,
.ul-list li.active i {
  color: #fff;
}

.home {
  margin: 160px 200px;
  color: #f2f2f2;
}

.home-container {
  display: flex;
  gap: 6rem;
}

/* Status Badge */
.home-p {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  display: inline-block;
  border-radius: 25px;
  padding: 6px 14px;
  margin-bottom: 30px;
  font-size: 14px;
}

.home-s {
  font-weight: bold;
  color: #8b5cf6;
}

/* TITLES */
.info-home h1 {
  font-size: 70px;
  font-family: "Raleway", sans-serif;
  margin-bottom: 20px;
  color: #ffffff;
}

.info-home h3 {
  font-size: 40px;
  font-family: "Playfair Display", serif;
  margin-bottom: 20px;
  color: #a78bfa;
}

/* TEXT */
.info-p {
  color: #d0d0d0;
  padding-bottom: 20px;
}

.info-p p {
  padding-bottom: 5px;
}

.info-p2 {
  display: flex;
  gap: 1rem;
  color: #cfcfcf;
  font-size: 14px;
  padding-bottom: 20px;
}

/* BUTTONS */
.btnn {
  display: flex;
  gap: 1rem;
  padding-bottom: 30px;
}

.btn-home1 {
  background: linear-gradient(135deg, #8b5cf6, #4c1d95);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

.btn-home1:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
}

.btn-home2 {
  background: transparent;
  border: 2px solid #8b5cf6;
  border-radius: 12px;
  padding: 12px 18px;
  color: #8b5cf6;
  cursor: pointer;
  transition: 0.3s;
}

.btn-home2:hover {
  background: #8b5cf6;
  color: #fff;
}

/* HR */
.hhr {
  padding-bottom: 30px;
}

hr {
  width: 90%;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

/* SOCIAL */
.follow {
  display: flex;
  gap: 1rem;
}

.follow ul {
  display: flex;
  gap: 2rem;
  font-size: 20px;
}

.follow ul li {
  list-style: none;
}

.follow ul a {
  text-decoration: none;
  color: #a78bfa;
  transition: 0.3s;
}

.follow ul a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px #8b5cf6;
}

/* IMAGE */
.home img {
  width: 400px;
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.4);
}

/* ===== PROJECT SECTION ===== */
.project {
    margin: 160px 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #f2f2f2;
}

.info-pro{
    margin-bottom: 20px;
}

/* TITLE */
.project h1 {
    font-family: "Orbitron", sans-serif;
    padding-bottom: 10px;
    color: #8b5cf6;
    letter-spacing: 1px;
}

/* SUB TEXT */
.project p {
    padding-bottom: 20px;
    font-size: 14px;
    color: #c9c9c9;
}

/* LINE */
.project hr {
    width: 80px;
    height: 3px;
    border: none;
    background: linear-gradient(90deg, #8b5cf6, #4c1d95);
    margin-bottom: 20px;
    border-radius: 10px;
}

/* INFO TEXT */
.info-pro {
    padding-top: 20px;
    text-align: center;
}

.info-pro p {
    padding-bottom: 10px;
    color: #bdbdbd;
}

/* PROJECT GRID */
.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1100px;
    margin: auto;
}

/* PROJECT CARD */
.project-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(139, 92, 246, 0.25);
    padding: 22px;
    border-radius: 18px;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.15);
    transition: 0.35s ease;
}

/* HOVER EFFECT */
.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 0 35px rgba(139, 92, 246, 0.45);
}

/* IMAGE */
.project-card img,
.project-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 15px;
    border: 1px solid rgba(139, 92, 246, 0.25);
    transition: transform .5s ease, filter .5s ease;
}

.project-card:hover img,
.project-card:hover .project-thumb {
    transform: scale(1.04);
    filter: brightness(1.08);
}

.project-card {
    overflow: hidden;
}

/* Placeholder thumb for projects without a screenshot yet */
.project-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(139, 92, 246,.35), rgba(20, 12, 35,.9));
    font-size: 46px;
    color: rgba(255,255,255,.85);
}

/* TITLE */
.project-card h3 {
    color: #a78bfa;
    margin-bottom: 8px;
}

/* TEXT */
.project-card p {
    color: #d1d1d1;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* TAGS */
.project-card .skills a {
    display: inline-block;
    margin: 4px 6px 0 0;
    padding: 6px 12px;
    font-size: 11px;
    border-radius: 20px;
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.4);
    background: rgba(139, 92, 246, 0.08);
}

/* BUTTONS */
.project-card .btns {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.project-card .btn {
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #4c1d95);
    text-decoration: none;
    transition: 0.3s ease;
}

.project-card .btn:hover {
    box-shadow: 0 0 18px rgba(139, 92, 246, 0.6);
    transform: translateY(-2px);
}

.about {
    margin: 160px 200px;
    font-family: "Poppins", sans-serif;
    color: #f2f2f2;
}

/* HEADER INFO */
.about-info {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 4rem;
    align-items: center;
}

.img-about img {
    width: 55px;
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}

.info-text {
    position: relative;
    bottom: -6px;
}

.info-text p {
    color: #cfcfcf;
    font-size: 14px;
}

.info-text h5 {
    margin-bottom: 4px;
    color: #a78bfa;
}

/* TITLE */
.about h3 {
    margin-bottom: 1rem;
    font-size: 28px;
    color: #8b5cf6;
    font-family: "Orbitron", sans-serif;
}

/* TEXT */
.about-text p {
    margin-bottom: 1rem;
    font-family: "Montserrat", sans-serif;
    color: #d2d2d2;
    line-height: 1.7;
}

.about-text span {
    color: #8b5cf6;
    font-weight: 600;
}

/* IMAGE SIDE */
.about-info2 {
    display: flex;
    gap: 3rem;
    align-items: center;
}

/* PHOTO CARD */
.photo-container {
    position: relative;
    display: inline-block;
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 92, 246, 0.25);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.25);
}

/* PHOTO */
.photo-container img {
    width: 260px;
    border-radius: 12px;
    display: block;
}

/* TAPE EFFECT */
.tape {
    position: absolute;
    width: 90px;
    height: 30px;
    background: linear-gradient(145deg, #1a1030, #0d0b16);
    box-shadow:
        inset 0 1px 2px rgba(255,255,255,0.15),
        inset 0 -2px 4px rgba(0,0,0,0.8),
        0 4px 12px rgba(139, 92, 246, 0.4);
    border-radius: 4px;
    opacity: 0.9;
    z-index: 2;
}

.tape::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0.05),
        rgba(255,255,255,0.2),
        rgba(255,255,255,0.05)
    );
}

/* TAPE POSITIONS */
.tape1 {
    top: -18px;
    left: 30px;
    transform: rotate(-10deg);
}

.tape2 {
    bottom: -18px;
    right: 30px;
    transform: rotate(10deg);
}


/* GLOW BACKGROUND */
.services::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(120px);
    animation: float 8s ease-in-out infinite;
    z-index: -1;
}

/* CONTAINER */
.services-content {
    max-width: 1300px;
    margin: 0 auto;
}

/* GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

/* CARD */
.service-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 22px;
    padding: 2.5rem;
    text-align: center;
    backdrop-filter: blur(14px);
    transition: 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.15);
}

/* SHINE EFFECT */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 120%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(139, 92, 246, 0.25),
        transparent
    );
    transition: 0.6s;
}

.service-card:hover::before {
    left: 120%;
}

/* HOVER */
.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
}

/* ICON */
.service-icon {
    width: 85px;
    height: 85px;
    background: linear-gradient(135deg, #8b5cf6, #4c1d95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.2rem;
    color: #fff;
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
}

.section-title{
    margin-bottom: 20px;
}

/* TITLE */
.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #a78bfa;
}

/* DESCRIPTION */
.service-card p {
    color: #d0d0d0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* TAGS */
.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

.service-features span {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    padding: 0.35rem 0.9rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(139, 92, 246, 0.35);
}
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.services {
    margin: 160px 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #f2f2f2;
}

.info-pro{
    margin-bottom: 20px;
}

/* TITLE */
.services h1 {
    font-family: "Orbitron", sans-serif;
    padding-bottom: 10px;
    color: #8b5cf6;
    letter-spacing: 1px;
}

/* SUB TEXT */
.services p {
    padding-bottom: 20px;
    font-size: 14px;
    color: #c9c9c9;
}

.services hr {
    width: 80px;
    height: 3px;
    border: none;
    background: linear-gradient(90deg, #8b5cf6, #4c1d95);
    margin-bottom: 20px;
    border-radius: 10px;
}

/* ================= CONTACT SECTION ================= */

#contact {
  width: 100%;
  padding: 120px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* CONTAINER */
.contact-content {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin: auto;
}

/* LEFT SIDE */
.contact-info p {
  color: #cfcfcf;
  margin-bottom: 30px;
  line-height: 1.8;
}

/* DETAILS */
.contact-details {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  color: #d0d0d0;
}

.contact-item svg {
  color: #8b5cf6;
  filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.6));
}

/* SOCIAL */
.social-links {
  display: flex;
  gap: 20px;
}

.social-link {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a78bfa;
  transition: 0.3s ease;
}

.social-link:hover {
  transform: scale(1.15);
  color: #fff;
  box-shadow: 0 0 25px rgba(139, 92, 246, 0.6);
}

/* FORM */
.contact-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 18px;
  padding: 35px;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.25);
}

/* INPUTS */
.form-group {
  margin-bottom: 22px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 10px;
  color: #f2f2f2;
  transition: 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #8b5cf6;
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

/* ANIMATION PRESETS */
.slide-in-left {
  transform: translateX(-40px);
  opacity: 0;
  transition: all 1.2s ease;
}

.slide-in-right {
  transform: translateX(40px);
  opacity: 0;
  transition: all 1.2s ease;
}

.slide-in-up {
  transform: translateY(40px);
  opacity: 0;
  transition: all 1.2s ease;
}

.glow-genz-button{
    color: #fff;
}

@media (max-width: 900px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 50px;
    text-align: center;
  }

  .contact-item {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }
}
a{
    text-decoration: none;
    color: inherit;
}


/* ================= RESPONSIVE ================= */

/* ====== LARGE TABLET (<=1200px) ====== */
@media (max-width: 1200px) {
  .home,
  .about,
  .project,
  .services {
    margin: 120px 80px;
  }

  .content {
    gap: 40px;
  }

  .left h1 {
    font-size: 42px;
  }
}

/* ====== TABLET (<=992px) ====== */
@media (max-width: 992px) {
  .content {
    flex-direction: column;
  }

  .right {
    margin-top: 40px;
  }

  .home-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .home img {
    width: 300px;
  }

  .info-home h1 {
    font-size: 54px;
  }

  .info-home h3 {
    font-size: 30px;
  }

  .about-info2 {
    flex-direction: column;
    text-align: center;
  }

  .photo-container img {
    width: 220px;
  }

  .projects-container {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
}

/* ====== MOBILE (<=768px) ====== */
@media (max-width: 768px) {
  .card {
    padding: 26px;
  }

  .top-tags {
    flex-wrap: wrap;
    justify-content: center;
  }

  .left h1 {
    font-size: 34px;
  }

  .desc {
    font-size: 14px;
  }

  .buttons {
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-link {
    margin: 18px auto 0;
  }

  .orbit-box {
    width: 200px;
    height: 200px;
  }

  .core {
    inset: 44px;
  }

  .stats {
    flex-direction: column;
  }

  .home,
  .about,
  .project,
  .services {
    margin: 100px 30px;
  }

  .ul-list {
    gap: 1.5rem;
    padding: 10px 18px;
  }

  .ul-list li a {
    font-size: 13px;
  }
}

/* ====== SMALL MOBILE (<=480px) ====== */
@media (max-width: 480px) {
  .left h1 {
    font-size: 28px;
  }

  .info-home h1 {
    font-size: 38px;
  }

  .info-home h3 {
    font-size: 24px;
  }

  .home img {
    width: 240px;
  }

  .project-card {
    padding: 18px;
  }

  .service-card {
    padding: 1.8rem;
  }

  .service-icon {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
  }

  .btn-home1,
  .btn-home2 {
    width: 100%;
    justify-content: center;
  }

  .btnn {
    flex-direction: column;
  }
}


/* =========================================================
   POLISH PACK: smooth scroll, section reveal, stagger,
   mobile nav, back-to-top, typewriter
   ========================================================= */

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 110px;
}

/* ---- Section-level scroll reveal (.reveal) ---- */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity .9s ease, transform .9s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Card-level stagger reveal ---- */
.project-card,
.service-card {
    opacity: 0;
    transform: translateY(35px) scale(.97);
    transition: opacity .7s ease, transform .7s ease, box-shadow .35s ease, background .35s ease;
}

.project-card.in-view,
.service-card.in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* keep the existing hover transform working after reveal */
.project-card:hover.in-view {
    transform: translateY(-8px) scale(1.02);
}

.service-card:hover.in-view {
    transform: translateY(-10px) scale(1.02);
}

/* ---- Nav link underline animation ---- */
.ul-list li a {
    position: relative;
}

/* ---- Header shrink on scroll ---- */
header.scrolled .div-list {
    padding: 10px 0;
}

header.scrolled .ul-list {
    background: rgba(20, 10, 35, 0.75);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.35);
}

/* ---- Mobile hamburger ---- */
.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, 0.35);
    background: rgba(91, 33, 182, 0.45);
    backdrop-filter: blur(12px);
    color: #a78bfa;
    font-size: 18px;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 18px;
    right: 74px;
    z-index: 1100;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .div-list {
        justify-content: flex-start;
        padding: 0;
    }

    .ul-list {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 68%;
        max-width: 300px;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 1.6rem;
        border-radius: 0;
        transition: right .4s ease;
        z-index: 1050;
    }

    .ul-list.open {
        right: 0;
    }
}

/* ---- Back to top button ---- */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8b5cf6, #4c1d95);
    color: #fff;
    box-shadow: 0 0 20px rgba(139, 92, 246, .5);
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity .35s ease, transform .35s ease;
    z-index: 900;
    cursor: pointer;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top:hover {
    box-shadow: 0 0 30px rgba(139, 92, 246, .8);
    transform: translateY(-3px);
}

/* ---- Typewriter role text ---- */
#role-text {
    display: inline-block;
    border-right: 2px solid #a78bfa;
    padding-right: 4px;
    animation: caretBlink .8s step-end infinite;
}

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

/* =========================================================
   POLISH PACK 2: progress bar, cursor glow, ambient blobs,
   tilt cards, ripple, gradient text, nav indicator, underline draw
   ========================================================= */

/* ---- Top scroll progress bar ---- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #8b5cf6, #a78bfa, #4c1d95);
    z-index: 2000;
    transition: width .12s ease-out;
    box-shadow: 0 0 12px rgba(139, 92, 246, .8);
}

/* ---- Custom cursor glow (desktop only) ---- */
#cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246,.55), transparent 70%);
    pointer-events: none;
    z-index: 1900;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity .3s ease, transform .12s ease-out;
    mix-blend-mode: screen;
}

#cursor-glow.active {
    opacity: 1;
}

@media (pointer: coarse) {
    #cursor-glow { display: none; }
}

/* ---- Ambient floating blobs across the whole page ---- */
.ambient-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(110px);
    z-index: -2;
    pointer-events: none;
    opacity: .55;
}

.blob1 {
    width: 420px;
    height: 420px;
    top: 5%;
    left: -10%;
    background: rgba(139, 92, 246, .35);
    animation: driftA 22s ease-in-out infinite;
}

.blob2 {
    width: 380px;
    height: 380px;
    bottom: 10%;
    right: -8%;
    background: rgba(76, 29, 149, .45);
    animation: driftB 26s ease-in-out infinite;
}

.blob3 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    background: rgba(167, 139, 250, .22);
    animation: driftC 30s ease-in-out infinite;
}

@keyframes driftA {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(60px, 80px); }
}

@keyframes driftB {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-70px, -50px); }
}

@keyframes driftC {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-45%, -55%) scale(1.15); }
}

/* ---- Gradient shimmer hero heading ---- */
.left h1 {
    background: linear-gradient(90deg, #ffffff, #a78bfa, #8b5cf6, #ffffff);
    background-size: 300% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
    to { background-position: -300% center; }
}

/* ---- Underline draw-in for section titles ---- */
.project hr,
.services hr {
    width: 0;
    transition: width 1s ease .35s;
}

.reveal.active hr {
    width: 80px;
}

/* ---- Tilt-ready cards (perspective handled inline via JS) ---- */
.project-card,
.service-card {
    will-change: transform;
    transform-style: preserve-3d;
}

/* ---- Ripple effect ---- */
.btn,
.btn-home1,
.btn-home2,
.back-to-top {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
    transform: scale(0);
    animation: rippleAnim .6s ease-out forwards;
    pointer-events: none;
}

@keyframes rippleAnim {
    to {
        transform: scale(2.6);
        opacity: 0;
    }
}

/* ---- Sliding nav indicator pill ---- */
.ul-list {
    position: relative;
}

.nav-indicator {
    position: absolute;
    top: 6px;
    bottom: 6px;
    border-radius: 25px;
    background: linear-gradient(135deg, #8b5cf6, #4c1d95);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.6);
    z-index: 0;
    transition: left .35s cubic-bezier(.65,.05,.36,1), width .35s cubic-bezier(.65,.05,.36,1);
}

.ul-list li {
    position: relative;
    z-index: 1;
}

.ul-list li.active {
    background: transparent;
    box-shadow: none;
}

@media (max-width: 768px) {
    .nav-indicator { display: none; }
}

/* ---- Photo tape / about photo subtle float ---- */
.photo-container {
    animation: gentleFloat 5s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* =========================================================
   THEME TOGGLE (Dark / Light mode)
   ========================================================= */

.theme-toggle {
    position: fixed;
    top: 18px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(139, 92, 246, 0.35);
    background: rgba(91, 33, 182, 0.45);
    backdrop-filter: blur(12px);
    color: #a78bfa;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1150;
    transition: transform .3s ease, background .3s ease, color .3s ease, box-shadow .3s ease;
}

.theme-toggle:hover {
    transform: rotate(20deg) scale(1.08);
    box-shadow: 0 0 18px rgba(139, 92, 246, .6);
}

.theme-toggle i {
    transition: transform .4s ease;
}

.theme-toggle.spin i {
    transform: rotate(180deg);
}

/* =========================================================
   LIGHT THEME OVERRIDES
   Toggled via body[data-theme="light"]
   ========================================================= */

body[data-theme="light"] {
    background:radial-gradient(circle at 50% 10%, rgba(167, 139, 250, .35), transparent 55%),
        radial-gradient(circle at 50% 90%, rgba(196, 181, 253, .55), transparent 60%),
        linear-gradient(180deg, #f7f4ff, #ede8ff) !important;
    color:#241934 !important;
}

body[data-theme="light"] .theme-toggle {
    background:rgba(255, 255, 255, 0.6) !important;
    border-color:rgba(76, 29, 149, 0.25) !important;
    color:#7c3aed !important;
}

body[data-theme="light"] .nav-toggle {
    background:rgba(255, 255, 255, 0.65) !important;
    border-color:rgba(76, 29, 149, 0.25) !important;
    color:#7c3aed !important;
}

/* ---- Ambient fx:tone down for a light surface ---- */
body[data-theme="light"] .ambient-blob {
    opacity: .3 !important;
}

body[data-theme="light"] #cursor-glow {
    mix-blend-mode:multiply !important;
    background:radial-gradient(circle, rgba(139, 92, 246, .3), transparent 70%) !important;
}

/* ---- Intro card ---- */
body[data-theme="light"] .card {
    background:rgba(255, 255, 255, 0.55) !important;
    box-shadow:0 0 70px rgba(139, 92, 246, .18) !important;
}

body[data-theme="light"] .top-tags span {
    background:rgba(76, 29, 149, 0.06) !important;
    border-color:rgba(76, 29, 149, 0.15) !important;
    color:#6b5b7a !important;
}

body[data-theme="light"] .left h1 {
    background:linear-gradient(90deg, #4c1d95, #8b5cf6, #4c1d95, #4c1d95) !important;
    background-size:300% auto !important;
    -webkit-background-clip:text !important;
    background-clip:text !important;
    -webkit-text-fill-color:transparent !important;
}

body[data-theme="light"] .desc {
    color:#6b5b7a !important;
}

body[data-theme="light"] .btn {
    background:rgba(76, 29, 149, 0.05) !important;
    border-color:rgba(76, 29, 149, 0.2) !important;
    color:#241934 !important;
}

body[data-theme="light"] .site-link {
    background:rgba(76, 29, 149, 0.05) !important;
    border-color:rgba(76, 29, 149, 0.2) !important;
}

body[data-theme="light"] .right {
    background:linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(237, 233, 254, .65)) !important;
    box-shadow:inset 0 0 40px rgba(124, 58, 237, .05) !important;
}

body[data-theme="light"] .right-head {
    color:#7a6b8a !important;
}

body[data-theme="light"] .stats div {
    background:rgba(76, 29, 149, 0.05) !important;
}

body[data-theme="light"] .stats h4 {
    color:#241934 !important;
}

body[data-theme="light"] .stats p {
    color:#7a6b8a !important;
}

/* ---- Header / nav ---- */
body[data-theme="light"] .ul-list {
    background:rgba(255, 255, 255, 0.55) !important;
    border-color:rgba(76, 29, 149, 0.2) !important;
}

body[data-theme="light"] .ul-list li a {
    color:#4c1d95 !important;
}

body[data-theme="light"] .ul-list li:hover {
    background: rgba(139, 92, 246, 0.15) !important;
}

body[data-theme="light"] .ul-list li.active a,
body[data-theme="light"] .ul-list li.active i {
    color:#fff !important;
}

body[data-theme="light"] header.scrolled .ul-list {
    background:rgba(255, 255, 255, 0.75) !important;
}

/* ---- Section text ---- */
body[data-theme="light"] .home,
body[data-theme="light"] .about,
body[data-theme="light"] .project,
body[data-theme="light"] .services {
    color:#241934 !important;
}

body[data-theme="light"] .info-p,
body[data-theme="light"] .info-p2,
body[data-theme="light"] .info-text p,
body[data-theme="light"] .about-text p,
body[data-theme="light"] .contact-info p,
body[data-theme="light"] .contact-item,
body[data-theme="light"] .project p,
body[data-theme="light"] .services p,
body[data-theme="light"] .info-pro p {
    color:#5b4b6b !important;
}

body[data-theme="light"] .info-home h1 {
    color:#241934 !important;
}

/* ---- Cards ---- */
body[data-theme="light"] .project-card,
body[data-theme="light"] .service-card,
body[data-theme="light"] .contact-form,
body[data-theme="light"] .photo-container {
    background:rgba(255, 255, 255, 0.6) !important;
    border-color:rgba(76, 29, 149, 0.2) !important;
}

body[data-theme="light"] .project-card p,
body[data-theme="light"] .service-card p {
    color:#5b4b6b !important;
}

body[data-theme="light"] .project-thumb {
    background:linear-gradient(135deg, rgba(139, 92, 246,.5), rgba(237, 233, 254,.9)) !important;
    color:rgba(76, 29, 149, .8) !important;
}

/* ---- Form fields ---- */
body[data-theme="light"] .form-group input,
body[data-theme="light"] .form-group textarea {
    background:rgba(255, 255, 255, 0.7) !important;
    border-color:rgba(76, 29, 149, 0.25) !important;
    color:#241934 !important;
}

body[data-theme="light"] .form-group input::placeholder,
body[data-theme="light"] .form-group textarea::placeholder {
    color: #8a7a99 !important;
}

/* ---- Social links ---- */
body[data-theme="light"] .social-link {
    background:rgba(139, 92, 246, 0.1) !important;
    border-color:rgba(76, 29, 149, 0.25) !important;
    color:#7c3aed !important;
}

body[data-theme="light"] .follow ul a {
    color:#7c3aed !important;
}

/* ---- Misc ---- */
body[data-theme="light"] .btn-home2 {
    color:#7c3aed !important;
    border-color:#8b5cf6 !important;
}

body[data-theme="light"] .home-p {
    background:rgba(139, 92, 246, 0.12) !important;
    color:#7c3aed !important;
}

/* =========================================================
   REDESIGN PACK: hero visual, tech row, stats, skills,
   experience timeline, certificates (purple theme)
   ========================================================= */

/* ---- Nav: fit more items ---- */
.ul-list {
    gap: 1.6rem;
}

.ul-list li {
    padding: 8px 12px;
}

.ul-list li a {
    font-size: 13.5px;
}

/* ---- Hero technologies row ---- */
.tech-row {
    margin-top: 26px;
}

.tech-row-label {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #a78bfa;
    margin-bottom: 12px;
}

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tech-icons span {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #a78bfa;
    font-size: 19px;
    transition: transform .3s ease, background .3s ease, color .3s ease;
}

.tech-icons span:hover {
    transform: translateY(-4px) scale(1.08);
    background: rgba(139, 92, 246, 0.25);
    color: #fff;
}

/* ---- Hero visual (character + glow + floating code) ---- */
.home-container {
    align-items: center;
}

.hero-visual {
    position: relative;
    flex-shrink: 0;
    width: 400px;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 480px;
    height: 480px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(139, 92, 246, .45), transparent 70%);
    filter: blur(40px);
    z-index: 0;
    animation: heroGlowPulse 5s ease-in-out infinite;
}

@keyframes heroGlowPulse {
    0%, 100% { opacity: .7; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

.home .hero-visual .hero-character {
    position: relative;
    z-index: 1;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(139, 92, 246, 0.45);
    -webkit-mask-image: linear-gradient(180deg, #000 85%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 85%, transparent 100%);
}

.floating-code {
    position: absolute;
    bottom: -10px;
    right: -60px;
    width: 260px;
    z-index: 2;
    background: rgba(13, 10, 25, 0.85);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 14px;
    padding: 14px 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    animation: codeFloat 6s ease-in-out infinite;
}

@keyframes codeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.floating-code-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #a78bfa;
    margin-bottom: 10px;
    font-family: "Montserrat", sans-serif;
}

.fc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7cffb2;
}

.fc-live {
    margin-left: auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7cffb2;
    animation: fcBlink 1.4s ease-in-out infinite;
}

@keyframes fcBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: .2; }
}

.floating-code-body {
    font-family: 'Courier New', monospace;
    font-size: 10.5px;
    line-height: 1.6;
    color: #cfcfcf;
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}

.fc-key { color: #a78bfa; }
.fc-str { color: #7c3aed; font-weight: 600; }

@media (max-width: 992px) {
    .floating-code {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-visual {
        width: 300px;
        margin-top: 40px;
    }
}

/* ---- Section eyebrow label (shared by Skills/Experience/Certificates) ---- */
.section-eyebrow {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #a78bfa;
    margin-bottom: 8px;
    font-family: "Montserrat", sans-serif;
}

/* ---- About: stats grid ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.stat-card {
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 26px 16px;
    text-align: center;
    transition: transform .35s ease, background .35s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    background: rgba(139, 92, 246, 0.12);
}

.stat-icon {
    font-size: 22px;
    color: #a78bfa;
    margin-bottom: 10px;
}

.stat-card h4,
.stat-card .stat-word {
    font-size: 28px;
    color: #fff;
    margin-bottom: 4px;
    font-family: "Raleway", sans-serif;
}

.stat-card p {
    font-size: 13px;
    color: #cfcfcf;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---- Skills section ---- */
.skills {
    color: #f2f2f2;
}
.skills1{
    color: #f2f2f2;
    margin: 160px 200px;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.skill-category h5 {
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #a78bfa;
    margin-bottom: 20px;
}

.skill-bar {
    margin-bottom: 18px;
}

.skill-bar-top {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
    color: #eaeaea;
}

.skill-bar-top i {
    color: #a78bfa;
    margin-right: 6px;
}

.skill-percent {
    color: #a78bfa;
    font-weight: 600;
}

.skill-track {
    width: 100%;
    height: 8px;
    border-radius: 6px;
    background: rgba(139, 92, 246, 0.12);
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    width: 0%;
    border-radius: 6px;
    background: linear-gradient(90deg, #4c1d95, #8b5cf6, #a78bfa);
    transition: width 1.4s cubic-bezier(.22, .9, .35, 1);
}

@media (max-width: 900px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* ---- Experience timeline ---- */
.experience {
    margin: 160px 200px;
    color: #f2f2f2;
}

.timeline {
    position: relative;
    margin-top: 50px;
    padding-left: 40px;
}

.timeline-line {
    position: absolute;
    left: 9px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: linear-gradient(180deg, #8b5cf6, rgba(139, 92, 246, 0.1));
}

.timeline-item {
    position: relative;
    margin-bottom: 36px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -40px;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0d0b16;
    border: 3px solid #8b5cf6;
    box-shadow: 0 0 14px rgba(139, 92, 246, 0.6);
}

.timeline-content {
    background: rgba(139, 92, 246, 0.06);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 14px;
    padding: 18px 22px;
}

.timeline-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: #a78bfa;
    margin-bottom: 8px;
}

.timeline-content p {
    color: #cfcfcf;
    font-size: 14.5px;
    line-height: 1.6;
}

/* ---- Certificates ---- */
.certificates {
    margin: 160px 200px;
    color: #f2f2f2;
    text-align: center;
}

.certificates .section-eyebrow,
.certificates h3,
.certificates hr {
    margin-left: auto;
    margin-right: auto;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.certificate-card {
    background: rgba(139, 92, 246, 0.06);
    border: 1px dashed rgba(139, 92, 246, 0.35);
    border-radius: 16px;
    padding: 30px 20px;
    transition: transform .35s ease, background .35s ease;
}

.certificate-card:hover {
    transform: translateY(-6px);
    background: rgba(139, 92, 246, 0.12);
}

.cert-icon {
    font-size: 28px;
    color: #a78bfa;
    margin-bottom: 14px;
}

.certificate-card h5 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 6px;
}

.certificate-card p {
    font-size: 13px;
    color: #cfcfcf;
    margin-bottom: 10px;
}

.cert-year {
    display: inline-block;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.cert-note {
    margin-top: 26px;
    font-size: 13px;
    color: #8a7a99;
    font-style: italic;
}

@media (max-width: 900px) {
    .certificates-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .experience,
    .certificates {
        margin: 120px 40px;
    }
    .skills {
        margin: 0px ;
    }
}

@media (max-width: 480px) {
    .skills,
    .experience,
    .certificates {
        margin: 90px 20px;
    }
}

/* stagger-reveal these new cards too */
.skill-category,
.timeline-item,
.certificate-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}

.skill-category.in-view,
.timeline-item.in-view,
.certificate-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   LIGHT THEME: overrides for redesign pack components
   ========================================================= */

body[data-theme="light"] .tech-row-label,
body[data-theme="light"] .section-eyebrow {
    color: #7c3aed !important;
}

body[data-theme="light"] .tech-icons span {
    background: rgba(124, 58, 237, 0.08) !important;
    border-color: rgba(124, 58, 237, 0.25) !important;
    color: #7c3aed !important;
}

body[data-theme="light"] .tech-icons span:hover {
    background: rgba(124, 58, 237, 0.2) !important;
    color: #4c1d95 !important;
}

body[data-theme="light"] .floating-code {
    background: rgba(255, 255, 255, 0.85) !important;
    border-color: rgba(124, 58, 237, 0.3) !important;
}

body[data-theme="light"] .floating-code-head {
    color: #7c3aed !important;
}

body[data-theme="light"] .floating-code-body {
    color: #5b4b6b !important;
}

body[data-theme="light"] .fc-key {
    color: #7c3aed !important;
}

body[data-theme="light"] .fc-str {
    color: #4c1d95 !important;
}

body[data-theme="light"] .stat-card,
body[data-theme="light"] .skill-category,
body[data-theme="light"] .timeline-content,
body[data-theme="light"] .certificate-card {
    background: rgba(255, 255, 255, 0.6) !important;
    border-color: rgba(124, 58, 237, 0.25) !important;
}

body[data-theme="light"] .stat-icon,
body[data-theme="light"] .skill-category h5,
body[data-theme="light"] .skill-percent,
body[data-theme="light"] .skill-bar-top i,
body[data-theme="light"] .timeline-tag,
body[data-theme="light"] .cert-icon,
body[data-theme="light"] .cert-year {
    color: #7c3aed !important;
}

body[data-theme="light"] .stat-card h4,
body[data-theme="light"] .stat-card .stat-word,
body[data-theme="light"] .certificate-card h5 {
    color: #241934 !important;
}

body[data-theme="light"] .stat-card p,
body[data-theme="light"] .skill-bar-top,
body[data-theme="light"] .timeline-content p,
body[data-theme="light"] .certificate-card p {
    color: #5b4b6b !important;
}

body[data-theme="light"] .skill-track {
    background: rgba(124, 58, 237, 0.12) !important;
}

body[data-theme="light"] .skill-fill {
    background: linear-gradient(90deg, #4c1d95, #7c3aed, #a78bfa) !important;
}

body[data-theme="light"] .timeline-line {
    background: linear-gradient(180deg, #7c3aed, rgba(124, 58, 237, 0.1)) !important;
}

body[data-theme="light"] .timeline-dot {
    background: #fff !important;
    border-color: #7c3aed !important;
}

body[data-theme="light"] .cert-year {
    background: rgba(124, 58, 237, 0.15) !important;
}

body[data-theme="light"] .cert-note {
    color: #8a7a99 !important;
}

body[data-theme="light"] .skills,
body[data-theme="light"] .experience,
body[data-theme="light"] .certificates {
    color: #241934 !important;
}
