/*
PresenceMatrix - Custom Styles
Graphy-inspired modern design for personal branding
*/

/* ========================================
   ENHANCED COLOR VARIABLES (Graphy-inspired)
   ======================================== */
:root {
    /* Keep original Noir colors */
    --primary: #0a0a0a;
    --accent: #6B5DD8; /* Purple from Graphy */
    --accent-hover: #5849C6;
    --accent-secondary: #8B7FE8;
    --text-light: #ffffff;
    --text-muted: #999;
    --bg-dark: #000;
    --bg-section: #0a0a0a;

    /* Additional Graphy colors */
    --gradient-purple: linear-gradient(135deg, #6B5DD8, #8B7FE8);
    --gradient-accent: linear-gradient(135deg, #6B5DD8 0%, #A598F0 100%);
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-border: rgba(255, 255, 255, 0.05);
}

/* ========================================
   SECTION 1: HERO - PERSONAL IP
   ======================================== */
.hero-ip {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    padding-top: 140px;
}

.hero-ip-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding-bottom: 80px;
}

.hero-ip-content {
    max-width: 600px;
}

.hero-ip-image {
    position: relative;
    align-self: stretch;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(107, 93, 216, 0.3);
}

.hero-ip-image img {
    width: 100%;
    height: 100%;
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(107, 93, 216, 0.2) 0%, rgba(0, 0, 0, 0.3) 100%);
    pointer-events: none;
}

.hero-ip-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 30px;
    letter-spacing: -2px;
    text-align: left;
}

.accent-gradient {
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-ip-subtitle {
    font-size: clamp(16px, 2vw, 18px);
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 35px;
    text-align: left;
}

.hero-ip-features {
    margin-bottom: 40px;
    padding: 25px;
    background: rgba(107, 93, 216, 0.05);
    border: 1px solid rgba(107, 93, 216, 0.15);
    border-radius: 12px;
    text-align: left;
}

.features-intro,
.features-outro {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
    margin: 8px 0;
}

.trust-points {
    display: flex;
    justify-content: flex-start;
    gap: 30px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.trust-icon {
    width: 24px;
    height: 24px;
    background: var(--gradient-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

/* CTA Button Enhancements */
.cta-button.large {
    padding: 22px 60px;
    font-size: 16px;
}

/* ========================================
   VIDEO SECTION
   ======================================== */
.video-section {
    padding: 120px 50px 100px;
    background: var(--bg-dark);
    position: relative;
}

.video-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(107, 93, 216, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.video-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(107, 93, 216, 0.3);
    border-radius: 20px;
    margin-top: 40px;
    box-shadow: 0 20px 60px rgba(107, 93, 216, 0.2);
}

.video-iframe,
.video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

.video-player {
    object-fit: cover;
}

.video-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(107, 93, 216, 0.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.video-loading p {
    color: var(--text-muted);
    font-size: 14px;
}

.video-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-muted);
}

/* Platform redirect button */
.platform-redirect-btn {
    display: inline-block;
    padding: 16px 40px;
    background: var(--accent);
    border-radius: 50px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.platform-redirect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(107, 93, 216, 0.4);
    filter: brightness(1.15);
}

.video-error p {
    font-size: 16px;
}

.video-info {
    margin-top: 30px;
    text-align: center;
}

.video-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(107, 93, 216, 0.05);
    border-radius: 12px;
    border-left: 4px solid var(--accent);
}

/* ========================================
   SECTION 2: WHAT YOU'LL LEARN
   ======================================== */
.learn-section {
    padding: 120px 50px 100px;
    background: var(--bg-section);
    position: relative;
}

.learn-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(107, 93, 216, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.learn-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.learn-module {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
}

.module-image {
    width: 100%;
    height: 100%;
    min-height: 280px;
    overflow: hidden;
    position: relative;
}

.module-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.module-content {
    padding: 40px;
}

.learn-module::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-purple);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.learn-module:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(107, 93, 216, 0.3);
    transform: translateY(-5px);
}

.learn-module:hover::before {
    opacity: 1;
}

.learn-module:hover .module-image img {
    transform: scale(1.05);
}

.module-header {
    margin-bottom: 25px;
}

.module-number {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(107, 93, 216, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.module-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.module-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    font-style: italic;
}

.module-list {
    list-style: none;
    padding: 0;
}

.module-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 16px;
}

.module-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

/* Featured Module (Monetisation) */
.module-featured {
    background: linear-gradient(135deg, rgba(107, 93, 216, 0.08), rgba(107, 93, 216, 0.02));
    border: 1px solid rgba(107, 93, 216, 0.2);
    grid-template-columns: 1fr;
    display: block;
}

.module-featured-header {
    position: relative;
    margin-bottom: 30px;
}

.module-image-large {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    margin-bottom: -80px;
}

.module-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7);
}

.module-featured .module-header {
    position: relative;
    z-index: 2;
    padding: 0 40px;
}

.module-featured .monetisation-grid,
.module-featured .module-footer {
    padding: 0 40px;
}

.module-featured .module-footer {
    padding-bottom: 40px;
}

.monetisation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.monetisation-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.monetisation-item:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.monetisation-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.monetisation-item h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-light);
}

.monetisation-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 8px 0;
}

.module-footer {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.module-footer p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
    font-style: italic;
}

/* ========================================
   SECTION 3: HOW IT WORKS (PROCESS)
   ======================================== */
.process-section {
    padding: 120px 50px 100px;
    background: var(--bg-dark);
    position: relative;
}

.process-container {
    max-width: 1000px;
    margin: 0 auto;
}

.process-timeline {
    margin-top: 80px;
    position: relative;
}

.process-step {
    display: grid;
    grid-template-columns: 80px 1fr 400px;
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
    align-items: center;
}

.step-image {
    width: 100%;
    height: 280px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.process-step:hover .step-image img {
    transform: scale(1.05);
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(107, 93, 216, 0.3);
}

.step-number span {
    font-size: 24px;
    font-weight: 900;
    color: white;
    letter-spacing: -1px;
}

.step-content {
    padding-top: 10px;
}

.step-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

.step-description {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-muted);
}

.step-connector {
    position: absolute;
    left: 39px;
    top: 80px;
    width: 2px;
    height: calc(100% + 60px);
    background: linear-gradient(180deg, var(--accent) 0%, rgba(107, 93, 216, 0.2) 100%);
}

.process-step:last-child .step-connector {
    display: none;
}

/* ========================================
   SECTION 4: CASE STUDIES
   ======================================== */
.cases-section {
    padding: 120px 50px 100px;
    background: var(--bg-section);
}

.cases-grid {
    max-width: 1200px;
    margin: 0 auto 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
}

.case-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.case-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-content {
    padding: 35px;
}

.case-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-purple);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.case-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(107, 93, 216, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(107, 93, 216, 0.15);
}

.case-card:hover::before {
    transform: scaleX(1);
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-number {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(107, 93, 216, 0.1);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.case-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.case-points {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.case-points li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 15px;
}

.case-points li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
    font-size: 16px;
}

.case-focus {
    padding: 18px;
    background: rgba(107, 93, 216, 0.08);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-light);
    border-left: 3px solid var(--accent);
}

.case-focus strong {
    color: var(--accent);
}

.cases-disclaimer {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 25px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
}

.cases-disclaimer p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    font-style: italic;
}

/* ========================================
   SECTION 5: WHO THIS IS FOR
   ======================================== */
.who-section {
    padding: 120px 50px 100px;
    background: var(--bg-dark);
    position: relative;
}

.who-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 50%, rgba(107, 93, 216, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.who-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.who-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.who-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.who-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-purple);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.who-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(107, 93, 216, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(107, 93, 216, 0.15);
}

.who-card:hover::after {
    transform: scaleX(1);
}

.who-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 25px;
    box-shadow: 0 10px 30px rgba(107, 93, 216, 0.3);
}

.who-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.4;
    letter-spacing: -0.5px;
}

.who-card p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* ========================================
   SECTION 6: FINAL CTA
   ======================================== */
.final-cta-section {
    padding: 120px 50px;
    background: var(--bg-section);
    position: relative;
    overflow: hidden;
}

.final-cta-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
}

.final-cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.final-cta-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(107, 93, 216, 0.7) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.final-cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.final-cta-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 900;
    margin-bottom: 25px;
    letter-spacing: -2px;
    background: var(--gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.final-cta-description {
    font-size: clamp(16px, 2.5vw, 20px);
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 45px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 900px) {
    .hero-ip-container {
        padding: 0 30px;
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-ip-content {
        max-width: 100%;
    }

    .hero-ip-title {
        text-align: center;
    }

    .hero-ip-subtitle {
        text-align: center;
    }

    .hero-ip-image {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .trust-points {
        justify-content: center;
    }

    .learn-module {
        grid-template-columns: 1fr;
    }

    .module-image {
        min-height: 250px;
    }

    .module-image-large {
        height: 300px;
    }

    .monetisation-grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        grid-template-columns: 60px 1fr;
        gap: 25px;
    }

    .step-image {
        display: none;
    }

    .step-number {
        width: 60px;
        height: 60px;
    }

    .step-number span {
        font-size: 20px;
    }

    .step-connector {
        left: 29px;
        top: 60px;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .who-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-ip {
        padding-top: 100px;
    }

    .hero-ip-container,
    .video-section,
    .learn-section,
    .process-section,
    .cases-section,
    .who-section,
    .final-cta-section {
        padding-left: 20px;
        padding-right: 20px;
    }

    .video-wrapper {
        border-radius: 12px;
    }

    .video-iframe,
    .video-player {
        border-radius: 12px;
    }

    .hero-ip-image {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .module-content {
        padding: 30px 25px;
    }

    .module-featured .module-header,
    .module-featured .monetisation-grid,
    .module-featured .module-footer {
        padding-left: 25px;
        padding-right: 25px;
    }

    .hero-ip-features {
        padding: 20px;
        text-align: center;
    }

    .trust-points {
        flex-direction: column;
        gap: 15px;
    }

    .step-title {
        font-size: 24px;
    }

    .case-content {
        padding: 28px;
    }

    .case-image {
        height: 200px;
    }

    .who-card {
        padding: 35px 25px;
    }

    .whatsapp-card {
        padding: 15px !important;
    }

    .whatsapp-iframe-wrap {
        padding-bottom: 750px !important;
        min-height: 750px !important;
    }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Add animation delays for staggered effect */
.learn-module:nth-child(1) { animation: fadeInUp 0.6s ease 0.1s backwards; }
.learn-module:nth-child(2) { animation: fadeInUp 0.6s ease 0.2s backwards; }
.learn-module:nth-child(3) { animation: fadeInUp 0.6s ease 0.3s backwards; }

.process-step:nth-child(1) { animation: fadeInUp 0.6s ease 0.1s backwards; }
.process-step:nth-child(2) { animation: fadeInUp 0.6s ease 0.2s backwards; }
.process-step:nth-child(3) { animation: fadeInUp 0.6s ease 0.3s backwards; }

.case-card:nth-child(1) { animation: fadeInUp 0.6s ease 0.1s backwards; }
.case-card:nth-child(2) { animation: fadeInUp 0.6s ease 0.2s backwards; }
.case-card:nth-child(3) { animation: fadeInUp 0.6s ease 0.3s backwards; }

.who-card:nth-child(1) { animation: fadeInUp 0.6s ease 0.1s backwards; }
.who-card:nth-child(2) { animation: fadeInUp 0.6s ease 0.2s backwards; }
.who-card:nth-child(3) { animation: fadeInUp 0.6s ease 0.3s backwards; }
.who-card:nth-child(4) { animation: fadeInUp 0.6s ease 0.4s backwards; }
