/*
 * Frameworks Production Pvt. Ltd. - Style Sheet
 * Theme: Futuristic, Cinematic, AI-Driven
 */

/* --- 0. Global Reset & Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Theme (Default) */
    --color-bg: #0D1117;
    --color-bg-alt: #161B22;
    --color-text-body: #C9D1D9;
    --color-text-heading: #FFFFFF;
    --color-primary-accent: #00AEEF; /* Cyan */
    --color-secondary-accent: #E44B35; /* Orange-Red */
    --color-subtle-glow: rgba(0, 174, 239, 0.4);
    --color-border: rgba(255, 255, 255, 0.15);
    --color-card-bg: rgba(255, 255, 255, 0.05);
    --nav-bg: rgba(13, 17, 23, 0.9);
}

[data-theme="light"] {
    /* Light Theme Overrides */
    --color-bg: #FFFFFF;
    --color-bg-alt: #F8F8F8;
    --color-text-body: #1A1A1A;
    --color-text-heading: #1A1A1A;
    --color-subtle-glow: rgba(0, 0, 0, 0.1);
    --color-border: rgba(0, 0, 0, 0.15);
    --color-card-bg: #EAEAEA;
    --nav-bg: rgba(255, 255, 255, 0.9);
}

/* --- 1. Typography & Base Styles --- */
body {
    background-color: var(--color-bg);
    color: var(--color-text-body);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    transition: background-color 0.5s, color 0.5s;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

a {
    color: var(--color-primary-accent);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--color-secondary-accent);
}

h1, h2, h3, h4 {
    color: var(--color-text-heading);
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h1 { font-size: 3rem; margin-bottom: 0.5em; }
h2 { font-size: 2.2rem; margin-bottom: 1em; border-left: 5px solid var(--color-primary-accent); padding-left: 15px; }
h3 { font-size: 1.5rem; margin-bottom: 0.8em; }

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

.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    margin-bottom: 2em;
    text-align: left;
}

.center-text {
    text-align: center !important;
    border-left: none !important;
    padding-left: 0 !important;
}

.dark-bg-alt {
    background-color: var(--color-bg-alt);
}

.accent-text {
    color: var(--color-primary-accent);
}

/* --- 2. Header & Navigation --- */
.main-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    transition: background 0.3s, border-bottom 0.3s;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary-accent);
    letter-spacing: 0.1em;
}

.nav-menu .nav-item {
    margin-left: 30px;
    position: relative;
    color: var(--color-text-body);
    font-weight: 600;
    padding-bottom: 5px;
    transition: color 0.3s;
}

.nav-menu .nav-item:hover, .nav-menu .nav-item.active {
    color: var(--color-text-heading);
}

/* Nav Hover Animation (Underline) */
.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-primary-accent);
    transition: width 0.3s ease-out, left 0.3s ease-out;
}

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

.theme-toggle {
    background: none;
    border: 1px solid var(--color-border);
    color: var(--color-text-body);
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
    margin-left: 20px;
}

.theme-toggle:hover {
    background-color: var(--color-primary-accent);
    color: var(--color-bg);
    border-color: var(--color-primary-accent);
}

/* --- 3. Buttons & CTAs --- */
.cta-button {
    background: linear-gradient(90deg, var(--color-primary-accent), var(--color-secondary-accent));
    color: var(--color-bg);
    padding: 14px 30px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 0 10px var(--color-subtle-glow);
    transition: transform 0.2s, box-shadow 0.3s, opacity 0.3s;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--color-primary-accent);
    opacity: 0.9;
}

.secondary-cta {
    background: none;
    border: 1px solid var(--color-primary-accent);
    color: var(--color-primary-accent);
    box-shadow: none;
    margin-left: 15px;
}

.secondary-cta:hover {
    background: var(--color-primary-accent);
    color: var(--color-bg);
    box-shadow: 0 0 15px var(--color-subtle-glow);
}

/* --- 4. Home Page (Hero) --- */
.full-height {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cinematic-bg {
    background-color: var(--color-bg);
}

.hero-bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.2; /* Muted effect */
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0, 174, 239, 0.5); /* Subtle glow */
}

.tagline {
    font-size: 1.3rem;
    color: var(--color-text-body);
    margin-bottom: 40px;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* --- 5. Featured Services (Home) --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--color-card-bg);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--color-border);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary-accent);
    box-shadow: 0 10px 30px var(--color-subtle-glow);
}

.service-icon {
    font-size: 3rem;
    color: var(--color-secondary-accent);
    margin-bottom: 20px;
    display: block;
}

.read-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--color-primary-accent);
    font-weight: 600;
}

/* --- 6. Clients & Testimonials --- */
.testimonial-slider {
    margin: 50px auto;
    max-width: 800px;
}

.testimonial-card {
    padding: 30px;
    background-color: var(--color-card-bg);
    border-radius: 8px;
    border-left: 5px solid var(--color-secondary-accent);
    text-align: center;
}

.quote {
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.client-info {
    font-weight: 600;
    color: var(--color-text-heading);
}

.logo-carousel-track {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    margin-top: 40px;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 20px 0;
}
/* Note: Implement actual continuous scroll animation via keyframes/JS */

/* --- 7. Page Headers --- */
.page-hero-small {
    padding: 150px 0 80px 0;
    text-align: center;
}

.page-title {
    font-size: 3.5rem;
}

.page-subtitle {
    max-width: 800px;
    margin: 20px auto 0;
    font-size: 1.1rem;
}

/* --- 8. About Page --- */
.about-story {
    background-size: cover;
    background-attachment: fixed; /* Parallax effect */
    background-position: center;
    color: var(--color-text-body);
}

.about-story-content {
    background: rgba(13, 17, 23, 0.8); /* Dark overlay for text readability */
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--color-primary-accent);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.value-icon {
    font-size: 2.5rem;
    color: var(--color-primary-accent);
    margin-bottom: 15px;
}

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

.team-member {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.team-img-wrapper img {
    width: 100%;
    display: block;
    transition: transform 0.4s;
}

.team-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    transform: translateY(100%); /* Initial slide-up position */
    transition: transform 0.4s ease-out;
    border-top: 3px solid var(--color-secondary-accent);
}

.team-member:hover .team-overlay {
    transform: translateY(0);
}

.member-name {
    margin: 0;
    font-size: 1.2rem;
    color: var(--color-text-heading);
}

.member-title {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-primary-accent);
}

/* --- 9. Services Page --- */
.service-detail-card {
    display: flex;
    gap: 50px;
    align-items: center;
    margin-bottom: 80px;
    padding: 40px;
    background-color: var(--color-card-bg);
    border-radius: 10px;
    border: 2px solid transparent;
    transition: border-color 0.4s;
}

.service-detail-card:hover {
    border-color: var(--color-primary-accent);
    box-shadow: 0 0 20px var(--color-subtle-glow);
}

.service-detail-card.reverse-layout {
    flex-direction: row-reverse;
}

.service-icon-wrapper {
    flex: 0 0 350px;
    height: 250px;
    background-color: var(--color-bg);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px dashed var(--color-primary-accent);
}

.service-main-icon {
    font-size: 4rem;
    color: var(--color-primary-accent);
}

.service-text {
    flex: 1;
}

.service-text h2 {
    border-left: none;
    padding-left: 0;
}

.service-text ul {
    list-style: none;
    margin-top: 20px;
}

.service-text ul li {
    margin-bottom: 10px;
    color: var(--color-text-heading);
}

.accent-icon {
    color: var(--color-secondary-accent);
    margin-right: 10px;
}

/* --- 10. Portfolio Page --- */
.filter-controls {
    margin-bottom: 40px;
}

.filter-btn {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    color: var(--color-text-body);
    padding: 10px 20px;
    margin: 0 10px 10px 0;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--color-primary-accent);
    color: var(--color-bg);
    border-color: var(--color-primary-accent);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.project-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.4s;
    border: 1px solid var(--color-border);
}

.project-item.large {
    grid-column: span 2;
}

.project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s, transform 0.4s;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 174, 239, 0.85); /* Cyan overlay */
    color: var(--color-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Hidden initially */
    transition: opacity 0.4s;
}

.project-item:hover .project-overlay {
    opacity: 1;
}

.project-item:hover img {
    transform: scale(1.05);
    opacity: 0.2;
}

.project-title {
    margin: 0;
    font-size: 1.8rem;
}

.project-category {
    font-weight: 400;
    color: var(--color-bg);
    margin-top: 5px;
    padding: 5px 10px;
    background: var(--color-secondary-accent);
    border-radius: 3px;
}

/* --- 11. Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-form h3, .contact-info-wrapper h3 {
    margin-bottom: 25px;
    color: var(--color-primary-accent);
}

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

.form-input, .form-textarea {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-body);
    padding: 15px;
    width: 100%;
    border-radius: 4px;
    transition: border-color 0.3s, box-shadow 0.3s;
    font-family: 'Inter', sans-serif;
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--color-primary-accent);
    box-shadow: 0 0 5px var(--color-subtle-glow);
    outline: none;
    background-color: rgba(255, 255, 255, 0.02);
}

.contact-details {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.contact-details li {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.social-links-info a {
    font-size: 1.5rem;
    margin-right: 20px;
}

.map-embed {
    border: 5px solid var(--color-border);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 30px;
}

.map-embed iframe {
    /* To apply dark styling to the map, use the Google Maps Embed API with a dark mode theme parameter or a custom style JSON */
}

/* --- 12. Footer --- */
.main-footer {
    background-color: var(--color-bg-alt);
    padding: 30px 0;
    border-top: 1px solid var(--color-border);
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.social-links a {
    font-size: 1.2rem;
    margin-right: 15px;
    color: var(--color-text-body);
}

.social-links a:hover {
    color: var(--color-primary-accent);
}

.copyright {
    color: var(--color-text-body);
    opacity: 0.7;
}

.back-to-top {
    position: absolute;
    right: 20px;
    bottom: 40px;
    background: var(--color-primary-accent);
    color: var(--color-bg);
    padding: 10px 15px;
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-subtle-glow);
    display: none; /* Controlled by JS/GSAP */
}

/* --- 13. Responsive Design (Media Queries) --- */

/* Tablet and Smaller Desktop */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .service-detail-card {
        flex-direction: column;
    }
    .service-detail-card.reverse-layout {
        flex-direction: column;
    }
    .service-icon-wrapper {
        flex: 0 0 100%;
        max-width: 400px;
        margin: 0 auto 30px;
    }
    .team-member.large {
        grid-column: span 1;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Simple mobile navigation for this blueprint */
    }
    .nav-content {
        justify-content: center;
        position: relative;
    }
    .theme-toggle {
        position: absolute;
        right: 20px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    .tagline {
        font-size: 1rem;
    }
    .cta-group {
        flex-direction: column;
        gap: 15px;
    }
    .secondary-cta {
        margin-left: 0;
    }

    .section {
        padding: 60px 0;
    }
    .page-title {
        font-size: 2.5rem;
    }

    .service-grid, .value-grid, .team-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .social-links {
        margin-bottom: 15px;
    }
    .back-to-top {
        right: 10px;
        bottom: 10px;
    }
}