@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    --bg-dark: #090615;
    --bg-card: rgba(22, 16, 46, 0.7);
    --bg-card-border: rgba(255, 255, 255, 0.08);
    --primary: #f2ad43;
    --primary-glow: rgba(242, 173, 67, 0.3);
    --secondary: #a985ff;
    --accent: #ff68b4;
    --text-white: #ffffff;
    --text-muted: #a5a1c0;
    --glass-grad: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(169, 133, 255, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(242, 173, 67, 0.08) 0%, transparent 40%);
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Glassmorphism utility */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--bg-card-border);
    border-radius: 16px;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Header */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    padding: 15px 0;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(9, 6, 21, 0.9);
    border-bottom: 1px solid var(--bg-card-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-white);
}

.logo span {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-white);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

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

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #e09420);
    color: #000;
    border: none;
    border-radius: 30px;
    padding: 12px 28px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-white);
    border: 1px solid var(--bg-card-border);
    border-radius: 30px;
    padding: 12px 28px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-white);
    transform: translateY(-2px);
}

/* Mobile Nav Toggle */
.mobile-toggle {
    display: none;
    cursor: pointer;
    font-size: 24px;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 span {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 35px auto;
}

/* Service Grid */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 16px;
}

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

.service-card {
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.service-icon {
    font-size: 40px;
    margin-bottom: 20px;
    color: var(--primary);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

/* Responsive Forms */
.form-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
}

.form-title {
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
}

.form-control {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--bg-card-border);
    border-radius: 8px;
    padding: 14px;
    color: var(--text-white);
    font-family: inherit;
    font-size: 16px;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255,255,255,0.08);
}

/* North Indian Kundli Chart (Rendered via CSS / SVG) */
.chart-container {
    max-width: 500px;
    margin: 40px auto;
    position: relative;
    aspect-ratio: 1/1;
    background: var(--bg-card);
    border: 2px solid var(--primary);
    border-radius: 12px;
}

.chart-svg {
    width: 100%;
    height: 100%;
}

.chart-svg line {
    stroke: var(--primary);
    stroke-width: 2;
}

.chart-svg text {
    fill: var(--text-white);
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    text-anchor: middle;
}

.chart-svg text.house-num {
    fill: rgba(242, 173, 67, 0.5);
    font-size: 10px;
}

/* Kundli Details Grid */
.details-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

.details-table th, .details-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--bg-card-border);
}

.details-table th {
    font-weight: 600;
    color: var(--primary);
}

/* Panchang Display styling */
.panchang-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.panchang-item {
    padding: 25px;
    text-align: center;
}

.panchang-item h4 {
    color: var(--primary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.panchang-item p {
    font-size: 20px;
    font-weight: 600;
}

/* Footer Section */
footer {
    border-top: 1px solid var(--bg-card-border);
    padding: 60px 0 30px 0;
    margin-top: 80px;
}

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

.footer-col h4 {
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--text-white);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
}

/* Mobile responsive media queries */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 40px;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        padding: 30px;
        border-bottom: 1px solid var(--bg-card-border);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .form-box {
        padding: 20px;
    }
}
