/* ==========================================================================
   LIQUID GLASS DESIGN SYSTEM
   Cloud Resume Challenge - Hasan Arnavutoğlu
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Color Variables
   -------------------------------------------------------------------------- */
:root {
    /* Base Colors - Light Theme (Frosted Iridescent Glass) */
    --bg-color: #f1f5f9;
    --text-color: #0f172a;
    --text-muted: #475569;
    --text-on-glass: #0f172a;

    --primary: #2563eb;
    --primary-glow: rgba(37, 99, 235, 0.28);
    --secondary: #1d4ed8;
    --accent: #0284c7;
    --accent-secondary: #0ea5e9;
    --accent-glow: rgba(14, 165, 233, 0.3);

    /* Liquid Glass Card Variables */
    --card-bg: rgba(255, 255, 255, 0.68);
    --card-bg-hover: rgba(255, 255, 255, 0.82);
    --card-border: rgba(255, 255, 255, 0.8);
    --card-border-hover: rgba(255, 255, 255, 1);
    --card-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05), 0 20px 40px -10px rgba(2, 132, 199, 0.08), inset 0 1px 1px 0 rgba(255, 255, 255, 0.95);
    --card-shadow-hover: 0 18px 45px -5px rgba(15, 23, 42, 0.1), 0 0 25px rgba(2, 132, 199, 0.16), inset 0 1px 1px 0 rgba(255, 255, 255, 1);

    /* Sub-card (Inner Glass) */
    --sub-card-bg: rgba(255, 255, 255, 0.45);
    --sub-card-border: rgba(255, 255, 255, 0.65);

    /* Floating Island Nav */
    --nav-bg: rgba(255, 255, 255, 0.75);
    --nav-border: rgba(255, 255, 255, 0.85);

    /* Liquid Gradient Blobs */
    --blob-1: rgba(56, 189, 248, 0.4);
    --blob-2: rgba(129, 140, 248, 0.35);
    --blob-3: rgba(244, 114, 182, 0.25);
    --blob-4: rgba(45, 212, 191, 0.3);
}

.dark {
    /* Base Colors - Dark Theme (Deep Obsidian & Radiant Neon Glass) */
    --bg-color: #07090e;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --text-on-glass: #f8fafc;

    --primary: #38bdf8;
    --primary-glow: rgba(56, 189, 248, 0.45);
    --secondary: #0284c7;
    --accent: #00d4ff;
    --accent-secondary: #38bdf8;
    --accent-glow: rgba(0, 212, 255, 0.45);

    /* Liquid Glass Card Variables */
    --card-bg: rgba(15, 23, 42, 0.65);
    --card-bg-hover: rgba(20, 30, 55, 0.78);
    --card-border: rgba(255, 255, 255, 0.13);
    --card-border-hover: rgba(0, 212, 255, 0.45);
    --card-shadow: 0 12px 35px -5px rgba(0, 0, 0, 0.65), 0 0 25px rgba(0, 212, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    --card-shadow-hover: 0 20px 50px -5px rgba(0, 0, 0, 0.8), 0 0 35px rgba(0, 212, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);

    /* Sub-card (Inner Glass) */
    --sub-card-bg: rgba(255, 255, 255, 0.04);
    --sub-card-border: rgba(255, 255, 255, 0.09);

    /* Floating Island Nav */
    --nav-bg: rgba(11, 17, 32, 0.8);
    --nav-border: rgba(255, 255, 255, 0.15);

    /* Liquid Gradient Blobs */
    --blob-1: rgba(0, 212, 255, 0.4);
    --blob-2: rgba(99, 102, 241, 0.38);
    --blob-3: rgba(236, 72, 153, 0.24);
    --blob-4: rgba(16, 185, 129, 0.28);
}

/* --------------------------------------------------------------------------
   2. Reset & Typography
   -------------------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    transition: background-color 0.4s ease, color 0.4s ease;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Fine Crystalline Ambient Dot Grid */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image: radial-gradient(circle at 5px 5px, var(--accent) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.25;
}

.dark body::after {
    opacity: 0.35;
}

/* --------------------------------------------------------------------------
   3. Liquid Background Canvas & Fluid Blobs
   -------------------------------------------------------------------------- */
.blobs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(85px);
    will-change: transform;
    opacity: 0.85;
}

.blob1 {
    width: 520px;
    height: 520px;
    left: -120px;
    top: 5%;
    background: var(--blob-1);
    animation: liquidFloat1 22s ease-in-out infinite;
}

.blob2 {
    width: 620px;
    height: 620px;
    right: -150px;
    top: 25%;
    background: var(--blob-2);
    animation: liquidFloat2 26s ease-in-out infinite;
}

.blob3 {
    width: 480px;
    height: 480px;
    left: 15%;
    bottom: 12%;
    background: var(--blob-3);
    animation: liquidFloat3 24s ease-in-out infinite;
}

.blob4 {
    width: 450px;
    height: 450px;
    right: 20%;
    bottom: 35%;
    background: var(--blob-4);
    animation: liquidFloat1 28s ease-in-out infinite reverse;
}

@keyframes liquidFloat1 {
    0% { transform: translate(0px, 0px) scale(1) rotate(0deg); }
    33% { transform: translate(60px, -45px) scale(1.1) rotate(15deg); }
    66% { transform: translate(-35px, 50px) scale(0.92) rotate(-10deg); }
    100% { transform: translate(0px, 0px) scale(1) rotate(0deg); }
}

@keyframes liquidFloat2 {
    0% { transform: translate(0px, 0px) scale(1) rotate(0deg); }
    33% { transform: translate(-50px, 60px) scale(1.08) rotate(-12deg); }
    66% { transform: translate(45px, -35px) scale(0.95) rotate(10deg); }
    100% { transform: translate(0px, 0px) scale(1) rotate(0deg); }
}

@keyframes liquidFloat3 {
    0% { transform: translate(0px, 0px) scale(1); }
    50% { transform: translate(40px, -50px) scale(1.12); }
    100% { transform: translate(0px, 0px) scale(1); }
}

/* --------------------------------------------------------------------------
   4. Glassmorphism Card System (.glass-card)
   -------------------------------------------------------------------------- */
.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px) saturate(135%);
    -webkit-backdrop-filter: blur(16px) saturate(135%);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    padding: 2.4rem;
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--card-border-hover);
}

/* Subtle Glass Refraction Sheen on Top Edge */
.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    pointer-events: none;
}

.dark .glass-card::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}

/* --------------------------------------------------------------------------
   5. Floating Island Navigation (.navbar)
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 90vw;
    background: var(--nav-bg);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid var(--nav-border);
    border-radius: 50px;
    padding: 0.4rem 0.6rem;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.nav-list::-webkit-scrollbar {
    display: none;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.5rem 0.95rem;
    border-radius: 25px;
    transition: all 0.25s ease;
}

.nav-link i {
    font-size: 1rem;
    color: var(--accent);
}

.nav-link:hover,
.nav-link.active {
    background: rgba(0, 212, 255, 0.12);
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   6. Header Actions (Glass Control Dock)
   -------------------------------------------------------------------------- */
.header-actions {
    position: absolute;
    top: 1.2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1001;
}

.theme-toggle,
.language-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--nav-bg);
    border: 1px solid var(--nav-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all 0.25s ease;
    padding: 0;
}

.theme-toggle:hover,
.language-toggle:hover {
    transform: translateY(-2px) scale(1.05);
    border-color: var(--accent);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.theme-toggle i {
    font-size: 1.15rem;
    color: var(--accent);
}

.language-toggle img {
    border-radius: 3px;
    display: block;
}

.cv-download-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 25px;
    padding: 0.55rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    box-shadow: 0 6px 20px var(--primary-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(12px);
    transition: all 0.25s ease;
    white-space: nowrap;
}

.cv-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--accent-glow);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   7. Profile Hero Section
   -------------------------------------------------------------------------- */
.container {
    position: relative;
    z-index: 2;
    margin-top: 5rem;
}

.header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 2rem 1.5rem 1.5rem;
}

.profile-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
    margin-bottom: 2rem;
    position: relative;
}

.profile-image {
    width: 145px;
    height: 145px;
    border-radius: 50%;
    position: relative;
    padding: 4px;
    background: linear-gradient(135deg, var(--accent) 0%, #3b82f6 50%, #8b5cf6 100%);
    box-shadow: 0 0 35px var(--accent-glow);
    flex-shrink: 0;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    background: #0f172a;
}

.profile-info {
    text-align: left;
}

.name {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, var(--accent) 0%, #3b82f6 50%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
    display: inline-block;
}

.title {
    font-size: 1.35rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.8rem;
    letter-spacing: 0.3px;
}

.typing-effect {
    display: flex;
    align-items: center;
    font-family: 'Courier New', monospace;
    font-size: 1.15rem;
    color: var(--text-muted);
}

.cursor {
    display: inline-block;
    width: 2px;
    margin-left: 3px;
    background-color: var(--accent);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* --------------------------------------------------------------------------
   8. Main Content & Section Structure
   -------------------------------------------------------------------------- */
.main-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.section {
    margin-bottom: 3.5rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--text-color);
    position: relative;
    letter-spacing: -0.5px;
}

.section-title i {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 65px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    border-radius: 2px;
    transition: width 0.4s ease;
}

.section-title:hover::after {
    width: 120px;
}

/* --------------------------------------------------------------------------
   9. About Section & Personal Info
   -------------------------------------------------------------------------- */
.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.personal-info {
    background: var(--sub-card-bg);
    border: 1px solid var(--sub-card-border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.info-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 1rem;
    color: var(--text-color);
}

.info-item i {
    color: var(--accent);
    font-size: 1.15rem;
    width: 24px;
    text-align: center;
}

.flag-icons {
    font-size: 1.15rem;
    min-width: 24px;
    text-align: center;
}

/* --------------------------------------------------------------------------
   10. Experience & Education Sections
   -------------------------------------------------------------------------- */
.experience-card,
.education-card {
    background: var(--sub-card-bg);
    border: 1px solid var(--sub-card-border);
    border-left: 4px solid var(--accent);
    border-radius: 18px;
    padding: 1.8rem 2rem;
    margin-bottom: 1.8rem;
    transition: all 0.3s ease;
}

.experience-card:hover,
.education-card:hover {
    border-left-color: var(--accent-secondary);
    transform: translateX(4px);
    background: var(--card-bg-hover);
}

.experience-header,
.education-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.company,
.institution {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.company i {
    color: var(--accent);
}

.position {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.degree {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.date {
    background: rgba(0, 212, 255, 0.12);
    color: var(--accent);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
}

.location {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.location i {
    color: var(--accent);
}

.description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 0;
}

.gpa-highlight {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 12px;
    padding: 0.45rem 0.9rem;
    font-weight: 600;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* --------------------------------------------------------------------------
   11. Skills Section (2x2 Grid of Liquid Glass Panels)
   -------------------------------------------------------------------------- */
.skills-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.8rem;
}

.skills-category {
    background: var(--sub-card-bg);
    border: 1px solid var(--sub-card-border);
    border-radius: 18px;
    padding: 1.8rem;
    transition: all 0.3s ease;
}

.skills-category:hover {
    border-color: rgba(0, 212, 255, 0.35);
    transform: translateY(-3px);
}

.category-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.category-title i {
    color: var(--accent);
}

.skills-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.skills-list li {
    font-size: 0.98rem;
    line-height: 1.55;
    position: relative;
    padding-left: 1.2rem;
    color: var(--text-muted);
}

.skills-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 1.3rem;
    line-height: 1;
}

.skills-list li strong {
    color: var(--text-color);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   12. Certificates Section
   -------------------------------------------------------------------------- */
.certificates-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
}

.certificate-card {
    background: var(--sub-card-bg);
    border: 1px solid var(--sub-card-border);
    border-top: 3px solid var(--accent);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.certificate-card:hover {
    transform: translateY(-4px);
    border-top-color: var(--accent-secondary);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.certificate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.certificate-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
}

.certificate-date {
    background: rgba(0, 212, 255, 0.12);
    color: var(--accent);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.certificate-issuer {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.certificate-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.25);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 25px;
    padding: 0.45rem 1.1rem;
    width: fit-content;
    transition: all 0.25s ease;
}

.certificate-link:hover {
    background: var(--accent);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* --------------------------------------------------------------------------
   13. Projects Section (Full-Width Stacked Cards)
   -------------------------------------------------------------------------- */
.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}

.project-card {
    margin-bottom: 0;
    border: 1px solid var(--card-border);
    border-left: 4px solid rgba(0, 212, 255, 0.65);
    background: var(--card-bg);
    backdrop-filter: blur(16px) saturate(135%);
    -webkit-backdrop-filter: blur(16px) saturate(135%);
    border-radius: 22px;
    box-shadow: var(--card-shadow);
    padding: 2.2rem 2.4rem;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-4px);
    border-left-color: var(--accent);
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: var(--card-shadow-hover);
}

/* Featured Flagship Project */
.project-card.featured {
    border: 1px solid rgba(0, 212, 255, 0.45);
    border-left: 5px solid var(--accent);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.06) 0%, var(--card-bg) 60%);
    box-shadow: 0 14px 40px rgba(0, 212, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    position: relative;
}

.project-card.featured:hover {
    border-color: rgba(0, 212, 255, 0.65);
    box-shadow: 0 20px 48px rgba(0, 212, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.project-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    flex: 1;
    min-width: 250px;
}

.project-title i {
    color: var(--accent);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.project-header-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.project-date {
    background: rgba(0, 212, 255, 0.12);
    color: var(--accent);
    border: 1px solid rgba(0, 212, 255, 0.3);
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
}

.featured-badge {
    background: linear-gradient(135deg, rgba(255, 183, 3, 0.22), rgba(251, 133, 0, 0.28));
    border: 1px solid rgba(255, 183, 3, 0.6);
    color: #ffb703;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.project-body {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.project-description {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--text-color);
    margin: 0;
    opacity: 0.94;
}

/* Project Footer (Tags on Left, Action Links on Right) */
.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    margin-top: 0.4rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    flex: 1;
    min-width: 260px;
}

.tag {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-color);
    padding: 0.35rem 0.8rem;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: all 0.25s ease;
}

.tag:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 212, 255, 0.3);
}

.project-links {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: 25px;
    padding: 0.45rem 1.1rem;
    transition: all 0.25s ease;
}

.project-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    background: rgba(0, 212, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.25);
}

.project-link.live-demo {
    background: linear-gradient(135deg, var(--accent) 0%, #0096c7 100%);
    color: #ffffff;
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(0, 212, 255, 0.35);
}

.project-link.live-demo:hover {
    background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(0, 212, 255, 0.48);
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   14. Contact & Social Links
   -------------------------------------------------------------------------- */
.contact-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-info {
    text-align: left;
    flex: 1;
    min-width: 280px;
    background: var(--sub-card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--sub-card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    color: var(--accent);
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--sub-card-bg);
    border: 1px solid var(--sub-card-border);
    border-radius: 50%;
    color: var(--accent);
    font-size: 1.6rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-link:hover {
    background: var(--accent);
    color: #ffffff;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 8px 24px var(--accent-glow);
}

/* --------------------------------------------------------------------------
   15. References & Footer
   -------------------------------------------------------------------------- */
.references-section .glass-card {
    max-width: 650px;
    margin: 0 auto;
}

.reference-item {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    text-align: left;
    padding: 1.6rem;
    background: var(--sub-card-bg);
    border-radius: 18px;
    border: 1px solid var(--sub-card-border);
}

.reference-item strong {
    color: var(--accent);
    font-size: 1.25rem;
    display: block;
    margin-bottom: 0.4rem;
}

.footer {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 3rem;
    position: relative;
}

.visitor-count {
    background: var(--card-bg);
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    border: 1px solid var(--card-border);
    border-radius: 30px;
    padding: 0.65rem 1.6rem;
    margin: 0 auto 1.5rem;
    max-width: fit-content;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    box-shadow: var(--card-shadow);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    transition: all 0.3s ease;
}

.visitor-count:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

.live-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

#year {
    font-weight: 600;
    color: var(--accent);
}

/* --------------------------------------------------------------------------
   16. Accessibility & Focus States
   -------------------------------------------------------------------------- */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 8px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 212, 255, 0.35);
    border-radius: 6px;
    border: 2px solid transparent;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* --------------------------------------------------------------------------
   17. Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .header-actions {
        top: 4.8rem;
        right: 1.5rem;
    }
    .profile-card {
        flex-direction: row;
        gap: 1.5rem;
    }
    .name {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .container {
        margin-top: 4rem;
    }
    .navbar {
        top: 0.8rem;
        max-width: 95vw;
        padding: 0.35rem 0.5rem;
    }
    .nav-link {
        padding: 0.4rem 0.75rem;
        font-size: 0.85rem;
    }
    .header-actions {
        position: relative;
        top: 0;
        right: 0;
        margin: 1.5rem auto 0;
        justify-content: center;
    }
    .profile-card {
        flex-direction: column;
        text-align: center;
        gap: 1.2rem;
    }
    .profile-info {
        text-align: center;
    }
    .typing-effect {
        justify-content: center;
    }
    .glass-card {
        padding: 1.6rem;
        border-radius: 20px;
    }
    .project-card {
        padding: 1.6rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .project-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .project-links {
        width: 100%;
        justify-content: flex-start;
    }
    .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .profile-image {
        width: 110px;
        height: 110px;
    }
    .name {
        font-size: 1.85rem;
    }
    .title {
        font-size: 1.1rem;
    }
    .glass-card {
        padding: 1.3rem;
    }
    .project-card {
        padding: 1.3rem;
    }
    .personal-info,
    .contact-info,
    .skills-category {
        padding: 1.3rem;
    }
}
