/* 
   Virtual X Tours - Main Stylesheet
   A modern, technical design with smooth animations
   Color scheme: Deep purples, blues, cyans with bright accent highlights
*/

/* ===== BASE STYLES ===== */
:root {
    /* Color Variables */
    --primary-color: #6200ee;
    --primary-light: #9d46ff;
    --primary-dark: #0a0030;
    --secondary-color: #03dac6;
    --accent-color: #ff3d71;
    --text-light: #ffffff;
    --text-dark: #121212;
    --text-gray: #7b7b7b;
    --bg-dark: #121212;
    --bg-darker: #090909;
    --bg-light: #ffffff;
    --bg-gray: #f5f5f5;
    --shadow-color: rgba(0, 0, 0, 0.2);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), #04f7e0);
    
    /* Spacing Variables */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 5rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    --radius-round: 50%;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-light);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-divider {
    height: 4px;
    width: 80px;
    background: var(--gradient-primary);
    margin: var(--spacing-md) auto;
    border-radius: var(--radius-sm);
}

/* ===== BUTTONS ===== */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-normal);
    box-shadow: 0 4px 10px var(--shadow-color);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(98, 0, 238, 0.3);
    color: var(--text-light);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--primary-dark);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #04f7e0, var(--secondary-color));
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(3, 218, 198, 0.3);
    color: var(--primary-dark);
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: var(--spacing-md) 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition-normal);
}

header.scrolled {
    padding: var(--spacing-sm) 0;
    background: rgba(255, 255, 255, 0.98);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-family: 'Raleway', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 1px;
}

.logo span {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-menu li {
    margin-left: var(--spacing-lg);
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    padding: var(--spacing-xs) 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a.btn-primary {
    padding: 0.5rem 1.5rem;
}

.nav-menu a.btn-primary::after {
    display: none;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dark);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background: url('../images/hero-bg.jpg') no-repeat center center/cover;
    margin-top: 0;
    padding-top: 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 0, 48, 0.85), rgba(18, 18, 18, 0.9));
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-content {
    width: 50%;
    color: var(--text-light);
}

.hero-content h1 {
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-lg);
    color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
}

.hero-image {
    width: 45%;
    position: relative;
}

.vr-sphere {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.sphere {
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at 30% 30%, var(--secondary-color), var(--primary-color));
    border-radius: var(--radius-round);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 50px rgba(3, 218, 198, 0.5);
    animation: pulse 5s infinite alternate;
}

.orbit {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-round);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 20s linear infinite;
}

.satellite {
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--accent-color);
    border-radius: var(--radius-round);
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(255, 61, 113, 0.7);
}

/* ===== WELCOME SECTION ===== */
.welcome {
    padding: var(--spacing-xxl) 0;
    background-color: var(--bg-light);
}

.welcome-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.2rem;
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: var(--spacing-xxl) 0;
    background-color: var(--bg-gray);
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    border-radius: var(--radius-round);
    opacity: 0.1;
    z-index: 0;
}

.services::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 300px;
    height: 300px;
    background: var(--gradient-secondary);
    border-radius: var(--radius-round);
    opacity: 0.1;
    z-index: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.service-card {
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition-normal);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 0;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

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

.service-card:hover::before {
    height: 100%;
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-gray);
    border-radius: var(--radius-round);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    color: var(--text-light);
    transform: rotateY(360deg);
}

.service-card h3 {
    margin-bottom: var(--spacing-sm);
    transition: var(--transition-normal);
}

.service-card:hover h3 {
    color: var(--primary-color);
}

/* ===== BENEFITS SECTION ===== */
.benefits {
    padding: var(--spacing-xxl) 0;
    background-color: var(--bg-light);
}

.benefits-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-xl);
}

.benefits-text {
    width: 50%;
}

.benefit-item {
    margin-bottom: var(--spacing-lg);
    padding-left: var(--spacing-lg);
    border-left: 3px solid var(--primary-color);
    transition: var(--transition-normal);
}

.benefit-item:hover {
    transform: translateX(10px);
    border-left-color: var(--secondary-color);
}

.benefit-item h3 {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.benefit-item h3 i {
    margin-right: var(--spacing-sm);
}

.benefits-image {
    width: 45%;
}

.vr-demo {
    position: relative;
    width: 100%;
}

.vr-frame {
    width: 100%;
    height: 350px;
    border-radius: var(--radius-lg);
    background: var(--bg-darker);
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    perspective: 1000px;
}

.vr-screen {
    width: 100%;
    height: 100%;
    background: url('../images/vr-demo.jpg') no-repeat center center/cover;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    transform: rotateX(5deg);
    transition: var(--transition-normal);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.vr-screen:hover {
    transform: rotateX(0deg);
}

.vr-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(98, 0, 238, 0.2), rgba(3, 218, 198, 0.2));
}

/* ===== FEATURED TOURS SECTION ===== */
.featured-tours {
    padding: var(--spacing-xxl) 0;
    background-color: var(--bg-gray);
}

.tours-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-lg);
}

.tour-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: var(--transition-normal);
}

.tour-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.tour-image {
    height: 250px;
    position: relative;
    background-color: var(--primary-color);
    background-size: cover;
    background-position: center;
}

.school-tour {
    background-image: url('../images/school-tour.jpg');
}

.museum-tour {
    background-image: url('../images/museum-tour.jpg');
}

.realestate-tour {
    background-image: url('../images/realestate-tour.jpg');
}

.tour-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 0, 48, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

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

.tour-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: var(--radius-md);
    font-weight: 600;
    transform: translateY(20px);
    transition: var(--transition-normal);
}

.tour-item:hover .tour-link {
    transform: translateY(0);
}

.tour-link:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

.tour-item h3 {
    padding: var(--spacing-md);
    background: var(--bg-light);
    text-align: center;
    margin-bottom: 0;
}

.view-more {
    text-align: center;
    margin-top: var(--spacing-xl);
}

/* ===== CALL TO ACTION SECTION ===== */
.cta {
    padding: var(--spacing-xxl) 0;
    background: var(--gradient-primary);
    color: var(--text-light);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before, .cta::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: var(--radius-round);
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.cta::before {
    top: -125px;
    right: -125px;
}

.cta::after {
    bottom: -125px;
    left: -125px;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
}

.cta .btn-primary {
    background: var(--text-light);
    color: var(--primary-color);
}

.cta .btn-primary:hover {
    background: var(--bg-gray);
}

.cta .btn-secondary {
    background: transparent;
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

.cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ===== FOOTER SECTION ===== */
footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding-top: var(--spacing-xxl);
}

.footer-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-logo a {
    font-family: 'Raleway', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 1px;
}

.footer-logo span {
    color: var(--secondary-color);
}

.footer-logo p {
    font-size: 0.9rem;
    margin-top: var(--spacing-sm);
    color: var(--text-gray);
}

.footer-links h3, .footer-services h3, .footer-contact h3 {
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
    font-size: 1.2rem;
    position: relative;
    padding-bottom: var(--spacing-sm);
}

.footer-links h3::after, .footer-services h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--secondary-color);
}

.footer-links ul, .footer-services ul {
    list-style: none;
}

.footer-links li, .footer-services li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a, .footer-services a {
    color: var(--text-gray);
    transition: var(--transition-fast);
}

.footer-links a:hover, .footer-services a:hover {
    color: var(--secondary-color);
    padding-left: var(--spacing-sm);
}

.footer-contact p {
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: center;
}

.footer-contact i {
    margin-right: var(--spacing-sm);
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-round);
    color: var(--text-light);
    transition: var(--transition-normal);
}

.social-icons a:hover {
    background: var(--gradient-primary);
    transform: translateY(-3px);
}

.footer-bottom {
    padding: var(--spacing-md) 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.9;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease forwards;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease 0.3s forwards;
    opacity: 0;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease 0.6s forwards;
    opacity: 0;
}

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}
