/* ===== CSS VARIABLES ===== */

:root {
--font-primary: 'Poppins', sans-serif;
--font-secondary: 'Poppins', sans-serif;
--font-weight: 300;
--color-primary: #000000;
--color-secondary: #555555;
--color-background: #ffffff;
--color-card-bg: #f6f6f6;
--border-radius: 10px;
--border-radius-sm: 6px;
--spacing-xs: 8px;
--spacing-sm: 12px;
--spacing-md: 16px;
--spacing-lg: 24px;
--spacing-xl: 48px;
--header-height: 60px;
--footer-height: 200px;
--max-width: 1400px;
}

/* ===== RESET & BASE STYLES ===== */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: var(--font-primary);
background-color: var(--color-background);
color: var(--color-primary);
line-height: 1.5;
font-weight: 400;
}

img {
max-width: 100%;
height: auto;
display: block;
}
/*
img[src="./assets/images/loading.gif"] {
    width: 100px;
    height: 100px;
    display: block;         
    margin: auto auto;        
  }
*/
a {
text-decoration: none;
color: inherit;
transition: opacity 0.2s ease;
}

a:hover {
opacity: 0.7;
}

/* ===== HEADER STYLES ===== */
.header {
position: sticky;
top: 0;
left: 0;
right: 0;
background-color: rgba(255, 255, 255, 0.8);
backdrop-filter: blur(12px);
z-index: 50;
height: var(--header-height);
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-container {
margin: 0 auto;
padding: 0 var(--spacing-md);
height: 100%;
display: flex;
align-items: center;
justify-content: flex-start;
}

.header-name {
flex: 0 0 auto;
}

.name-link {
font-family: var(--font-secondary);
font-size: 17px;
font-weight: 400;
letter-spacing: 0.7px;
line-height: 24px;
}

.header-nav {
display: flex;
gap: var(--spacing-lg);
align-items: center;
margin-left: auto;
}

.nav-link {
font-size: 16px;
font-weight: 400;
letter-spacing: 0.7px;
line-height: 24px;
}

/* ===== FULL WIDTH CONTAINER ===== */
.floating-container {
display: flex;
width: 100vw;
height: 100vh;
background-color: #f9f9f99c;
overflow: hidden;
box-shadow: 0 0 0 1px rgba(0,0,0,0.05),
0 20px 25px -5px rgba(0,0,0,0.1),
0 10px 10px -5px rgba(0,0,0,0.04);
z-index: 1;
margin: 0;
padding: 0;
}

/* ===== SIDEBAR ===== */
.sidebar {
width: 288px;
display: flex;
flex-direction: column;
padding: 20px;
gap: 20px;
flex-shrink: 0;
overflow: hidden;
background-color: #ffffff;
}

/* Profile Section */
.profile-section {
display: flex;
justify-content: flex-start;
}

.profile-content {
display: flex;
align-items: center;
gap: 12px;
width: 100%;
}

.avatar {
width: 40px;
height: 40px;
border-radius: 100px;
background: linear-gradient(135deg, #667085 0%, #475467 100%);
display: flex;
align-items: center;
justify-content: center;
color: white;
font-size: 14px;
font-weight: 500;
flex-shrink: 0;
}

.profile-text {
display: flex;
flex-direction: column;
align-items: flex-start;
}

.profile-name {
color: #060b16;
font-size: 14px;
font-weight: 500;
line-height: 18px;
}

.profile-title {
color: var(--color-secondary);
font-size: 14px;
font-weight: 500;
line-height: 18px;
}

/* Navigation */
.navigation-section {
display: flex;
flex-direction: column;
}

.nav-items {
display: flex;
flex-direction: column;
gap: 4px;
}

.nav-item {
display: flex;
align-items: center;
gap: 8px;
padding: 8px;
border-radius: 8px;
background: #ffffff00;
border: none;
cursor: pointer;
transition: all 0.2s ease;
font-weight: 500;
font-size: 14px;
line-height: 18px;
color: #060b16;
width: 248px;
}

.nav-item:hover {
background-color: #ececf0;
}

.nav-item.active {
background-color: #000000;
color: white;
}

.nav-item.active svg path {
fill: white;
}

.nav-item.active svg {
color: white;
fill: white;
}

.nav-icon {
width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}

/* Divider */
.divider {
height: 1px;
background-color: #0000000c;
width: 100%;
}

/* Social Section */
.social-section {
display: flex;
flex-direction: column;
gap: 4px;
}

.social-header {
padding: 8px;
}

.social-header span {
color: #475467;
font-size: 14px;
font-weight: 500;
line-height: 18px;
}

.social-links {
display: flex;
flex-direction: column;
gap: 4px;
}

.social-item {
display: flex;
align-items: center;
gap: 8px;
padding: 8px;
border-radius: 8px;
background-color: #f9f9f900;
text-decoration: none;
color: #060b16;
font-weight: 500;
font-size: 14px;
line-height: 18px;
transition: background-color 0.2s ease;
width: 248px;
}

.social-item:hover {
background-color: #ececf0;
}

.social-icon {
width: 20px;
height: 20px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}

.external-icon {
width: 10px;
height: 10px;
margin-left: auto;
flex-shrink: 0;
}

/* ===== MAIN CONTENT ===== */
.main-content {
max-width: 2000px;
flex: 1;
padding: var(--spacing-xl);
overflow-y: auto;
background-color: #ffffff;
}

.content-section {
display: block;
}

.content-section h1 {
font-size: 2.5rem;
font-weight: 500;
margin-bottom: var(--spacing-lg);
color: var(--color-primary);
border-bottom: 2px solid #f0f0f0;
padding-bottom: var(--spacing-md);
}

.content-section h2 {
font-size: 1.8rem;
font-weight: 600;
margin-top: var(--spacing-xl);
margin-bottom: var(--spacing-md);
color: var(--color-primary);
}

.content-section h3 {
font-size: 1.4rem;
font-weight: 600;
margin-top: var(--spacing-lg);
margin-bottom: var(--spacing-sm);
color: var(--color-primary);
}

.content-section p {
margin-bottom: var(--spacing-md);
line-height: 1.6;
color: var(--color-primary);
}

.content-section ul {
margin-bottom: var(--spacing-md);
padding-left: var(--spacing-lg);
}

.content-section li {
margin-bottom: var(--spacing-xs);
line-height: 1.6;
}

/* ===== PROJECT FILTERS ===== */
.project-filters {
display: flex;
gap: var(--spacing-sm);
margin-bottom: var(--spacing-xl);
flex-wrap: wrap;
}

.filter-btn {
padding: var(--spacing-sm) var(--spacing-lg);
border: 2px solid #e0e0e0;
background-color: #ffffff;
color: var(--color-secondary);
border-radius: var(--border-radius-sm);
font-size: 14px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
}

.filter-btn:hover {
border-color: var(--color-primary);
color: var(--color-primary);
}

.filter-btn.active {
background-color: var(--color-primary);
color: #ffffff;
border-color: var(--color-primary);
}

/* ===== BENTO GRID LAYOUT ===== */
.bento-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: var(--spacing-xs);
grid-auto-rows: 200px;
margin-bottom: var(--spacing-xl);
}

/* ===== BENTO CARD SIZES ===== */
.size-small {
grid-column: span 1;
grid-row: span 1;
}

.size-medium {
grid-column: span 1;
grid-row: span 2;
}

.size-lengthy-medium {
grid-column: span 1;
grid-row: span 3;
}

.size-large {
grid-column: span 2;
grid-row: span 2;
}

.size-wide {
grid-column: span 2;
grid-row: span 1;
}

/* ===== PROJECT CARD STYLES ===== */
.project-card {
position: relative;
background-color: var(--color-card-bg);
border-radius: var(--border-radius);
overflow: hidden;
transition: transform 0.3s ease, box-shadow 0.3s ease;
cursor: pointer;
min-height: 200px;
display: flex;
align-items: center;
justify-content: center;
}

.project-card:hover {
transform: translateY(-2px) scale(1.02);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.project-card.hidden {
display: none;
}

.project-image,
.project-image-static,
.project-image-gif {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
border-radius: var(--border-radius);
}

/* Hide the GIF by default */
.project-image-gif {
opacity: 0;
transition: opacity 0.3s ease-in-out;
}

/* On hover of the container, hide the static image and show the GIF */
.project-card:hover .project-image-static {
opacity: 0;
}

.project-card:hover .project-image-gif {
opacity: 1;
}

/* ===== CATEGORY TAG STYLES ===== */
.category-tag {
position: absolute;
top: var(--spacing-sm);
left: var(--spacing-sm);
background-color: rgba(255, 255, 255, 0.9);
backdrop-filter: blur(10px);
padding: var(--spacing-xs) var(--spacing-sm);
border-radius: var(--border-radius-sm);
font-size: 12px;
font-weight: 500;
letter-spacing: 0.5px;
color: var(--color-primary);
z-index: 20;
transition: all 0.3s ease;
border: 1px solid rgba(0, 0, 0, 0.1);
}

.project-card:hover .category-tag {
background-color: rgba(255, 255, 255, 0.95);
transform: scale(1.05);
}

/* ===== PROJECT NAME OVERLAY STYLES ===== */
.project-name-overlay {
position: absolute;
bottom: var(--spacing-sm);
left: var(--spacing-sm);
opacity: 0;
transform: translateY(10px);
transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
z-index: 20;
}

.project-card:hover .project-name-overlay {
opacity: 1;
transform: translateY(0);
}

/* ===== ANIMATED GRADIENT BORDER ===== */
/*.animated-border {
position: relative;
border-radius: var(--border-radius-sm);
padding: 2px;
background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c, #4facfe, #00f2fe);
background-size: 400% 400%;
animation: gradientShift 3s ease-in-out infinite;
}
*/
.project-name {
background-color: rgb(255, 255, 255);
backdrop-filter: blur(20px);
color: rgb(0, 0, 0);
padding: var(--spacing-sm) var(--spacing-md);
border-radius: var(--border-radius-sm);
font-size: 13px;
font-weight: 500;
letter-spacing: 0.3px;
white-space: nowrap;
position: relative;
}

/* ===== GRADIENT ANIMATION ===== */
@keyframes gradientShift {
0% {
background-position: 0% 50%;
}
25% {
background-position: 100% 50%;
}
50% {
background-position: 100% 100%;
}
75% {
background-position: 0% 100%;
}
100% {
background-position: 0% 50%;
}
}

/* ===== HOVER OVERLAY ===== */
.project-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0);
transition: background-color 0.3s ease;
z-index: 1;
}

.project-card:hover::before {
background-color: rgba(0, 0, 0, 0.1);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
.bento-grid {
grid-template-columns: repeat(3, 1fr);
gap: var(--spacing-sm);
}

.size-large,
.size-wide {
grid-column: span 2;
}

.main-content {
padding: var(--spacing-lg);
}
}

@media (max-width: 768px) {
.floating-container {
flex-direction: column;
height: auto;
}

.sidebar {
width: 100%;
height: auto;
padding: var(--spacing-md);
}

.bento-grid {
grid-template-columns: repeat(2, 1fr);
gap: var(--spacing-md);
}

.size-large {
grid-column: span 2;
grid-row: span 2;
}

.size-wide {
grid-column: span 2;
grid-row: span 1;
}

.size-medium {
grid-column: span 1;
grid-row: span 2;
}

.size-lengthy-medium {
grid-column: span 1;
grid-row: span 3;
}

.header-container {
padding: 0 var(--spacing-sm);
}

.header-nav {
gap: var(--spacing-md);
}

.nav-link {
font-size: 14px;
}

.name-link {
font-size: 14px;
}

.main-content {
padding: var(--spacing-md);
}

.project-name {
font-size: 11px;
padding: var(--spacing-xs) var(--spacing-sm);
}

.category-tag {
font-size: 11px;
padding: 6px var(--spacing-xs);
}

.project-filters {
gap: var(--spacing-xs);
}

.filter-btn {
padding: var(--spacing-xs) var(--spacing-md);
font-size: 12px;
}
}

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

.size-large,
.size-wide,
.size-medium,
.size-small,
.size-lengthy-medium{
grid-column: span 1;
}

.size-large,
.size-medium {
grid-row: span 2;
}

.size-lengthy-medium {
grid-row: span 1;
}

.size-wide,
.size-small {
grid-row: span 1;
}

.header-nav {
gap: var(--spacing-sm);
}

.nav-link {
font-size: 13px;
}

.name-link {
font-size: 13px;
}

.project-card {
min-height: 250px;
}
}

/* ===== ACCESSIBILITY IMPROVEMENTS ===== */
@media (prefers-reduced-motion: reduce) {
.project-card,
.category-tag,
.project-name-overlay,
.animated-border {
transition: none;
animation: none;
}
}

.project-card:focus-visible {
outline: 2px solid var(--color-primary);
outline-offset: 2px;
}

/* ===== LOADING STATES ===== */
.project-image {
transition: opacity 0.3s ease;
}

.project-card.loading .project-image {
opacity: 1;
}

.project-card.loaded .project-image {
opacity: 1;
}

/* ===== PRINT STYLES ===== */
@media print {
.header,
.footer {
display: none;
}

.main-content {
margin-top: 0;
}

.project-card {
break-inside: avoid;
margin-bottom: var(--spacing-md);
}

.project-name-overlay {
opacity: 1;
transform: none;
}
}

/* Main Content */
.main-content-about {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.466);
    border-radius: 12px;
    margin: 16px 16px 16px 0;
    border: 1px solid #e2e2e2;
    overflow-y: auto; /* Only main content scrolls */
    overflow-x: hidden;
    /* Hide scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

.main-content::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.content-container-about {
    max-width: 880px; /* wider content on desktop */
    margin: 0 auto;
    padding: 80px 24px 40px; /* reduce excessive top padding */
    display: flex;
    flex-direction: column;
    gap: 64px;
}

/* About Section */
.about-section {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.about-content h1 {
    color: #333333;
    font-size: 28px;
    line-height: 40px;
    font-weight: 400;
    margin: 0;
}

.about-content p {
    color: #060b16;
    font-size: 16px;
    line-height: 28px;
    font-weight: 400;
    margin: 0;
    max-width: 731px;
}

.action-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Buttons */
.btn-primary {
    background-color: #060b16;
    color: white;
    border: 1px solid #060b16;
    border-radius: 6px;
    padding: 8px 18px;
    font-weight: 500;
    font-size: 14px;
    line-height: 18px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-primary:hover {
    background-color: #000000;
}

/* Animated gradient border for secondary button */
.btn-secondary {
    position: relative;
    background-color: white;
    color: #060b16;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    padding: 8px 18px;
    font-weight: 500;
    font-size: 14px;
    line-height: 18px;
    cursor: pointer;
    overflow: hidden; /* keeps border effect inside */
    z-index: 0;
  }
  
  .btn-secondary::before {
    content: "";
    position: absolute;
    inset: -2px; /* border thickness */
    border-radius: inherit;
    background: radial-gradient(
        circle at 100%,
      #953eff,
      #ff681c,
      #87ddfe,
      #231efe,
      #ff0a53,
      #953eff
    );
    background-size: 500% 500%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: borderGradient 6s linear infinite;
  }
  
  .btn-secondary:hover::before {
    opacity: 1;
  }
  
  .btn-secondary::after {
    content: "";
    position: absolute;
    inset: 1px; /* keeps inner background clean */
    border-radius: 4px;
    background: white;
    z-index: -1;
  }
  
  @keyframes borderGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

/* Section Styles */
.section-about {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.section-about h2 {
    color: #060b16;
    font-size: 16px;
    font-weight: 100;
    line-height: 24px;
    margin: 0;
}

/* Experience Items */
.experience-item-about {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.experience-header-about {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.experience-header-about h3 {
    color: #060b16;
    font-size: 18px;
    font-weight: 100;
    line-height: 26px;
    margin: 0;
    flex: 1;
    min-width: 300px;
}

.experience-header-about .date {
    color: var(--color-secondary);
    font-size: 16px;
    line-height: 24px;
    font-weight: 100;
    white-space: nowrap;
}

.experience-item-about p {
    color: var(--color-secondary);
    font-size: 16px;
    line-height: 28px;
    font-weight: 400;
    margin: 0;
}
