/*========================================================================
    # STYLE.CSS
    # THEME: CELESTIAL MATHEMATICS
    # ACHARYA PANDIT DHEERENDRA TRIPATHI - ASTRONOMICAL MATHEMATICIAN
========================================================================*/

:root {
    --bg-dark-midnight: #0a0e17;
    --bg-cosmic-blue: #0F172A;
    --bg-off-white: #F8FAFC;
    --accent-gold: #D4AF37;
    --text-light: #E2E8F0;
    --text-dark: #0F172A;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Lato', sans-serif;
    --transition-speed: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- Global Reset & Typography --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-cosmic-blue);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.8;
    font-size: 1.1rem;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--bg-off-white);
    font-weight: 700;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: var(--accent-gold);
    transition: color var(--transition-speed);
}

a:hover {
    color: #fff;
}

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

/* --- Header & Glassmorphism Navigation --- */
.main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--bg-off-white);
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.main-nav a {
    color: var(--text-light);
    font-weight: 700;
    font-size: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid transparent;
    transition: all var(--transition-speed);
}

.main-nav a:hover, .main-nav a.active {
    color: #fff;
    border-bottom-color: var(--accent-gold);
}

/* --- Hero Section (Home) --- */
.hero {
    padding: 7rem 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 14, 23, 0.7);
    z-index: 1;
}

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

.hero-headline {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 1rem;
    color: #fff;
}

.hero-subhead {
    font-size: 1.3rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 3rem;
    font-weight: 300;
    opacity: 0.9;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed);
    border: 2px solid transparent;
    cursor: pointer;
    margin: 0.5rem;
}

.btn-gold {
    background-color: var(--accent-gold);
    color: var(--bg-cosmic-blue);
    border-color: var(--accent-gold);
}

.btn-gold:hover {
    background-color: transparent;
    color: var(--accent-gold);
}

.btn-outline {
    background-color: transparent;
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

.btn-outline:hover {
    background-color: var(--accent-gold);
    color: var(--bg-cosmic-blue);
}

/* --- General Page & Section Styling --- */
.page-header {
    background-color: var(--bg-dark-midnight);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.page-header h1 {
    font-size: 3.5rem;
}

.content-section {
    padding: 6rem 0;
    background-color: var(--bg-off-white);
    color: var(--text-dark);
}

.content-section h2, .content-section h3 {
    color: var(--text-dark);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
}

/* --- Service Cards --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    border-bottom: 3px solid var(--accent-gold);
}

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

.service-card .icon {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

/* --- Contact & Footer --- */
.main-footer {
    background-color: var(--bg-dark-midnight);
    color: #94A3B8;
    padding: 5rem 0 3rem;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-socials h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.social-link {
    display: flex;
    align-items: center;
    font-size: 1rem;
    color: var(--text-light);
    transition: color var(--transition-speed);
}

.social-link i {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    width: 30px;
    text-align: center;
    color: var(--accent-gold);
}

.social-link:hover {
    color: var(--accent-gold);
}

.footer-copyright {
    margin-top: 4rem;
    font-size: 1rem;
    font-family: var(--font-heading);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    padding-top: 3rem;
}

/* Responsive */
@media (max-width: 768px) {
    .main-header .container { flex-direction: column; gap: 1rem; }
    .main-nav ul { padding: 1rem 0; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
    .hero { padding: 5rem 0; }
}
