/* ===================================
   SACRED GEOMETRY DESIGN SYSTEM
   Marriage Biodata - Sandesh Kumar Jain
   =================================== */

/* === CSS VARIABLES === */
:root {
    /* Natural Pigment Colors */
    --saffron: #FF9933;
    --saffron-light: #FFB366;
    --saffron-dark: #E68A2E;
    --indigo: #1A237E;
    --indigo-light: #3F51B5;
    --indigo-dark: #0D1642;
    --cream: #F5F1E8;
    --cream-dark: #E8E2D5;
    --gold: #D4AF37;
    --gold-light: #E8C968;
    --charcoal: #2C2416;
    --white: #FFFFF0;

    /* Typography */
    --font-display: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing (Golden Ratio) */
    --space-xs: 0.5rem;
    --space-sm: 0.809rem;
    --space-md: 1.309rem;
    --space-lg: 2.118rem;
    --space-xl: 3.427rem;
    --space-2xl: 5.545rem;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-gentle: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

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

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

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 153, 51, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(26, 35, 126, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* === SACRED INVOCATION === */
.sacred-invocation {
    text-align: center;
    padding: var(--space-lg) 0;
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
    border-bottom: 1px solid var(--gold);
    position: relative;
}

.om-symbol {
    font-size: 2.5rem;
    color: var(--saffron);
    margin-bottom: var(--space-xs);
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(255, 153, 51, 0.3);
}

.invocation-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--indigo);
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* === HERO SECTION WITH MANDALA === */
.hero-mandala {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 50%, var(--cream-dark) 100%);
}

.mandala-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background-image: url('assets/mandala-pattern.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.6;
    animation: mandalaRotate 120s linear infinite;
}

@keyframes mandalaRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
}

.name-container {
    margin-bottom: var(--space-xl);
}

.primary-name {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    color: var(--indigo);
    line-height: 1.1;
    margin-bottom: var(--space-md);
    text-shadow: 0 4px 12px rgba(26, 35, 126, 0.15);
    letter-spacing: 0.02em;
}

.geometric-divider {
    width: 200px;
    height: 4px;
    margin: var(--space-md) auto;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--gold) 20%,
            var(--saffron) 50%,
            var(--gold) 80%,
            transparent 100%);
    position: relative;
}

.geometric-divider::before,
.geometric-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
}

.geometric-divider::before {
    left: 25%;
}

.geometric-divider::after {
    right: 25%;
}

.geometric-divider.centered {
    margin-left: auto;
    margin-right: auto;
}

.english-name {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 400;
    color: var(--charcoal);
    opacity: 0.8;
}

.location-text {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: var(--indigo-light);
    font-weight: 400;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--saffron);
    box-shadow: 0 0 20px rgba(255, 153, 51, 0.5);
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(15px);
    }
}

/* === PROFILE SECTION === */
.profile-section {
    padding: var(--space-2xl) 0;
    background: var(--white);
    position: relative;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-2xl);
    align-items: center;
}

.profile-image-container {
    position: relative;
}

.geometric-frame {
    position: relative;
    width: 320px;
    height: 400px;
    margin: 0 auto;
}

.inner-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 360px;
    border-radius: 16px;
    overflow: hidden;
    border: 4px solid var(--gold);
    box-shadow:
        0 0 0 8px var(--cream),
        0 0 0 10px var(--saffron),
        0 20px 40px rgba(0, 0, 0, 0.15);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.frame-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    animation: frameRotate 60s linear infinite;
}

@keyframes frameRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: var(--indigo);
    margin-bottom: var(--space-lg);
    position: relative;
}

.section-title.centered {
    text-align: center;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.info-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--cream) 100%);
    padding: var(--space-md);
    border-radius: 8px;
    border-left: 3px solid var(--gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(255, 153, 51, 0.15);
    border-left-color: var(--saffron);
}

.info-label {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--indigo-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--charcoal);
    font-weight: 500;
}

/* === LINEAGE SECTION === */
.lineage-section {
    padding: var(--space-2xl) 0;
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 50%, var(--cream) 100%);
    position: relative;
}

.lineage-tree {
    max-width: 900px;
    margin: var(--space-2xl) auto 0;
}

.lineage-level {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    position: relative;
}

.lineage-level.parents::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 30px;
    background: linear-gradient(180deg, var(--gold) 0%, transparent 100%);
}

.lineage-level.siblings::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 30px;
    background: linear-gradient(180deg, var(--gold) 0%, transparent 100%);
}

.lineage-card {
    background: var(--white);
    padding: var(--space-lg);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--cream-dark);
    transition: var(--transition-smooth);
    position: relative;
    min-width: 250px;
}

.lineage-card.ancestor {
    border-color: var(--gold);
    background: linear-gradient(135deg, var(--white) 0%, var(--cream) 100%);
}

.lineage-card.self {
    border-color: var(--saffron);
    background: linear-gradient(135deg, #FFF8E7 0%, var(--white) 100%);
    box-shadow: 0 12px 32px rgba(255, 153, 51, 0.2);
}

.lineage-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.lineage-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--indigo);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.lineage-title {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--indigo-light);
    font-weight: 500;
    margin-bottom: var(--space-xs);
}

.lineage-detail {
    font-size: 0.875rem;
    color: var(--charcoal);
    opacity: 0.7;
}

.connection-line {
    width: 60px;
    height: 2px;
    background: var(--gold);
    align-self: center;
    position: relative;
}

.connection-line::before,
.connection-line::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
}

.connection-line::before {
    left: 0;
}

.connection-line::after {
    right: 0;
}

/* === EDUCATION & PROFESSIONAL === */
.education-professional {
    padding: var(--space-2xl) 0;
    background: var(--white);
}

.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    margin-top: var(--space-xl);
}

.education-card,
.professional-card {
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
    padding: var(--space-xl);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--gold);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.education-card::before,
.professional-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--saffron) 0%, var(--gold) 100%);
}

.degree-icon,
.business-icon {
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
}

.degree-name,
.business-name {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--indigo);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.degree-detail,
.business-role {
    font-size: 1.125rem;
    color: var(--charcoal);
    margin-bottom: var(--space-md);
}

.business-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    margin-top: var(--space-md);
    color: var(--indigo-light);
}

.business-address {
    font-size: 0.95rem;
    color: var(--charcoal);
    opacity: 0.8;
    margin-top: var(--space-sm);
}

.degree-ornament {
    width: 60px;
    height: 60px;
    margin: var(--space-md) auto 0;
    border: 2px solid var(--gold);
    border-radius: 50%;
    position: relative;
}

.degree-ornament::before,
.degree-ornament::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid var(--saffron);
    border-radius: 50%;
}

.degree-ornament::before {
    width: 40px;
    height: 40px;
}

.degree-ornament::after {
    width: 20px;
    height: 20px;
    background: var(--saffron);
}

/* === EXTENDED FAMILY === */
.extended-family {
    padding: var(--space-2xl) 0;
    background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}

.family-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.category-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--indigo);
    font-weight: 600;
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--gold);
}

.family-member-card {
    background: var(--white);
    padding: var(--space-md);
    border-radius: 8px;
    margin-bottom: var(--space-md);
    border-left: 3px solid var(--saffron);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

.family-member-card:hover {
    transform: translateX(8px);
    box-shadow: 0 8px 20px rgba(255, 153, 51, 0.15);
}

.member-name {
    font-family: var(--font-display);
    font-size: 1.125rem;
    color: var(--indigo);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.member-detail {
    font-size: 0.95rem;
    color: var(--charcoal);
    margin-bottom: var(--space-xs);
}

.member-contact {
    font-size: 0.875rem;
    color: var(--indigo-light);
    font-weight: 500;
}

/* === CONTACT SECTION === */
.contact-section {
    padding: var(--space-2xl) 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.contact-card {
    background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
    padding: var(--space-xl);
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--gold);
    transition: var(--transition-gentle);
}

.contact-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 48px rgba(255, 153, 51, 0.2);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.contact-label {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--indigo);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.contact-value {
    font-size: 1.125rem;
    color: var(--charcoal);
    line-height: 1.8;
}

/* === FOOTER === */
.footer {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, var(--indigo-dark) 0%, var(--indigo) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
}

.footer-mandala {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-lg);
    background-image: url('assets/mandala-pattern.svg');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.3;
}

.footer-text {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.footer-subtext {
    font-size: 1.125rem;
    color: var(--cream);
    opacity: 0.8;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 968px) {
    .profile-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .two-column-layout {
        grid-template-columns: 1fr;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .lineage-level.parents,
    .lineage-level.siblings {
        flex-direction: column;
        align-items: center;
    }

    .connection-line {
        width: 2px;
        height: 40px;
    }
}

@media (max-width: 640px) {
    :root {
        font-size: 14px;
    }

    .mandala-background {
        width: 600px;
        height: 600px;
    }

    .geometric-frame {
        width: 260px;
        height: 340px;
    }

    .inner-circle {
        width: 220px;
        height: 300px;
    }

    .family-categories {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* === PRINT STYLES === */
@media print {
    body {
        background: white;
    }

    .mandala-background,
    .scroll-indicator,
    .frame-decoration {
        display: none;
    }

    .hero-mandala {
        min-height: auto;
        padding: 2rem 0;
    }

    section {
        page-break-inside: avoid;
    }

    .lineage-card,
    .info-card,
    .contact-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* === ACCESSIBILITY === */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}