/* SGRLALives v2 - Cinematic Minimalist Theme */

:root {
    --primary-bg: #0a0a0a;
    --accent-color: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --overlay-opacity: 0.55;
}

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

body {
    background-color: var(--primary-bg);
    color: var(--accent-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* HERO SYSTEM (Replaces Background Video System) */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    z-index: 1;
}

.hero__video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center; /* default desktop */
    z-index: -2;
    pointer-events: none;
    /* Professional background fade-in */
    opacity: 0;
    animation: bgFadeIn 2.5s ease-out forwards;
}

.hero__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, var(--overlay-opacity));
    z-index: -1;
    /* Professional background fade-in */
    opacity: 0;
    animation: bgFadeIn 2s ease-out 0.5s forwards;
}

.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* DESKTOP POSITIONING (Keeping current desktop look) */
.hero--home .hero__video      { object-position:  100% center; }
.hero--portfolio .hero__video  { object-position: 0% center; }
.hero--ecosystem .hero__video  { object-position: center center; }
.hero--skills .hero__video     { object-position: 0% center; }
.hero--plans .hero__video      { object-position: center center; }
.hero--about .hero__video      { object-position: center center; }
.hero--contact .hero__video    { object-position: 100% center; }
.hero--blog .hero__video       { object-position: 100% center; }
/* Additional modifiers */
.hero--profile .hero__video    { object-position: center center; }
.hero--selah .hero__video      { object-position: 100% center; }

/* MOBILE VIDEO FRAMING GUIDE
   --x: move left/right (0% = far left, 100% = far right)
   --y: move up/down (0% = top, 100% = bottom)
   --zoom: 1.10–1.30 recommended
*/

@media (max-width: 768px) {
    .hero__video {
        object-position: var(--x, 50%) var(--y, 50%);
        transform: scale(var(--zoom, 1));
        transform-origin: center;
    }
    
    /* Per-page mobile tuning starter values */
    .hero--home      { --x: 70%; --y: 50%; --zoom: 1.15; }
    .hero--about     { --x: 55%; --y: 45%; --zoom: 1.20; }
    .hero--skills    { --x: 62%; --y: 50%; --zoom: 1.18; }
    .hero--blog      { --x: 68%; --y: 52%; --zoom: 1.15; }
    .hero--plans     { --x: 60%; --y: 48%; --zoom: 1.20; }
    .hero--contact   { --x: 65%; --y: 50%; --zoom: 1.18; }
    .hero--ecosystem { --x: 58%; --y: 50%; --zoom: 1.15; }
    .hero--portfolio { --x: 63%; --y: 50%; --zoom: 1.15; }
}

/* Typography & Layout */
@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes pageFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
    to {
        opacity: 0;
        transform: translateY(-30px);
        filter: blur(10px);
    }
}

@keyframes navSlideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

header.site-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.25rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    /* Delayed entrance animation for navbar */
    opacity: 0;
    animation: navSlideDown 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.8s forwards;
}

.logo {
    text-decoration: none;
    color: #fff;
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    display: block;
}

.logo span {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
}

/* Desktop Navigation */
.nav-desktop ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-desktop a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    transition: color 0.3s ease;
}

.nav-desktop a:hover, .nav-desktop a.active {
    color: #fff;
}

/* Mobile Navigation */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.nav-mobile {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.85);
    z-index: 99;
    padding: 2rem 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-mobile.active {
    display: block;
}

.nav-mobile ul {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 0;
}

.nav-mobile li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-mobile a {
    display: block;
    padding: 1rem 5%;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    transition: all 0.3s ease;
}

.nav-mobile a:hover, .nav-mobile a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 8rem 2.5% 4rem;
    position: relative;
    /* Professional entrance animation for page content */
    opacity: 0;
    animation: pageFadeIn 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

/* Page exit state triggered by JS */
.page-exit main {
    animation: pageFadeOut 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards !important;
}

.page-exit .hero__video,
.page-exit .hero__overlay {
    animation: bgFadeOut 0.8s ease-in forwards !important;
}

.page-exit header.site-nav {
    transition: all 0.6s ease;
    transform: translateY(-100%);
    opacity: 0;
}

.hero-content {
    max-width: 75%;
    width: 100%;
}

/* Per-page content positioning */
.home-page main {
    align-items: flex-start;
    justify-content: center;
}

.portfolio-page main {
    align-items: flex-end;
}

.ecosystem-page main {
    align-items: flex-start;
}

.about-page main {
    align-items: flex-end;
}

.contact-page main {
    align-items: flex-start;
}

.blog-page main {
    align-items: flex-start;
}

.blog-login-page main {
    align-items: flex-start;
}

.blog-new-page main {
    align-items: flex-start;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 800px;
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

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

/* Content Blocks & Tables */
.content-block {
    width: 100%;
    padding: 3rem 0;
    background: rgba(255, 255, 255, 0.03);
}

.content-block.alt {
    background: rgba(255, 255, 255, 0.06);
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.content-wrapper h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 1rem;
    font-weight: 300;
}

.content-wrapper p {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: clamp(0.85rem, 2vw, 1rem);
}

.data-table th {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.25rem;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.data-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.data-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.value-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.value-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.value-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

/* Narrative Items & Profile Blocks */
.narrative-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.narrative-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.narrative-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: rgba(255, 255, 255, 0.4);
}

.narrative-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.narrative-item p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Profile Info */
.profile-info {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
}

.info-item {
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    padding-left: 1rem;
}

.info-item label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #fff;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05rem;
}

.info-item p {
    margin: 0;
    color: var(--text-muted);
    font-size: 1rem;
}

/* Partner List */
.partner-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.partner-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.partner-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.partner-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.partner-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* Gratitude Sections */
.gratitude-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.gratitude-box {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.gratitude-box h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.gratitude-box p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Principle Grid */
.principle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.principle-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    text-align: center;
    transition: all 0.3s ease;
}

.principle-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.principle-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.principle-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* Memorial & Legacy Message */
.memorial-message,
.legacy-message,
.project-status {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.04);
    border-left: 4px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin: 2rem 0;
}

.memorial-message p,
.legacy-message p,
.project-status p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
}

/* Tablet Adjustments */
@media (max-width: 1024px) {
    main {
        padding: 0 7%;
    }
}

/* Mobile First Adjustments */
@media (max-width: 768px) {
    header.site-nav {
        padding: 1rem 5%;
    }
    
    .logo img {
        height: 32px;
    }
    
    .nav-desktop {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }

    main {
        padding: 6rem 5% 3rem;
        align-items: center !important;
        justify-content: flex-start !important;
    }

    .hero-content {
        max-width: 100%;
        width: 100%;
    }

    .hero-content h1 {
        font-size: clamp(1.8rem, 6vw, 2.8rem);
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn-primary {
        padding: 0.9rem 1.5rem;
        font-size: 0.75rem;
    }

    /* Mobile video positioning - center to show person */
    .bg-home video { object-position: center center; }
    .bg-portfolio video { object-position: 55% 30%; }
    .bg-ecosystem video { object-position: 70% center; }
    .bg-skills video { object-position: 60% 40%; }
    .bg-plans video { object-position: center center; }
    .bg-about video { object-position: 65% center; }
    .bg-contact video { object-position: center center; }
    .bg-blog video { object-position: 75% center; }
}

/* Small Mobile */
@media (max-width: 480px) {
    header.site-nav {
        padding: 1rem 4%;
    }

    main {
        padding: 5rem 4% 2rem;
        justify-content: flex-start !important;
    }

    .hero-content h1 {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
        margin-bottom: 1rem;
    }

    .hero-content p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }

    .btn-primary {
        padding: 0.8rem 1.2rem;
        font-size: 0.7rem;
    }
}

/* Footer Styling */
.site-footer {
    background: var(--primary-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    padding: 3rem 5%;
    margin-top: 8rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--accent-color);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.8rem;
}

.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-links li {
    margin-bottom: 0;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.25s ease;
}

.social-links a:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.08);
}

.social-links img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.5);
}

/* Tablet Footer */
@media (max-width: 768px) {
    .site-footer {
        padding: 2rem 4%;
        margin-top: 4rem;
    }

    .footer-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
        margin-bottom: 1.5rem;
    }

    .footer-section h3 {
        font-size: 0.85rem;
    }

    .footer-section a {
        font-size: 0.85rem;
    }
}

/* Mobile Footer */
@media (max-width: 480px) {
    .site-footer {
        padding: 3rem 5% 4rem;
        margin-top: 3rem;
    }

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem 1rem;
        margin-bottom: 2rem;
    }

    /* First 4 sections in 2x2 grid */
    .footer-section:nth-child(n+1):nth-child(-n+4) {
        grid-column: span 1;
    }

    /* Connect section full width horizontal */
    .footer-section:nth-child(5) {
        grid-column: span 2;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        text-align: center;
    }

    .footer-section h3 {
        font-size: 0.75rem;
        margin-bottom: 1.25rem;
        letter-spacing: 0.1rem;
    }

    .footer-section li {
        margin-bottom: 0.6rem;
    }

    .footer-section a {
        font-size: 0.85rem;
    }

    /* Horizontal Connect Links */
    .footer-section:nth-child(5) ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem 1.5rem;
    }

    .footer-section:nth-child(5) li {
        margin-bottom: 0;
    }

    .footer-bottom {
        padding-top: 2rem;
        font-size: 0.75rem;
    }

    /* Mobile Table Adjustments */
    .content-block {
        padding: 2rem 0;
    }

    .data-table {
        font-size: 0.8rem;
    }

    .data-table th {
        padding: 0.75rem;
    }

    .data-table td {
        padding: 0.75rem;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .value-card {
        padding: 1rem;
    }

    /* Mobile Narrative Items */
    .narrative-items {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1.5rem 0;
    }

    .narrative-item {
        padding: 1rem;
    }

    /* Mobile Profile */
    .profile-info {
        padding: 1rem;
        gap: 1rem;
    }

    .info-item label {
        font-size: 0.8rem;
    }

    .info-item p {
        font-size: 0.9rem;
    }

    /* Mobile Partner List */
    .partner-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .partner-item {
        padding: 1rem;
    }

    /* Mobile Gratitude */
    .gratitude-sections {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gratitude-box {
        padding: 1rem;
    }

    /* Mobile Principle Grid */
    .principle-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .principle-card {
        padding: 1rem;
    }

    /* Mobile Video Positioning */
    .bg-profile video { object-position: center center; }
    .bg-affiliates video { object-position: center center; }
    .bg-adonai video { object-position: center center; }
    .bg-memorial video { object-position: center center; }
    .bg-selah video { object-position: center center; }
    .bg-fav-advice video { object-position: center center; }
    .bg-fav-nuggets video { object-position: center center; }
    .bg-fav-poems video { object-position: center center; }
    .bg-tech-blogs video { object-position: center center; }
    .bg-sermons video { object-position: center center; }
}

/* Wisdom Cards Grid */
.wisdom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.wisdom-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.wisdom-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.wisdom-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.wisdom-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

.wisdom-card footer {
    display: block;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 1rem;
    font-style: italic;
}

/* Section Quote */
.section-quote {
    font-size: 1.2rem;
    font-style: italic;
    padding: 1.5rem;
    border-left: 3px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.9);
    margin: 2rem 0 !important;
}

/* Nugget List */
.nugget-list {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
}

.nugget-item {
    display: flex;
    gap: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.nugget-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: rgba(255, 255, 255, 0.4);
}

.nugget-num {
    font-weight: 700;
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.6);
    min-width: 40px;
}

.nugget-item p {
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

/* Poem Grid */
.poem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.poem-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.poem-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.poem-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.poem-author {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.75rem !important;
    font-style: italic;
}

.poem-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 !important;
    flex-grow: 1;
}

.poem-status {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 1rem !important;
}

/* Sermon Grid */
.sermon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.sermon-card {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.sermon-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.sermon-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.sermon-author {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.75rem !important;
    font-style: italic;
}

.sermon-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 !important;
    flex-grow: 1;
}

/* Mobile Adjustments for New Pages */
@media (max-width: 480px) {
    .wisdom-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .wisdom-card {
        padding: 1rem;
    }

    .section-quote {
        font-size: 1rem;
        padding: 1rem;
    }

    .nugget-list {
        gap: 0.75rem;
    }

    .nugget-item {
        gap: 1rem;
        padding: 0.75rem;
    }

    .nugget-num {
        font-size: 1.1rem;
        min-width: 35px;
    }

    .poem-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .poem-card {
        padding: 1rem;
    }

    .sermon-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .sermon-card {
        padding: 1rem;
    }

    .bg-fav-advice video { object-position: center center; }
    .bg-fav-nuggets video { object-position: center center; }
    .bg-fav-poems video { object-position: center center; }
    .bg-tech-blogs video { object-position: center center; }
    .bg-sermons video { object-position: center center; }
}

/* Favorites Grid */
.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.favorite-item {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.favorite-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.favorite-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.favorite-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* FAQ Items */
.faq-items {
    margin: 2rem 0;
}

.faq-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border-left: 3px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-left-color: rgba(255, 255, 255, 0.4);
}

.faq-item h3 {
    font-size: 1.1rem;
    margin: 0 0 0.75rem 0;
    font-weight: 600;
    color: #fff;
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.7;
}

/* Timeline Component */
.timeline {
    margin: 2rem 0;
}

.timeline-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-left: 2rem;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.1) 100%);
}

.timeline-marker {
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.timeline-year {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

.timeline-content {
    flex: 1;
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin: 0 0 0.75rem 0;
    font-weight: 400;
}

.timeline-content p {
    color: var(--text-muted);
    margin: 0 0 1rem 0;
    line-height: 1.7;
}

.timeline-content ul {
    list-style: none;
}

.timeline-content ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.timeline-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: rgba(255,255,255,0.3);
}

/* Video positioning for new pages */
.bg-profile-likes video { object-position: center 30%; }
.bg-profile-perspectives video { object-position: center center; }
.bg-plans-character video { object-position: center center; }
.bg-plans-future video { object-position: center 40%; }

@media (max-width: 768px) {
    .timeline-item {
        flex-direction: column;
        padding-left: 1.5rem;
        gap: 1rem;
    }

    .timeline-item::before {
        left: 0;
    }
}


/* PORTFOLIO SYSTEM (Scoped) */
.portfolio-grid-view {
    display: block;
}

.portfolio-detail-view {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

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

.portfolio-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 3rem 0 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 3rem;
}

.portfolio-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.portfolio-card-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 2rem;
}

.portfolio-card-logo img {
    max-height: 100%;
    max-width: 180px;
    object-fit: contain;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-card-logo img {
    opacity: 1;
}

.portfolio-card h3 {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
    color: #fff;
}

.portfolio-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex-grow: 1;
}

.portfolio-card .tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 1.5rem;
}

/* Detail View Styles */
.portfolio-detail-panel {
    max-width: 1300px;
    margin: 2rem 0 4rem;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.portfolio-logo-zone {
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    padding: 3rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-logo-zone h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-align: center;
    line-height: 1;
}

.portfolio-logo-zone img {
    max-width: 80%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3));
}

.portfolio-info-zone {
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-detail-year {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1rem;
}

.portfolio-info-zone h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.portfolio-detail-desc {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.portfolio-actions {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.portfolio-btn-back {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1rem;
    cursor: pointer;
    transition: color 0.3s;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.portfolio-btn-back:hover {
    color: #fff;
}

/* Mobile Portfolio Overrides */
@media (max-width: 992px) {
    .portfolio-detail-panel {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .portfolio-logo-zone {
        min-height: 250px;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .portfolio-info-zone {
        padding: 3rem 2rem;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-logo-zone h2 {
        font-size: 2rem;
    }
    
    .portfolio-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
