:root {
    /* Color Palette */
    --primary-color: #9b59b6;
    --primary-dark: #7d3c98;
    --primary-light: #bb8fce;
    --secondary-color: #f39c12;
    --accent-color: #e74c3c;
    --dark-bg: #0a0a1f;
    --dark-card: #1a1a3e;
    --text-light: #ffffff;
    --text-muted: #b8b8d1;
    --whatsapp-green: #25D366;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-cosmic: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e22ce 100%);
    --gradient-gold: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-heading: 'Playfair Display', serif;

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(155, 89, 182, 0.5);
}

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

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

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 31, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: var(--spacing-sm) 0;
    box-shadow: 0 2px 20px rgba(155, 89, 182, 0.3);
    border-bottom: 1px solid rgba(155, 89, 182, 0.2);
}

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

.nav-brand .logo {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.guru-logo-icon-small {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--primary-light);
    box-shadow: 0 0 10px rgba(155, 89, 182, 0.3);
    -webkit-text-fill-color: initial;
    /* Prevent image from getting background-clip text color */
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

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

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 3px;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: var(--gradient-cosmic);
    position: relative;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="200" cy="200" r="2" fill="white" opacity="0.5"/><circle cx="500" cy="100" r="1.5" fill="white" opacity="0.7"/><circle cx="800" cy="300" r="2" fill="white" opacity="0.4"/><circle cx="300" cy="600" r="1" fill="white" opacity="0.6"/><circle cx="700" cy="700" r="2.5" fill="white" opacity="0.5"/><circle cx="150" cy="800" r="1.5" fill="white" opacity="0.3"/></svg>');
    background-size: 50%;
    animation: starsMove 60s linear infinite;
    pointer-events: none;
}

@keyframes starsMove {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-50%);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(10, 10, 31, 0.7) 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, #ffffff 0%, #e1bee7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

/* Hero Credit */
.hero-credit {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: var(--spacing-sm);
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 500;
}

.guru-icon-small {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.3);
}

.guru-logo-icon-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 10px rgba(243, 156, 18, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.location {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.hero-description {
    margin: var(--spacing-md) 0;
    font-size: 1.2rem;
    line-height: 1.8;
}

.hero-description p {
    margin-bottom: var(--spacing-sm);
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(155, 89, 182, 0.5);
}

.btn-whatsapp {
    background: var(--whatsapp-green);
    color: white;
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
    width: 20px;
    height: 20px;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.deity-card {
    position: relative;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.deity-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(243, 156, 18, 0.3) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.deity-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 20px rgba(243, 156, 18, 0.5));
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-left: 2px solid var(--text-light);
    border-bottom: 2px solid var(--text-light);
    transform: rotate(-45deg);
}

/* Section Styles */
section {
    padding: var(--spacing-xl) 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Services Section */
.services {
    background: var(--dark-bg);
    position: relative;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.service-card {
    background: var(--dark-card);
    padding: var(--spacing-md);
    border-radius: 20px;
    border: 1px solid rgba(155, 89, 182, 0.2);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(155, 89, 182, 0.3);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    display: inline-block;
    animation: rotate 10s linear infinite;
}

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

    to {
        transform: rotate(360deg);
    }
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--secondary-color);
}

.service-card h4 {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-light);
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: var(--spacing-sm);
}

/* About Section */
.about {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-card) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-text {
    padding-right: var(--spacing-md);
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.tamil-text {
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.credentials {
    margin-top: var(--spacing-md);
}

.credential-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.credential-icon {
    color: var(--whatsapp-green);
    font-size: 1.5rem;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.horoscope-chart {
    background: var(--dark-card);
    padding: var(--spacing-md);
    border-radius: 20px;
    border: 2px solid var(--secondary-color);
    box-shadow: 0 0 30px rgba(243, 156, 18, 0.3);
}

.chart-grid {
    display: grid;
    grid-template-columns: repeat(3, 100px);
    grid-template-rows: repeat(3, 100px);
    gap: 2px;
}

.chart-cell {
    background: rgba(155, 89, 182, 0.1);
    border: 1px solid rgba(243, 156, 18, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chart-cell:hover {
    background: rgba(243, 156, 18, 0.2);
    transform: scale(1.05);
}

.chart-cell.center {
    background: var(--gradient-gold);
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--dark-bg);
}

/* Contact Section */
.contact {
    background: var(--dark-bg);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.contact-content {
    margin-top: var(--spacing-lg);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.contact-card {
    background: var(--dark-card);
    padding: var(--spacing-md);
    border-radius: 20px;
    border: 1px solid rgba(155, 89, 182, 0.2);
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-light);
}

.contact-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    display: block;
    margin-bottom: var(--spacing-sm);
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-color);
}

.btn-whatsapp-full {
    background: var(--whatsapp-green);
    color: white;
    margin-top: var(--spacing-sm);
}

.btn-whatsapp-full:hover {
    background: #128C7E;
}

/* Footer */
.footer {
    background: var(--dark-card);
    padding: var(--spacing-lg) 0 var(--spacing-md);
    border-top: 1px solid rgba(155, 89, 182, 0.2);
}

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

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
    font-size: 1.2rem;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

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

.footer-contact p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(155, 89, 182, 0.1);
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 768px) {

    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: rgba(10, 10, 31, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 80px 2rem 2rem;
        gap: var(--spacing-md);
        transition: right 0.3s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 1rem;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(155, 89, 182, 0.2);
    }

    /* Hero Section Mobile */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 2rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero-credit {
        justify-content: center;
        margin-bottom: var(--spacing-xs);
        font-size: 1rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
    }

    .deity-card {
        margin-top: 2rem;
    }

    .deity-img {
        max-width: 200px;
    }

    /* Services Mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .service-card {
        padding: var(--spacing-md);
    }

    /* About Mobile */
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .about-text {
        padding-right: 0;
    }

    .horoscope-chart {
        margin-top: var(--spacing-md);
    }

    .chart-grid {
        grid-template-columns: repeat(3, 80px);
        grid-template-rows: repeat(3, 80px);
    }

    /* Contact Mobile */
    .contact-info {
        grid-template-columns: 1fr;
    }

    /* Typography Mobile */
    .section-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    /* Footer Mobile */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-lg);
    }

    .footer-links ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    /* Spacing Adjustments */
    section {
        padding: var(--spacing-lg) 0;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-text h1 {
        font-size: 3rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-content {
        gap: var(--spacing-md);
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .chart-grid {
        grid-template-columns: repeat(3, 70px);
        grid-template-rows: repeat(3, 70px);
    }

    .nav-menu {
        width: 85%;
    }
}