/* =================================================================
   ANSHUMAN PATRO - PREMIUM LUXURY DESIGN SYSTEM
   Optimized for SEO, Performance & Conversions
   ================================================================= */

/* --- 1. Variables & Reset --- */
:root {
    /* Core Palette: Deep Black, Luxury Gold, Royal Maroon */
    --bg-black: #050505;
    --bg-dark: #0f0f0f;
    --bg-card: rgba(255, 255, 255, 0.03);
    
    --gold-primary: #d4af37;
    --gold-light: #f3e5ab;
    --gold-dark: #aa8c2c;
    
    --maroon-primary: #800020;
    --maroon-hover: #a01f45;
    
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --text-muted: #666666;
    
    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #b88a44 0%, #e7d2a6 50%, #b88a44 100%);
    --gradient-maroon: linear-gradient(135deg, #4a0412 0%, #800020 100%);
    
    /* Layout */
    --max-width: 1400px;
    --header-height: 80px;
    --border-radius: 12px;
    
    /* Transitions */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-black);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- 2. Typography --- */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-gray);
}

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

/* Accessible Focus States */
a:focus-visible, button:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 4px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    top: -999px;
    left: 20px;
    background: var(--gold-primary);
    color: #000;
    padding: 1rem;
    z-index: 9999;
    font-weight: bold;
}

.skip-link:focus {
    top: 20px;
}

/* --- 3. Layout Utilities (FIXED) --- */
/* This was missing and caused the "edge-to-edge" issue on About page */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
}

/* --- 4. Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s ease;
}

nav.scrolled {
    background: rgba(5, 5, 5, 0.98);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

nav .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    color: var(--text-white);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-gray);
    position: relative;
}

.nav-links a:hover {
    color: var(--gold-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

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

.mobile-menu-toggle .bar {
    width: 25px;
    height: 2px;
    background: var(--gold-primary);
    transition: all 0.3s ease;
}

/* --- 5. Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 4rem) 5% 5rem;
    background: radial-gradient(circle at top right, #1a1a1a 0%, var(--bg-black) 60%);
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08), transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-text .subtitle {
    display: block;
    color: var(--gold-primary);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    background: linear-gradient(to right, #fff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
}

.hero-text p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.8;
    max-width: 650px;
    margin-bottom: 2.5rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-primary);
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.hero-image-wrapper {
    position: relative;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0,0,0,0.5));
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

/* --- 6. Buttons --- */
.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--gradient-gold);
    color: #1a1a1a;
    font-weight: 700;
    border-radius: 6px;
    border: none;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.btn-maroon {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--maroon-primary);
    color: white;
    border-radius: 6px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 12px rgba(128, 0, 32, 0.3);
    transition: all 0.3s ease;
}

.btn-maroon:hover {
    background: var(--maroon-hover);
    transform: translateY(-2px);
}

/* --- 7. Sections General --- */
.section {
    padding: 6rem 5%;
    position: relative;
    content-visibility: auto; 
    contain-intrinsic-size: 800px;
}

.section-dark {
    background-color: var(--bg-dark);
}

.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    color: var(--text-white);
}

.accent-line {
    width: 60px;
    height: 3px;
    background: var(--gold-primary);
    margin: 1rem auto;
}

/* --- 8. Pathways Card Grid --- */
.pathways-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pathway-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.pathway-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.03), transparent 60%);
    pointer-events: none;
}

.pathway-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.card-subtitle {
    color: var(--gold-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    font-weight: 600;
}

.highlight-card {
    border: 1px solid rgba(128, 0, 32, 0.4);
    background: linear-gradient(180deg, rgba(128,0,32,0.1) 0%, rgba(5,5,5,0) 100%);
}

/* --- 9. Ventures Section & Logos --- */
.venture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
}

.venture-card {
    background: #0a0a0a;
    border-radius: 16px;
    padding: 3rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.venture-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1.5rem;
}

/* Logo Wrapper */
.venture-logo-wrapper {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.venture-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* PGI Logic: Screen mode removes dark background, leaves white logo */
.pgi-blend {
    mix-blend-mode: screen;
    filter: brightness(1.2); /* Slight pop */
}

/* VTN Logic: Round the corners of the white card */
.vtn-style {
    border-radius: 16px;
}

.venture-info h3 {
    margin-bottom: 0.25rem;
    font-size: 1.5rem;
}

.tagline {
    color: var(--gold-primary);
    font-size: 0.9rem;
}

.venture-promise {
    color: var(--text-white);
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 2px solid var(--gold-primary);
}

.venture-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--gold-primary);
    font-weight: 600;
}

.venture-link:hover {
    gap: 1rem;
}

/* --- 10. Consulting Preview --- */
.consulting-preview {
    text-align: center;
    background: linear-gradient(180deg, var(--bg-black) 0%, #150508 100%);
}

.consulting-container {
    max-width: 900px;
    margin: 0 auto;
}

.highlight-text {
    color: var(--gold-primary);
}

.consulting-lead {
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

.consulting-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: left;
}

.tier-card {
    background: rgba(255,255,255,0.03);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.tier-card.featured {
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.05);
}

.tier-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
}

.tier-name {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.tier-desc {
    font-size: 0.95rem;
}

/* --- 11. About Section (Home Page Version) --- */
.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    border-radius: 12px;
    width: 100%;
    height: auto;
    border: 1px solid rgba(255,255,255,0.1);
}

.about-subtitle {
    color: var(--gold-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

/* --- 12. FAQ --- */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.faq-item {
    background: rgba(255,255,255,0.02);
    padding: 2rem;
    border-radius: 8px;
    transition: background 0.3s;
}

.faq-item:hover {
    background: rgba(255,255,255,0.04);
}

.faq-item h3 {
    font-size: 1.1rem;
    color: var(--gold-primary);
    margin-bottom: 1rem;
}

/* --- 13. Footer --- */
footer {
    background: #000;
    padding: 5rem 5% 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-email {
    color: var(--gold-primary);
    font-weight: 600;
}

.footer-nav h3 {
    font-size: 1rem;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

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

.footer-nav a {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.footer-nav a:hover {
    color: var(--gold-primary);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- 14. Mobile Responsiveness --- */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-text p, .hero-stats {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
    
    .venture-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .mobile-menu-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .mobile-menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        background: #0a0a0a;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid rgba(212, 175, 55, 0.2);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
}

/* --- 15. Animations --- */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.delay-200 { animation-delay: 0.2s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}


/* =================================================================
   NEW: ABOUT PAGE & DEDICATED STYLES
   (Appended safely to avoid breaking home page)
   ================================================================= */

/* Hero Section Refinements */
.about-hero {
    /* Uses standard padding logic now via .container */
    padding-top: calc(var(--header-height) + 4rem);
    padding-bottom: 5rem;
    position: relative;
    overflow: hidden;
}

.about-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.about-hero-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    transform: scale(1.02);
    transition: transform 0.5s ease;
}

.about-hero-image:hover img {
    transform: scale(1.05);
}

/* Story Timeline / Evolution Section */
.evolution-section {
    position: relative;
    padding: 6rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.evolution-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.evolution-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 16px;
    position: relative;
    transition: transform 0.3s ease, background 0.3s ease;
}

.evolution-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(212, 175, 55, 0.3);
}

.evolution-year {
    font-family: var(--font-heading, sans-serif);
    color: var(--gold-primary);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.evolution-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
}

.evolution-text {
    color: var(--text-gray);
    line-height: 1.7;
}

/* Books Grid (Intellectual Capital) */
.books-section {
    background: #0a0a0a; /* Slightly darker background */
    padding: 6rem 0;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.book-mini-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

.book-mini-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.05);
}

.book-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--gold-primary);
}

.book-mini-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.book-mini-category {
    font-size: 0.85rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Consulting Callout */
.consulting-cta-box {
    margin-top: 5rem; 
    padding: 4rem 2rem; 
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(0,0,0,0.4)); 
    border-radius: 16px; 
    border: 1px solid rgba(212, 175, 55, 0.2); 
    text-align: center;
}

/* Mobile Adjustments for About Page */
@media (max-width: 900px) {
    .about-hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .about-hero-image {
        order: -1; /* Image on top for mobile */
        max-width: 500px;
        margin: 0 auto;
    }
    .about-hero-text {
        text-align: center;
    }
}
