/* =========================================
   Variables & Theme Tokens
   ========================================= */
:root {
    --color-primary: #C62828;      /* Deep Crimson */
    --color-primary-light: #E91E63;/* Magenta */
    --color-accent: #D4AF37;       /* Warm Gold */
    --color-secondary: #7B1FA2;    /* Rich Royal Purple */
    --color-bg: #FFFDF7;           /* Warm Cream / White */
    --color-text: #2A2A2A;
    --color-text-light: #5A5A5A;
    
    --font-en: 'Inter', 'Plus Jakarta Sans', sans-serif;
    --font-si: 'Noto Sans Sinhala', sans-serif;
    
    --shadow-soft: 0 10px 30px rgba(198, 40, 40, 0.08);
    --shadow-hover: 0 20px 40px rgba(123, 31, 162, 0.15);
    
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-si);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.3;
}

p, a, span, div {
    font-family: var(--font-si);
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   Typography & Sinhala Support
   ========================================= */
.logo-text, .hero-title, .section-header h2, .service-card h3 {
    font-family: var(--font-si);
}

.hero-subtitle, .service-card p {
    font-family: var(--font-si);
    font-weight: 400;
}

/* =========================================
   Glassmorphism Navigation
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 253, 247, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 253, 247, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(212, 175, 55, 0.4));
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(45deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: var(--transition);
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 175, 55, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-en);
    font-size: 14px;
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--color-primary);
    cursor: pointer;
}

.mobile-nav {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--color-bg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transform: translateY(-150%);
    transition: transform 0.3s ease-in-out;
    z-index: 999;
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-nav a {
    font-size: 18px;
    font-weight: 600;
    padding: 10px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--color-primary);
}

/* =========================================
   Buttons
   ========================================= */
.btn-primary {
    background: linear-gradient(45deg, var(--color-primary), var(--color-primary-light));
    color: white;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(198, 40, 40, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(198, 40, 40, 0.4);
    background: linear-gradient(45deg, var(--color-primary-light), var(--color-primary));
}

.btn-large {
    padding: 14px 32px;
    font-size: 18px;
}

.btn-cta {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    transition: var(--transition);
    margin-top: auto;
}

.service-card:hover .btn-cta {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.5); /* Golden glow */
}

/* =========================================
   Hero Section
   ========================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 60px;
    background: 
        radial-gradient(circle at center, rgba(255, 253, 247, 0.8) 0%, rgba(255, 253, 247, 0.95) 100%),
        url('https://images.unsplash.com/photo-1583939411023-14783179e581?auto=format&fit=crop&w=1920&q=80') center/cover fixed; /* Sri Lankan themed wedding background */
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M50 0 L100 50 L50 100 L0 50 Z" fill="none" stroke="%23D4AF37" stroke-width="0.5" stroke-opacity="0.2"/></svg>') repeat;
    opacity: 0.6;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.badge {
    background: rgba(212, 175, 55, 0.15);
    color: var(--color-secondary);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 12px;
    border: 1px solid var(--color-accent);
    font-family: var(--font-en);
}

.hero-title {
    font-size: 3.5rem;
    color: var(--color-primary);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.05);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    max-width: 700px;
}

/* Decorative Motifs */
.motif {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.motif-left {
    top: 20%;
    left: -100px;
}

.motif-right {
    bottom: 10%;
    right: -100px;
}

/* =========================================
   Services Section
   ========================================= */
.services-section {
    padding: 100px 0;
    background-color: var(--color-bg);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--color-accent);
    border-radius: 2px;
}

.section-header p {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Horoscope Chart Pattern on Hover */
.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml;utf8,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><rect x="0" y="0" width="60" height="60" fill="none" stroke="%23D4AF37" stroke-width="0.3" stroke-opacity="0.3"/><line x1="0" y1="0" x2="60" y2="60" stroke="%23D4AF37" stroke-width="0.3" stroke-opacity="0.3"/><line x1="60" y1="0" x2="0" y2="60" stroke="%23D4AF37" stroke-width="0.3" stroke-opacity="0.3"/></svg>') repeat;
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
    pointer-events: none;
    transform: rotate(45deg);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-accent);
}

.service-card:hover::before {
    opacity: 1;
    animation: rotateBg 20s linear infinite;
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 10px;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--color-secondary);
}

.service-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    flex-grow: 1;
}

.card-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0;
}

.badge-free, .badge-premium, .badge-accent {
    font-size: 0.85rem;
    padding: 8px 12px;
    border-radius: 6px;
    font-weight: 600;
}

.badge-free {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.badge-premium {
    background: rgba(212, 175, 55, 0.1);
    color: #b8860b;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.badge-accent {
    background: rgba(123, 31, 162, 0.1);
    color: var(--color-secondary);
    border: 1px solid rgba(123, 31, 162, 0.2);
}

/* =========================================
   Footer
   ========================================= */
.footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 60px 0 20px;
    border-top: 4px solid var(--color-accent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-text {
    background: none;
    -webkit-text-fill-color: white;
    color: white;
    display: block;
    margin: 10px 0;
}

.footer-brand p {
    color: #aaa;
    font-size: 0.9rem;
}

.footer-contact h4 {
    color: var(--color-accent);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ddd;
    font-family: var(--font-en);
}

.footer-badges {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.05);
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.trust-badge i {
    color: var(--color-accent);
    font-size: 1.5rem;
}

.trust-badge span {
    font-family: var(--font-en);
    font-weight: 600;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #777;
    font-size: 0.9rem;
    font-family: var(--font-en);
}

/* =========================================
   Sticky WhatsApp Button
   ========================================= */
.sticky-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.sticky-whatsapp:hover {
    transform: scale(1.1);
    background: #1ebe5d;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =========================================
   Responsive Design
   ========================================= */
@media (max-width: 992px) {
    .hero-title { font-size: 2.8rem; }
    .nav-links, .contact-badge { display: none; }
    .mobile-menu-btn { display: block; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.1rem; }
    .section-header h2 { font-size: 2rem; }
    .hero { padding-top: 100px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .logo-text { font-size: 18px; }
    .btn-primary { padding: 8px 16px; font-size: 0.9rem; }
}
