@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* ==========================================
   ROOT VARIABLES & BASE STYLES
   ========================================== */
:root {
    /* Modern Color Palette */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #ec4899;
    --accent: #f59e0b;
    --success: #10b981;
    --danger: #ef4444;
    
    /* Neutrals */
    --dark: #0f172a;
    --dark-secondary: #1e293b;
    --gray-900: #0f172a;
    --gray-800: #1e293b;
    --gray-700: #334155;
    --gray-600: #475569;
    --gray-500: #64748b;
    --gray-400: #94a3b8;
    --gray-300: #cbd5e1;
    --gray-200: #e2e8f0;
    --gray-100: #f1f5f9;
    --gray-50: #f8fafc;
    --white: #ffffff;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-900);
    background: linear-gradient(to bottom, var(--gray-50), var(--white));
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation: fadeInBody 0.6s ease-out;
    overflow-x: hidden;
}

@keyframes fadeInBody {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin: 2rem 0 1.25rem 0;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.75rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin: 1.5rem 0 1rem 0;
    font-weight: 600;
    color: var(--gray-800);
}

/* ==========================================
   HEADER
   ========================================== */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    animation: slideDown 0.5s ease-out;
}

header:hover {
    box-shadow: var(--shadow-md);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.nav-left {
    display: flex;
}

.nav-right {
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
}

.nav-left ul {
    justify-content: flex-start;
}

.nav-right ul {
    justify-content: flex-end;
    margin-left: 0;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-base);
}

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

.logo-image {
    max-height: 45px;
    max-width: 150px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--gray-700);
    text-decoration: none;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    z-index: -1;
}

nav a:hover::before {
    width: 100%;
}

nav a:hover {
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==========================================
   MAIN CONTENT
   ========================================== */
main {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
    animation: fadeInContent 0.8s ease-out;
}

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

/* ==========================================
   HERO SECTIONS
   ========================================== */
.hero-section {
    position: relative;
    padding: 6rem 2rem;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 4rem;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8) 0%, rgba(118, 75, 162, 0.8) 50%, rgba(240, 147, 251, 0.8) 100%);
    z-index: 1;
}

.hero-section > * {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    color: var(--white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    -webkit-text-fill-color: var(--white);
    margin-bottom: 1rem;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    animation: heroTitleFloat 3s ease-in-out infinite;
}

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

/* ==========================================
   BIOGRAPHY PAGE SPECIFIC
   ========================================== */
.bio-hero {
    background: var(--gradient-hero);
    padding: 5rem 2rem;
    border-radius: var(--radius-xl);
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.bio-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.bio-profile-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
    animation: slideUpFade 0.8s ease-out;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.bio-profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
}

.bio-profile-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-2xl);
}

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

.bio-profile-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.bio-profile-image {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid;
    border-image: var(--gradient-primary) 1;
    box-shadow: var(--shadow-xl), 0 0 0 10px rgba(255, 255, 255, 0.5);
    transition: all var(--transition-base);
    animation: profilePulse 2s ease-in-out infinite;
}

@keyframes profilePulse {
    0%, 100% {
        box-shadow: var(--shadow-xl), 0 0 0 10px rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow: var(--shadow-xl), 0 0 0 15px rgba(99, 102, 241, 0.2);
    }
}

.bio-profile-image:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: var(--shadow-2xl), 0 0 0 15px rgba(99, 102, 241, 0.3);
}

.bio-profile-name {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin: 0;
}

.bio-placeholder {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--white);
    font-weight: 700;
    border: 6px solid var(--white);
    box-shadow: var(--shadow-xl);
    animation: profilePulse 2s ease-in-out infinite;
}

.bio-filters {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
    animation: slideUpFade 0.8s ease-out 0.2s both;
}

.bio-filters h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: var(--gray-900);
}

.bio-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.bio-filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.bio-filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    transition: width 0.3s ease;
    z-index: -1;
}

.bio-filter-btn:hover {
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.bio-filter-btn:hover::before {
    width: 100%;
}

.bio-filter-btn.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.bio-item {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    animation: slideUpFade 0.8s ease-out both;
}

.bio-item:nth-child(1) { animation-delay: 0.1s; }
.bio-item:nth-child(2) { animation-delay: 0.2s; }
.bio-item:nth-child(3) { animation-delay: 0.3s; }
.bio-item:nth-child(4) { animation-delay: 0.4s; }
.bio-item:nth-child(5) { animation-delay: 0.5s; }

.bio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform var(--transition-base);
}

.bio-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-2xl);
}

.bio-item:hover::before {
    transform: scaleY(1);
}

.bio-item-header {
    margin-bottom: 2rem;
}

.bio-item-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bio-item-title::before {
    content: '';
    width: 4px;
    height: 2rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

.bio-item-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: start;
}

.bio-item-text {
    line-height: 1.8;
    color: var(--gray-700);
    font-size: 1.0625rem;
}

.bio-content-short,
.bio-content-full {
    transition: opacity 0.4s ease-in-out;
}

.bio-read-more-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    display: inline-block;
}

.bio-read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.bio-read-more-btn:active {
    transform: translateY(0);
}

.bio-item-dates {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.bio-item-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    font-size: 0.9375rem;
}

.bio-item-date::before {
    content: '📅';
    font-size: 1.25rem;
}

.bio-images-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    align-items: flex-start;
    max-width: 320px;
}

.bio-image-item {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 3px solid var(--gray-200);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.bio-image-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(99, 102, 241, 0);
    transition: background var(--transition-base);
}

.bio-image-item:hover {
    transform: scale(1.1) rotate(2deg);
    border-color: var(--primary);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    z-index: 10;
}

.bio-image-item:hover::after {
    background: rgba(99, 102, 241, 0.1);
}

.bio-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
    display: block;
}

.bio-image-item:hover img {
    transform: scale(1.1);
}

.bio-more-images {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-md);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.5rem;
    cursor: pointer;
    border: 3px solid var(--white);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.bio-more-images:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* Bio Modal */
#bioImageModal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.close-modal,
.prev-image,
.next-image {
    position: absolute;
    color: var(--white);
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    transition: all var(--transition-base);
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.close-modal {
    top: 2rem;
    right: 2rem;
}

.close-modal:hover,
.prev-image:hover,
.next-image:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.prev-image {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.next-image {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

#bioModalImage {
    margin: auto;
    display: block;
    width: auto;
    max-width: 90%;
    max-height: 90%;
    margin-top: 5%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-2xl);
    animation: imageZoomIn 0.3s ease-out;
}

@keyframes imageZoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#bioImageCounter {
    text-align: center;
    color: var(--white);
    padding: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
}

/* ==========================================
   FORMS
   ========================================== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    margin: 0.5rem 0;
    border: 2px solid var(--gray-300);
    background-color: var(--white);
    color: var(--gray-900);
    font-size: 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    font-family: inherit;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

/* ==========================================
   BUTTONS
   ========================================== */
button,
.btn {
    padding: 0.875rem 2rem;
    border: none;
    background: var(--gradient-primary);
    color: var(--white);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    margin: 0.5rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    font-family: inherit;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

button::before,
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.3s ease;
}

button:hover::before,
.btn:hover::before {
    width: 100%;
}

button:hover,
.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

button:active,
.btn:active {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
}

footer p {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--gray-400);
}

#scrollToTop {
    display: flex !important;
}

/* ==========================================
   PROJECT ITEMS
   ========================================== */
.project-item {
    border: 1px solid var(--gray-200);
    padding: 2.5rem;
    margin: 2rem 0;
    display: flex;
    gap: 2.5rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    animation: slideUpItem 0.6s ease-out both;
    position: relative;
    overflow: hidden;
}

.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform var(--transition-base);
}

.project-item:nth-child(1) { animation-delay: 0.1s; }
.project-item:nth-child(2) { animation-delay: 0.2s; }
.project-item:nth-child(3) { animation-delay: 0.3s; }
.project-item:nth-child(4) { animation-delay: 0.4s; }
.project-item:nth-child(5) { animation-delay: 0.5s; }

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

.project-item:hover {
    box-shadow: var(--shadow-2xl);
    transform: translateY(-5px);
}

.project-item:hover::before {
    transform: scaleY(1);
}

.project-content {
    flex: 1;
}

.project-content p {
    color: var(--gray-600);
    margin: 0.75rem 0;
    line-height: 1.8;
}

.project-image {
    width: 250px;
    height: 180px;
    border: 2px solid var(--gray-200);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.project-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

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

/* ==========================================
   CAROUSEL
   ========================================== */
.carousel-container {
    position: relative;
    margin: 3rem 0;
    padding: 2rem 0;
}

.carousel-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.carousel-slides {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    display: none;
    animation: fadeInSlide 0.6s ease-in-out;
}

.carousel-slide.active {
    display: block;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carousel-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    cursor: pointer;
    margin: 0 1rem;
}

.carousel-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.carousel-image {
    width: 100%;
    height: 450px;
    overflow: hidden;
    position: relative;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.carousel-card:hover .carousel-image img {
    transform: scale(1.15);
}

.carousel-content {
    padding: 2rem;
}

.carousel-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.carousel-author {
    color: var(--gray-600);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.carousel-excerpt {
    color: var(--gray-700);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid var(--gray-200);
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    z-index: 10;
    color: var(--gray-900);
    box-shadow: var(--shadow-lg);
}

.carousel-btn svg {
    width: 24px;
    height: 24px;
}

.carousel-btn:hover {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    transform: translateY(-50%) scale(1.15);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.carousel-btn-prev {
    left: 2rem;
}

.carousel-btn-next {
    right: 2rem;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-sm);
    background: var(--gray-300);
    cursor: pointer;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.carousel-indicator:hover {
    background: var(--primary);
    transform: scale(1.3);
}

.carousel-indicator.active {
    background: var(--primary);
    width: 40px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.formatted-content {
    line-height: 1.8;
    color: var(--gray-700);
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 1.0625rem;
}

.formatted-content a.inline-link {
    color: var(--primary);
    text-decoration: underline;
    font-weight: 600;
    transition: color var(--transition-base);
}

.formatted-content a.inline-link:hover {
    color: var(--primary-dark);
}

/* ==========================================
   ADMIN LAYOUT
   ========================================== */
.admin-container {
    display: flex;
    min-height: calc(100vh - 200px);
}

.sidebar {
    width: 280px;
    border-right: 1px solid var(--gray-200);
    padding: 2rem 1.5rem;
    background: var(--white);
    box-shadow: var(--shadow-md);
}

.sidebar ul {
    list-style: none;
}

.sidebar li {
    margin: 0.5rem 0;
}

.sidebar a {
    display: block;
    padding: 1rem 1.25rem;
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-base);
}

.sidebar a:hover {
    background: var(--gradient-primary);
    color: var(--white);
    transform: translateX(5px);
}

.admin-content {
    flex: 1;
    padding: 2rem 3rem;
    background: var(--gray-50);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-header h1 {
    text-align: left;
    border: none;
    margin: 0;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
    .bio-item-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .bio-images-gallery {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 1.25rem;
    }

    .header-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .nav-left,
    .nav-right {
        width: 100%;
        justify-content: center;
    }

    .nav-left ul,
    .nav-right ul {
        justify-content: center;
        gap: 0.25rem;
    }

    nav a {
        padding: 0.5rem 0.875rem;
        font-size: 0.875rem;
    }

    main {
        padding: 2rem 1rem;
    }

    .hero-section {
        padding: 4rem 1.5rem;
    }

    .bio-profile-card {
        padding: 2rem 1.5rem;
    }

    .bio-item {
        padding: 2rem 1.5rem;
    }

    .bio-item-content {
        grid-template-columns: 1fr;
    }

    .bio-item-text {
        font-size: 0.9375rem;
        line-height: 1.7;
    }

    .bio-item-title {
        font-size: 1.5rem;
    }

    .bio-item-date {
        font-size: 0.875rem;
    }

    .project-item {
        flex-direction: column;
        padding: 1.5rem;
    }

    .project-image {
        width: 100%;
        height: 250px;
    }

    .carousel-image {
        height: 300px;
    }

    .carousel-btn {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .carousel-btn-prev {
        left: 1rem;
    }

    .carousel-btn-next {
        right: 1rem;
    }

    .admin-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
    }

    .admin-content {
        padding: 1.5rem;
    }

    .bio-images-gallery {
        max-width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.75rem 1rem;
    }

    .logo-image {
        max-height: 35px;
        max-width: 120px;
    }

    nav a {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }

    main {
        padding: 1.5rem 0.75rem;
    }

    .hero-section {
        padding: 3rem 1rem;
    }

    .bio-profile-image,
    .bio-placeholder {
        width: 180px;
        height: 180px;
    }

    .bio-item {
        padding: 1.5rem 1rem;
    }

    .bio-item-text {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .bio-item-title {
        font-size: 1.25rem;
    }

    .bio-read-more-btn {
        font-size: 0.875rem;
        padding: 0.625rem 1.25rem;
    }

    .bio-image-item,
    .bio-more-images {
        width: 100px;
        height: 100px;
    }
}

/* ==========================================
   ANIMATIONS & EFFECTS
   ========================================== */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

