/*
Theme Name: Insight Elite Services
Theme URI: https://insighteliteservices.com
Author: Your Name
Description: Futuristic business theme with advanced animations and quote system.
Version: 1.0
License: GPL v2 or later
Text Domain: insight-elite
*/

/* ----- Global Reset ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #000;
    color: #fff;
    overflow-x: hidden;
}

/* ----- SVG Intro Overlay ----- */
#svg-intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease, visibility 0s linear 1s;
}

#svg-intro-overlay svg {
    width: 80%;
    max-width: 600px;
    height: auto;
}

/* ----- Sections ----- */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Hero with video */
.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    max-width: 400px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 2;
}

.logo-container img {
    width: 100%;
    height: auto;
}

.depth-of-focus {
    filter: blur(10px) brightness(0.5);
    opacity: 0;
    transform: scale(0.8);
}

/* Business Description */
.business-desc {
    background: rgba(0,0,0,0.8);
    text-align: center;
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Services (shape change) */
.services-wrapper {
    width: 100%;
    max-width: 1200px;
    perspective: 1000px;
}

.service-card {
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 2rem;
    margin: 1rem;
    transition: transform 0.6s ease, opacity 0.6s ease;
    transform-style: preserve-3d;
    opacity: 0;
    transform: translateY(50px) rotateX(15deg);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

/* Perspective Switch Section */
.perspective-section {
    background: #111;
    transform-style: preserve-3d;
    transition: transform 0.8s ease;
}

.perspective-section.triggered {
    transform: rotateY(180deg);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
}

.gallery-grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s;
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.05);
}

/* Contact & Footer */
.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 2rem;
}

.contact-info div {
    background: rgba(255,255,255,0.1);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
}

/* Thank You Ending */
.thankyou-ending {
    background: #000;
    text-align: center;
    justify-content: center;
    position: relative;
}

.ending-logo {
    width: 200px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.ending-logo.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(45deg, #ff416c, #ff4b2b);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    margin-top: 20px;
    transition: transform 0.3s;
}

.btn:hover {
    transform: scale(1.05);
}