/* ======================================================
   unlucidai.love - Main Stylesheet
   Unique purple/blue cosmic design with neural network elements
   Fully responsive and SEO-optimized
   ====================================================== */

/* Base Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #8E2DE2;
    --secondary: #4A00E0;
    --accent: #B721FF;
    --dark: #120E29;
    --darker: #0A0818;
    --light: #F8F9FE;
    --text: #E0E0FF;
    --text-dark: #9D9DBE;
    --gradient-main: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-accent: linear-gradient(135deg, var(--accent), var(--primary));
    --shadow-sm: 0 5px 15px rgba(74, 0, 224, 0.15);
    --shadow-lg: 0 10px 30px rgba(74, 0, 224, 0.25);
    --transition: all 0.3s ease;
}

@font-face {
    font-family: 'Quantum';
    src: local('Poppins'), local('Montserrat'), sans-serif;
}

html {
    scroll-behavior: smooth;
    font-size: 100%;
}

body {
    font-family: 'Quantum', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--darker);
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
}

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

ul {
    list-style: none;
}

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

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Background Pattern */
.pattern-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(rgba(142, 45, 226, 0.1) 1px, transparent 1px),
        radial-gradient(rgba(74, 0, 224, 0.1) 1px, transparent 1px);
    background-size: 30px 30px, 50px 50px;
    background-position: 0 0, 15px 15px;
    opacity: 0.4;
    z-index: -1;
}

.main-container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header Styles */
header {
    padding: 1.2rem 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 8, 24, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(142, 45, 226, 0.2);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--light);
    margin-bottom: 0;
}

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

.logo-svg {
    filter: drop-shadow(0 0 5px var(--primary));
}

nav ul {
    display: flex;
    gap: 2.5rem;
}

nav a {
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 0.25rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.3s ease;
}

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

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

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background: var(--light);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 12rem 0 6rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--darker) 0%, var(--dark) 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.main-heading {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.highlight {
    position: relative;
    color: var(--accent);
    z-index: 1;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--primary);
    opacity: 0.3;
    z-index: -1;
}

.lead {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 2.5rem;
}

.cta-wrapper {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.primary-btn, .secondary-btn, .cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.primary-btn {
    background: var(--gradient-main);
    color: white;
    box-shadow: var(--shadow-sm);
}

.secondary-btn {
    background: rgba(142, 45, 226, 0.1);
    color: var(--light);
    border: 1px solid var(--primary);
}

.cta-btn {
    background: var(--gradient-accent);
    color: white;
    box-shadow: var(--shadow-lg);
    font-size: 1.1rem;
    padding: 1.2rem 3rem;
}

.primary-btn:hover, .cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(74, 0, 224, 0.4);
}

.secondary-btn:hover {
    background: rgba(142, 45, 226, 0.2);
    transform: translateY(-3px);
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(74, 0, 224, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 10px 25px rgba(74, 0, 224, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(74, 0, 224, 0.3);
    }
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orb-container {
    position: relative;
    width: 400px;
    height: 400px;
}

.orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: var(--gradient-main);
    border-radius: 50%;
    box-shadow: 0 0 80px var(--primary);
    animation: glow 4s infinite alternate;
}

.ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(142, 45, 226, 0.3);
}

.ring1 {
    width: 200px;
    height: 200px;
    animation: rotate 20s linear infinite;
}

.ring2 {
    width: 280px;
    height: 280px;
    animation: rotate 30s linear infinite reverse;
}

.ring3 {
    width: 360px;
    height: 360px;
    animation: rotate 40s linear infinite;
}

.brain-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.wave {
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

.wave1 {
    animation-name: wave1;
}

.wave2 {
    animation-name: wave2;
    animation-delay: 0.5s;
}

.wave3 {
    animation-name: wave3;
    animation-delay: 1s;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 40px var(--primary);
    }
    100% {
        box-shadow: 0 0 80px var(--accent);
    }
}

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

@keyframes wave1 {
    0%, 100% {
        d: path("M100,200 Q150,150 200,200 Q250,250 300,200");
    }
    50% {
        d: path("M100,180 Q150,230 200,180 Q250,130 300,180");
    }
}

@keyframes wave2 {
    0%, 100% {
        d: path("M100,220 Q150,170 200,220 Q250,270 300,220");
    }
    50% {
        d: path("M100,200 Q150,250 200,200 Q250,150 300,200");
    }
}

@keyframes wave3 {
    0%, 100% {
        d: path("M100,180 Q150,130 200,180 Q250,230 300,180");
    }
    50% {
        d: path("M100,220 Q150,170 200,220 Q250,270 300,220");
    }
}

/* Section Styles */
section {
    padding: 6rem 0;
    position: relative;
}

.section-heading {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-main);
    border-radius: 2px;
}

.section-subheading {
    text-align: center;
    max-width: 800px;
    margin: 2rem auto 4rem;
    color: var(--text-dark);
    font-size: 1.1rem;
}

/* Features Section */
.features {
    background-color: var(--dark);
    position: relative;
    overflow: hidden;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(142, 45, 226, 0.2), transparent 70%);
    pointer-events: none;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(142, 45, 226, 0.3);
}

.feature-icon {
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: var(--light);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* AI Tech Section */
.ai-tech {
    background-color: var(--darker);
    position: relative;
    overflow: hidden;
}

.ai-tech::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at bottom left, rgba(74, 0, 224, 0.2), transparent 70%);
    pointer-events: none;
}

.ai-tech .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ai-tech-content h2 {
    text-align: left;
}

.ai-tech-content h2::after {
    left: 0;
    transform: none;
}

.tech-list {
    margin: 2rem 0;
}

.tech-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    color: var(--text);
}

.check-icon {
    flex-shrink: 0;
}

.neural-network {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nn-layer {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    height: 100%;
    position: relative;
    z-index: 2;
}

.input-layer, .output-layer {
    height: 80%;
}

.nn-node {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
    position: relative;
    animation: nodeGlow 4s infinite alternate;
}

.hidden-layer .nn-node:nth-child(odd) {
    animation-delay: 1s;
}

.input-layer .nn-node:nth-child(even), 
.output-layer .nn-node:nth-child(even) {
    animation-delay: 2s;
}

@keyframes nodeGlow {
    0% {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
    100% {
        box-shadow: 0 0 15px rgba(142, 45, 226, 0.8);
    }
}

.nn-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: 
        linear-gradient(90deg, rgba(142, 45, 226, 0.1) 1px, transparent 1px),
        linear-gradient(rgba(142, 45, 226, 0.1) 1px, transparent 1px);
    background-size: 33.33% 25%;
    opacity: 0.8;
}

/* Showcase Section */
.showcase {
    background-color: var(--dark);
    position: relative;
    overflow: hidden;
}

.showcase-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 2rem;
}

.showcase-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.showcase-item.reverse {
    direction: rtl;
}

.showcase-item.reverse .showcase-content {
    direction: ltr;
}

.showcase-content h3 {
    color: var(--light);
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
}

.showcase-content p {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.text-link {
    color: var(--primary);
    font-weight: 600;
    position: relative;
    transition: var(--transition);
}

.text-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.3s ease;
}

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

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

.showcase-visual {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.placeholder-svg {
    display: block;
    width: 100%;
}

/* Call To Action Section */
.cta-section {
    background: var(--gradient-main);
    text-align: center;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before, .cta-section::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.cta-section::before {
    top: -100px;
    right: -100px;
}

.cta-section::after {
    bottom: -100px;
    left: -100px;
}

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

.cta-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

/* Footer */
footer {
    background-color: var(--darker);
    padding: 5rem 0 2rem;
    position: relative;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    gap: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    color: var(--light);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-size: 0.9rem;
    color: var(--text-dark);
}

.footer-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.footer-links-column h4 {
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.footer-links-column ul li {
    margin-bottom: 0.8rem;
}

.footer-links-column a {
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(142, 45, 226, 0.2);
}

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

/* Responsive Design */
@media screen and (max-width: 992px) {
    html {
        font-size: 95%;
    }
    
    .hero .container,
    .ai-tech .container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .main-heading {
        font-size: 3.5rem;
    }
    
    .ai-tech-content h2,
    .ai-tech-content h2::after {
        text-align: center;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .tech-list li {
        justify-content: center;
    }
    
    .showcase-item {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .showcase-item.reverse {
        direction: ltr;
    }
    
    .footer-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 90%;
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        z-index: 999;
        padding: 4rem 2rem;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    }
    
    nav.active ul {
        right: 0;
    }
    
    .main-heading {
        font-size: 3rem;
    }
    
    .cta-wrapper {
        flex-direction: column;
    }
    
    .orb-container {
        width: 300px;
        height: 300px;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .footer-links {
        gap: 2rem;
    }
}

@media screen and (max-width: 576px) {
    html {
        font-size: 85%;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .main-heading {
        font-size: 2.5rem;
    }
    
    .section-heading {
        font-size: 2.2rem;
    }
    
    .orb-container {
        width: 250px;
        height: 250px;
    }
    
    .features-grid,
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .footer-links-column {
        text-align: center;
    }
}
