* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter',sans-serif;
    text-decoration: none;
    list-style: none;
    scroll-behavior: smooth;
}
:root {
--text-color:#fff;
--bg-color:#1b1f24;
--second-bg-color:#22282f;
--main-color:#13bbff;
--other-color:#c3cad5;

--h1-font:4.5rem;
--h2-font:2.9rem;
--p-font:1rem;
}
body {
    color: var(--text-color);
    background: var(--bg-color);
    margin: 0;
    padding-top: 100px; /* Adjust based on the height of your navbar */
    overflow-x: hidden; /* Prevent horizontal scrolling on the entire page */
}
/* header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 16%;
    background: transparent;
    transition: all .50s ease;
} */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between; /* Spread items across the navbar */
    z-index: 1000; /* Ensure navbar is above all elements */
    background: var(--bg-color); /* Use your background color */
    padding: 10px 8%; 
    /* padding-top: 0px;  */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Optional for subtle shadow */
    transition: all 0.5s ease-in-out; /* Smooth transition for hover or sticky effects */
}
.logo {
    font-size: 36px;
    color: var(--text-color);
    font-weight: 600;
}

.logo::after {
    content: '';
    display: block;
    height: 4px;
    background-color: var(--main-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
}

.logo:hover::after {
    transform: scaleX(1);
    transform-origin: left;
    border-radius: 5px;
}

span {
    color: var(--main-color);
}

.navlist {
    display: flex;
    gap: 3rem;
}
.navlist a {
    font-size: var(--p-font);
    font-weight: 500;
    color: var(--other-color);
    position: relative;
    /* padding: 10px 5px; */
    transition: all .50s ease;
}

.navlist li:first-child {
    margin-left: 0; /* Remove left margin from the first item */
}
.navlist a:hover {
    color: var(--main-color);
    text-shadow: 3px 3px 20px var(--main-color), -2px 1px 30px var(--text-color);
    border-radius: 5px;
}

.navlist a::after {
    content: '';
    display: block;
    left: 0;
    bottom: -2px;
    height: 4px;
    width: 100%;
    background-color: var(--main-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease;
    border-radius: 5px;
}

.navlist a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

#menu-icon {
    font-size: 35px;
    z-index: 10001;
    padding-left: 20px;
    padding-right: 20px;
    cursor: pointer;
    display: none;
}
.h-btn {
    display: inline-block;
    padding: 11px 26px;
    background:transparent ;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all .50s ease;
}
.h-btn:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--main-color);
    transform: scale(1.1);
}
section {
    padding: 110px 16% 90px;
}

/* CSS for Waving Emoji */
.wave-emoji {
    display: inline-block;
    animation: wave 1s infinite; /* Adjust duration as needed */
}
  
@keyframes wave {
    0% { transform: rotate(0deg); }
    20% { transform: rotate(-15deg); }
    40% { transform: rotate(10deg); }
    60% { transform: rotate(-10deg); }
    80% { transform: rotate(5deg); }
    100% { transform: rotate(0deg); }
}

.hero {
    height: 100vh;
    width: 100%;
    background: url(./img/background.png);
    background-position: top right;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.main-content h4 {

    font-size: 1.6rem;
}
.main-content h1 {
    font-size: var(--h1-font);
    font-weight: 900;
    margin: 20px 0px 20px;
    line-height: 1.2;
}
.main-content p {
    font-size: var(--p-font);
    font-weight: 400;
    width: 620px;
    max-width: 100%;
    color: var(--other-color);line-height: 30px;
    margin-bottom: 15px;

}

.social {
    margin-bottom: 40px;
}
.social i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--main-color);
    border-radius: 50%;
    backdrop-filter: brightness(88%);
    font-size: 20px;
    margin-right: 17px;
    box-shadow: 0 0 20px transparent;
    cursor: pointer;
    transition: all .50s ease;
}
.social i:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--main-color);
}

#github-home-icon #linkedin-home-icon {
    margin-bottom: 40px;
}
#github-home-icon #linkedin-home-icon{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--main-color);
    border-radius: 50%;
    backdrop-filter: brightness(88%);
    font-size: 20px;
    margin-right: 17px;
    box-shadow: 0 0 20px transparent;
    cursor: pointer;
    transition: all .50s ease;
}
#github-home-icon #linkedin-home-icon{
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--main-color);
}


.btn {
    display: inline-block;
    padding: 11px 26px;
    background:var(--main-color) ;
    color: var(--bg-color);
    border: 2px solid var(--main-color);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all .50s ease;
}
.btn:hover {
    background: transparent;
    color: var(--main-color);
    box-shadow: 0 0 20px var(--main-color);
}
.btn2 {
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    margin-left: 15px;
    transition: all .50s ease;
}
.btn2:hover {
    background: var(--main-color);
    color: var(--bg-color);
}
header.sticky {
    background: var(--bg-color);
    box-shadow: 0 .1rem 1rem rgba(0,0,0,.2);
    /* padding: 16px 16%; */
    padding: 14px 8%; /* Adjust spacing for when scrolling */
    /* padding-top: 40px; Adjust padding for sticky navbar */
}
.about {
    background: var(--second-bg-color);
    display: grid;
    grid-template-columns: repeat(2,1fr);
    align-items: center;
    gap: 1rem;
}
.about-img img {
    width: 100%;
    height: 400px;
    max-width: 400px;
    border-radius: 50%;
    object-fit: cover;
    border: 7px solid var(--main-color);
    box-shadow: 0 0 20px var(--main-color);
}
.about-text h2 {
    font-size: var(--h2-font);
    line-height: 1.3;
    margin-bottom: 20px;
}
.exp-area {
    margin-bottom: 50px;
}
.exp-area p {
    color: var(--text-color);
    font-weight: 600;
    font-size: 19px;

    line-height: 42px;
}
.exp-area p span {
    color: var(--other-color);
    font-size: var(--p-font);
    font-weight:400 ;
    margin-left: 8px ;
}
.center-text {
    text-align: center;
}
.center-text h2 {
    font-size: var(--h2-font);
    margin-bottom: 1rem;
}

/* General Skills Content */
.skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, max-content)); /* Compact layout based on icon size */
    gap: 1.5rem; /* Consistent spacing between icons */
    justify-content: center; /* Centers the grid horizontally */
    align-items: center;
    justify-items: center; /* Centers items within the grid */
    margin-top: 1.5rem; /* Adjusted spacing above the grid */
    margin-bottom: 1.5rem; /* Adjusted spacing below the grid */
}

/* Individual Skill Boxes */
.skills-content .box {
    width: 120px; /* Consistent box size */
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
    text-align: center; /* Center text within the box */
    transition: transform 0.2s ease, box-shadow 0.2s ease; /* Add hover effect */
}

/* Hover Effect */
.skills-content .box:hover {
    transform: scale(1.05); /* Slight zoom on hover */
    box-shadow: 0px 4px 15px rgba(19, 187, 255, 0.4); /* Glow effect */
    cursor: default;
}

/* Skill Icons */
.skills-content .box img {
    width: 60px; /* Icon size */
    height: 60px;
    margin-bottom: 0.5rem; /* Space between icon and text */
    object-fit: contain;
}

/* Skill Names */
.skills-content .box h3 {
    font-size: 14px; /* Slightly larger text size */
    color: var(--main-color); /* Consistent blue color */
    margin: 0;
    line-height: 1.2; /* Ensure proper spacing */
    display: block;
    font-weight: bold; /* Emphasize text */
}

/* Section Titles */
.section-title {
    font-size: 1.8rem; /* Adjusted size for better visibility */
    color: var(--main-color); /* Consistent blue color */
    margin-bottom: 1rem;
    text-align: center;
    /*text-transform: uppercase;  Capitalize section titles */
    font-weight: bold;
    letter-spacing: 1px; /* Add spacing between letters */
    transition: all .50s ease;
}

/* Align Section Layout */
.skills-section {
    margin-bottom: 2rem; /* Reduced spacing between sections */
    text-align: center; /* Center-align section title and grid */
}


.box {
    padding: 80px 40px 66px;
    background: #2d343f;
    border-radius: 28px;
    border: 1px solid transparent;
    box-shadow:  0 0 5px var(--main-color);
    transition: all .50s ease;
    cursor: pointer;
}
.box img {
    margin-bottom: 20px;
}
.box h3 {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 10px;
}
.box p {
    font-size: var(--p-font);
    font-weight: 400;
    color: var(--other-color);
    line-height: 30px;
    margin-bottom: 20px;
}
.box a {
    display: inline-block;
    font-size: 22px;
    line-height: 1.273em;
    font-weight: 700;
    padding: 7px 0;
    color: var(--text-color);
    border-bottom: 2px solid #5d6c83;
    transition:  all .50s ease;
}
.box i {
    vertical-align: middle;
    font-size: 25px;
    color: var(--main-color);
    margin-left: 5px;
}
.box a:hover {
    border-bottom: 2px solid var(--main-color);
}
.box:hover {
    border: 1px solid var(--main-color);
    transform: translateY(-5px) scale(1.03);
}
.projects {
    background: var(--second-bg-color);
    margin: 0 auto; 
    overflow: hidden;
}
.Projects-content {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(400px,1fr));
    align-items: center;
    gap: 2.3rem;
    margin-top: 4.2rem;
    width: 100%;
}

/* === Projects: fly-in/out animations (desktop only) === */
.row.proj-anim{
  opacity: 0;
  /* separate translate so it doesn't fight your :hover scale */
  translate: var(--tx, 0) var(--ty, 0);
  transition:
    translate 700ms cubic-bezier(.15,.9,.16,1),
    opacity 600ms ease;
  will-change: translate, opacity;
}

/* when the section is in view */
.row.proj-anim.is-in{
  opacity: 1;
  translate: 0 0;
}

/* mobile / reduced motion: static */
@media (max-width: 768px){
  .row.proj-anim{
    opacity: 1 !important;
    translate: 0 0 !important;
    transition: none !important;
  }
}

/* General Card Styling */
.row {
    background: #2d343f;
    border-radius: 28px;
    border: 1px solid transparent;
    box-shadow: 0 0 5px var(--main-color);
    padding: 16px;
    transition: all 0.5s ease;
    position: relative;
    height: auto; /* Dynamic height */
    width: 100%;
    box-style: border-box;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;

}

/* Hover Effect for Entire Card */
.row:hover {
    border: 1px solid var(--main-color);
    transform: scale(1.05); /* Slight lift and scale */
    box-shadow: 0 0 15px var(--main-color); /* Glow effect */
}

/* Original image styling */
/*
.row img {
    height: auto;
    width: 100%;
    border-radius: 28px;
    margin-bottom: 1.4rem;
    object-fit: cover;
}
*/

.row img {
    width: 100%;
    aspect-ratio: 16 / 9; /* Maintains consistent rectangular shape */
    object-fit: cover;
    border-radius: 28px;
    margin-bottom: 1.4rem;
}


/* Header and Icon Row */
.main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.row h5 {
    font-size: 20px;
    font-weight: 600;
    color: var(--other-color);
    margin: 0;
}

/* Project Title */
.row h4 {
    font-size: 25px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-color);
    margin: 10px 0;
}

/* Description Text */
.row .description {
    font-size: 16px;
    color: var(--other-color);
    line-height: 1.6;
    opacity: 0;
    max-height: 0; /* Initially hidden */
    overflow: hidden;
    transform: translateY(20px); /* Hidden position */
    transition: opacity 0.5s ease, transform 0.5s ease, max-height 0.5s ease;
}

/* Show Description on Click */
.row.show-description .description {
    opacity: 1;
    transform: translateY(0); /* Move into view */
    max-height: 400px; /* Allow space for description */
}

/* GitHub Icon */
.github-icon, .netlify-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    aspect-ratio: 1;
    font-size: 27px;
    margin: 5px;
    border-radius: 50%;
    color: #fff;
    background: #075fe4;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0);
    cursor: pointer;
}

/* Ensure the text aligns properly */
.netlify-icon img {
    width: 30px; /* Icon size */
    height: auto; /* Maintain proportions */
    color: #fff;
    transform: translateY(10px);
  }

/* Icon Hover Effect */
.github-icon:hover, .netlify-icon:hover {
    box-shadow: 0 0 10px var(--main-color); /* Glow effect */
    transform: scale(1.1);
}

/* Remove Link Styling */
.github-icon:link,
.github-icon:visited,
.netlify-icon:link,
.netlify-icon:visited {
    color: #fff;
    text-decoration: none;
}

.description ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-top: 10px;
    color: #c3cad5;
}

.description ul li {
    line-height: 1.8;
    font-size: 16px;
}

.description span {
    color: #13bbff; /* Highlighted in blue */
    font-weight: bold;
}

/* Languages Section Inside Card */
.languages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, max-content)); /* Similar to skills-content */
    gap: 1rem; /* Consistent spacing between items */
    justify-content: center; /* Centers the grid horizontally */
    justify-items: center; /* Centers individual items within the grid */
    margin-top: 1rem; /* Add spacing above the grid */
    padding: 10px; /* Optional padding for aesthetics */
}

/* Individual Language Boxes */
.languages .box {
    width: 70px; /* Consistent box size */
    height: 70px; /* Consistent box size */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 10px; /* Rounded corners for a smooth look */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border for definition */
    text-align: center; /* Center text inside the box */
    background-color: #2d343f; /* Match card background */
    box-shadow: 0px 4px 15px rgba(19, 187, 255, 0.1); /* Subtle shadow for focus */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 5px; /* Add inner padding for the content */
}

/* Hover Effect for Language Boxes */
.languages .box:hover {
    transform: scale(1.1); /* Slight zoom */
    box-shadow: 0px 4px 15px rgba(19, 187, 255, 0.4); /* Glow effect */
    cursor: default;
}

/* Language Icons */
.languages .box img {
    width: 30px; /* Icon size */
    height: 30px;
    margin-bottom: 5px; /* Space between icon and text */
    object-fit: contain; /* Ensure icons don't stretch */
}

/* Language Titles */
.languages .box h3 {
    font-size: 12px; /* Slightly smaller text size */
    color: var(--main-color); /* Use consistent blue color */
    font-weight: bold;
    text-align: center;
    margin: 0;
    line-height: 1.2; /* Improve text spacing */
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

  
/* .row img {
    height: auto;
    width: 100%;
    border-radius: 28px;
    margin-bottom: 1.4rem;
}
.row {
    background: #2d343f;
    border-radius: 28px;
    border: 1px solid transparent;
    box-shadow: 0 0 5px var(--main-color);
    padding: 20px;
    transition: all .50s ease;
}
.main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .5rem;
}
.row h5 {
    font-size: 20px;
    font-weight: 600;
    color: var(--other-color);
}
.row i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 55px;
    height: 55px;
    font-size: 27px;
    border-radius: 50%;
    color: var(--text-color);
    background: #075fe4;
    
}
.row h4 {
    font-size: 25px;
    font-weight: 700;
    margin-bottom:10px;
    line-height: 1.4;
}
.row:hover {
    border: 1px solid var(--main-color);
    transform: translateY(-5px) scale(1.03);
    cursor: pointer;
} */
.contact-form {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4.2rem;
}
.contact-form form {
    position: relative;
    width: 600px;
}
form input,
form textarea {
    width: 100%;
    padding: 20px;
    border: none;
    outline: none;
    box-shadow: 0 0 5px var(--main-color);
    background: #2d343f;
    color: var(--text-color);
    margin-bottom: 20px;
    border-radius: 8px;
}
form input::placeholder,
form textarea::placeholder{
    color: var(--other-color);
    font-size: 15px;
}
form .send-btn {
    display: inline-block;
    padding: 11px 26px;
    background: var(--main-color);
    color: var(--bg-color);
    border: 2px solid var(--main-color);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all .50s ease;
    width: auto; /* Allow the button to adjust based on text length */
    max-width: 100%; /* Prevent overflow */
    text-align: center; /* Center-align the text */
    white-space: nowrap; /* Ensure text doesn't wrap */
}
form .send-btn:hover {
    background: transparent;
    color: var(--main-color);
    box-shadow: 0 0 20px var(--main-color);
    cursor: pointer;
}

.contact_message{
    display: inline-block;
    padding: 11px 26px;
    color: var(--main-color);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    transition: all .50s ease;
    width: auto; /* Allow the button to adjust based on text length */
    max-width: 100%; /* Prevent overflow */
    text-align: center; /* Center-align the text */
    white-space: nowrap; /* Ensure text doesn't wrap */
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;

}
.footer {
    padding: 22px 16%;
    background:var(--second-bg-color) ;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.copyright p{
    font-size: 15px;
    font-weight: 400;
    color: var(--other-color);
}
.scroll-top i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #075fe4;
    width: 45px;
    height: 45px;border-radius: 50%;
    color: var(--text-color);
    font-size: 27px;
}


:root{
  --wheel-size: min(76vmin, 680px);
  --ring-thickness: clamp(18px, 6vmin, 42px);
  --slice-gap: 2.5;
  --label-offset: 24px;
}

/* Wheel */
.skills-wheel{ position:relative; margin:60px auto 30px; width:var(--wheel-size); height:var(--wheel-size); isolation:isolate; user-select:none; }
.skills-wheel svg{ width:100%; height:100%; display:block; }

/* Title + small hover label stacked */
.wheel-center{
  position:absolute; inset:0;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:.35rem; pointer-events:none;
}
.wheel-center .title{
  font: 600 clamp(15px, 2.8vmin, 21px)/1.2 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto;
  color: var(--main-color);
  text-align:center;
  max-width:76%;
  text-wrap: balance;
}
.wheel-center .title.tight{
  font-weight: 600;
  font-size: clamp(14px, 2.4vmin, 19px);
  letter-spacing: .1px;
}
.wheel-center .title .mobile-break{ display:none; }
@media (max-width:560px){ .wheel-center .title .mobile-break{ display:block; height:.4rem; } }

/* small, muted hover label under title (gets the hovered slice color) */
.wheel-center .hover-title{
  font: 600 clamp(11px, 1.6vmin, 13px)/1 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto;
  color: var(--other-color);
  opacity: 0; transition: opacity .2s ease, color .15s ease;
}
.wheel-center .hover-title[data-show="1"]{ opacity: 1; }

/* Slices */
.slice{ cursor:pointer; }
.slice path.main{ fill:none; stroke-linecap:butt; transition:filter .2s ease, opacity .2s ease; }
.slice path.inner{ fill:none; opacity:0; transition: opacity .2s ease; }

/* Hover glow */
.slice:hover path.inner{ opacity:.35; }
.slice:hover path.main{
  filter:
    brightness(1.08) saturate(1.03)
    drop-shadow(0 0 6px var(--slice-color))
    drop-shadow(0 0 12px var(--slice-color));
}
/* Active (clicked) */
.slice[data-active="true"] path.inner{ opacity:.35; }
.slice[data-active="true"] path.main{ filter:brightness(1.06) saturate(1.02); }

/* Outside labels */
.slice-label{
  position:absolute; transform:translate(-50%,-50%) scale(.98);
  opacity:0; background:rgba(10,18,32,.88); color:#fff;
  border:1px solid rgba(255,255,255,.08); backdrop-filter:blur(8px);
  padding:.45rem .7rem; border-radius:12px; white-space:nowrap;
  font:600 13px/1.25 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto;
  box-shadow:0 8px 24px rgba(0,0,0,.35); pointer-events:none;
  transition:opacity .2s ease, transform .2s ease;
}
.slice:hover + .slice-label,
.slice[data-active="true"] + .slice-label{ opacity:1; transform:translate(-50%,-50%) scale(1); }

/* Center chips layer (click-through) */
.center-panel{ position:absolute; inset:0; z-index:3; pointer-events:none; }
.center-card{
  position:absolute; left:50%; top:50%; transform:translate(-50%,-50%);
  width: calc(var(--wheel-size) * .68);
  height: calc(var(--wheel-size) * .68);
  max-width:540px; max-height:540px; min-width:260px; min-height:260px;
  border-radius:50%;
  background: transparent;
  display:none;
  pointer-events:none;
}
@media (max-width:560px){
  .center-card{ width: calc(var(--wheel-size) * .72); height: calc(var(--wheel-size) * .72); }
}
.float-layer{ position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:100%; height:100%; pointer-events:none; }

/* Carrier starts at exact center and flies out */
.skill-float{
  position:absolute; left:50%; top:50%;
  transform: translate(-50%, -50%) scale(.25);
  transition: transform .6s cubic-bezier(.15,.9,.16,1);
}
.skill-float.entered{
  transform: translate(calc(-50% + var(--x)*1px), calc(-50% + var(--y)*1px)) scale(1);
}

/* Chip — text stays constant; icon/padding can shrink via CSS vars */
.chip{
  width: var(--chip-w, clamp(92px, 16vmin, 112px));
  padding: var(--chip-pad, 8px 8px 10px);
  border-radius: 14px;
  background: transparent !important;
  border: 1px solid transparent !important;
  display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
  box-shadow: none !important;
  animation: drift var(--t,6s) ease-in-out infinite; animation-delay: var(--delay,0ms);
}
.chip img{ width: var(--icon, 40px); height: var(--icon, 40px); object-fit:contain; margin-bottom:6px; }
.chip span{ font:700 13px/1.15 ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto; color:#fff; text-shadow:0 1px 2px rgba(0,0,0,.35); }

.chip:hover{
  outline: 1px dashed rgba(255,255,255,0.08);
  outline-offset: 2px;
}

@keyframes drift{
  0%{ transform: translate(0,0); }
  25%{ transform: translate(var(--ax,6px),0); }
  50%{ transform: translate(var(--ax,6px),var(--ay,6px)); }
  75%{ transform: translate(0,var(--ay,6px)); }
  100%{ transform: translate(0,0); }
}

/* Hide legacy grid once wheel is ready */
#skills[data-wheel-ready="true"] .skills-section {
  display: none !important;
}

/* Slogan base */
.slogan{
  font-size: clamp(1.5rem, 2.5vw, 1.8rem);
  font-weight: 600;
  letter-spacing: .2px;
  margin-top: .25rem;
}

/* Each character */
.slogan .char{
  display: inline-block;
  white-space: pre;                 /* preserves spaces */
  transform: translateX(-1em);
  color: var(--text-color);
  opacity: 0;
  filter: blur(4px);
  will-change: transform, opacity, filter;
}

/* Play state triggers the staggered reveal */
.slogan.play .char{
  animation: sloganCharIn .6s cubic-bezier(.2,.7,0,1) forwards;
  animation-delay: calc(var(--i) * 0.035s);  /* stagger left→right */
}

/* only “problem” and “product” go blue */
.slogan .char.accent { 
  color: var(--main-color);
  text-shadow: 0 0 12px rgba(19,187,255,.25);
}


/* Reduced motion = no animation */
@media (prefers-reduced-motion: reduce){
  .slogan .char{ animation: none !important; transform:none; opacity:1; filter:none; }
}

@keyframes sloganCharIn{
  0%   { transform: translateX(-1em); opacity: 0; filter: blur(4px); }
  100% { transform: translateX(0);    opacity: 1; filter: blur(0); }
}




/* About layout */
.about {
  background: var(--second-bg-color);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 2.2rem;
}

.about-img {
  display: grid;
  place-items: center;
}
.about-img img{
  width: 100%;
  height: 420px;
  max-width: 420px;
  object-fit: cover;
  border-radius: 50%;
  border: 7px solid var(--main-color);
  box-shadow: 0 0 20px var(--main-color);
}

/* Text block */
.about-text h2{
  font-size: var(--h2-font);
  line-height: 1.25;
  margin-bottom: 1rem;
}

/* Key/value list */
.info-list{
  list-style: none;
  margin: 0 0 1.25rem 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}
.info-list .label{
  font-weight: 700;
  color: var(--text-color);
  margin-right: .35rem;
}
.info-list .value{
  color: var(--other-color);
}
.info-list a.value{
  color: var(--other-color);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Education */
.edu-section h3{
  margin: .5rem 0 .75rem;
  font-size: 1.2rem;
  color: var(--text-color);
}
.edu-list{
  display: grid;
  gap: .75rem;
}
.edu-card{
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: .85rem;
  align-items: center;
  background: #2d343f;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  padding: .8rem .9rem;
  box-shadow: 0 0 5px rgba(0,0,0,.18);
}
.edu-logo{
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 10px;
  background: #1b1f24;
  padding: 6px;
}
.edu-meta .degree{ font-weight: 700; color: var(--text-color); }
.edu-meta .school{ color: var(--other-color); }
.edu-meta .dates { color: var(--other-color); opacity: .8; font-size: .95rem; }

/* Reveal animations (photo from left, text from right) */
.about-animate-left{
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity .6s ease, transform .6s ease;
}
.about-animate-left.is-in{
  opacity: 1; transform: none;
}
.reveal-item{
  opacity: 0;
  transform: translateX(50px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal-item.is-in{
  opacity: 1; transform: none;
}

/* Responsive */
@media (max-width:1240px){
  .about{ grid-template-columns: 1fr; }
  .about-img img{ height: 360px; max-width: 360px; }
}
@media (max-width:470px){
  .about-img img{ height: 300px; max-width: 300px; }
}



/* Hide the old list (uncomment to debug) */
/* .skills .skills-section{ display:none; } */

@media(max-width:1700px) {
    header {
        padding: 20px 8%;
    }
    header.sticky {
        padding: 14px 8%;
    }
    section{
        padding: 90px 8% 80px;
    }
    .footer {
        padding: 18px 8%;
    }
    .logo {
        font-size: 28px;
    }
}

@media(max-width:1380px) {
    header {
        padding: 20px 5%;
    }
    header.sticky {
        padding: 14px 5%;
    }
    section{
        padding: 90px 5% 80px;
    }
    .footer {
        padding: 18px 5%;
    }
    .hero {
        height: 90vh;
        background-position: center;
    }
}
@media (max-width:1290px){
    .box {
        padding: 40px 40px 46px;
    }
    .box img {
        width: 100%;
        height: 60px;
        max-width: 60px;
    }
    .box h3 {
        font-size: 21px;
    }
}

@media (max-width:1240px){
.about {
    grid-template-columns: 1fr;
    grid-area: 2rem;
    text-align: center;
}
.about-img img {
    text-align: center;
    width: 100%;
    height: 400px;
    max-width: 400px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
}
:root {
    --h1-font:4rem;
    --h2-font:2.2rem;
    --p-font:15px;
}
}

@media (max-width:950px){
    header {
        flex-wrap: wrap; /* Allow wrapping on smaller screens */
        /* justify-content: center; Center the items */
        /* padding-top: 40px; */
    }
    body {
        padding-top: 140px;
    }
    :root  {
        --h1-font:3.5rem;
    }
    .social {
        margin-bottom: 20px;
        
    }
    #menu-icon{
        display: block;
        padding: 10px 10px;

    }
    .navlist {
        position: absolute;
        top: 100%;
        right: -100%;
        width: 255px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        background: var(--bg-color);
        transition: all .50s ease;
    }
    .navlist a {
        display: block;
        padding: 17px;
        font-size: 22px;
    }
    .navlist.active {
        right: 0;
    }
}


@media (max-width: 768px) {
    .main-btn {
        display: flex;
        flex-direction: column; /* Stack the buttons vertically */
        align-items: center;    /* Center-align the buttons */
        gap: 10px;              /* Add spacing between buttons */
        margin-top: 20px;       /* Add some top margin */
    }

    .main-btn .btn {
        width: 80%;             /* Set button width for better visibility */
        padding: 12px;          /* Ensure consistent padding */
        text-align: center;     /* Center the text inside the button */
    }
     /* Instantly display all AOS-animated elements */
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .row {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
    
}


@media (max-width:680px) {
    .main-content p {
    width: 100%;
}
    
}


@media (max-width:560px){
  .center-card{ width: calc(var(--wheel-size) * .72); height: calc(var(--wheel-size) * .72); }
}

@media (max-width:470px) {
    :root {
        --h1-font:3rem;
        --h2-font:2rem;
    }
    .about-img img {
        text-align: center;
        width: 100%;
        height: 300px;
        max-width: 300px;
        border-radius: 50%;
        object-fit: cover;
        margin: 0 auto;
    }

    .projects {
        background: var(--second-bg-color);
        margin: 0 auto; 
        overflow: hidden;
    }
    .Projects-content {
        display: grid;
        grid-template-columns: repeat(auto-fit,minmax(330px,1fr));
        align-items: center;
        gap: 2.3rem;
        margin-top: 4.2rem;
    }
}
