/* css/pages/about.css - Antigravity Bento Edition (Dark Space Version) */

:root {
    --ag-bg-dark: #070912;
    --ag-accent: #ff9f43; /* Solar Orange */
    --ag-accent-alt: #ff6b6b;
    --ag-accent-glow: rgba(255, 159, 67, 0.4);
    --ag-glass: rgba(255, 255, 255, 0.94); /* Almost solid for readability */
    --ag-glass-hover: rgba(255, 255, 255, 0.98);
    --ag-glass-border: rgba(255, 159, 67, 0.2);
    --ag-text-main: #0f172a; /* Darker text */
    --ag-text-muted: #475569;
    --ag-text-title: #020617;
}

/* Cursor - Reverted to default */
#ag-cursor {
    display: none !important;
}

/* Background & Global */
body.about-page {
    background-color: var(--ag-bg-dark);
    color: var(--ag-text-main);
    overflow-x: hidden;
    font-family: 'Outfit', 'Space Grotesk', sans-serif;
    cursor: auto !important;
    transition: filter 0.3s ease; /* For gravity ripple */
}

/* Navigation Header Styles for Consistency */
.about-page .logo a {
    color: var(--text-color) !important;
}

/* Base Grain/Noise Texture for Tech Feel */
body.about-page::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: 1000;
    pointer-events: none;
    background-image: url('https://grainy-gradients.vercel.app/noise.svg');
}

#antigravity-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}

/* Layout - Bento Grid System */
.lp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15vh 20px 10vh;
    position: relative;
    z-index: 10;
}

.ag-bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    perspective: 2000px; /* Enhanced 3D depth */
}

/* Bento Card Specialization */
.ag-card {
    grid-column: span 12;
    background-image: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=2072&auto=format&fit=crop');
    background-repeat: no-repeat;
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: none; /* Replaced by Gradient Border */
    border-radius: 40px;
    padding: 3.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    transition: z-index 0.3s ease, box-shadow 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

/* Gradient Border Magic */
.ag-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 40px;
    padding: 2px; /* Border thickness */
    background: linear-gradient(135deg, var(--ag-accent), var(--ag-accent-alt), #ffcc33, var(--ag-accent));
    background-size: 300% 300%;
    animation: borderRotate 6s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 5;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.ag-card:hover::before {
    opacity: 1;
}

.ag-card:hover {
    box-shadow: 0 40px 100px rgba(255, 159, 67, 0.25);
    transform: translateY(-5px);
}

@keyframes borderRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.ag-card.span-8 { grid-column: span 8; }
.ag-card.span-7 { grid-column: span 7; }
.ag-card.span-6 { grid-column: span 6; }
.ag-card.span-5 { grid-column: span 5; }
.ag-card.span-4 { grid-column: span 4; }

/* Typography Overrides */
.title-massive {
    font-size: clamp(4rem, 15vw, 10rem);
    line-height: 0.8;
    text-transform: uppercase;
    background: linear-gradient(to bottom, #fff 40%, var(--ag-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4rem;
    text-align: center;
    opacity: 1;
    filter: drop-shadow(0 0 40px rgba(255, 159, 67, 0.4));
    cursor: default;
    user-select: none;
    font-family: 'Space Grotesk', monospace; /* Monospace hint for scramble */
}

.ag-card h3 {
    font-size: 2.2rem;
    color: var(--ag-text-title);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--ag-accent);
    display: inline-block;
    padding-bottom: 0.5rem;
}

.ag-card p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--ag-text-main);
    margin-bottom: 1.5rem;
}

/* Highlights */
.highlight {
    background: linear-gradient(90deg, transparent, rgba(255, 159, 67, 0.1), transparent);
    border-left: 4px solid var(--ag-accent);
    padding: 0.5rem 1rem;
    display: inline-block;
    color: var(--ag-text-title);
    font-weight: 600;
}

/* Quote Block */
.quote-block {
    background: linear-gradient(135deg, rgba(255, 159, 67, 0.05) 0%, transparent 100%);
    padding: 3.5rem;
    border-radius: 35px;
    font-size: 1.8rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    color: var(--ag-text-title);
    border: 2px dashed var(--ag-accent);
    margin: 3rem 0;
    position: relative;
}

.quote-block::before {
    content: "“";
    position: absolute;
    top: 10px;
    left: 30px;
    font-size: 5rem;
    color: var(--ag-accent);
    opacity: 0.3;
}

/* Profile Card Specialization */
.profile-photo-area {
    width: 160px;
    height: 160px;
    margin: 0 auto 2rem;
    position: relative;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ag-accent), var(--ag-accent-alt));
    padding: 4px;
    box-shadow: 0 0 30px var(--ag-accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-glow {
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, var(--ag-accent-glow), transparent 70%);
    border-radius: 50%;
    animation: solarPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes solarPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.15); }
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    position: relative;
    overflow: hidden;
}

.profile-placeholder i {
    font-size: 3.5rem;
    color: #64748b;
    line-height: 1; /* Reset line-height to prevent vertical shift */
}

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

.profile-info h2 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ag-text-title);
    margin-bottom: 0.5rem;
}

.profile-info .subtitle {
    color: var(--ag-accent);
    font-weight: 600;
    letter-spacing: 0.1em;
    font-size: 1rem;
}

/* -------------------------------------------------------------------------- */
/* Timeline Design (COMPLETELY PRESERVED)                                     */
/* -------------------------------------------------------------------------- */

.timeline-container {
    padding: 1rem 0;
}

.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid #cbd5e1;
    margin-left: 0.5rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

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

.timeline-item::before {
    content: "";
    position: absolute;
    left: -2.6rem;
    top: 5px;
    width: 1.2rem;
    height: 1.2rem;
    background: var(--ag-accent);
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Animated Pulse for 'Now' Item */
.timeline-item.is-now::before {
    animation: timelinePulse 3s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.is-now .timeline-content {
    border: 1px solid var(--ag-accent);
    background: linear-gradient(to right, #ffffff, #fffcf5);
    box-shadow: 0 0 30px rgba(255, 159, 67, 0.1);
}

@keyframes timelinePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 159, 67, 0.6), 0 4px 10px rgba(0, 0, 0, 0.1);
    }
    60% {
        box-shadow: 0 0 0 25px rgba(255, 159, 67, 0), 0 4px 10px rgba(0, 0, 0, 0.1);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 159, 67, 0), 0 4px 10px rgba(0, 0, 0, 0.1);
    }
}

.timeline-date {
    font-weight: 800;
    color: var(--ag-accent);
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
    font-family: "Outfit", sans-serif;
}

.timeline-content {
    background: #f8fafc;
    color: var(--ag-text-main);
    padding: 1.5rem;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    line-height: 1.7 !important;
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 20px rgba(255, 159, 67, 0.1);
}

/* Warp Gimmick Animation */
.ag-card.warping {
    animation: warpDrive 4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    z-index: 1000 !important;
}

@keyframes warpDrive {
    0% { transform: scale(1); opacity: 1; filter: brightness(1); }
    35% { transform: scale(5); opacity: 0; filter: brightness(1.5); }  /* Zoom up to fill screen then fade out */
    45% { transform: scale(0.05); opacity: 0; }                        /* Distant point (Invisible) */
    50% { transform: scale(0.05); opacity: 0.1; }                      /* Start showing at distance */
    100% { transform: scale(1); opacity: 1; filter: brightness(1); }   /* Smooth return to origin */
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: scale(0.96) translateY(30px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Floating Background Toggle Button */
.bg-toggle-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #334155;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.bg-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.95);
    color: var(--ag-accent);
    border-color: #fff;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.15);
}

.bg-toggle-btn.stopped {
    background: rgba(241, 245, 249, 0.7);
    border-color: rgba(226, 232, 240, 0.8);
    color: #94a3b8;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    transform: translateY(0) scale(1);
}

.bg-toggle-btn.stopped:hover {
    transform: translateY(-2px);
}

/* Video Showcase Styles (Antigravity Style) */
.video-card {
    position: relative;
    padding: 0 !important;
    overflow: hidden !important;
    height: 60vh;
    min-height: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0,0,0,0.6));
    pointer-events: none;
}

/* Mouse Follower */
.video-cursor-follower {
    position: absolute;
    top: 0;
    left: 0;
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5); /* Use translate for proper centering */
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}

.video-card:hover .video-cursor-follower {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.action-btn-pill {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: var(--ag-bg-dark);
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    font-weight: 800;
    font-size: 1rem;
    white-space: nowrap;
    box-shadow: 0 15px 45px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.4);
}

.video-bottom-info {
    position: absolute;
    bottom: 2rem;
    left: 2.5rem;
    right: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: auto;
}

.video-text {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.video-subtitle {
    display: block;
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.video-main-title {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 800;
}


/* Video Modal */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.95);
    z-index: 11000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(20px);
}

.video-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    width: 90%;
    max-width: 1200px;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-modal.active .modal-content {
    transform: scale(1);
}

#modal-video {
    width: 100%;
    display: block;
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10;
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.3s;
}

.modal-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Responsive */
@media (max-width: 768px) {
    .lp-container {
        padding-top: 12vh;
        padding-bottom: 5vh;
    }

    .title-massive {
        font-size: clamp(3rem, 12vw, 5rem);
        margin-bottom: 2.5rem;
    }

    .ag-bento-grid {
        gap: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .ag-card {
        grid-column: span 12 !important; /* Force stack to 1 column */
        padding: 2.5rem 1.5rem;
        border-radius: 30px;
    }

    .ag-card::before {
        border-radius: 30px;
    }

    .profile-photo-area {
        width: 130px;
        height: 130px;
        margin-bottom: 1.5rem;
    }

    .profile-placeholder i {
        font-size: 3rem;
    }

    .profile-info h2 {
        font-size: 1.6rem;
    }

    .ag-card h3 {
        font-size: 1.6rem;
    }

    .quote-block {
        padding: 2rem;
        font-size: 1.4rem;
        border-radius: 25px;
    }

    .quote-block::before {
        font-size: 3rem;
        left: 15px;
    }

    .timeline-content {
        padding: 1rem;
    }

    /* Mobile-specific: Mouse follower becomes a fixed play button */
    .video-cursor-follower {
        opacity: 1 !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) scale(1) !important;
    }
}
/* -------------------------------------------------------------------------- */
/* Bottom Navigation (TOP Button)                                            */
/* -------------------------------------------------------------------------- */

.bottom-nav-container {
    width: 100%; /* Ensure full width for centering */
    text-align: center;
    margin-top: 10rem;
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2000;
}

.ag-final-top-btn {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.2rem 5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.6em;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    background: rgba(15, 23, 42, 0.4); /* Deeper glass for better readability */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05); /* Subtle inner highlight instead of outer border */
    border: none; /* Removed the overlapping thin border */
    overflow: hidden;
    cursor: pointer;
}

/* Glowing Rotating Border - Refined */
.ag-final-top-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1.5px; /* Thinner for elegance */
    border-radius: 30px;
    background: linear-gradient(135deg, var(--ag-accent), var(--ag-accent-alt), #ffcc33, var(--ag-accent));
    background-size: 300% 300%;
    animation: borderRotate 6s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 5;
    opacity: 0.3; /* Subtle base state */
    transition: opacity 0.4s ease, filter 0.4s ease;
}

/* Outer Glow Effect on Hover (Added Aura) */
.ag-final-top-btn::after {
    content: "";
    position: absolute;
    inset: -10px;
    background: var(--ag-accent-glow);
    filter: blur(25px);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.ag-final-top-btn:hover {
    background: rgba(15, 23, 42, 0.6);
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    color: #fff;
}

.ag-final-top-btn:hover::before {
    opacity: 1; /* Vibrant border on hover */
    filter: drop-shadow(0 0 10px var(--ag-accent-glow));
}

.ag-final-top-btn:hover::after {
    opacity: 0.4; /* Soft aura appears */
}

/* Floating Icon Animation */
.ag-final-top-btn i {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--ag-accent);
    animation: floatArrow 2.5s ease-in-out infinite;
    transition: transform 0.3s ease;
}

@keyframes floatArrow {
    0%, 100% { transform: translateY(0); opacity: 0.7; }
    50% { transform: translateY(-8px); opacity: 1; }
}

.ag-final-top-btn:hover i {
    animation: none;
    transform: translateY(-5px) scale(1.2);
    color: #fff; /* White icon on hover for focus */
}

@media (max-width: 768px) {
    .bottom-nav-container {
        margin-top: 6rem;
        margin-bottom: 5rem;
    }
    
    .ag-final-top-btn {
        padding: 1.8rem 3.5rem;
        font-size: 1rem;
        letter-spacing: 0.4em;
        border-radius: 20px;
    }

    .ag-final-top-btn::before,
    .ag-final-top-btn::after {
        border-radius: 20px;
    }
}
