/* main stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap');

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
    scroll-behavior: smooth;
    text-decoration: none;
}

:root{
    --text-color:#f5f5f5;
    --hover-color:#12f7ff;
    --bg-color:#6b38bd;
    --secon-bg-color:#6c6b6e;
    --big-font:2.5rem;
    --norma-font:2rem;
    --neon-box-shadow:0 0 0.2rem #12f7ff;
    --h2-font:3rem;
    --font-neon-text-shadow: 0 0 10px rgba(18, 247, 255, 0.3),
    0 0 20px rgba(18, 247, 255, 0.3),
    0 0 30px rgba(18, 247, 255, 0.3),
    0 0 40px rgba(18, 247, 255, 0.3),
    0 0 70px rgba(18, 247, 255, 0.3),
    0 0 80px rgba(18, 247, 255, 0.3),
    0 0 100px rgba(18, 247, 255, 0.3),
    0 0 150px rgba(18, 247, 255, 0.3);
}

::-webkit-scrollbar {
    height: 0;
    width: 0.5rem;
}

::-webkit-scrollbar-track {
    background: var(--secon-bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--hover-color);
    border-radius: 5rem;
}

h1, h2, h3, h4, h5, h6, p, span, a {
  caret-color: transparent;   
}

/* hide caret */
*:not(input):not(textarea):not([contenteditable="true"]) {
  caret-color: transparent !important;
}

/* hide mouse focus outline */
:focus:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

body{
    font-family: "Poppins", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    padding-top: 80px;
}

#rain-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
}

.lightning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.1s ease;
}

header,
section,
footer,
.home-content,
.img-box,
.img-box img,
.btn,
.social-icons a {
    position: relative;
    z-index: 4;
}

body, html {
    box-shadow: none !important;
    outline: none !important;
}

header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 1rem 10%;
    background-color: #511ca7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--secon-bg-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header.sticky {
    background-color: #511ca7;
    border-bottom: 1px solid var(--secon-bg-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}


.logo{
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    transition: 0.3s ease-in-out;
    cursor: default;
    position: relative;
}

.logo:hover {
    color: #0ff;
    text-shadow: 0 0 5px #0ff, 0 0 10px #0ff, 0 0 20px #0ff, 0 0 40px #0ff;
    transform: scale(1.1);
    animation: neonGlow 1.5s infinite alternate;
}

span{
    color: var(--hover-color);
}

.navlist{
    display: flex;
}

/* hide the sidebar brand on desktop */
.nav-brand{ display: none; }

/* lock body when sidebar open */
.no-scroll{ overflow: hidden; }

.navlist a{
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 20px;
    outline: none;
}

.navlist a:hover {
    color: var(--hover-color);
    text-shadow: 0 0 10px rgba(18, 247, 255, 0.6),
    0 0 20px rgba(18, 247, 255, 0.6),
    0 0 30px rgba(18, 247, 255, 0.6),
    0 0 40px rgba(18, 247, 255, 0.6),
    0 0 70px rgba(18, 247, 255, 0.6),
    0 0 80px rgba(18, 247, 255, 0.6),
    0 0 100px rgba(18, 247, 255, 0.6),
    0 0 150px rgba(18, 247, 255, 0.6);
}

.navlist a.active {
    color: var(--hover-color);
    text-shadow: 0 0 15px var(--hover-color);
    font-weight: 600;
}

#menu-icon{
    font-size: 1.8rem;
    z-index: 10001;
    cursor: pointer;
    margin-left: 25px;
    background: var(--hover-color);
    border-radius: 3px;
    color: var(--secon-bg-color);
    display: none;
}

.about-content, 
.about-content * {
    font-family: 'Poppins', sans-serif !important;
    font-size: 16px !important;  
    color: #fff !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
}

.about-content p,
.about-content p span {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #fff;
}

.about-content .about-label{
    color: #fdfdfd;
    font-size: .8rem;
    font-weight: 200;
    letter-spacing: 2px;
    text-transform: uppercase;
}


section {
    border: none;
    box-shadow: none;
    padding: 100px 10%;
}


.home{
    min-height: 100vh;
    height: 100%;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    grid-gap: 4em;
}

.home-content{
    max-width: 800px;
}

.home-content h1{
    font-size: var(--big-font);
    font-weight: 700;
    line-height: 1.05; /* tighter, keeps heading compact */
    letter-spacing: 0.6px; /* subtle spacing between letters */
    margin-bottom: 0.5rem; /* space to the type/paragraph below */
} 

.change-text{
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 0.35rem; /* separates it from heading */
    letter-spacing: 0.2px;
} 

.change-text h3{
    position: relative;
    display: inline-block;
    line-height: 1.15;
    min-height: 2rem;
    margin-left: 0.25rem; /* small offset before the typed words */

    margin: 0;
    vertical-align: top;
    height: 2.5rem;
    overflow: hidden;
}

.change-text h3 .word{
    position: absolute;
    display: flex;
    opacity: 0;
    left: 0;
    top: 0;
    transition: opacity 0.3s ease-in-out;
}

.change-text h3 .word.active{
    opacity: 1;
}

.change-text h3 .word .letter{
    transform-origin: center center 25px;
}

.change-text h3 .word .letter.out{
    transform: rotateX(90deg);
    transition: 0.32s cubic-bezier(0.6,0,0.7,0.2);
}

.change-text h3 .word .letter.in{
    transition: 0.38s ease;
}

.change-text h3 .word .letter.behind{
    transform: rotateX(-90deg);
}
/* gold title */
.gold-title {
    color: #f5c542;
    font-weight: 700;
    /* subtle glow */
    text-shadow: 0 1px 0 rgba(245,197,66,0.95), 0 6px 14px rgba(245,197,66,0.08);
    filter: none;
}

/* typed cursor */
.typed-cursor {
    color: var(--hover-color); /* cyan by default */
    font-weight: 600;
    animation: blink 0.7s infinite;
}

/* gold cursor */
.typed-cursor.gold {
    color: #f5c542;
    text-shadow: 0 2px 8px rgba(245,197,66,0.12);
}

.home-content p{
    color: #ffffff;
    line-height: 1.7; /* improved readability across multiple lines */
    margin-top: 1rem; /* space below the type area */
    font-size: 1.02rem;
    letter-spacing: 0.2px;
    max-width: 52ch; /* comfortable measure for paragraphs */
} 

.info-box{
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    width: 500px;
    margin: 1rem 0 2rem;
}

.info-box h5{
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}

.info-box span{
    font-size: 0.9rem;
    color: #0ff; /* blue */
}

.btn-box{
    display: flex;
    justify-content: space-between;
    width: 320px;
    height: 45px;
    margin-top: 1.2rem; /* pulls the buttons closer to the paragraph */
    gap: 0.6rem;
}


.btn-box .btn{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 100%;
    background: var(--hover-color);
    color: var(--bg-color);
    font-size: 1rem;
    letter-spacing: 1px;
    font-weight: 600;
    transition: 0.6s;
    box-shadow: var(--neon-box-shadow);
    border-radius: 5px;
    position: relative;overflow: hidden;
    z-index: 1;
    border: 2px solid var(--hover-color);
}

.btn:hover{
    color: var(--hover-color);
}

.btn::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    background: var(--bg-color);
    width: 0;
    height: 100%;
    z-index: -1;
    transition: 0.4s;
}

.btn:hover::before{
    width: 100%;
}

.btn:nth-child(2){
    background: var(--bg-color);
    color: var(--hover-color);
}

.btn:nth-child(2):hover{
    color: var(--bg-color);
}

.btn:nth-child(2)::before{
    background: var(--hover-color);
}

.social-icons{
    margin-top: 2rem; /* reduced spacing for tighter layout */
    display: flex;
    justify-content: space-between;
    width: 220px;
    height: 40px;
    gap: 0.6rem;
}

.social-icons a{
    display: inline-flex;
    width: 50px;
    height: 100%;
    justify-content: center;
    align-items: center;
    background: var(--bg-color);
    color: var(--hover-color);
    border: 2px solid var(--hover-color);
    transition: 0.6s;
    box-shadow: 0 0 0.3rem #12f7ff;
    border-radius: 5px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.social-icons a i{
    font-size: 1.5rem;
}

.social-icons a:hover{
    color: var(--bg-color);
}

.social-icons a::before{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 100%;
    background: var(--hover-color);
    transition: 0.6s;
    z-index: -1;
}

.social-icons a:hover::before{
    width: 100%;
}

.home-image{
    position: relative;
}

.img-box{
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 675px;
    margin: 0 auto;
    display: flex;
   justify-content: center;
   align-items: center;
   transform: translateX(30px);
}

.img-box img{
    top: -245px;
    max-width: 675px;
    width: 100%;
    height: auto;
    z-index: 2;
    position: relative;
}

.liquid-shape{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateX(5px);
    width: 105%;
    height: auto;
    z-index: 1;
    opacity: 0.85;
}

.liquid-shape:nth-child(2){
    filter: none;
    opacity: 1;
}

.about{
    display: flex;
    justify-content: center;
    align-items: center;
    grid-gap: 2em;
    background: var(--secon-bg-color);
}

.about .img-about{
    text-align: center;
    position: relative;
}

.about .img-about img{
    max-width: 400px;
    height: auto;
}

.about-content {
    position: relative; /* stacking context */
    z-index: 105;
}

.about-content span{
    color: #fdfdfd;
    font-size: .9rem;
    font-weight: 700 !important; /* bolded */
    letter-spacing: 1.5px;
    text-transform: capitalize;
    display: block;
    margin-bottom: 0.5rem;
}

.about-content h2{
   color: var(--hover-color) !important;
   font-weight: 800 !important;
   font-size: var(--h2-font) !important;
   margin-bottom: 0.6rem;
   text-shadow: none !important; /* no glow */
}

.about-content h3{
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.about-content p{
    color: #fdfdfd;
    font-weight: 300;
    margin-top: 1rem !important;
    margin-bottom: 2rem !important;
    line-height: 1.8 !important;
}

.info-about1,
.info-about2,
.info-about3{
    background: var(--bg-color);
    font-size: 0.9rem;
    position: absolute;
    padding: 15px;
    width: 150px;
    height: 150px;
    border-radius: 69% 31% 66% 34% / 21% 30% 70% 79%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--neon-box-shadow);
    border: 1px solid var(--hover-color);
    outline: 2px solid var(--bg-color);
    z-index: 100;
    animation: morph 6s linear infinite;
    pointer-events: none;
}

.info-about1{
    left: -10%;
    top: 34%;
}

.info-about2{
    left: 66%;
    top: 10%;
}

.info-about3{
    left: 57%;
    top: 72%;
}

.info-about1 h2,
.info-about2 h2,
.info-about3 h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--hover-color);
    margin: 0 0 5px 0;
    line-height: 1;
}

.info-about1 p,
.info-about2 p,
.info-about3 p {
    font-size: 0.85rem;
    color: var(--text-color);
    margin: 0;
}

#toggleAboutBtn {
    cursor: pointer;
    z-index: 110; 
    position: relative; 
}

.img-about span{
    color: var(--hover-color);
    font-size: 1rem;
    font-weight: 600;
}

.main-text{
    width: 100%;
    text-align: center;
    margin-bottom: 2rem;
    color: var(--hover-color);
}

.main-text h2{
    font-weight: 700;
    font-size: var(--normal-font);
}

.main-text span{
    color: #fdfdfd;
    font-size: 0.8rem;
    font-weight: 200;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.more-text {
    display: inline;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

.more-text.show {
    display: inline;
}

.section-services{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

.service-box{
  text-align: center;
  padding: 2rem;
}

.service-circle{
  width: 96px;
  height: 96px;
  margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: #6f2dbd;              /* purple fill */
  border: 3px solid #2d7dff;        /* blue ring */
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-circle .service-icon{
  width: 36px;
  height: 36px;
  fill: #ffffff;                   /* white icons */
  display: block;
}

.section-services{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    grid-gap: 2rem;
}

.section-services .service-box{
    flex: 1 1 18rem;
    padding: 2rem 1rem 2rem;
    text-align: center;
    background: var(--secon-bg-color);
    transition: transform 0.4s;
    border-radius: 10px;
}

.service-btn{
    width: auto;
    justify-content: center;
}

.service-box:hover{
    transform: translateY(-0.7rem);
}

.service-box h3{
    margin-top: 10px;
    font-size: 1.5rem;
}

.service-box p{
    margin: 0.5rem 0 1.5rem 0;
    font-weight: 300;
    letter-spacing: 1px;
    color: #ffffff;
    line-height: 1.6;
} 

.skills{
    background: var(--secon-bg-color);
}

.skill-main{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-row-gap: 30px;
    grid-column-gap: 50px;
}

.skill-bar{
    margin-bottom: 2.3rem;
}

.skill-main h3{
    margin-bottom: 2rem;
    font-size: var(--normal-font);
    text-align: center;
}

.skill-left .skill-bar .info{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
}

.skill-left .skill-bar .bar{
    width: 100%;
    height: 10px;
    background-color: var(--bg-color);
    border-radius: 25px;
    margin-top: 10px;
    position: relative;
}

.skill-bar .bar span{
    width: 50%;
    height: 100%;
    position: absolute;
    left: 0;
    background: var(--hover-color);
    border-radius: 25px;
    box-shadow: var(--neon-box-shadow);
}

.skill-bar .bar .python{
    width: 90%;
    animation: python 1s;
}

.skill-bar .bar .javascript{
    width: 75%;
    animation: javascript 2s;
}

.skill-bar .bar .java{
    width: 84%;
    animation: html 3s;
}

.skill-bar .bar .c{
    width: 82%;
    animation: css 4s;
}

.skill-bar .bar .html{
    width: 87%;
    animation: sql 5s;
}

.skill-bar .bar .css{
    width: 83%;
    animation: html 6s;
}

.professional{
    display: grid;
    grid-template-columns: repeat(2, 150px);
    grid-template-rows: repeat(2, 150px);
    gap: 4rem;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
}

.professional .box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.professional .skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.professional .text {
    margin-top: 10px;
    text-align: center;
}

.professional .text big {
    font-size: 1.5rem;
    color: var(--hover-color);
}

.professional .text small {
    font-size: 0.9rem;
    color: #fff;
}

.box{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.box .text{
    margin-top: 10px;
    text-align: center;
}

.box .text small{
    display: block;
    font-weight: 600;
}

.circular-progress {
  position: relative;
  width: 120px;
  height: 120px;
}

.circular-progress svg {
  position: relative;
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}

.circular-progress circle {
  width: 100%;
  height: 100%;
  fill: none;
  stroke-width: 12;
  stroke: #eee;
}

.circular-progress svg circle {
    fill: none;        
    stroke: #fff;     
    stroke-width: 6;   
    filter: none;      
}

.circular-progress circle:nth-child(2) {
  stroke: #12f7ff;            
  stroke-dasharray: 339.292;  
  stroke-dashoffset: 339.292; 
  transition: stroke-dashoffset 1s ease;
  stroke-linecap: round; 
}

.circular-progress circle:first-child {
  stroke: #2a2a2a; 
}

/* progress ring */
.circular-progress circle:last-child {
  stroke: #05b413;
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 12 6;
}

.progress-value {
  position: absolute;
  color: #fff;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  font-weight: bold;
}

.text {
  margin-top: 0.5rem;
  text-align: center;
  color: #ddd;
}

.fillter-buttons {
    margin: 2rem;
    text-align: center;
}

.fillter-buttons .btn {
    background: none;
    outline: none;
    border: none;
    cursor: pointer;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    margin-left: 1.3rem;
    color: var(--text-color);
}

.fillter-buttons .btn:hover {
    color: var(--hover-color);
}

/* portfolio section */

.portfolio {
    background: var(--bg-color);
}

.portfolio-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 2.5rem;
}

/* featured project */
.portfolio-featured {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    border: 2px solid var(--hover-color);
    box-shadow: var(--neon-box-shadow);
    transition: transform 0.4s ease;
}

.portfolio-featured:hover {
    transform: scale(1.01);
}

.portfolio-featured img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-featured:hover img {
    transform: scale(1.08);
}

/* featured image size */
.featured-project img,
.featured-project .portfolio-image-link img {
    width: 100%;
    height: 360px; /* match featured size */
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0, 0, 0, 0.2),
        rgba(18, 247, 255, 0.85)
    );
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-featured:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

/* portfolio titles blue */
.portfolio-title {
    color: var(--hover-color);
    font-weight: 700;
    margin: 0.6rem 0 0.4rem;
}

/* image link */
.portfolio-image-link {
    display: inline-block;
}
.portfolio-image-link img {
    cursor: pointer;
    display: block;
    width: 100%;
    height: auto;
}

/* mobile: small phones (up to 420px) */
@media (max-width: 420px) {
  /* header visibility */
  header{
    padding: 0.5rem 6%;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10050;
    background-color: rgba(81,28,167,0.98);
    height: 56px;
    display: flex;
    align-items: center;
  }
  /* mobile base font smaller */
  body{ font-size: 14px }
  /* profile-inline shown only on mobile */
  .profile-inline{ display: block }

  .logo{
    font-size:1.05rem;
    font-weight: 700;
    letter-spacing: -0.03em; /* tighter */
    line-height: 1;
    margin-right: 6px;
  }
  .logo span{
    margin-right: 4px; /* tighter initial */
    font-size: 0.98rem;
    vertical-align: baseline;
    font-weight: 700;
  }
  #menu-icon{ display: block; z-index:10060; margin-left:4px }

  /* header layout: hamburger left, logo right on mobile */
  header{ justify-content: space-between; gap: 6px; padding-left: 8px; padding-right: 8px }
  /* hamburger: absolute top-left for mobile */
  #menu-icon{ order: 1; margin-left: 0; margin-right: 0; position: absolute; left: 6px; top: 12px; z-index: 10062 }
  /* logo: absolute top-right for mobile - pushed left a bit and appears as one word */
  .logo{ order: 2; margin-left: 0; position: absolute; right: 28px; top: 12px; z-index: 10061; letter-spacing: -0.01em; word-spacing: 0 }
  .logo span{ margin-right: 0; display: inline-block }

  .navlist{
    display: none;
    position: absolute;
    top: 8px;
    left: 64px; /* only used for inline layout; sidebar will be fixed */
    right: auto;
    background: transparent;
    flex-direction: row;
    gap: 0.35rem;
    padding: 0;
    align-items: center;
  }

  /* make anchors scroll to visible area (no content hidden under header) */
  section{ scroll-margin-top: 72px }
  .about, .home{ scroll-margin-top: 72px }

  /* mobile: ensure about info circles sit close above the about image and centered */
  .img-about{ display:flex; flex-direction: column; align-items: center; gap: 8px }
  .img-about .info-row{ display:flex; gap: 6px; justify-content:center; align-items:center; width:100%; margin-bottom: 6px; order: 1 }
  .img-about .info-row .info-about1, .img-about .info-row .info-about2, .img-about .info-row .info-about3{ width: 58px; height: 58px; padding: 6px; border-radius: 50% }
  .img-about .info-row .info-about1 h2, .img-about .info-row .info-about2 h2, .img-about .info-row .info-about3 h2{ font-size: 0.85rem; line-height:1 }
  .img-about img{ order: 2; margin-top: 6px }

  /* extra small screens */
  @media (max-width: 420px) {
    .img-about .info-row{ gap: 6px; margin-bottom: 8px }
    .img-about .info-row .info-about1, .img-about .info-row .info-about2, .img-about .info-row .info-about3{ width: 54px; height: 54px }
  }

  /* sidebar opened state (mobile) */
  .navlist.sidebar-open{
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 240px;
    background: linear-gradient(180deg, rgba(81,28,167,0.98), #3f0f9b);
    flex-direction: column;
    gap: 0.6rem;
    padding: 18px 12px;
    z-index: 10070;
    box-shadow: 1px 0 12px rgba(0,0,0,0.25);
    transform: translateX(0);
    transition: transform 220ms ease;
  }

  /* make sidebar links span full width and mimic the sidebar's spacing */
  .navlist.sidebar-open a{
    display: block;
    width: 100%;
    padding: 12px 10px;
    font-size: 1.02rem;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
  }

  .navlist.sidebar-open a:hover{
    background: rgba(255,255,255,0.05);
  }

  /* dim overlay when sidebar active */
  body.sidebar-active::before{
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.36);
    z-index: 10065;
    pointer-events: auto;
    transition: opacity 200ms ease;
    opacity: 1;
  }

  .navlist.show{
    display: flex;
    background: rgba(81,28,167,0.98);
    padding: 4px 8px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  }

  .navlist a{ padding: 4px 8px; display: block; font-size: 0.92rem; white-space: nowrap }
  .navlist a:hover{ text-decoration: underline }

  /* sidebar brand (shown inside sidebar) */
  .nav-list .nav-brand, .nav-brand{ display: none }
  .navlist.sidebar-open .nav-brand{ display: block }
  .sidebar-logo{ font-size: 1.15rem; font-weight:700; display:inline-block; padding: 6px 0 }


  /* ensure content stacks vertically under header (mobile vertical-only) */
  .home{ display:flex; flex-direction: column; align-items: flex-start; padding: 72px 6% 28px; gap: 0.8rem }
  .home-content{ order: 1; width:100%; max-width:none; margin-bottom: 0.6rem; text-align: left }
  .home-content h1{ font-size: 1.45rem; line-height:1.15 }
  .change-text{ font-size: 1.05rem }
  .change-text h3{ height: 1.9rem }

  /* feature image sits below content (move much further below the buttons) */
  /* desktop-only hero shown below home content on wider screens */
  .home-img{ order: 2; display: none; max-width: 360px; margin: 32px auto 0; position: static }
  .home-img .img-box { max-width: 360px; margin: 0 auto }
  .home-img img{ width: 100%; height: auto; border-radius: 14px }

  /* desktop rules were moved to a top-level media query to avoid nesting issues */

  /* inline profile image: hidden on desktop, visible on small screens */
  .profile-inline{ display: none; margin: 10px 0 6px }
  .profile-inline img{ display:block; width: 100%; max-width: 260px; height: auto; border-radius: 12px; margin: 0.4rem auto 0 }

  /* show compact inline image on small screens only */
  @media (max-width: 767px) {
    .profile-inline{ display: block !important }
    .profile-inline img{ max-width: 160px }
  }

  /* extra small exact device tweak */
  @media (width: 360px) and (height: 869px) {
    .profile-inline img{ max-width: 140px }
  }

  /* main blob removed from home */
  .home-img .liquid-shape{ display: none; }
  .home-img .liquid-shape svg{ display: none; }

/* DESKTOP: ensure only the right-side hero image is shown on larger screens and hide the inline mobile image */
@media (min-width: 768px) {
  .home-img.desktop-only { display: block !important; }
  .profile-inline.mobile-only, .profile-inline.mobile-only img { display: none !important; }
  /* Extra safeguard: hide any inline profile markup on desktop to avoid duplicates */
  .profile-inline { display: none !important; }
}

  /* shrink about mini-blobs and position them above the about image */
  .info-about1,
  .info-about2,
  .info-about3{
    position: relative !important;
    order: 1;
    width: 78px;
    height: 78px;
    padding: 6px;
    font-size: 0.72rem;
    border-radius: 50%;
    box-shadow: none;
    border-width: 2px;
    margin: 0 8px 8px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    animation: none;
  }

  .info-about1 h2,
  .info-about2 h2,
  .info-about3 h2 { font-size: 0.95rem; margin: 0 }
  .info-about1 p,
  .info-about2 p,
  .info-about3 p { font-size: 0.68rem; margin: 0 }

  /* make img-about a wrap container: circles first then full-width image below */
  .about .img-about{ order:2; display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap: 8px }
  .about .img-about img{ order: 2; flex-basis: 100%; max-width: 240px; align-self: center }

  /* === GLOBAL IMAGE VISIBILITY RULES === */
.profile-inline.mobile-only {
    display: none;
}

.home-img.desktop-only {
    display: block;
} 

  /* about: force content first, image below */
  .about{ display:flex; flex-direction: column; align-items: flex-start; padding: 56px 6% }
  .about-content{ order:1; width:100% }
  .about-content span{ display:block; margin-bottom:.45rem; font-size: .82rem }
  .about-content h2{ font-size: 1.3rem; margin-bottom: .45rem }
  .about-content p{ margin-bottom: 1.2rem; line-height:1.6; font-size: .92rem }
  .img-about{ order:2; align-self: center; margin-top: .6rem }
  .about .img-about img{ max-width: 220px }

  /* info and buttons full width */
  .info-box{ width: 100%; flex-direction: column; align-items: flex-start; gap: .45rem }
  .info-box div{ width: 100% }
  .info-box span{ display: inline-block; font-size: .9rem }

  .btn-box{ flex-direction: column; gap: 0.45rem; width: 100% }
  .btn-box .btn{ width: 100%; height: 42px; font-size: .9rem }

  /* featured project images resize */
  .portfolio-item{ max-width: 92%; margin: 0 auto }
  .portfolio-item img{ height: 180px }

  /* inline profile image styling */
  .profile-inline img{ display:block; width: 100%; max-width: 260px; border-radius: 12px; margin: 8px auto }

  /* about info-row: ensure 3 circles are visible and centered */
  .img-about .info-row{ display:flex; gap: 10px; justify-content:center; align-items:center; width:100%; margin-bottom: 12px }
  .img-about .info-row .info-about1, .img-about .info-row .info-about2, .img-about .info-row .info-about3{ position: relative !important; margin: 0; }
  .img-about .info-row .info-about1 h2, .img-about .info-row .info-about2 h2, .img-about .info-row .info-about3 h2{ font-size: 1rem }

  /* force multi-column sections to stack on mobile */
  .section-services{ display: flex; flex-direction: column; gap: 1rem }
  .section-services .service-box{ width: 100%; padding: 1rem }
  .skill-main{ grid-template-columns: 1fr; grid-row-gap: 18px; grid-column-gap: 0 }
  .professional{ grid-template-columns: 1fr; gap: 2rem }
  .portfolio-item, .service-box, .professional .box{ align-items: stretch }
}

/* optional: fine-tune exact 374x869 device */
@media (width: 374px) and (height: 869px) {
  .home{ padding-top: 64px }
  .about-content h2{ font-size: 1.5rem }
  .home-content h1{ font-size: 1.45rem }
  .portfolio-item img{ height: 200px }
}

/* exact 360x869 device: further shrink to fit */
@media (width: 360px) and (height: 869px) {
  body{ font-size: 13px }
  header{ height: 52px; padding-left: 8px; padding-right: 8px }
  .logo{ font-size: 0.98rem }
  .home{ padding-top: 60px }
  .home-content h1{ font-size: 1.28rem }
  .change-text{ font-size: 0.98rem }
  .home-img{ max-width: 190px; margin-top: 24px }
  .home-img .liquid-shape{ width: 140px; margin-top: 8px }
  .about{ padding: 44px 6% }
  .about-content h2{ font-size: 1.18rem }
  .about p{ font-size: .86rem }
  .portfolio-item img{ height: 150px }

  /* about blobs slightly smaller for 360 exact */
  .info-about1, .info-about2, .info-about3{
    width: 84px; height: 84px; padding: 7px; font-size: 0.72rem
  }
}

.portfolio-overlay p {
    margin: 0.8rem 0 1rem;
    color: #fff;
    line-height: 1.5;
}

.view-project {
    background: #fff;
    color: #000;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 600;
    width: fit-content;
}

/* GRID PROJECTS */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 2px solid var(--hover-color);
    box-shadow: var(--neon-box-shadow);
}

.portfolio-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover img {
    transform: scale(1.1);
}

.portfolio-featured {
    cursor: pointer;
}

.portfolio-featured::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    box-shadow: 0 0 25px rgba(18, 247, 255, 0.4);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-featured:hover::after {
    opacity: 1;
}

.portfolio-card {
    cursor: pointer;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-card:hover .card-overlay {
    opacity: 1;
}

.portfolio-card:hover {
    box-shadow: 0 0 20px rgba(18, 247, 255, 0.6);
}

.card-overlay h4 {
    color: var(--hover-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card-overlay p {
    color: #fff;
    font-size: 0.9rem;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-card:hover .card-overlay {
    opacity: 1;
}

.card-overlay h4 {
    color: var(--hover-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card-overlay p {
    font-size: 0.9rem;
    color: #fff;
}

.portfolio-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px; 
  margin-top: 50px;
}

.portfolio-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;         /* let each item stretch */
  max-width: 1100px;   /* same max width for both projects */
}

.portfolio-item img {
  width: 100%;
  height: 380px;
  border-radius: 20px;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid var(--hover-color);
  box-shadow: var(--neon-box-shadow);
}

.portfolio-description {
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
}

.port-box {
    border-radius: 15px;
    overflow: hidden;
    background: #292e33;
    display: flex;
    grid-template-columns: 1fr auto;
    align-items: center;
    border: 2px solid var(--hover-color);
    box-shadow: var(--neon-box-shadow);
}

.port-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.port-image img {
    width: 100%;
    opacity: 0.5s;
    height: 100%;
    transition: 0.5s;
}

.port-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.2), #12f7ff);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    transition: 0.5s;
    padding: 0 2rem;
}

.port-box:hover .port-content {
    opacity: 1;
}

.port-box:hover .port-image img {
    transform: scale(1.1);
}

.port-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.port-content p {
    font-size: 0.8rem;
    margin: 5px 0 15px 0;
}

.port-content a {
    background: #fff;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border: 1px solid var(--hover-color);
    outline: 2px solid #fff;
}

.port-content a i {
    font-size: 1.3rem;
    color: var(--secon-bg-color);
}

.contact {
    border-top: 3px solid var(--hover-color);
    position: relative;
    background: #6c6b6e !important;
    width: 100%;
    min-height: 100vh;
    color: #fff;
    padding: 80px 10%;
    overflow: hidden;
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-container h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--hover-color); 
    text-shadow: none;
}

.contact-container span {
    display: block;
    margin-top: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 400;
    color: #fff; 
    letter-spacing: 1px;
    text-transform: uppercase;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px; 
    margin-top: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.form-status {
    margin-top: 15px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-status.success {
    color: #4dff9a; /* soft green */
    opacity: 1;
    transform: translateY(0);
}

.form-status.error {
    color: #ff6b6b; /* soft red */
    opacity: 1;
    transform: translateY(0);
} 

.contact-form input,
.contact-form textarea {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: #f5f5f5;
    background-color: #534196;
    border: 2px solid var(--hover-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    width: 100%;
    outline: none;
    box-sizing: border-box;
    transition: 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    box-shadow: 0 0 15px var(--hover-color), 0 0 30px var(--hover-color);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #f0e6ff;
    opacity: 0.8;
}

.contact-form textarea {
    resize: none;
}

.contact-form button:hover {
  background: #0dc0cc;
}

.formBtn {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
}

.formBtn .btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 12px 30px;
    min-width: 180px;
    height: 45px;
    background: var(--hover-color);
    color: var(--bg-color);
    font-family: 'Poppins', sans-serif;   
    font-size: 1rem;
    letter-spacing: 1px;
    font-weight: 600;
    transition: 0.6s;
    box-shadow: var(--neon-box-shadow);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 2px solid var(--hover-color);
    cursor: pointer;
}

.formBtn .btn:hover {
    color: var(--hover-color);
}

.formBtn .btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    background: var(--bg-color);
    width: 0;
    height: 100%;
    z-index: -1;
    transition: 0.4s;
}

.formBtn .btn:hover::before {
    width: 100%;
}

footer {
    background-color: var(--bg-color);
    color: #ffffff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
    border-top: 1px solid var(--secon-bg-color);
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.3);
}

footer p {
    color: #ffffff;
}

footer a {
    display: inline-flex;
    justify-content: center;
    color: var(--text-color);
    background: var(--hover-color);
    padding: 0.6rem;
    border-radius: 5px;
}

footer a i {
    font-size: 1rem;
    color: var(--secon-bg-color);
}

@media (max-width: 768px) {
    .img-box {
        width: 300px; 
    }
    .img-box img {
        max-width: 300px;
    }
    .liquid-shape {
        width: 220%;
    }
    .professional {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        justify-items: center;
    }
    .professional .circle {
        width: 130px;
        height: 130px;
    }
    .professional .circle-label {
        margin-top: 18px;
        font-size: 0.95rem;
    }
}

/* === MOBILE IMAGE OVERRIDES === */
@media (max-width: 767px) {
    .profile-inline.mobile-only {
        display: block !important;
    }

    .home-img.desktop-only {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .professional {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@keyframes morph{
    0%,
    100%{
        border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%;
    }
    30%{
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
    }
    60%{
        border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
    }
    80%{
        border-radius: 69% 31% 66% 34% / 21% 30% 70% 79%;
    }
}

@keyframes python{
    0%{
        width: 0%
    }
    100%{
        width: 96%;
    }
}

@keyframes javascript{
    0%{
        width: 0%
    }
    100%{
        width: 88%;
    }
}

@keyframes html{
    0%{
        width: 0%
    }
    100%{
        width: 85%;
    }
}

@keyframes css{
    0%{
        width: 0%
    }
    100%{
        width: 80%;
    }
}

@keyframes glow{
    0%{
        background: var(--bg-color);
        box-shadow: none;
    }
    100%{
        background: var(--hover-color);
        box-shadow: var(--neon-box-shadow);
    }
}
