/* Base Styles */
:root {
    --primary-color: #4b30a5;
    --secondary-color: #1387b8;
    --accent-color: #6e45e2;
    --text-color: #e0e0e0;
    --dark-bg: #0f0f1a;
    --darker-bg: #0a0a12;
    --glass-bg: rgba(15, 15, 26, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(30, 30, 45, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    z-index: -2;
    overflow: hidden;
}

.background-animation::before {
    content: '';
    position: absolute;
    width: 300%;
    height: 300%;
    top: -100%;
    left: -100%;
    background: radial-gradient(circle, rgba(75, 48, 165, 0.1) 0%, transparent 70%);
    animation: rotate 60s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Glass Morphism Effect */
.glass-header, .glass-footer, .feature-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.36);
}

/* Header Styles */
.glass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    width: 50px;
    height: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.ai-text {
    background: linear-gradient(to right, #00d2ff, #3a7bd5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Button Styles */
.cta-button, .primary-button, .secondary-button {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-button {
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(75, 48, 165, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(75, 48, 165, 0.6);
}

.primary-button {
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    color: white;
    box-shadow: 0 4px 15px rgba(75, 48, 165, 0.4);
}

.primary-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(75, 48, 165, 0.6);
}

.secondary-button {
    background: transparent;
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10rem 5% 5rem;
    min-height: 100vh;
}

.hero-content {
    max-width: 600px;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(224, 224, 224, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-image {
    position: relative;
    width: 500px;
    height: 500px;
}

.ai-orb {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(110, 69, 226, 0.2) 0%, transparent 60%);
    border-radius: 50%;
    position: relative;
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.05); opacity: 1; }
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: float 15s infinite linear;
}

.particle:nth-child(1) {
    width: 8px;
    height: 8px;
    top: 20%;
    left: 30%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 6px;
    height: 6px;
    top: 60%;
    left: 70%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    width: 10px;
    height: 10px;
    top: 40%;
    left: 10%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    width: 5px;
    height: 5px;
    top: 80%;
    left: 40%;
    animation-delay: 6s;
}

.particle:nth-child(5) {
    width: 7px;
    height: 7px;
    top: 30%;
    left: 80%;
    animation-delay: 8s;
}

@keyframes float {
    0% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) translateX(50px); opacity: 0; }
}

/* Features Section */
.features {
    padding: 6rem 5%;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: rgba(224, 224, 224, 0.7);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    padding: 2rem;
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0; /* Initially hidden */
    transform: translateY(20px); /* Move down slightly */
    transition: opacity 0.5s ease, transform 0.5s ease; /* Smooth transition */
}

.feature-card.animated {
    opacity: 1; /* Fade in */
    transform: translateY(0); /* Move to original position */
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: rgba(224, 224, 224, 0.7);
    margin-bottom: 1.5rem;
}

.feature-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-wave {
    transform: scaleX(1);
}

/* About Section */
.about {
    padding: 6rem 5%;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: justify;
}

.about-content p {
    color: rgba(224, 224, 224, 0.7);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    padding: 6rem 5%;
    text-align: center;
    background: linear-gradient(135deg, rgba(75, 48, 165, 0.1) 0%, rgba(19, 135, 184, 0.1) 100%);
    margin: 4rem 0;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(110, 69, 226, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
    z-index: -1;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: rgba(224, 224, 224, 0.8);
}

/* Footer */
.glass-footer {
    padding: 4rem 5% 2rem;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    width: 40px;
    margin-bottom: 1rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: rgba(224, 224, 224, 0.6);
}

.footer-links {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}

.link-group h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: white;
}

.link-group ul {
    list-style: none;
}

.link-group li {
    margin-bottom: 0.8rem;
}

.link-group a {
    color: rgba(224, 224, 224, 0.6);
    text-decoration: none;
    transition: color 0.3s ease;
}

.link-group a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(224, 224, 224, 0.6);
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: rgba(224, 224, 224, 0.6);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: white;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 8rem;
    }
    
    .hero-content {
        margin-bottom: 3rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-image {
        width: 400px;
        height: 400px;
    }
}

@media (max-width: 768px) {
    .glass-header {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav ul {
        margin: 1rem 0;
        gap: 1rem;
    }
    
    .hero h2 {
        font-size: 2.5rem;
    }
    
    .hero-image {
        width: 300px;
        height: 300px;
    }
    
    .footer-content {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}