/* 
 * Main Theme Styles - Pardhi Web Work
 * Dark/Light Mode Glassmorphic Styling
 */

/* --------------------------------------------------------
 * Color Themes & CSS Variables
 * -------------------------------------------------------- */
:root {
    /* Light Mode (Fallback Default, Toggled by JS) */
    --bg-color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-bg-solid: #ffffff;
    --text-color: #0f172a;
    --text-muted: #64748b;
    --border-color: rgba(15, 23, 42, 0.08);
    --primary-color: #792CA2;
    --primary-hover: #443199;
    --primary-gradient: linear-gradient(135deg, #443199, #792CA2, #C13383, #E05454);
    --accent-color: #C13383;
    --body-font: 'Outfit', sans-serif;
    --header-height: 70px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --glow-color: rgba(121, 44, 162, 0.15);
    --nav-bg: rgba(248, 250, 252, 0.8);
}

[data-theme="dark"] {
    /* Dark Mode Defaults */
    --bg-color: #080c14;
    --card-bg: rgba(15, 23, 42, 0.65);
    --card-bg-solid: #0f172a;
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.08);
    --primary-color: #C13383;
    --primary-hover: #792CA2;
    --primary-gradient: linear-gradient(135deg, #443199, #792CA2, #C13383, #E05454);
    --accent-color: #E05454;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.6);
    --glow-color: rgba(193, 51, 131, 0.25);
    --nav-bg: rgba(8, 12, 20, 0.85);
}

/* --------------------------------------------------------
 * Base & Layout Settings
 * -------------------------------------------------------- */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--body-font);
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--text-color);
}

p {
    color: var(--text-muted);
    line-height: 1.6;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-hover);
}

/* --------------------------------------------------------
 * Announcement Bar
 * -------------------------------------------------------- */
.announcement-bar {
    background: var(--primary-gradient);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 15px;
    text-align: center;
    position: relative;
    z-index: 1040;
}

/* --------------------------------------------------------
 * Navbar Styling
 * -------------------------------------------------------- */
.custom-navbar {
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    transition: all 0.3s ease;
}

.custom-navbar .navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.custom-navbar .nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 16px !important;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.custom-navbar .nav-link:hover, 
.custom-navbar .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(99, 102, 241, 0.08);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--primary-color);
}

/* --------------------------------------------------------
 * Hero Section
 * -------------------------------------------------------- */
.hero-section {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-glow-1 {
    position: absolute;
    top: 10%;
    left: 5%;
    width: 300px;
    height: 300px;
    background: var(--glow-color);
    filter: blur(120px);
    border-radius: 50%;
    z-index: -1;
}

.hero-glow-2 {
    position: absolute;
    bottom: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
    background: rgba(56, 189, 248, 0.15);
    filter: blur(120px);
    border-radius: 50%;
    z-index: -1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-title span {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --------------------------------------------------------
 * Buttons & Cards (Glassmorphism)
 * -------------------------------------------------------- */
.btn-custom {
    background: var(--primary-gradient);
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    padding: 12px 28px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.btn-custom:hover {
    opacity: 0.95;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.35);
}

.btn-custom-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color) !important;
    border-radius: 8px;
    padding: 12px 28px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-custom-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 30px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-lg);
}

/* --------------------------------------------------------
 * About Page & Timeline
 * -------------------------------------------------------- */
.timeline {
    position: relative;
    border-left: 2px solid var(--border-color);
    padding-left: 30px;
    margin-left: 10px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -41px;
    top: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-gradient);
    border: 4px solid var(--bg-color);
    box-shadow: 0 0 10px var(--primary-color);
}

/* --------------------------------------------------------
 * Portfolio Filters
 * -------------------------------------------------------- */
.filter-btn {
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-color);
    padding: 8px 20px;
    border-radius: 30px;
    margin: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-gradient);
    color: white !important;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.3);
}

/* --------------------------------------------------------
 * Pricing Cards
 * -------------------------------------------------------- */
.pricing-card {
    position: relative;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.15);
}

.pricing-ribbon {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--primary-gradient);
    color: white;
    transform: rotate(45deg);
    padding: 4px 30px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* --------------------------------------------------------
 * Cookie Consent Banner
 * -------------------------------------------------------- */
.cookie-consent {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 480px;
    background: var(--card-bg-solid);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    border-radius: 12px;
    padding: 20px;
    z-index: 1050;
    display: none;
    animation: fadeInUp 0.4s ease forwards;
}

/* --------------------------------------------------------
 * Floating WhatsApp & Back to Top
 * -------------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
}

/* --------------------------------------------------------
 * Notifications / Toast UI
 * -------------------------------------------------------- */
.notification-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1060;
}

.toast-custom {
    background: var(--card-bg-solid);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow-lg);
    border-radius: 6px;
    color: var(--text-color);
    min-width: 280px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: slideInRight 0.3s ease forwards;
}

/* --------------------------------------------------------
 * Animations
 * -------------------------------------------------------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Custom Color Theme Utilities (#443199, #792CA2, #C13383, #E05454) */
.text-indigo {
    color: #792CA2 !important;
}
.bg-indigo {
    background: #792CA2 !important;
    background: var(--primary-gradient) !important;
    color: #ffffff !important;
}
.bg-indigo-subtle {
    background-color: rgba(121, 44, 162, 0.12) !important;
}
.border-indigo-subtle {
    border-color: rgba(121, 44, 162, 0.25) !important;
}
.border-indigo {
    border-color: #792CA2 !important;
}
.text-sky {
    color: #C13383 !important;
}
.text-success {
    color: #E05454 !important;
}
.bg-success-subtle {
    background-color: rgba(224, 84, 84, 0.12) !important;
    color: #E05454 !important;
}

