/*
    style.css
    Main Stylesheet for Manaspurti Studios
*/

/* --- 1. Root Variables & Global Styles --- */
:root {
    --deep-space-blue: #0A081A;
    --dark-slate: #1a182d;
    --luminous-cyan: #00ffff;
    --text-primary: #EAE8FF;
    --text-secondary: #A09DCC;
    --accent-glow: rgba(0, 255, 255, 0.1);
    --font-serif: 'Lora', serif;
    --font-sans: 'Inter', sans-serif;
    --transition-speed: 300ms;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--deep-space-blue);
    color: var(--text-primary);
    font-family: var(--font-sans);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}


/* --- 2. Preloader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--deep-space-blue);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.75s ease, visibility 0.75s ease;
}

.preloader-glyph {
    max-width: 80px;
    animation: pulse 0s infinite ease-in-out;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}


/* --- 3. Header & Navigation --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: background-color var(--transition-speed) ease, padding var(--transition-speed) ease;
}

.main-header.scrolled {
    background-color: rgba(10, 8, 26, 0.85);
    backdrop-filter: blur(10px);
    padding: 15px 50px;
}

.header-logo {
    height: 40px;
    transition: transform var(--transition-speed) ease;
}

.header-logo:hover {
    transform: scale(1.05);
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    margin: 0 20px;
    font-weight: 400;
    position: relative;
    transition: color var(--transition-speed) ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--luminous-cyan);
    transition: width var(--transition-speed) ease-in-out;
}

.nav-link:hover {
    color: var(--luminous-cyan);
}

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

.contact-button {
    border: 1px solid var(--luminous-cyan);
    padding: 8px 20px;
    border-radius: 50px;
}
.contact-button:hover {
    background-color: var(--accent-glow);
}
.contact-button::after { display: none; }

.nav-toggle { display: none; }


/* --- 4. Main Section Styles --- */
.content-section {
    padding: 100px 50px;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
}

.section-body {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-secondary);
}


/* --- 5. Hero Section --- */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    color: #fff;
}

.hero-video-container {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: -2;
}
.hero-video-container::after { /* Overlay */
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(ellipse at center, rgba(10, 8, 26, 0.4) 0%, rgba(10, 8, 26, 0.9) 100%);
}

.hero-video {
    width: 100%; height: 100%;
    object-fit: cover;
}

.hero-content {
    text-align: center;
    animation: fadeIn 2s 0.5s ease-out backwards;
}

.hero-logo {
    max-width: 350px;
    margin-bottom: 1rem;
}

.tagline {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    font-size: 2rem;
    color: var(--text-primary);
    text-decoration: none;
    animation: bounce 2s infinite;
}


/* --- 6. Work Section --- */
.work-section {
    padding: 100px 0;
    text-align: center;
}
.work-section .section-title { margin-bottom: 50px; }

.work-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 0 50px;
}

.project-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.project-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    padding: 40px 20px 20px;
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
}

.project-card:hover .project-poster {
    transform: scale(1.05);
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-overlay h3 { margin: 0 0 5px; font-size: 1.5rem; }
.project-overlay span { font-size: 0.9rem; color: var(--text-secondary); }


/* --- 7. Services Section --- */
.services-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.service-item {
    background-color: var(--dark-slate);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 40px var(--accent-glow);
}

.service-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 15px;
    color: #fff;
}


/* --- 8. Contact Section --- */
.contact-section {
    background: url('../assets/images/contact-background.jpg') no-repeat center center/cover;
    padding: 120px 50px;
    text-align: center;
}

.cta-button {
    display: inline-block;
    background-color: var(--luminous-cyan);
    color: var(--deep-space-blue);
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 50px;
    margin-top: 30px;
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--luminous-cyan);
}


/* --- 9. Footer --- */
.main-footer {
    background-color: #04030d;
    padding: 60px 50px 40px;
    text-align: center;
}

.footer-logo { height: 50px; margin-bottom: 30px; }

.footer-links { margin-bottom: 30px; }
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 15px;
    transition: color var(--transition-speed) ease;
}
.footer-links a:hover { color: var(--luminous-cyan); }

.social-links { margin-bottom: 30px; }
.social-links a { margin: 0 10px; }
.social-links img { height: 24px; transition: transform var(--transition-speed) ease; }
.social-links img:hover { transform: scale(1.1); }

.copyright { color: var(--text-secondary); font-size: 0.9rem; }


/* --- 10. Video Modal --- */
.modal {
    display: none;
    position: fixed;
    z-index: 200;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
}

.modal.active { display: flex; }

.modal-content {
    position: relative;
    width: 90%;
    max-width: 960px;
}

#modal-video { width: 100%; }

.close-modal {
    position: absolute;
    top: -40px; right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}


/* --- 11. Animations --- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-5px); }
}


/* --- 12. Responsive Design --- */
@media (max-width: 1024px) {
    .services-container { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .main-header { padding: 15px 20px; }
    .main-header.scrolled { padding: 10px 20px; }
    
    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        width: 100%; height: 100vh;
        background-color: var(--dark-slate);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        display: flex;
        transition: right 0.5s ease-in-out;
    }
    .nav-menu.active { right: 0; }
    .nav-link { margin: 20px 0; font-size: 1.5rem; }

    .nav-toggle {
        display: block;
        background: none;
        border: none;
        z-index: 101;
        position: relative;
        width: 30px; height: 21px;
    }
    .hamburger, .hamburger::before, .hamburger::after {
        content: '';
        display: block;
        background-color: #fff;
        height: 3px;
        width: 30px;
        border-radius: 3px;
        transition: all var(--transition-speed) ease-in-out;
    }
    .hamburger::before { position: absolute; top: 0; }
    .hamburger::after { position: absolute; bottom: 0; }
    .nav-menu.active .hamburger { background-color: transparent; }
    .nav-menu.active .hamburger::before { transform: translateY(9px) rotate(45deg); }
    .nav-menu.active .hamburger::after { transform: translateY(-9px) rotate(-45deg); }

    .content-section { padding: 80px 20px; }
    .section-title { font-size: 2.5rem; }
    .section-body { font-size: 1.1rem; }

    .hero-logo { max-width: 250px; }
    .tagline { font-size: 1.8rem; }

    .work-gallery { padding: 0 20px; }
}