/*
Theme Name: PRDS Portfolio - Framed V2.2
Theme URI: https://prdigitalsolutions.org/
Author: Prem Jagtap
Description: Framed Cards + Language Switch + Fixed Preloader + Blue Link Fix
Version: 2.2
*/

:root {
    --bg-body: #050505;       
    --bg-card: #121212;       
    --border-color: #333333;
    --brand-gold: #C49A6C;
    --brand-red: #7F0100;
    --text-main: #ececec;
    --text-muted: #999999;
    --radius: 16px;
}

html, body { height: 100%; margin: 0; padding: 0; overflow: hidden; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Light Mode */
html[data-prds-theme="light"] {
    --bg-body: #e0e0e0;
    --bg-card: #ffffff;
    --border-color: #cccccc;
    --text-main: #111111;
    --text-muted: #555555;
}

/* ------------------------------------------------
   CARD CONTAINER
------------------------------------------------ */
.site-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card {
    position: absolute;
    width: 90%;
    max-width: 450px;
    height: 75vh;
    max-height: 650px;
    
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    
    padding: 30px;
    display: flex;
    flex-direction: column;
    
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
    will-change: transform, opacity;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
}

.card.active {
    opacity: 1;
    z-index: 10;
    pointer-events: auto;
    border-color: var(--brand-gold);
}
html[data-prds-theme="light"] .card.active { border-color: var(--brand-red); }

.card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ------------------------------------------------
   TYPOGRAPHY
------------------------------------------------ */
h1 { font-size: 28px; margin-bottom: 10px; color: var(--brand-gold); }
h2 { font-size: 22px; margin-bottom: 15px; color: var(--brand-gold); }
html[data-prds-theme="light"] h1, html[data-prds-theme="light"] h2 { color: var(--brand-red); }

p { font-size: 15px; line-height: 1.6; color: var(--text-muted); margin-bottom: 15px; }
li { margin-bottom: 8px; color: var(--text-main); }
a { text-decoration: none; color: inherit; }

/* ------------------------------------------------
   LANGUAGE TOGGLE
------------------------------------------------ */
.content-mr { display: none !important; }
.content-en { display: block !important; animation: fadeIn 0.3s ease; }
body.lang-marathi .content-en { display: none !important; }
body.lang-marathi .content-mr { display: block !important; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

/* ------------------------------------------------
   BUTTONS
------------------------------------------------ */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-main);
    margin-top: 8px; margin-right: 8px;
    transition: 0.2s ease;
}
.btn.primary {
    border-color: var(--brand-gold);
    color: var(--brand-gold);
}
html[data-prds-theme="light"] .btn.primary {
    border-color: var(--brand-red);
    color: var(--brand-red);
}
.btn:hover { transform: translateY(-2px); background: rgba(255,255,255,0.05); }

/* ------------------------------------------------
   FLOATING WHATSAPP BUTTON
------------------------------------------------ */
a.whatsapp-cta {
    position: fixed; 
    bottom: 25px; 
    right: 25px; 
    z-index: 2000;
    background: var(--brand-gold) !important;
    color: #111 !important;
    padding: 10px 18px; 
    border-radius: 50px; 
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    display: flex; align-items: center; gap: 8px;
    transition: transform 0.2s;
    text-decoration: none !important;
}
html[data-prds-theme="light"] a.whatsapp-cta {
    background: var(--brand-red) !important;
    color: #fff !important;
}
a.whatsapp-cta:hover { transform: scale(1.05); }

/* ------------------------------------------------
   UI CONTROLS
------------------------------------------------ */
.header-controls { position: fixed; top: 20px; right: 20px; z-index: 100; display: flex; gap: 10px; }
.control-btn {
    background: var(--bg-card); border: 1px solid var(--border-color); color: var(--text-main);
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-weight: bold; font-size: 14px;
}
.swipe-indicator { position: fixed; right: 20px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; z-index: 90; }
.dot { width: 6px; height: 6px; background: var(--text-muted); border-radius: 50%; opacity: 0.3; }
.dot.active { background: var(--brand-gold); opacity: 1; transform: scale(1.5); }
html[data-prds-theme="light"] .dot.active { background: var(--brand-red); }

/* ------------------------------------------------
   BOTTOM SHEET
------------------------------------------------ */
.bottom-sheet {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--brand-gold);
    border-radius: 20px 20px 0 0;
    padding: 20px;
    transform: translateY(110%);
    transition: transform 0.3s ease;
    z-index: 3000;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
}
.bottom-sheet.open { transform: translateY(0); }
.sheet-handle { width: 50px; height: 5px; background: var(--border-color); margin: 0 auto 20px auto; border-radius: 10px; }

/* ------------------------------------------------
   PRELOADER (RESTORED)
------------------------------------------------ */
.prds-preloader {
    position: fixed; 
    inset: 0;
    display: flex; 
    align-items: center; 
    justify-content: center;
    z-index: 99999;
    background: var(--bg-body); /* Matches the dark background */
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.prds-preloader__inner { text-align: center; }

.prds-preloader__logo { 
    width: 120px; 
    height: 120px; 
    border-radius: 50%; 
    animation: pulse 2s infinite; 
    will-change: transform;
}

.prds-preloader__tagline { 
    margin-top: 15px; 
    color: var(--brand-gold); 
    font-weight: 600; 
    font-size: 14px; 
    letter-spacing: 1px; 
}
html[data-prds-theme="light"] .prds-preloader__tagline { color: var(--brand-red); }

.prds-preloader--hidden { 
    opacity: 0; 
    visibility: hidden; 
    pointer-events: none; 
}

@keyframes pulse { 
    0% { transform: scale(0.95); opacity: 0.8; } 
    50% { transform: scale(1); opacity: 1; } 
    100% { transform: scale(0.95); opacity: 0.8; } 
}