/* World Class Home Page Styling - AhteVerse */

.home-page {
    background: var(--bg-primary);
    overflow-x: hidden;
}

/* Hero Section */
.home-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 160px 0 100px;
    background: var(--bg-primary); /* Reactive background */
    overflow: hidden;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Below text, above smoke */
    pointer-events: all; /* So interactivity works */
}

/* Green Smoke Effect */
.smoke-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    z-index: 0; /* Base layer */
    pointer-events: none;
}

.green-smoke {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 150%;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(0, 255, 157, 0.15) 0%, transparent 70%);
    filter: blur(80px);
    animation: smokeFloat 10s infinite alternate ease-in-out;
}

@keyframes smokeFloat {
    0% { transform: translateX(-50%) translateY(0) scale(1); opacity: 0.5; }
    100% { transform: translateX(-55%) translateY(-50px) scale(1.2); opacity: 0.8; }
}

/* Infinite Horizon Text Style */
.horizon-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    z-index: 5;
    position: relative;
}

.infinite-horizon-title {
    font-size: clamp(4rem, 12vw, 8rem);
    font-family: var(--font-heading); /* Orbitron */
    line-height: 0.9;
    text-align: center;
    cursor: default;
    transition: transform 0.2s ease-out; /* Smooth return */
}

.infinite-horizon-title span {
    background: linear-gradient(90deg, #ff00ff, #00f3ff, #ff8c00, #00ff9d);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 8s infinite linear;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-eyebrow {
    font-size: 0.9rem;
    color: var(--electric-blue);
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 20px;
    display: block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.5s;
}

.hero-title {
    font-size: clamp(4rem, 15vw, 10rem);
    font-family: var(--font-heading);
    line-height: 0.85;
    margin-bottom: 30px;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.7s;
}

.hero-title span {
    display: block;
    background: linear-gradient(90deg, var(--magenta), var(--electric-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards 0.9s;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    opacity: 0;
    animation: fadeIn 1s forwards 1.2s;
}

.btn-primary-glow {
    padding: 18px 45px;
    background: linear-gradient(45deg, var(--magenta), var(--electric-blue));
    color: white;
    text-decoration: none;
    border-radius: 40px;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.5s;
    box-shadow: 0 10px 40px rgba(255, 0, 255, 0.3);
}

.btn-primary-glow:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 243, 255, 0.4);
}

/* Feature Grid - Unboxed */
.features-section {
    padding: 100px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.feature-card {
    padding: var(--space-lg);
    background: transparent;
    transition: 0.5s;
}

.feature-card:hover {
    transform: translateY(-15px);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    display: block;
}

.feature-card h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-family: var(--font-heading);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Interactive Anix Section */
.anix-highlight {
    padding: 100px 0;
    background: linear-gradient(to right, transparent, rgba(0, 243, 255, 0.02), transparent);
}

.anix-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.anix-video-wrapper {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.anix-video-wrapper video {
    width: 100%;
    display: block;
}

.anix-text h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-family: var(--font-heading);
    line-height: 0.9;
    margin-bottom: 25px;
}

/* Animations */
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Mouse Follower */
#liquid-cursor {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 140, 0, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
    filter: blur(40px);
}

/* Responsive */
@media (max-width: 1000px) {
    .feature-grid, .anix-container {
        grid-template-columns: 1fr;
    }
    .anix-text {
        text-align: center;
    }
}

/* Light Theme Overrides */
[data-theme="light"] .green-smoke {
    background: radial-gradient(ellipse at center, rgba(0, 255, 157, 0.3) 0%, transparent 70%);
    opacity: 0.4;
}

[data-theme="light"] #hero-particles {
    filter: brightness(0.6) contrast(1.2); /* Make particles more visible on white */
}

/* Legacy Quote Section */
.legacy-quote-section {
    position: relative;
    height: 60vh; /* Reduced height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.quote-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 0;
}

.quote-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Increased dark overlay */
    z-index: 1;
}

/* Force dark overlay in all themes */
[data-theme="light"] .quote-overlay {
    background: rgba(0, 0, 0, 0.75); 
}

.quote-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff; /* Always white for contrast */
    max-width: 900px;
    padding: 0 20px;
}

[data-theme="light"] .quote-content {
    color: #fff; /* Keep white on dark overlay even in light theme */
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.quote-text {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 30px;
    font-style: italic;
}

.quote-author {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 700;
    opacity: 0.8;
}

/* WebGL Head Section */
.webgl-head-section {
    position: relative;
    height: 80vh; /* Reduced from 100vh */
    background: var(--bg-primary);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.particlehead {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: transparent; /* Overlaying on theme bg */
}

.webgl-overlay {
    position: relative;
    z-index: 5;
    pointer-events: none;
    text-align: center;
}

.webgl-title {
    font-size: clamp(2rem, 6vw, 4rem);
    color: var(--text-primary);
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 300;
    letter-spacing: 5px;
}

.webgl-title strong {
    font-weight: 900;
    color: var(--electric-blue);
}

.webgl-title em {
    font-family: 'Playfair Display', serif;
    text-transform: lowercase;
    font-style: italic;
    color: var(--magenta);
}

/* About Redirect Section */
.about-redirect-section {
    position: relative;
    height: 100vh;
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#text-particles-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.redirect-overlay {
    position: relative;
    z-index: 10;
    text-align: center;
    margin-top: 260px; /* Increased to 260px for better clearance */
}

.btn-primary-glow {
    display: inline-block;
    padding: 20px 50px;
    background: linear-gradient(90deg, var(--magenta), var(--electric-blue));
    color: #fff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-radius: 50px;
    box-shadow: 0 0 30px rgba(255, 0, 255, 0.4);
    transition: 0.5s;
}

.btn-primary-glow:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px rgba(0, 243, 255, 0.6);
    letter-spacing: 5px;
}
