/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
  /* Import theme variables - these will be overridden by theme files */
}

/* Import theme files */
@import url('../themes/light-theme.css');

/* Dark theme override */
[data-theme="dark"] {
  /* Import dark theme variables */
  @import url('../themes/dark-theme.css');
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background Pattern - DISABLED */
/* body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, var(--saffron, #FF9933) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, var(--primary-maroon, #8B0000) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, var(--gold, #FFD700) 0%, transparent 50%);
    animation: floatPattern 20s ease-in-out infinite;
    z-index: -1;
} */

@keyframes floatPattern {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    background: transparent !important;
}

/* ==================== DECORATIVE MANDALA SVG ==================== */
.mandala-decoration {
    position: absolute;
    opacity: 0.1;
    animation: rotateMandala 60s linear infinite;
    pointer-events: none;
}

.mandala-top-left {
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
}

.mandala-bottom-right {
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
}

@keyframes rotateMandala {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==================== BIODATA CARD ==================== */
.biodata-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15), 0 0 20px rgba(139, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.biodata-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(139, 0, 0, 0.25), 0 0 40px rgba(139, 0, 0, 0.2);
}

/* Dark theme for biodata card */
[data-theme="dark"] .biodata-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4), var(--shadow-lg), var(--card-glow);
}

[data-theme="dark"] .biodata-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(139, 0, 0, 0.4), var(--shadow-xl), var(--hover-glow);
    border: 1px solid rgba(255, 215, 0, 0.4);
}

/* ==================== CORNER DECORATIONS ==================== */
.corner-decoration {
    position: absolute;
    font-size: 24px;
    color: var(--primary-maroon);
    opacity: 0.3;
    z-index: 1;
    animation: shimmer-fade 5s ease-in-out infinite alternate;
}

.corner-decoration.top-left {
    top: 15px;
    left: 15px;
}

.corner-decoration.top-right {
    top: 15px;
    right: 15px;
}

.corner-decoration.bottom-left {
    bottom: 15px;
    left: 15px;
}

.corner-decoration.bottom-right {
    bottom: 15px;
    right: 15px;
    animation-delay: 2.5s; /* Offset the animation for variation */
}

@keyframes shimmer-fade {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* ==================== ETHNIC BORDER DECORATION ==================== */
.ethnic-border {
    height: 5px;
    background: linear-gradient(90deg,
        var(--gold) 0%,
        var(--primary-maroon) 25%,
        var(--saffron) 50%,
        var(--primary-maroon) 75%,
        var(--gold) 100%);
    position: relative;
    overflow: hidden;
}

.ethnic-border::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,0.5) 50%,
        transparent 100%);
    animation: borderShine 2s linear infinite;
}

@keyframes borderShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ==================== SECTION STYLES ==================== */
/* Each section is modular - you can copy, remove, or modify */
section {
    padding: 30px;
    position: relative;
}

section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--border-gold) 50%,
        transparent 100%);
}

/* Ensure separators render inside card layouts as well */
.biodata-card section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 2px; /* increased for visibility */
    background: var(--border-gold); /* solid for stronger contrast */
    pointer-events: none;
}

/* Keep portfolio separators as subtle gradient */
.portfolio-card section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 86%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--border-gold) 50%,
        transparent 100%);
    pointer-events: none;
}

@keyframes rotateIcon {
    0%, 100% { transform: translateY(-50%) rotate(-20deg); }
    50% { transform: translateY(-50%) rotate(20deg); }
}

/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
  /* Import theme variables - these will be overridden by theme files */
}

/* Import theme files */
@import url('../themes/light-theme.css');

/* Dark theme override */
[data-theme="dark"] {
  /* Import dark theme variables */
  @import url('../themes/dark-theme.css');
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background Pattern - DISABLED */
/* body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, var(--saffron, #FF9933) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, var(--primary-maroon, #8B0000) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, var(--gold, #FFD700) 0%, transparent 50%);
    animation: floatPattern 20s ease-in-out infinite;
    z-index: -1;
} */

@keyframes floatPattern {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    background: transparent !important;
}

/* ==================== DECORATIVE MANDALA SVG ==================== */
.mandala-decoration {
    position: absolute;
    opacity: 0.1;
    animation: rotateMandala 60s linear infinite;
    pointer-events: none;
}

.mandala-top-left {
    top: -50px;
    left: -50px;
    width: 150px;
    height: 150px;
}

.mandala-bottom-right {
    bottom: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
}

@keyframes rotateMandala {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==================== BIODATA CARD ==================== */
.biodata-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.15), 0 0 20px rgba(139, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 30px;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.biodata-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(139, 0, 0, 0.25), 0 0 40px rgba(139, 0, 0, 0.2);
}

/* Dark theme for biodata card */
[data-theme="dark"] .biodata-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4), var(--shadow-lg), var(--card-glow);
}

[data-theme="dark"] .biodata-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(139, 0, 0, 0.4), var(--shadow-xl), var(--hover-glow);
    border: 1px solid rgba(255, 215, 0, 0.4);
}

/* ==================== CORNER DECORATIONS ==================== */
.corner-decoration {
    position: absolute;
    font-size: 24px;
    color: var(--primary-maroon);
    opacity: 0.3;
    z-index: 1;
    animation: shimmer-fade 5s ease-in-out infinite alternate;
}

.corner-decoration.top-left {
    top: 15px;
    left: 15px;
}

.corner-decoration.top-right {
    top: 15px;
    right: 15px;
}

.corner-decoration.bottom-left {
    bottom: 15px;
    left: 15px;
}

.corner-decoration.bottom-right {
    bottom: 15px;
    right: 15px;
    animation-delay: 2.5s; /* Offset the animation for variation */
}

@keyframes shimmer-fade {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* ==================== ETHNIC BORDER DECORATION ==================== */
.ethnic-border {
    height: 5px;
    background: linear-gradient(90deg,
        var(--gold) 0%,
        var(--primary-maroon) 25%,
        var(--saffron) 50%,
        var(--primary-maroon) 75%,
        var(--gold) 100%);
    position: relative;
    overflow: hidden;
}

.ethnic-border::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,0.5) 50%,
        transparent 100%);
    animation: borderShine 2s linear infinite;
}

@keyframes borderShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ==================== SECTION STYLES ==================== */
/* Each section is modular - you can copy, remove, or modify */
section {
    padding: 30px;
    position: relative;
}

section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--border-gold) 50%,
        transparent 100%);
}

/* Ensure separators render inside card layouts as well */
.biodata-card section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    height: 2px; /* increased for visibility */
    background: var(--border-gold); /* solid for stronger contrast */
    pointer-events: none;
}

/* Keep portfolio separators as subtle gradient */
.portfolio-card section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 86%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--border-gold) 50%,
        transparent 100%);
    pointer-events: none;
}

/* Section Title - Simplified and Smaller */
.section-title {
    position: relative;
    display: block;
    width: fit-content;
    margin: 0.5em auto 1em;
    font-size: 1.8em; /* Reduced from 3em */
    font-weight: 700; /* Slightly reduced from 900 */
    text-align: center;
    letter-spacing: 2px; /* Reduced from 4px */
    padding: 0.5em 1em; /* Reduced padding */
    color: var(--primary-maroon); /* Solid color instead of gradient */
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    border-bottom: 2px solid var(--saffron);
    transition: all 0.3s ease;
}


/* Dark theme adjustments */
[data-theme="dark"] .section-title {
    color: var(--gold);
    border-bottom-color: var(--gold);
}


.section-title:hover {
    color: var(--saffron);
}

/* ==================== PRINT STYLES ==================== */

/* ==================== PARTNER PREFERENCES SECTION ==================== */
.preferences-list {
    list-style: none;
    padding: 0;
}

.preferences-list li {
    padding: 12px 0 12px 30px;
    position: relative;
    transition: transform 0.3s ease;
}

.preferences-list li:hover {
    transform: translateX(10px);
}

.preferences-list li::before {
    content: '✿';
    position: absolute;
    left: 0;
    color: var(--saffron);
    font-size: 1.2em;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* ==================== FOOTER ==================== */
footer {
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    position: relative;
}

.footer-decoration {
    font-size: 2em;
    color: var(--primary-maroon);
    margin: 10px 0;
    animation: pulse 2s ease-in-out infinite;
}

.footer-text {
    color: var(--text-dark);
    opacity: 0.7;
    font-style: italic;
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 768px) {
    .section-title {
        font-size: 1.5em;
    }

    .name-display {
        font-size: 1.5em;
    }
}

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

    .biodata-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .ethnic-border::after,
    .mandala-decoration,
    body::before {
        display: none;
    }
}

/* ==================== CUSTOM SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--sandalwood);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--primary-maroon), var(--saffron));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(var(--saffron), var(--gold));
}

/* ==================== GALLERY TRIGGER & SCREEN ==================== */
#gallery-trigger {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 30px;
    height: 100px;
    background: var(--primary-maroon);
    border-radius: 10px 0 0 10px;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: background 0.3s ease;
}

#gallery-trigger:hover {
    background: var(--gold);
}

#gallery-trigger .arrow {
    color: white;
    font-size: 2em;
    font-weight: bold;
}

/* ==================== SCROLLBAR STYLES ==================== */
/* For Firefox */
html {
    scrollbar-color: var(--primary-maroon) var(--sandalwood);
    scrollbar-width: thin;
}