@font-face {
    font-family: "Sansita";
    src: local("Sansita Regular"), local("Sansita"), url("fonts/Sansita-400.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Sansita";
    src: local("Sansita Bold"), local("Sansita-Bold"), url("fonts/Sansita-700.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

/* --- Root Variables for Colors and Fonts --- */
:root {
    --bg-color: #0A0A1F;
    --primary-accent: #00F5FF;
    --secondary-accent: #F72585;
    --text-color: #F0F0F8;
    --subtle-text: #ffffff;
    --glass-bg: rgba(7, 14, 28, 0.22);
    --glass-border: rgba(255, 255, 255, 0.16);
    --font-heading: "Poppins", sans-serif;
    --font-body: "Inter", sans-serif;
    --nav-offset: 92px;
    --corner-radius: 22px;
}

/* --- Base & Body Styles --- */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

html {
    background-color: var(--bg-color);
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-offset);
}

body {
    background-color: transparent;
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.65;
    -webkit-overflow-scrolling: touch;
    scrollbar-color: rgba(0, 245, 255, 0.75) rgba(7, 14, 28, 0.35);
    scrollbar-width: thin;
}

section,
.hero-section,
footer {
    scroll-margin-top: var(--nav-offset);
}

body div:not(#vanta-clouds-bg):not(.container):not(.row):not([class*="col-"]):not(.timeline):not(.timeline-dot):not(.project-slider-track):not(.project-slide-actions):not(.hero-actions):not(.navbar-actions):not(.social-icons) {
    border-radius: var(--corner-radius);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(7, 14, 28, 0.35);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(0, 245, 255, 0.88), rgba(34, 255, 0, 0.78));
    border: 2px solid rgba(7, 14, 28, 0.45);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(34, 255, 0, 0.95), rgba(0, 245, 255, 0.95));
}

/* --- Vanta Clouds Background --- */
#vanta-clouds-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -2;
    pointer-events: none;
}

/* --- Glassmorphism Panel --- */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--corner-radius);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.glass-panel:not(.navbar):hover {
    transform: translateY(-6px);
    border-color: rgba(34, 255, 0, 0.42);
    background: rgba(7, 14, 28, 0.3);
    box-shadow: 0 22px 70px rgba(0, 245, 255, 0.28);
}
/* --- Project Card & Slider --- */
.project-card {
    --project-accent: #00ff44;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.project-card .card-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: "Sansita", sans-serif;
}

.project-card .card-body i[class^="ph"],
.project-card .card-body i[class*=" ph"] {
    font-family: "Phosphor" !important;
    font-style: normal;
}

.project-card img {
    width: 100%;
    height: 380px;
    object-fit: contain;
    object-position: center;
    background: transparent;
    border-radius: calc(var(--corner-radius) - 8px);
    padding: 8px;
    transition: transform 0.35s ease, filter 0.35s ease;
}

.project-card:hover img {
    transform: scale(1.025);
    filter: drop-shadow(0 16px 28px rgba(0, 245, 255, 0.22));
}

.project-slider {
    overflow: hidden;
    border-radius: calc(var(--corner-radius) - 8px);
    border: 1px solid rgba(34, 255, 0, 0.26);
    background: rgba(7, 14, 28, 0.16);
    touch-action: pan-y;
    position: relative;
}

.project-slider-track {
    display: flex;
    transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.project-slide {
    min-width: 100%;
    padding: 14px 76px 14px 14px;
    color: #eef7ec;
    display: flex;
    flex-direction: column;
    min-height: 280px;
}

.project-slide h6 {
    margin: 0 0 10px;
    color: var(--project-accent);
    font-weight: 700;
    letter-spacing: 0.2px;
}

.project-slide p {
    margin: 0 0 8px;
    color: #d6e4d1;
    line-height: 1.6;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.project-slide p b,
.dream-project-card .project-description b {
    font-family: inherit;
    font-weight: 700;
    letter-spacing: 0.2px;
    color: #f4fff2;
}

.project-slide p:last-child {
    margin-bottom: 0;
}

.project-tech-list {
    margin: 0;
    padding-left: 18px;
    color: #d6e4d1;
    line-height: 1.6;
    font-size: 0.95rem;
}

.project-tech-list li {
    transition: color 0.2s ease;
}

.project-slide p:hover,
.project-tech-list li:hover,
.my-philosophy p:hover {
    color: var(--project-accent) !important;
}

.my-philosophy p:hover {
    color: rgb(13, 255, 0) !important;
    
}
.project-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.project-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1px solid rgba(34, 255, 0, 0.5);
    background: transparent;
    opacity: 0.7;
    cursor: pointer;
    padding: 0;
    transition: width 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.project-slider-dot.is-active {
    width: 26px;
    background: var(--project-accent);
    border-color: var(--project-accent);
    opacity: 1;
    box-shadow: 0 0 10px rgba(34, 255, 0, 0.55);
}

.project-slider-dot:focus-visible {
    outline: 2px solid var(--project-accent);
    outline-offset: 2px;
}

.project-slide-actions {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
    padding-top: 14px;
}

.project-slide-actions .btn,
.project-slide-actions .btn-progress {
    min-width: 118px;
}

.project-next-btn {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: 1px solid rgba(34, 255, 0, 0.5);
    border-radius: 999px;
    background: rgba(11, 19, 43, 0.88);
    color: #eaffdf;
    font-size: 1.55rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 0 1px rgba(34, 255, 0, 0.15) inset;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.project-next-btn:hover {
    color: var(--project-accent);
    border-color: var(--project-accent);
    background: rgba(7, 14, 28, 0.95);
    box-shadow: 0 0 12px rgba(34, 255, 0, 0.35);
    transform: translateY(-50%) scale(1.02);
}

.project-next-btn:focus-visible {
    outline: 2px solid var(--project-accent);
    outline-offset: 2px;
}

.project-next-btn i {
    font-size: 1.32rem;
    line-height: 1;
}

.dream-project-card .project-description {
    margin: 0;
}

.dream-project-card .ppt-box {
    width: 100%;
    height: 260px;
    border: 1px solid rgba(34, 255, 0, 0.26);
    border-radius: calc(var(--corner-radius) - 8px);
    margin-top: 4px;
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.dream-project-card #ppt_frame {
    width: 100%;
    height: 820px;
    border: none;
}

/* --- Layout & Sections --- */
.content-wrapper {
    position: relative;
    z-index: 1;
    padding-top: 100px;
    overflow-x: clip;
}

section {
    padding: 8rem 0;
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--text-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-accent);
    border-radius: 2px;
}

/* --- Career Timeline --- */
.timeline {
    position: relative;
    max-width: 1080px;
    margin: 0 auto;
    padding: 8px 0;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(
        180deg,
        rgba(34, 255, 0, 0.14) 0%,
        rgba(34, 255, 0, 0.9) 50%,
        rgba(34, 255, 0, 0.14) 100%
    );
    box-shadow: 0 0 14px rgba(34, 255, 0, 0.35);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 0 42px;
    margin-bottom: 26px;
}

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

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
}

.timeline-dot {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #22ff00;
    border: 2px solid rgba(10, 10, 31, 0.95);
    box-shadow: 0 0 0 4px rgba(34, 255, 0, 0.16), 0 0 15px rgba(34, 255, 0, 0.65);
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -8px;
}

.timeline-card {
    border-color: rgba(34, 255, 0, 0.24);
    background: rgba(7, 14, 28, 0.24);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    text-align: left;
}

.timeline-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 255, 0, 0.55);
    box-shadow: 0 20px 60px rgba(0, 245, 255, 0.4);
}

.timeline-label,
.timeline-value {
    transition: color 0.25s ease;
}

.timeline-card:hover .timeline-label,
.timeline-card:hover .timeline-value {
    color: #22ff00;
}

.timeline-year {
    margin: 0 0 8px;
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
    color: #22ff00;
}

.timeline-card h3 {
    margin: 0 0 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: #f5fff4;
}

.timeline-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.timeline-points li {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 8px;
    align-items: baseline;
}

.timeline-label {
    font-weight: 700;
    color: #eef7ec;
    white-space: nowrap;
}

.timeline-value {
    color: #d6e4d1;
    line-height: 1.55;
}

.timeline-value a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}


/* --- Navbar --- */
.navbar {
    left: 0;
    right: 0;
    width: 100%;
    /* padding: 0 rem 0; */
    overflow-x: clip;
    transition: background-color 0.3s ease;
}

.navbar .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    padding-left: 16px;
    padding-right: 16px;
    row-gap: 0.65rem;
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 1px;
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 0;
    white-space: nowrap;
    max-width: calc(100% - 76px);
    overflow: hidden;
    text-overflow: ellipsis;
}

.navbar-brand.gradient-text {
    text-align: left;
    text-transform: none;
    line-height: 1.2;
}

.navbar-toggler {
    margin-left: auto;
    flex-shrink: 0;
}

.navbar-collapse,
.navbar-collapse.show,
.navbar-collapse.collapsing {
    overflow-x: hidden;
}

.navbar-actions .nav-cta {
    white-space: nowrap;
}

.navbar-actions .btn-sm {
    padding: 8px 18px;
}
.nav-link {
    color: var(--subtle-text);
    transition: color 0.3s;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary-accent);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
}
.hero-section h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 10vw, 6rem);
}

.hero-section .lead {
    font-family: "Sansita", sans-serif;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.hero-section .lead:hover {
    color: #22ff00;
    text-shadow: 0 0 12px rgba(34, 255, 0, 0.55);
}

.hero-actions .btn {
    min-width: 170px;
}
#typed-element {
    color: rgb(0, 255, 0);
    text-shadow: 
        0 0 2px #22ff00,
        0 0 6px #22ff00,
        0 0 12px rgba(34, 255, 0, 0.6);
}
/* --- Buttons --- */
.btn-cta {
    background: var(--primary-accent);
    color: var(--bg-color);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    border: 2px solid var(--primary-accent);
    transition: all 0.3s ease;
}
.btn-cta:hover {
    background: transparent;
    color: var(--primary-accent);
}
.btn-outline-cta {
    color: var(--primary-accent);
    border: 2px solid var(--primary-accent);
    border-color: var(--primary-accent);
    border-radius: 50px;
    padding: 10px 25px;
}
.btn-outline-cta:hover {
    background: var(--primary-accent);
    color: var(--bg-color);
}

.nav-link:focus-visible,
.btn:focus-visible,
.btn-progress:focus-visible,
.social-icon:focus-visible,
.navbar-toggler:focus-visible {
    outline: 2px solid var(--primary-accent);
    outline-offset: 4px;
}

/* --- Contact & Footer --- */
.social-icons a {
    color: var(--subtle-text);
    font-size: 1.8rem;
    margin: 0 15px;
    transition: color 0.3s;
}
.social-icons a:hover {
    color: var(--primary-accent);
}
footer {
    color: var(--subtle-text);
    font-size: 0.9rem;
} 
.gradient-text {
  /* font-size: 2rem;  */
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  text-align: center;
  background: linear-gradient(
    90deg,
    #ff00cc,
    #3333ff,
    #00ffff,
    #33ff33,
    #ffcc00,
    #ff00cc
  );
  background-size: 400%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-flow 6s ease-in-out infinite;
}

/* Smooth Gradient Animation */
@keyframes gradient-flow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}
/*Floating Image Animation*/
.floating-image {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  cursor: grab;
  transition: opacity 1s ease, transform 1s ease;
}

.floating-image.hidden {
  opacity: 0;
  pointer-events: none;
}

.floating-image img {
  width: 190px;
  height: 190px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 100px rgba(0, 255, 255, 0.6);
  border: 1px solid rgba(0, 255, 255, 0.6);
  backdrop-filter: blur(10px);
}

.photo {
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.photo:hover {
  transform: translateY(-6px) scale(1.03);
  filter: saturate(1.08);
  box-shadow: 0 0 45px rgba(34, 255, 0, 0.42), 0 0 80px rgba(0, 245, 255, 0.3);
}
.skill-card-effect {

  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  border-radius: var(--corner-radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px 0 rgba(0, 245, 255, 0.2);
  transition: all 0.4s ease;
  padding: 20px;
 
  text-align: center;
}

.skill-card-effect:hover {
  transform: scale(1.05);
  background: transparent;
  border-color: rgba(0, 245, 255, 0.4);
  box-shadow: 0 20px 60px rgba(0, 245, 255, 0.4);
}
.hover-text-color {
  color: #ffffff;
  
}
.hover-text-color:hover {
  color: #22ff00;
}
.image-effect {
  transition: 0.4s ease-in-out;
  box-shadow: 0 20px 60px rgba(0, 245, 255, 0.4);
}

.image-effect:hover {
  transform: scale(1.08);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.5);
}

#about .card-text {
  font-family: "Sansita", sans-serif;
}
/* --- Progress Button --- */

.btn-progress {
    position: relative;
    display: inline-block;
    padding: 10px 25px;
    border: 1px solid var(--primary-accent);
    color: var(--primary-accent);
    text-decoration: none;
    overflow: hidden;
    border-radius: 25px;
    transition: color 0.3s ease-in-out;
}

/* Background fill */
.btn-progress::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 0%;
    height: 100%;
    background: var(--primary-accent);
    z-index: -1;
    transition: width 0.4s ease-in-out;
}

/* Text change */
.btn-progress::after {
    content: "40% Done";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    color: black;
    transition: opacity 0.3s ease-in-out;
}

/* Hover effects */
.btn-progress:hover::before {
    width: 60%;
}

.btn-progress:hover {
    color: transparent;
}

.btn-progress:hover::after {
    opacity: 1;
}
.btn-progress,
.btn.btn-outline-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
}

@media (hover: none), (pointer: coarse) {
    .floating-image {
        display: none;
    }
}

@media (max-width: 991.98px) {
    .navbar {
        padding: 0rem 0;
    }

    .navbar .container {
        column-gap: 10px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .navbar-brand {
        font-size: clamp(1rem, 4.8vw, 1.15rem);
        letter-spacing: 0.4px;
        max-width: min(72vw, 230px);
    }

    .navbar-toggler {
        padding: 0.3rem 0.5rem;
        border-color: rgba(255, 255, 255, 0.34);
    }

    .navbar-toggler-icon {
        width: 1.1em;
        height: 1.1em;
    }

    .navbar-collapse {
        width: 100%;
        flex-basis: 100%;
        order: 3;
        margin-top: 0.85rem;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        padding-top: 0.7rem;
    }

    .navbar-nav {
        padding-top: 0.2rem;
    }

    .navbar-actions {
        margin-top: 0.75rem !important;
        width: 100%;
        justify-content: flex-start;
    }

    .timeline::before {
        left: 16px;
        transform: none;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        text-align: left;
        padding: 0 0 0 44px;
        margin-bottom: 18px;
    }

    .timeline-item:nth-child(odd) .timeline-dot,
    .timeline-item:nth-child(even) .timeline-dot {
        left: 16px;
        right: auto;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .project-card img {
        height: 320px;
    }
}

@media (max-width: 575.98px) {
    .navbar .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .navbar-brand {
        max-width: calc(100% - 56px);
        font-size: 1rem;
        letter-spacing: 0.2px;
    }

    .navbar-toggler {
        padding: 0.22rem 0.42rem;
    }

    .project-card img {
        height: 260px;
        padding: 6px;
    }

    .project-slide {
        padding: 12px 48px 12px 12px;
        min-height: 250px;
    }

    .project-slide-actions {
        flex-wrap: nowrap;
        gap: 8px;
        width: 100%;
    }

    .project-slide-actions .btn,
    .project-slide-actions .btn-progress {
        flex: 1 1 0;
        min-width: 0;
        font-size: 0.9rem;
        padding: 9px 10px;
    }

    .project-slide p,
    .project-tech-list {
        font-size: 0.9rem;
    }

    .project-next-btn {
        width: 34px;
        height: 34px;
        right: 8px;
        font-size: 1.3rem;
    }

    .navbar-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 390px) {
    .navbar .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    .navbar-brand {
        max-width: calc(100% - 52px);
        font-size: 0.95rem;
    }

    .navbar-toggler {
        padding: 0.18rem 0.36rem;
    }
}


.logo-img{
    height: 40px;   /* Adjust size */
    width: auto;
    object-fit: contain;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.navbar-brand:hover .logo-img {
    transform: translateY(-2px) scale(1.08);
    filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0));
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .gradient-text {
        animation: none;
    }

    .floating-image,
    .glass-panel,
    .logo-img,
    .photo,
    .skill-card-effect,
    .image-effect,
    .project-card img,
    .timeline-card,
    .project-slider-track,
    .project-slider-dot,
    .project-next-btn,
    .btn-progress::before,
    .btn-progress::after {
        transition: none;
    }
}
