/* Custom CSS for Velava Jothida Vidhayalam */

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --golden-color: #f59e0b;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gradient-primary: linear-gradient(135deg, #312e81, #7c3aed, #e969be);
    --gradient-golden: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
}

/* Typography */
.tamil-text {
    font-family: 'Noto Sans Tamil', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1rem;
}

p {
    font-size: 1rem;
}

/* Navigation */
.custom-navbar {
    /* background: var(--gradient-primary) !important; */
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.custom-navbar.scrolled {
    /* background: rgba(0, 2, 104, 0.795) !important; */
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.logo-circle {
    width: 40px;
    height: 40px;
    background: var(--gradient-golden);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.navbar-brand h5 {
    font-size: 1.1rem;
    margin: 0;
}

.navbar-brand small {
    font-size: 0.75rem;
    opacity: 0.8;
}

.nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--golden-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--golden-color);
    transition: all 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 0;
}

/* Buttons */
.btn-golden {
    background: var(--gradient-golden);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-golden:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
    color: white;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    z-index: -1;
}

.cosmic-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 2s infinite;
}

.star-1 { width: 2px; height: 2px; top: 20%; left: 10%; animation-delay: 0s; }
.star-2 { width: 3px; height: 3px; top: 30%; left: 80%; animation-delay: 0.5s; }
.star-3 { width: 2px; height: 2px; top: 60%; left: 20%; animation-delay: 1s; }
.star-4 { width: 3px; height: 3px; top: 80%; left: 70%; animation-delay: 1.5s; }
.star-5 { width: 2px; height: 2px; top: 40%; left: 90%; animation-delay: 2s; }

.planet {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.planet-1 {
    width: 100px;
    height: 100px;
    background: var(--golden-color);
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.planet-2 {
    width: 60px;
    height: 60px;
    background: #8b5cf6;
    bottom: 20%;
    left: 5%;
    animation-delay: 3s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.2);
    color: var(--golden-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.text-golden {
    color: var(--golden-color);
}

.text-gradient {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1rem !important;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.hero-buttons .btn {
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.hero-stats {
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem !important;
    font-weight: 700;
    color: var(--golden-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem !important;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.astro-circle {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zodiac-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 50%;
    animation: rotate 60s linear infinite;
}

.zodiac-sign {
    position: absolute;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--golden-color);
    font-size: 1.5rem;
    font-weight: bold;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.zodiac-sign:nth-child(1) { top: -20px; left: 50%; transform: translateX(-50%); }
.zodiac-sign:nth-child(2) { top: 10%; right: 10%; }
.zodiac-sign:nth-child(3) { top: 30%; right: -20px; }
.zodiac-sign:nth-child(4) { top: 50%; right: -20px; transform: translateY(-50%); }
.zodiac-sign:nth-child(5) { bottom: 30%; right: -20px; }
.zodiac-sign:nth-child(6) { bottom: 10%; right: 10%; }
.zodiac-sign:nth-child(7) { bottom: -20px; left: 50%; transform: translateX(-50%); }
.zodiac-sign:nth-child(8) { bottom: 10%; left: 10%; }
.zodiac-sign:nth-child(9) { bottom: 30%; left: -20px; }
.zodiac-sign:nth-child(10) { top: 50%; left: -20px; transform: translateY(-50%); }
.zodiac-sign:nth-child(11) { top: 30%; left: -20px; }
.zodiac-sign:nth-child(12) { top: 10%; left: 10%; }

.center-symbol {
    width: 80px;
    height: 80px;
    background: var(--gradient-golden);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

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

/* Hero Section - Enhanced */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    z-index: -1;
}

.cosmic-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.star-1 { 
    width: 3px; 
    height: 3px; 
    top: 15%; 
    left: 10%; 
    animation-delay: 0s; 
}
.star-2 { 
    width: 4px; 
    height: 4px; 
    top: 25%; 
    left: 85%; 
    animation-delay: 0.8s; 
}
.star-3 { 
    width: 2px; 
    height: 2px; 
    top: 65%; 
    left: 15%; 
    animation-delay: 1.2s; 
}
.star-4 { 
    width: 3px; 
    height: 3px; 
    top: 75%; 
    left: 75%; 
    animation-delay: 1.8s; 
}
.star-5 { 
    width: 2px; 
    height: 2px; 
    top: 35%; 
    left: 95%; 
    animation-delay: 2.2s; 
}
.star-6 { 
    width: 3px; 
    height: 3px; 
    top: 55%; 
    left: 5%; 
    animation-delay: 0.5s; 
}
.star-7 { 
    width: 2px; 
    height: 2px; 
    top: 85%; 
    left: 25%; 
    animation-delay: 1.5s; 
}
.star-8 { 
    width: 4px; 
    height: 4px; 
    top: 45%; 
    left: 65%; 
    animation-delay: 2.8s; 
}

.planet {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: planetFloat 8s ease-in-out infinite;
}

.planet-1 {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 30% 30%, var(--golden-color), #d97706);
    top: 8%;
    right: 8%;
    animation-delay: 0s;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
}

.planet-2 {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, #8b5cf6, #6366f1);
    bottom: 15%;
    left: 3%;
    animation-delay: 4s;
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.3);
}

.planet-3 {
    width: 60px;
    height: 60px;
    background: radial-gradient(circle at 30% 30%, #ec4899, #be185d);
    top: 60%;
    right: 20%;
    animation-delay: 2s;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.3);
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 0.3; 
        transform: scale(1);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.2);
    }
}

@keyframes planetFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg); 
    }
    25% { 
        transform: translateY(-15px) rotate(90deg); 
    }
    50% { 
        transform: translateY(-25px) rotate(180deg); 
    }
    75% { 
        transform: translateY(-15px) rotate(270deg); 
    }
}

.hero-content {
    z-index: 2;
    padding: 2rem 0;
}

.hero-badge {
    display: inline-block;
    background: rgba(245, 158, 11, 0.2);
    color: var(--golden-color);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(245, 158, 11, 0.4);
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.text-golden {
    color: var(--golden-color);
    text-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
}

.text-gradient {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(30deg); }
}

.hero-description {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-buttons .btn {
    margin-right: 1rem;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.hero-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.hero-buttons .btn:hover::before {
    left: 100%;
}

.hero-stats {
    margin-top: 3rem;
    animation: fadeInUp 1s ease-out 1s both;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-number {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--golden-color);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Enhanced Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    animation: fadeInRight 1.2s ease-out 0.5s both;
}

.astro-circle {
    position: relative;
    width: 450px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zodiac-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(245, 158, 11, 0.4);
    border-radius: 50%;
    animation: rotateClockwise 120s linear infinite;
    box-shadow: 
        0 0 20px rgba(245, 158, 11, 0.3),
        inset 0 0 20px rgba(245, 158, 11, 0.1);
}

.zodiac-ring::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: rotateCounterClockwise 180s linear infinite;
}

.zodiac-ring::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px dashed rgba(245, 158, 11, 0.3);
    border-radius: 50%;
    animation: rotateClockwise 90s linear infinite;
}

.zodiac-sign {
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--golden-color);
    font-size: 1.8rem;
    font-weight: bold;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(245, 158, 11, 0.4);
    transition: all 0.3s ease;
    /* animation: zodiacPulse 4s ease-in-out infinite; */
    box-shadow: 
        0 0 15px rgba(245, 158, 11, 0.3),
        inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.zodiac-sign:hover {
    transform: scale(1.2);
    background: rgba(245, 158, 11, 0.3);
    box-shadow: 0 0 25px rgba(245, 158, 11, 0.6);
}

/* Zodiac sign positions with enhanced animations */
.zodiac-sign:nth-child(1) { 
    top: -25px; 
    left: 50%; 
    transform: translateX(-50%); 
    animation-delay: 0s;
}
.zodiac-sign:nth-child(2) { 
    top: 8%; 
    right: 8%; 
    animation-delay: 0.3s;
}
.zodiac-sign:nth-child(3) { 
    top: 28%; 
    right: -25px; 
    animation-delay: 0.6s;
}
.zodiac-sign:nth-child(4) { 
    top: 50%; 
    right: -25px; 
    transform: translateY(-50%); 
    animation-delay: 0.9s;
}
.zodiac-sign:nth-child(5) { 
    bottom: 28%; 
    right: -25px; 
    animation-delay: 1.2s;
}
.zodiac-sign:nth-child(6) { 
    bottom: 8%; 
    right: 8%; 
    animation-delay: 1.5s;
}
.zodiac-sign:nth-child(7) { 
    bottom: -25px; 
    left: 50%; 
    transform: translateX(-50%); 
    animation-delay: 1.8s;
}
.zodiac-sign:nth-child(8) { 
    bottom: 8%; 
    left: 8%; 
    animation-delay: 2.1s;
}
.zodiac-sign:nth-child(9) { 
    bottom: 28%; 
    left: -25px; 
    animation-delay: 2.4s;
}
.zodiac-sign:nth-child(10) { 
    top: 50%; 
    left: -25px; 
    transform: translateY(-50%); 
    animation-delay: 2.7s;
}
.zodiac-sign:nth-child(11) { 
    top: 28%; 
    left: -25px; 
    animation-delay: 3s;
}
.zodiac-sign:nth-child(12) { 
    top: 8%; 
    left: 8%; 
    animation-delay: 3.3s;
}

.center-symbol {
    width: 100px;
    height: 100px;
    background: var(--gradient-golden);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    box-shadow: 
        0 0 30px rgba(245, 158, 11, 0.5),
        0 0 60px rgba(245, 158, 11, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    animation: centerPulse 3s ease-in-out infinite;
    position: relative;
    z-index: 10;
}

.center-symbol::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(245, 158, 11, 0.3);
    border-radius: 50%;
    animation: ripple 2s ease-out infinite;
}

.center-symbol::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 50%;
    animation: ripple 2s ease-out infinite 1s;
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes rotateCounterClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

@keyframes zodiacPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 0 25px rgba(245, 158, 11, 0.5);
    }
}

@keyframes centerPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 
            0 0 30px rgba(245, 158, 11, 0.5),
            0 0 60px rgba(245, 158, 11, 0.3);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 
            0 0 40px rgba(245, 158, 11, 0.7),
            0 0 80px rgba(245, 158, 11, 0.4);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Enhanced Responsive Design for Hero Section */
@media (max-width: 1400px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .astro-circle {
        width: 400px;
        height: 400px;
    }
    
    .zodiac-sign {
        width: 45px;
        height: 45px;
        font-size: 1.6rem;
    }
    
    .center-symbol {
        width: 90px;
        height: 90px;
        font-size: 2.2rem;
    }
}

@media (max-width: 1200px) {
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .astro-circle {
        width: 350px;
        height: 350px;
    }
    
    .zodiac-sign {
        width: 40px;
        height: 40px;
        font-size: 1.4rem;
    }
    
    .center-symbol {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding: 90px 0 50px;
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .astro-circle {
        width: 300px;
        height: 300px;
        margin-top: 2rem;
    }
    
    .zodiac-sign {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .center-symbol {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .hero-stats {
        margin-top: 2rem;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 40px;
        min-height: 85vh;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
        text-align: center;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
        padding: 1rem 0;
    }
    
    .hero-buttons {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 1rem auto;
    }
    
    .astro-circle {
        width: 280px;
        height: 280px;
    }
    
    .zodiac-sign {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
    }
    
    .center-symbol {
        width: 65px;
        height: 65px;
        font-size: 1.6rem;
    }
    
    .hero-stats .row {
        text-align: center;
    }
    
    .hero-stats .col-4 {
        margin-bottom: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 70px 0 30px;
        min-height: 80vh;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .astro-circle {
        width: 240px;
        height: 240px;
    }
    
    .zodiac-sign {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    
    .center-symbol {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }
    
    .hero-badge {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .hero-content {
        padding: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 0 20px;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .astro-circle {
        width: 200px;
        height: 200px;
    }
    
    .zodiac-sign {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }
    
    .center-symbol {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .hero-buttons .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Additional stars for mobile */
@media (max-width: 768px) {
    .star-6, .star-7, .star-8 {
        display: none;
    }
}



/* Services Preview */
.services-preview {
    background: var(--light-color);
    margin-top: -50px;
    position: relative;
    z-index: 3;
    border-radius: 20px 20px 0 0;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 1.5rem;
}

.service-card h5 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.service-card .tamil-text {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Panchang Section */
.panchang-section {
    background: var(--gradient-primary);
    color: white;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.panchang-section .section-title {
    color: white;
}

.panchang-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.panchang-item h6 {
    color: var(--golden-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.panchang-item p {
    margin: 0;
    font-weight: 500;
}

/* Page Header */
.page-header {
    background: var(--gradient-primary);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.breadcrumb {
    background: none;
    margin: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--golden-color);
}

/* About Page */
.about-content {
    padding: 80px 0;
}

.about-image img {
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.mission-section {
    background: var(--light-color);
}

.mission-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.mission-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-golden);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Services Page */
.services-grid {
    padding: 80px 0;
}

.service-detail-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-detail-card .service-icon {
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    flex-grow: 1;
}

.service-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 1.5rem;
}

.service-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.service-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Branches Page */
.branches-content {
    padding: 80px 0;
}

.branch-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.branch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.branch-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.branch-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.branch-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gradient-golden);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.branch-badge.coming-soon {
    background: #6b7280;
}

.branch-badge.online {
    background: #10b981;
}

.branch-info {
    padding: 2rem;
}

.branch-details p {
    margin-bottom: 0.5rem;
    color: #6b7280;
}

.branch-services {
    margin: 1.5rem 0;
}

.branch-services ul {
    list-style: none;
    padding: 0;
}

.branch-services li {
    padding: 0.25rem 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.online-branch {
    border: 2px solid #10b981;
}

/* Gallery Page */
.gallery-filter {
    background: var(--light-color);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-buttons .btn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
}

.filter-buttons .btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.gallery-grid {
    padding: 80px 0;
}

.gallery-item {
    margin-bottom: 2rem;
}

.gallery-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.gallery-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(99, 102, 241, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content {
    text-align: center;
    color: white;
}

.gallery-content h5 {
    margin-bottom: 0.5rem;
}

.gallery-content .tamil-text {
    margin-bottom: 1rem;
    opacity: 0.8;
}

/* Contact Page */
.contact-content {
    padding: 80px 0;
}

.contact-form-card {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-info-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-details h6 {
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.contact-details p {
    margin: 0;
    color: #6b7280;
}

.quick-contact-card {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-brand .logo-circle {
    width: 50px;
    height: 50px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.contact-info p {
    margin-bottom: 0.5rem;
    color: #9ca3af;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--golden-color);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .astro-circle {
        width: 300px;
        height: 300px;
    }
    
    .zodiac-sign {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .center-symbol {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .hero-stats {
        margin-top: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
    
    .contact-form-card,
    .contact-info-card {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .astro-circle {
        width: 250px;
        height: 250px;
    }
    
    .service-card,
    .feature-card,
    .mission-card {
        padding: 1.5rem;
    }
    
    .contact-form-card,
    .contact-info-card {
        padding: 1.5rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.bg-overlay {
    position: relative;
}

.bg-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.bg-overlay > * {
    position: relative;
    z-index: 2;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Responsive Fixes */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .astro-circle {
        width: 350px;
        height: 350px;
    }
}

@media (max-width: 992px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .astro-circle {
        width: 300px;
        height: 300px;
        margin-top: 2rem;
    }
    
    .zodiac-sign {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    
    .center-symbol {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .hero-stats {
        margin-top: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .navbar-brand h5 {
        font-size: 1rem;
    }
    
    .navbar-brand small {
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        text-align: center;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0 0 1rem 0;
    }
    
    .astro-circle {
        width: 250px;
        height: 250px;
    }
    
    .zodiac-sign {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .center-symbol {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-card,
    .feature-card,
    .mission-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .contact-form-card,
    .contact-info-card {
        padding: 2rem;
    }
    
    .branch-info {
        padding: 1.5rem;
    }
    
    .hero-stats .row {
        text-align: center;
    }
    
    .hero-stats .col-4 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 80vh;
        padding: 1rem 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .astro-circle {
        width: 200px;
        height: 200px;
    }
    
    .zodiac-sign {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }
    
    .center-symbol {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .service-card,
    .feature-card,
    .mission-card,
    .contact-form-card,
    .contact-info-card {
        padding: 1.5rem;
    }
    
    .page-header {
        padding: 100px 0 60px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .navbar-brand {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .navbar-brand .logo-circle {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
    
    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
        white-space: nowrap;
    }
    
    .filter-buttons .btn {
        flex-shrink: 0;
        margin-right: 0.5rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .astro-circle {
        width: 180px;
        height: 180px;
    }
    
    .zodiac-sign {
        width: 22px;
        height: 22px;
        font-size: 0.8rem;
    }
    
    .center-symbol {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* New Section Styles */

/* Why Choose Us Section */
.why-choose-us {
    background: var(--light-color);
}

.why-choose-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.why-choose-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.why-choose-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-golden);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.why-choose-card h5 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.why-choose-card .tamil-text {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.why-choose-card p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
    background: var(--gradient-primary);
    color: white;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.testimonial-content {
    text-align: center;
}

.stars {
    color: var(--golden-color);
}

.stars i {
    margin-right: 0.2rem;
    font-size: 1.1rem;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.testimonial-author h6 {
    color: white;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.testimonial-author .tamil-text {
    color: var(--golden-color);
    font-size: 0.85rem;
}

.testimonial-author .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.9rem;
}

/* Specialties Section */
.specialties-section {
    background: white;
}

.specialty-card {
    display: flex;
    align-items: flex-start;
    background: var(--light-color);
    padding: 2.5rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    height: 100%;
}

.specialty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.specialty-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin-right: 2rem;
    flex-shrink: 0;
}

.specialty-content h4 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.specialty-content .tamil-text {
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.specialty-content p {
    color: #6b7280;
    line-height: 1.6;
    margin: 0;
}

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .why-choose-card,
    .testimonial-card {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .specialty-card {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
    
    .specialty-icon {
        margin: 0 auto 1.5rem;
    }
    
    .why-choose-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .why-choose-card,
    .testimonial-card,
    .specialty-card {
        padding: 1.5rem;
    }
    
    .why-choose-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .specialty-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .testimonial-content p {
        font-size: 0.95rem;
    }
}

/* Fix for navbar on small screens */
@media (max-width: 576px) {
    .navbar-brand {
        flex-direction: row;
        align-items: center;
    }
    
    .navbar-brand .logo-circle {
        margin-right: 0.75rem;
        margin-bottom: 0;
        width: 35px;
        height: 35px;
    }
    
    .navbar-brand h5 {
        font-size: 0.9rem;
        line-height: 1.2;
    }
    
    .navbar-brand small {
        font-size: 0.65rem;
    }
}

/* Ensure proper spacing on all devices */
.section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .section {
        padding: 60px 0;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 40px 0;
    }
}

/* Fix hero section positioning on mobile */
@media (max-width: 768px) {
    .hero-section .row {
        align-items: center;
    }
    
    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-visual {
        display: flex;
        justify-content: center;
    }
}

/* Improve button responsiveness */
@media (max-width: 576px) {
    .btn-golden {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-buttons .btn {
        padding: 1rem 2rem;
        font-size: 1rem;
        margin-bottom: 1rem;
    }
}