@import "variables.css";

/* Updated */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--black);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass-dark {
    background: var(--glass-dark-bg);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.5) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.accent {
    color: var(--apple-blue);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--navbar-height);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--white);
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--apple-blue);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon i {
    width: 18px;
    height: 18px;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-links {
    display: none;
}

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--navbar-height);
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1.5rem 2rem;
    gap: 1.5rem;
    z-index: 999;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--apple-blue);
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
}

/* Hero */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--hero-padding-top) 0 var(--hero-padding-bottom);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
    animation: pulse 10s infinite alternate;
}

.blob-1 {
    top: 20%;
    left: 20%;
    width: 300px;
    height: 300px;
    background: var(--apple-blue);
}

.blob-2 {
    bottom: 20%;
    right: 20%;
    width: 300px;
    height: 300px;
    background: #a855f7;
    animation-delay: 2s;
}

@keyframes pulse {
    from { transform: scale(1); opacity: 0.2; }
    to { transform: scale(1.2); opacity: 0.3; }
}

.hero-content {
    width: 100%;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.badge i {
    width: 14px;
    height: 14px;
    color: var(--apple-blue);
}

.hero h1 {
    font-size: clamp(2.25rem, 8vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    padding: 0 0.5rem;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2rem;
    font-weight: 300;
    padding: 0 1rem;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-primary {
    background: var(--white);
    color: var(--black);
}

.btn-primary:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-2px);
}

.btn-glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--white);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* Features & Sections */
.features, .recent-work, .recent-blog {
    padding-top: var(--section-padding-mobile);
    padding-bottom: var(--section-padding-mobile);
}

.feature-grid, .work-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 20px;
    gap: 1rem;
    padding: 0 0 1.5rem;
    margin: 0;
    -ms-overflow-style: none;
    scrollbar-width: none;
    width: 100%;
}

.feature-grid::-webkit-scrollbar, .work-grid::-webkit-scrollbar {
    display: none;
}

.feature-card, .work-card {
    flex: 0 0 85%;
    scroll-snap-align: start;
    flex-shrink: 0;
    padding: 2rem;
    border-radius: 24px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover, .work-card:hover {
    border-color: rgba(255,255,255,0.2);
}

.work-card {
    text-decoration: none;
    color: var(--text-main);
    display: block;
}

.work-img {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.work-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-info .category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--apple-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.5rem;
}

.work-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.work-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    width: 24px;
    height: 24px;
    color: var(--apple-blue);
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.link-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--apple-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.link-btn:hover {
    color: var(--white);
}

/* Navigation Arrows */
.nav-arrows {
    display: none;
    gap: 0.75rem;
}

.nav-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-arrow.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.nav-arrow:hover {
    background: var(--apple-blue);
    border-color: var(--apple-blue);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* Footer */
.footer {
    padding: 3rem 0 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 100%;
    margin-top: 1.5rem;
}

.footer-links h4, .footer-social h4 {
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--apple-blue);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--apple-blue);
    color: var(--white);
}

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* Page specific */
.page-content {
    padding-top: 100px;
    min-height: 80vh;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header.container {
    padding-top: var(--page-header-padding-top);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: var(--section-padding-mobile);
}

.contact-form-container {
    padding: 2rem;
    border-radius: 32px;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 16px;
    margin-bottom: 1rem;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-card h4 {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-bottom: 0.25rem;
}

.info-card p {
    font-size: 0.9rem;
    color: var(--text-main);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    color: var(--white);
    outline: none;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--apple-blue);
}

/* Single project */
.single-project {
    padding: 2rem 1.25rem 4rem;
}

.project-header {
    margin-bottom: 2rem;
}

.project-header h1 {
    font-size: 2.5rem;
    margin: 0.5rem 0 1rem;
}

.project-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.project-hero,
.post-hero {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 3rem;
    max-height: 450px;
}

.project-hero img,
.post-hero img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.project-hero::after,
.post-hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to bottom, transparent 0%, var(--black) 100%);
    pointer-events: none;
}

.project-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.project-sidebar {
    padding: 2rem;
    border-radius: 24px;
    height: fit-content;
}

.sidebar-item {
    margin-bottom: 1.5rem;
}

.sidebar-item label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-dim);
    display: block;
    margin-bottom: 0.25rem;
}

.sidebar-item p {
    font-size: 0.95rem;
}

/* Single post */
.single-post {
    padding: 2rem 1.25rem 4rem;
}

.post-header {
    margin-bottom: 2rem;
}

.post-header h1 {
    font-size: 2.5rem;
    margin: 0.5rem 0 1rem;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.post-content {
    max-width: 720px;
    margin: 0 auto;
}

.post-content .lead {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Blog spacing */

.blog-grid {
    padding-bottom: var(--section-padding-mobile);
}

@media (min-width: 781px) {
    .blog-grid {
        padding-bottom: var(--section-padding-desktop);
    }
}

/* Desktop overrides */
@media (min-width: 781px) {
    .nav-links {
        display: flex;
        gap: 2rem;
    }

    .mobile-menu-btn {
        display: none;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 8vw, 5rem);
    }

    .hero-actions {
        flex-direction: row;
        justify-content: center;
        max-width: none;
    }

    .btn {
        width: auto;
    }

    .features, .recent-work, .recent-blog {
        padding-top: var(--section-padding-desktop);
        padding-bottom: var(--section-padding-desktop);
    }

    .feature-grid, .work-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        overflow: visible;
        padding: 0;
    }

    .feature-card, .work-card {
        flex: none;
    }

    .section-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
        margin-bottom: 3rem;
    }

    .nav-arrows {
        display: flex;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 4rem;
    }

    .contact-grid {
        grid-template-columns: 1fr 2fr;
        gap: 4rem;
        padding-bottom: var(--section-padding-desktop);
    }

    .project-body {
        grid-template-columns: 2fr 1fr;
    }
}

/* CV Timeline Styles */
.cv-timeline { padding-bottom: 5rem; }
.timeline-container { position: relative; max-width: 800px; margin: 0 auto; padding: 2rem 0; }
.timeline-line { position: absolute; left: 20px; top: 0; bottom: 0; width: 2px; background: var(--glass-border); pointer-events: none; }
.timeline-progress { position: absolute; left: 0; top: 0; width: 100%; height: 0; background: linear-gradient(to bottom, var(--apple-blue), #a855f7); transition: height 0.1s linear; pointer-events: none; }
.timeline-item { position: relative; padding-left: 60px; margin-bottom: 3rem; pointer-events: all; }
.timeline-dot { position: absolute; left: 11px; top: 24px; width: 20px; height: 20px; background: var(--black); border: 2px solid var(--glass-border); border-radius: 50%; z-index: 2; transition: all 0.3s ease; }
.timeline-dot.active { border-color: var(--apple-blue); box-shadow: 0 0 15px var(--apple-blue); background: var(--apple-blue); }

.expandable-card { cursor: pointer; padding: 1.5rem; border-radius: 24px; transition: all 0.3s ease; position: relative; }
.expandable-card:hover { border-color: rgba(255,255,255,0.2); transform: translateX(2px); }
.card-header { display: flex; flex-direction: column; gap: 0.5rem; padding-right: 2.5rem; }
.role-meta { display: flex; flex-direction: row; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.year-range { font-size: 0.75rem; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.company { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--apple-blue); }
.card-header h3 { font-size: 1.1rem; margin: 0; line-height: 1.3; }
.expand-btn { background: none; border: none; color: var(--text-muted); cursor: pointer; transition: transform 0.3s ease; position: absolute; top: 1.5rem; right: 1.5rem; }
.expandable-card.expanded .expand-btn { transform: rotate(45deg); }
.card-details { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin 0.3s ease; opacity: 0; }
.card-details.visible { max-height: 2000px; opacity: 1; margin-top: 1.5rem; }
.expandable-card.expanded .card-details { max-height: 2000px; opacity: 1; margin-top: 1.5rem; }

.focus-areas { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.focus-pill { font-size: 0.7rem; padding: 0.25rem 0.75rem; background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border); border-radius: 100px; color: var(--text-muted); }
.achievements ul { list-style: none; }
.achievements li { position: relative; padding-left: 1.25rem; margin-bottom: 0.75rem; font-size: 0.9rem; color: var(--text-muted); }
.achievements li::before { content: ""; position: absolute; left: 0; top: 0.6rem; width: 4px; height: 4px; background: var(--apple-blue); border-radius: 50%; }

/* Future Section */
.future-item { margin-top: 5rem; }
.future-dot { border-style: dashed; background: transparent; border-color: var(--apple-blue); animation: pulse-glow 2s infinite; }
@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 122, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 122, 255, 0); }
}
.future-card { border: 1px dashed var(--apple-blue); background: linear-gradient(135deg, rgba(0, 122, 255, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%); padding: 1.5rem; border-radius: 24px; position: relative; }
.future-vision { font-size: 1.1rem; color: var(--white); font-weight: 300; margin-bottom: 2rem; }
.future-milestones { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 2rem; }
.milestone { padding: 1.25rem; border-radius: 16px; }
.milestone .date { display: block; font-size: 0.7rem; font-weight: 700; color: var(--apple-blue); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.future-cta { margin-top: 1.5rem; }

@media (min-width: 781px) {
    .timeline-line { left: 50%; transform: translateX(-50%); }
    .timeline-item { width: 50%; padding-left: 0; }
    .timeline-item:nth-child(odd) { padding-right: 60px; text-align: left; }
    .timeline-item:nth-child(even) { margin-left: 50%; padding-left: 60px; }
    .timeline-item:nth-child(odd) .achievements li { padding-left: 1.25rem; }
    .timeline-item:nth-child(odd) .achievements li::before { left: 0; right: auto; }
    .timeline-dot { left: auto; right: -10px; top: 24px; }
    .timeline-item:nth-child(even) .timeline-dot { left: -10px; right: auto; }
    .future-milestones { grid-template-columns: 1fr 1fr; }
    .future-item {margin-left: 0; padding: 0; text-align: left; }
}

/* Blog Filters */
.blog-filters { margin-bottom: 2rem; }

.filter-bar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
    border-radius: 20px;
}

.search-input, .category-select {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 0 1rem;
    transition: border-color 0.3s ease;
    gap: 0.5rem;
}

.search-input i, .category-select i {
    width: 16px;
    height: 16px;
    color: var(--text-dim);
    flex-shrink: 0;
}

.search-input:focus-within, .category-select:focus-within {
    border-color: var(--apple-blue);
}

.search-input input, .category-select select {
    width: 100%;
    background: none;
    border: none;
    color: var(--white);
    padding: 0.75rem 0.5rem;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    outline: none;
}

.search-input input::placeholder {
    color: var(--text-dim);
}

.category-select select {
    cursor: pointer;
    appearance: none;
    color: var(--text-muted);
}

.category-select select option {
    background: #1a1a1a;
    color: var(--white);
}

/* Blog card meta footer */
.post-meta-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.post-meta-footer span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.post-meta-footer i {
    width: 13px;
    height: 13px;
    color: var(--apple-blue);
}

@media (min-width: 781px) {
    .filter-bar {
        grid-template-columns: 2fr 1fr;
        padding: 0.75rem 1.5rem;
        gap: 1.5rem;
    }
}

/* RTE Content Styles */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.project-info h1,
.project-info h2,
.project-info h3,
.project-info h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.post-content h2,
.project-info h2 {
    font-size: 1.75rem;
}

.post-content h3,
.project-info h3 {
    font-size: 1.35rem;
}

.post-content p,
.project-info p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.post-content ul,
.post-content ol,
.project-info ul,
.project-info ol {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.post-content ul,
.project-info ul {
    list-style: none;
    padding-left: 0;
}

.post-content ul li,
.project-info ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.post-content ul li::before,
.project-info ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 6px;
    height: 6px;
    background: var(--apple-blue);
    border-radius: 50%;
}

.post-content ol,
.project-info ol {
    list-style: decimal;
}

.post-content ol li,
.project-info ol li {
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    padding-left: 0.5rem;
}

.post-content strong,
.project-info strong {
    color: var(--white);
    font-weight: 600;
}

.post-content em,
.project-info em {
    color: var(--text-muted);
    font-style: italic;
}

.post-content a,
.project-info a {
    color: var(--apple-blue);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 122, 255, 0.3);
    transition: border-color 0.3s ease;
}

.post-content a:hover,
.project-info a:hover {
    border-color: var(--apple-blue);
}

.post-content blockquote,
.project-info blockquote {
    border-left: 3px solid var(--apple-blue);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: rgba(0, 122, 255, 0.05);
    border-radius: 0 12px 12px 0;
}

.post-content blockquote p,
.project-info blockquote p {
    color: var(--text-main);
    font-size: 1.05rem;
    font-style: italic;
    margin: 0;
}

.post-content code,
.project-info code {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
    font-size: 0.85rem;
    color: var(--apple-blue);
    font-family: monospace;
}

.post-content pre,
.project-info pre {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.post-content pre code,
.project-info pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.9rem;
    color: var(--text-main);
}

@media (max-width: 780px) {
    .project-hero img,
    .post-hero img {
        height: 250px;
    }

    .project-hero,
    .post-hero {
        max-height: 250px;
    }
}

/* Breadcrumbs */
.breadcrumbs-container {
    padding-left: 20px;
    padding-right: 20px;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.breadcrumbs {
    display: inline-flex;
    align-items: center;
    list-style: none;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    gap: 0.25rem;
    margin: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
}

.breadcrumb-item i {
    width: 13px;
    height: 13px;
    color: var(--text-dim);
    flex-shrink: 0;
}

.breadcrumb-item:first-child i {
    color: var(--apple-blue);
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    text-decoration: none;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: var(--apple-blue);
}

.breadcrumb-item.current span {
    color: var(--white);
    font-weight: 500;
}

.portfolio-grid {
    padding-bottom: var(--section-padding-mobile);
}

@media (min-width: 781px) {
    .portfolio-grid {
        padding-bottom: var(--section-padding-desktop);
    }
}

/* CV Summary & Stats */
.cv-summary {
    margin-bottom: 2rem;
}

.summary-card {
    padding: 2.5rem;
    border-radius: 32px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.summary-content .lead {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.cv-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--apple-blue);
    line-height: 1;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}

/* Foundations */
.cv-foundations {
    margin-bottom: 2rem;
}

.foundations-card {
    padding: 2rem;
    border-radius: 24px;
}

.edu-description {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.7;
}

/* Professional Qualifications */
.cv-qualifications {
    margin-bottom: 3rem;
}

.cv-qualifications .section-title {
    margin-bottom: 1.5rem;
}

.qual-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.qual-card {
    padding: 1.5rem;
    border-radius: 24px;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-main);
}

.qual-card:hover {
    border-color: var(--apple-blue);
    transform: translateY(-3px);
    background: rgba(255,255,255,0.08);
}

.qual-icon {
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.qual-icon i {
    width: 20px;
    height: 20px;
    color: var(--apple-blue);
}

.qual-info {
    flex: 1;
}

.qual-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}

.qual-header h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--white);
}

.external-icon {
    width: 14px;
    height: 14px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--apple-blue);
}

.qual-card:hover .external-icon {
    opacity: 1;
}

.qual-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (min-width: 781px) {
    .summary-card {
        grid-template-columns: 2fr 1fr;
        gap: 3rem;
    }

    .cv-stats {
        padding-top: 0;
        border-top: none;
        border-left: 1px solid rgba(255,255,255,0.1);
        padding-left: 3rem;
        align-content: start;
    }

    .qual-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ================================
   Maintenance Page
   ================================ */

.maintenance-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.maintenance-content {
    max-width: 600px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.maintenance-card {
    padding: 3rem 2rem;
    border-radius: 40px;
    position: relative;
}

/* Status Indicator */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-radius: 100px;
    color: #007AFF;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #007AFF;
    border-radius: 50%;
    box-shadow: 0 0 10px #007AFF;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Typography */
.maintenance-card h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.maintenance-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* Footer & Socials */
.maintenance-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: #007AFF;
    color: #ffffff;
    transform: translateY(-3px);
}

.back-soon-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 500;
}

/* Animated Background Blobs */
.bg-blobs {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    animation: float 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #007AFF;
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: #a855f7;
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
}

@keyframes float {
    from { transform: translate(0, 0) rotate(0deg); }
    to { transform: translate(100px, 50px) rotate(30deg); }
}