:root {
    --accent: #333366;
    --accent-light: #E8E8F5;
    --bg-primary: #F5F6FA;
    --bg-glass-base: rgba(245, 246, 250, 0.8);
    --text-primary: #1F1F2E;
    --text-secondary: #5C5C80;
    --accent-gradient: linear-gradient(135deg, #333366, #6666CC);
    --sidebar-width-desktop: 300px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    padding: 2rem 1rem;
    overflow-x: hidden;
    -ms-overflow-style: none;
}

body::-webkit-scrollbar {
    display: none;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

.portfolio-grid {
    position: relative;
    z-index: 1;
}

.portfolio-grid {
    max-width: 1400px;
    margin: auto;
    display: grid;
    grid-template-columns: var(--sidebar-width-desktop) 1fr;
    gap: 25px;
    align-items: start;
}

.glass-card {
    background-color: var(--bg-glass-base);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    border-radius: 16px;
}

.sidebar-card {
    padding: 1rem 2rem;
    position: sticky;
    top: 2rem;
    height: calc(100vh - 4rem);
    overflow-y: auto;
    scrollbar-width: none;
    animation: slideInLeft 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.sidebar-card::-webkit-scrollbar {
    display: none;
}

.main-content-card {
    padding: 3rem;
}

.tabs-card {
  position: sticky;
  top: 1.5rem;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 1rem 1.5rem;
  gap: 1rem;
  background: var(--bg-glass-base);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);

}

/* --- IMAGE SIDE (visible only on laptop+) --- */
.image-side {
  position: fixed;
  left: 0px !important;
  top: 60%;
  transform: translateY(-50%);
  width: 160px;
  height: 120px;
  z-index: 5;
}

.image-side img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: floatInfinite 6s ease-in-out infinite;
}

/* --- NAVIGATION WRAPPER --- */
.nav-tabs-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  background-color: var(--accent-light);
  border-radius: 10px;
  padding: 4px;
  gap: 4px;
}

/* --- TAB LINKS --- */
.nav-link {
  position: relative;
  z-index: 2;
  cursor: pointer;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: color 0.3s ease, background 0.3s ease;
}
.nav-link.active { color: white; background: var(--accent-gradient); }
.nav-link:not(.active):hover { color: var(--accent); }

/* --- TAB INDICATOR --- */
.tab-indicator {
  display: none; /* hide since gradient on active tab handles highlight */
}

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

.right-column-wrapper {
    animation: slideInRight 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* --- Animations & Transitions --- */
@keyframes slideInLeft { from { transform: translateX(-100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes slideInRight { from { transform: translateX(100px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeInUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes pulse-border { 0% { box-shadow: 0 0 0 0 rgba(51, 51, 102, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(51, 51, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(51, 51, 102, 0); } }

.tab-content {
    animation: fadeInUp 0.5s ease-out;
}

.avatar-container {
    /* border-color: var(--accent); */
    animation: pulse-border 2.5s infinite;
}

.accent-line {
    background: var(--accent-gradient);
    display: block;
    width: 70px;
    height: 5px;
    border-radius: 3px;
    margin-top: 6px;
}

.job-title-pill {
    background-color: var(--accent-light);
    color: var(--accent);
    letter-spacing: 0.05em;
    font-weight: 500;
}

/* --- Navigation Tabs --- */
.nav-tabs-wrapper {
    position: relative;
    display: inline-flex;
    padding: 4px;
    border-radius: 10px;
}

.tab-indicator {
    position: absolute;
    top: 4px;
    height: calc(100% - 8px);
    background: var(--accent-gradient);
    border-radius: 0.75rem;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(51, 51, 102, 0.25);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-link {
    position: relative;
    z-index: 2;
    cursor: pointer;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: color 0.3s ease;
}

.nav-link.active { color: white; }
.nav-link:not(.active):hover { color: var(--accent); }

/* --- Social Link Hover --- */
.social-link {
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    color: var(--accent);
    transform: translateY(-3px) scale(1.1);
}

/* --- Progress Bar Styles --- */
.skill-progress-bg {
    background-color: var(--accent-light);
    border-radius: 0.5rem;
    height: 8px;
    width: 100%;
    overflow: hidden;
}

.skill-progress-fill {
    background: var(--accent);
    width: 0;
    height: 100%;
    border-radius: 0.5rem;
    transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Journey & Service Tab Styles --- */
.journey-filter-wrapper {
    background-color: var(--accent-light);
    border-radius: 0.75rem;
    padding: 0.5rem;
    display: inline-flex;
    margin-bottom: 2.5rem;
}

.journey-filter-btn {
    border: none;
    background-color: transparent;
    color: var(--text-secondary);
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.journey-filter-btn.active {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(51, 51, 102, 0.3);
}

.journey-card,
.service-card-new {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    border-left: 4px solid var(--accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.journey-card:hover,
.service-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(51, 51, 102, 0.1);
}

/* --- Project Card & Filter Styles --- */
.project-filter-wrapper {
    background-color: var(--accent-light);
    border-radius: 0.75rem;
    padding: 0.5rem;
    display: inline-flex;
}

.project-filter-btn {
    border: none;
    background-color: transparent;
    color: var(--text-secondary);
    padding: 0.6rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-filter-btn.active {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(51, 51, 102, 0.3);
}

.project-card {
    background-color: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(51, 51, 102, 0.15);
}

/* === CSS FIX FOR PROJECT IMAGES === */
.project-image-wrapper {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9; /* Ensures a consistent 16:9 ratio for all image containers */
    background-color: var(--accent-light); 
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents image stretching by cropping to fit */
    transition: transform 0.4s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to top, rgba(51, 51, 102, 0.9), rgba(102, 102, 204, 0.5));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    color: var(--accent);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.project-link:hover {
    transform: scale(1.1);
}

.project-tag {
    display: inline-block;
    background-color: var(--accent-light);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* --- Contact Card Styles --- */
.contact-card {
    background-color: #ffffff;
    padding: 2.5rem 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    border-top: 4px solid var(--accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(51, 51, 102, 0.15);
}

.sidebar-card {
    max-width: 350px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    transition: all 0.3s ease;
}

.avatar-container {
    width: 12rem;
    height: 12rem;
    min-width: 150px;
    min-height: 150px;
    max-width: 200px;
    max-height: 200px;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 40%;
    transition: transform 0.4s ease;
}

.avatar-container img:hover {
    transform: scale(1.05);
}

/* Name & Title */
.sidebar-card h1 {
    font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.job-title-pill {
    font-size: clamp(0.7rem, 1vw, 0.85rem);
}

/* Paragraph */
.sidebar-card p {
    font-size: clamp(0.8rem, 1vw, 1rem);
    line-height: 1.5;
}

/* Buttons */
.sidebar-card .flex.w-full.gap-4.mb-4 a {
    font-size: clamp(0.85rem, 1vw, 1rem);
    padding: 0.8rem;
}

.sidebar-card .social-link i {
    width: clamp(1.2rem, 1.5vw, 1.5rem);
    height: clamp(1.2rem, 1.5vw, 1.5rem);
    transition: transform 0.3s ease, color 0.3s ease;
}

.sidebar-card .social-link:hover i {
    transform: scale(1.1);
    color: var(--accent);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1300px) and (min-width: 1025px) {
    :root {
        --sidebar-width-desktop: 280px;
    }
    .portfolio-grid {
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sidebar-card,
    .tabs-card {
        position: relative;
        top: 0;
    }

    .sidebar-card {
        height: auto;
        padding: 1.5rem;
        max-width: 1000px;
        padding: 1.5rem;
    }

    .avatar-container {
        width: 10rem;
        height: 10rem;
    }
    .main-content-card{
        padding: 1.5rem;
    }

    .tabs-card {
        padding: 16px;
    }
    
    .tabs-card {
          justify-content: center;
    }

    body {
        padding: 1rem;
    }

    .nav-tabs-wrapper {
        justify-content: center;
        flex-wrap: wrap;
    }
    .nav-tabs-wrapper .nav-link {
        margin-bottom: 0.25rem;
    }
}

@media (min-width: 1100px) {
    .avatar-container.w-48.h-48.rounded-full.overflow-hidden.mb-1.border-4.shadow-xl {
        height: 11rem;
        width: 11rem;
        margin-bottom: -5px;
    }
    .flex.w-full.gap-4.mb-8 {
        margin-bottom: 25px !important;
    }
}

@media (min-width:1400px) {
    .sidebar-card {
        padding: 30px 2rem;
    }
    h1.text-3xl.font-bold.mb-4.mt-4.text-center {
        margin-top: 2rem;
    }
     
}

@media (max-width: 768px) {
    .tab-indicator {
        /* position: absolute;
        top: 4px; */
        height: calc(100% - 8px) !important;
    }
    .sidebar-card {
        max-width: 1000px;
    }
    .avatar-container {
        width: 9rem;
        height: 9rem;
    }
    .sidebar-card p {
        font-size: 18px;
    }
    h1.text-3xl.font-bold.mb-4.mt-4.text-center {
        font-size: 30px;
    }
    p.text-lg.text-\[var\(--text-secondary\)\] {
        margin-top: 0px;
    }

    a.w-full.text-center.py-3.rounded-xl.font-semibold.text-white.transition-all.shadow-lg.hover\:shadow-xl {
        font-size: 18px;
    }
    a.w-full.text-center.py-3.rounded-xl.font-semibold.border-2.border-\[var\(--accent\)\].text-\[var\(--accent\)\].hover\:bg-\[var\(--accent\)\].hover\:text-white.transition-all {
        font-size: 17px;
    }

    .tabs-card {
  position: sticky;
  z-index: 50;
  display: flex;
  align-items: center; 
  position: relative;
}

/* Hide image completely */
.image-side {
  display: none;
}

.image-side img {
  display: none;
}

    .service-card-new.flex.items-start.space-x-4 {
        display: flex;
        flex-wrap: wrap;
        align-content: center;
        justify-content: flex-start;
        align-items: center;
        padding: 20px;
    }

    .service-card-work-here {
        margin-left: 0px !important;
    }

    h4.text-xl.font-bold.text-\[var\(--text-primary\)\].mb-1 {
        font-size: 22px;
    }
    
    p.text-\[var\(--text-secondary\)\] {
        font-size: 16px;
        margin-top: 10px;
    }

    svg[data-lucide="globe"],
    svg[data-lucide="tablet-smartphone"],
    svg[data-lucide="layout-template"],
    svg[data-lucide="toy-brick"],
    svg[data-lucide="shopping-cart"],
    svg[data-lucide="gauge-circle"],
    svg[data-lucide="wrench"] {
        width: 40px !important;
        height: 40px !important;
        margin-bottom: 12px;
        flex-shrink: 0;
    }
    .journey-filter-wrapper {
        display: inline-flex;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    .project-filter-wrapper {
        background-color: var(--accent-light);
        border-radius: 0.75rem;
        padding: 0.5rem;
        display: inline-flex;
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
.sidebar-card {
    max-width: 1000px;
    padding: 1rem;
}
.avatar-container {
    width: 8rem;
    height: 8rem;
}
.sidebar-card h1 {
    font-size: 2.25rem;
}
.sidebar-card .flex.w-full.gap-4.mb-4 a {
    font-size: 0.8rem;
    padding: 0.6rem;
}
.sidebar-card .social-link i {
    width: 1.25rem;
    height: 1.25rem;
}
    .tab-indicator {
        height: calc(35% - 8px) !important;
    }
}


button:focus-visible {
    outline: none !important;
}

/* ✅ TABLET (<=1024px) */
@media (max-width: 1024px) {
  .tabs-card {
    justify-content: center;
    position: relative;
    top: 0;
    padding: 1rem;
  }

  .image-side {
    display: none;
  }

  .nav-tabs-wrapper {
    justify-content: center;
    flex-wrap: wrap;
    background: transparent;
    gap: 0.5rem;
  }

    .nav-link {
        padding: 10px 10px;
        font-size: 15px;
        border-radius: 8px;
    }
}

/* ✅ MOBILE (<=768px) */
@media (max-width: 768px) {
  .tabs-card {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .nav-tabs-wrapper {
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 0.4rem;
  }

  .nav-link {
    flex: 1 1 auto;
    text-align: center;
    font-size: 0.85rem;
  }
}

/* ✅ SMALL MOBILE (<=480px) */
@media (max-width: 480px) {
  .tabs-card {
    padding: 0.5rem;
  }

    .nav-link {
        padding: 10px 10px;
        font-size: 15px;
        border-radius: 8px;
    }
}
