/*
Theme Name: The Rewired Co
Theme URI: https://truthovertactics.in
Author: Vikhyat
Description: Custom dark luxury theme for The Rewired Co - Private Identity Architecture by Ritesh Nagpal
Version: 1.0
*/

/* ========== CSS VARIABLES ========== */
:root {
    --black: #0a0a0a;
    --dark: #111111;
    --dark-card: rgba(255,255,255,0.04);
    --gold: #C9A84C;
    --gold-light: #D4C5A0;
    --gold-dim: rgba(201,168,76,0.3);
    --cream: #E8DCC8;
    --cream-dim: rgba(232,220,200,0.7);
    --cream-faint: rgba(232,220,200,0.45);
    --border-gold: rgba(201,168,76,0.25);
    --border-gold-strong: rgba(201,168,76,0.5);
    --font-serif: 'Playfair Display', 'Georgia', serif;
    --font-body: 'Cormorant Garamond', 'Georgia', serif;
    --font-sans: 'Montserrat', sans-serif;
}

/* ========== RESET & BASE ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--black);
    color: var(--cream);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: var(--gold-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--gold);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========== NOISE TEXTURE OVERLAY ========== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ========== GOLD DIVIDER WITH SPARKLE ========== */
.gold-divider {
    position: relative;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-gold-strong) 30%, var(--gold) 50%, var(--border-gold-strong) 70%, transparent);
    margin: 40px 0;
}

.gold-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--gold), 0 0 30px var(--gold-dim), 0 0 60px rgba(201,168,76,0.15);
    animation: sparkle-pulse 3s ease-in-out infinite;
}

@keyframes sparkle-pulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.5); }
}

/* ========== HEADER / NAVIGATION ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 30px 0;
    transition: all 0.4s ease;
}

.site-header.scrolled {
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(20px);
    padding: 16px 0;
    border-bottom: 1px solid var(--border-gold);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--cream) !important;
}

.logo-name {
    font-family: var(--font-sans);
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 400;
    display: block;
}

.logo-tagline {
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--cream-faint);
    letter-spacing: 1px;
    display: block;
    margin-top: 2px;
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 24px;
    height: 1.5px;
    background: var(--cream);
    transition: all 0.3s ease;
}

/* ========== SECTION BASE ========== */
section {
    padding: 120px 0;
    position: relative;
}

.section-heading {
    font-family: var(--font-serif);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 400;
    color: var(--cream);
    text-align: center;
    line-height: 1.3;
    margin-bottom: 30px;
}

.section-body {
    font-family: var(--font-body);
    font-size: clamp(17px, 2vw, 20px);
    color: var(--cream-dim);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.section-tagline {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--cream-dim);
    text-align: center;
    letter-spacing: 1px;
    margin-top: 10px;
}

/* ========== SCROLL REVEAL ANIMATIONS ========== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }

/* ========== HERO SECTION ========== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 160px 40px 120px;
    position: relative;
}

.hero-heading {
    font-family: var(--font-serif);
    font-size: clamp(36px, 6vw, 62px);
    font-weight: 400;
    color: var(--cream);
    line-height: 1.25;
    margin-bottom: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: hero-fade-in 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s forwards;
}

.hero-sub {
    font-family: var(--font-body);
    font-size: clamp(17px, 2.2vw, 21px);
    color: var(--cream-dim);
    max-width: 600px;
    line-height: 1.8;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(20px);
    animation: hero-fade-in 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.7s forwards;
}

@keyframes hero-fade-in {
    to { opacity: 1; transform: translateY(0); }
}

/* ========== CTA BUTTON ========== */
.btn-outline {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 17px;
    color: var(--cream);
    border: 1px solid var(--border-gold-strong);
    padding: 16px 44px;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    background: transparent;
    opacity: 0;
    animation: hero-fade-in 1s ease 1.1s forwards;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201,168,76,0.1), transparent);
    transition: left 0.5s ease;
}

.btn-outline:hover {
    border-color: var(--gold);
    color: var(--gold-light);
    box-shadow: 0 0 30px rgba(201,168,76,0.1), inset 0 0 30px rgba(201,168,76,0.05);
}

.btn-outline:hover::before {
    left: 100%;
}

.hero-note {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--cream-faint);
    margin-top: 20px;
    letter-spacing: 1px;
    opacity: 0;
    animation: hero-fade-in 1s ease 1.4s forwards;
}

/* ========== PHILOSOPHY SECTION (This is not coaching) ========== */
.philosophy {
    text-align: center;
    padding: 100px 40px;
}

.philosophy .section-heading {
    font-size: clamp(34px, 5vw, 50px);
}

.philosophy-words {
    font-family: var(--font-body);
    font-size: clamp(20px, 2.5vw, 26px);
    color: var(--cream);
    margin-top: 20px;
    line-height: 2;
}

/* ========== FRAMEWORK SECTION ========== */
.framework {
    text-align: center;
    padding: 120px 40px;
}

.framework-tagline {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--cream-dim);
    letter-spacing: 1px;
}

/* ========== ABOUT SECTION (Photo + Text) ========== */
.about {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 0;
    align-items: stretch;
    min-height: 600px;
}

.about-image {
    position: relative;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(30%);
    transition: filter 0.6s ease;
}

.about-image:hover img {
    filter: grayscale(0%);
}

.about-text {
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-text h2 {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 400;
    color: var(--cream);
    line-height: 1.3;
    margin-bottom: 30px;
}

.about-text h2 .underline-word {
    text-decoration: underline;
    text-decoration-color: var(--gold-dim);
    text-underline-offset: 6px;
}

.about-text p {
    font-size: 18px;
    color: var(--cream-dim);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-text .bold-statement {
    font-family: var(--font-serif);
    font-size: clamp(22px, 3vw, 30px);
    color: var(--cream);
    font-weight: 400;
    margin-top: 30px;
    line-height: 1.4;
}

.about-text .bold-statement .underline-word {
    text-decoration: underline;
    text-decoration-color: var(--gold-dim);
    text-underline-offset: 6px;
}

.about-bottom-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    padding: 20px 0;
    border-top: 1px solid var(--border-gold);
    margin-top: 0;
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cream-faint);
}

.about-bottom-bar span {
    display: flex;
    align-items: center;
    gap: 30px;
}

.about-bottom-bar span + span::before {
    content: '|';
    color: var(--gold-dim);
}

/* ========== LAYERS / MISALIGNMENT SECTION ========== */
.layers {
    padding: 120px 40px;
    text-align: center;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 60px;
}

.layer-card {
    padding: 40px 30px;
    border: 1px solid var(--border-gold);
    text-align: left;
    transition: all 0.4s ease;
    position: relative;
}

.layer-card:hover {
    background: var(--dark-card);
    border-color: var(--border-gold-strong);
}

.layer-card h3 {
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 25px;
}

.layer-card ul {
    list-style: none;
    padding: 0;
}

.layer-card li {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--cream-dim);
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

.layer-card li::before {
    content: '\2014';
    position: absolute;
    left: 0;
    color: var(--gold-dim);
}

/* ========== TWO COLUMN CARDS (Eligible / Not Aligned) ========== */
.two-col-section {
    padding: 120px 40px;
    text-align: center;
}

.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 60px;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
}

.col-card {
    border: 1px solid var(--border-gold);
    padding: 45px 40px;
    text-align: left;
    position: relative;
    transition: all 0.4s ease;
}

.col-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border: 1px solid transparent;
    transition: border-color 0.4s ease;
    pointer-events: none;
}

.col-card:hover::before {
    border-color: var(--gold-dim);
}

.col-card h3 {
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 28px;
}

.col-card li {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--cream-dim);
    padding: 8px 0 8px 20px;
    position: relative;
    line-height: 1.5;
    list-style: none;
}

.col-card li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--gold-dim);
}

/* ========== PHASES SECTION ========== */
.phases {
    padding: 120px 40px;
    text-align: center;
}

.phases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 60px;
}

.phase-card {
    border: 1px solid var(--border-gold);
    padding: 40px 30px;
    text-align: left;
    transition: all 0.4s ease;
}

.phase-card:hover {
    background: var(--dark-card);
}

.phase-num {
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

.phase-card h3 {
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--cream);
    margin-bottom: 25px;
}

.phase-card li {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--cream-dim);
    padding: 7px 0 7px 20px;
    position: relative;
    line-height: 1.5;
    list-style: none;
}

.phase-card li::before {
    content: '\2022';
    position: absolute;
    left: 0;
    color: var(--gold-dim);
}

.phases-tagline {
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-light);
    text-align: center;
    margin-top: 60px;
}

/* ========== INVESTMENT SECTION ========== */
.investment {
    padding: 120px 40px;
    text-align: center;
}

.investment .section-body {
    margin-bottom: 20px;
}

/* ========== CTA / BEGIN SECTION ========== */
.begin {
    padding: 120px 40px;
    text-align: center;
}

.begin .btn-outline {
    opacity: 1;
    animation: none;
    margin-top: 10px;
}

/* ========== FOOTER ========== */
.site-footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-gold);
    text-align: center;
}

.site-footer p {
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--cream-faint);
}

/* ========== CUSTOM CURSOR (Desktop only) ========== */
@media (hover: hover) {
    body {
        cursor: default;
    }
    a, button, .btn-outline {
        cursor: pointer;
    }
}

/* ========== MAGNETIC HOVER ON BUTTONS ========== */
.btn-outline {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ========== SMOOTH SECTION TRANSITIONS ========== */
section + section {
    border-top: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
    .about-image {
        max-height: 500px;
    }
    .about-text {
        padding: 60px 40px;
    }
    .cards-grid,
    .phases-grid {
        grid-template-columns: 1fr;
    }
    .two-col-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }
    .hero {
        padding: 140px 24px 80px;
    }
    .container {
        padding: 0 24px;
    }
    .site-header {
        padding: 20px 0;
    }
    .mobile-toggle {
        display: flex;
    }
    .about-text {
        padding: 40px 24px;
    }
    .about-bottom-bar {
        flex-direction: column;
        gap: 10px;
    }
    .about-bottom-bar span + span::before {
        display: none;
    }
    .layer-card,
    .phase-card,
    .col-card {
        padding: 30px 24px;
    }
    .gold-divider {
        margin: 30px 0;
    }
    .hero-heading {
        font-size: 32px;
    }
    .btn-outline {
        padding: 14px 32px;
        font-size: 15px;
    }
}

/* ========== PAGE LOAD ANIMATION ========== */
body {
    animation: page-fade 0.8s ease;
}

@keyframes page-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
