/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0066ff;
    --secondary-blue: #0044cc;
    --accent-blue: #00aaff;
    --light-blue: #e6f3ff;
    --dark-blue: #001a33;
    --neon-blue: #00ffff;
    --gradient-blue: linear-gradient(135deg, #0066ff 0%, #00aaff 50%, #0066ff 100%);
    --gradient-dark: linear-gradient(135deg, #001a33 0%, #0044cc 100%);
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #333333;
    --shadow: 0 10px 30px rgba(0, 102, 255, 0.2);
    --glow: 0 0 20px rgba(0, 255, 255, 0.5);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 102, 255, 0.1);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.nav-logo i {
    font-size: 2rem;
    animation: glow 2s ease-in-out infinite alternate;
}

.nav-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-contact span {
    color: var(--dark-gray);
    font-weight: 500;
}

.contact-btn {
    background: var(--gradient-blue);
    color: var(--white);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-blue);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #001a33 0%, #0044cc 50%, #0066ff 100%);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 170, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 102, 255, 0.1) 0%, transparent 50%);
    animation: float 6s ease-in-out infinite;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    color: var(--white);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: slideInLeft 1s ease-out;
}

.gradient-text {
    background: linear-gradient(45deg, var(--neon-blue), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: slideInLeft 1s ease-out 0.2s both;
}

.hero-features {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 1rem;
    animation: slideInLeft 1s ease-out 0.4s both;
}

.feature-item i {
    font-size: 1.5rem;
    color: var(--neon-blue);
    animation: glow 2s ease-in-out infinite alternate;
}

.hero-image {
    animation: slideInRight 1s ease-out 0.6s both;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    object-fit: cover;
    max-height: 500px;
}

.hero-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 102, 255, 0.3);
}

.cta-btn {
    background: var(--gradient-blue);
    color: var(--white);
    border: none;
    padding: 18px 36px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    animation: slideInLeft 1s ease-out 0.6s both;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0, 102, 255, 0.4);
}

/* Value Proposition */
.value-prop {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--light-blue) 0%, rgba(0, 170, 255, 0.1) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.value-prop::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%230066ff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%2300aaff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%2300ffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.value-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.value-content p {
    font-size: 1.2rem;
    color: var(--dark-gray);
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Features Grid */
.features {
    padding: 80px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 102, 255, 0.2);
    border-color: var(--primary-blue);
}

.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
}

.feature-icon i {
    font-size: 2rem;
    color: var(--primary-blue);
    animation: glow 2s ease-in-out infinite alternate;
    position: relative;
    z-index: 2;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Eric Raymond Special Card */
.eric-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
    border: 2px solid var(--primary-blue);
}

.eric-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    border: 4px solid var(--primary-blue);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.3);
    transition: all 0.3s ease;
}

.eric-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.4);
}

.eric-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eric-quote {
    margin-top: 20px;
    padding: 15px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 10px;
    border-left: 4px solid var(--primary-blue);
    position: relative;
}

.eric-quote i {
    color: var(--primary-blue);
    font-size: 1.2rem;
    margin-right: 10px;
    animation: glow 2s ease-in-out infinite alternate;
}

.eric-quote p {
    font-style: italic;
    font-weight: 600;
    color: var(--dark-blue);
    margin: 0;
}

/* Story Section */
.story {
    padding: 80px 0;
    background: var(--light-blue);
}

.story-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 2rem;
    text-align: center;
}

.story-intro {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 2rem;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.story-details p {
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
    line-height: 1.8;
}

/* Solution Section */
.solution {
    padding: 80px 0;
    background: var(--white);
}

.solution .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Solution Section Reverse Layout */
.solution-reverse {
    background: var(--light-blue);
}

.solution-reverse .container {
    grid-template-columns: 1fr 1fr;
}

.solution-reverse .solution-image {
    order: -1;
}

.solution-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.solution-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-blue);
    margin: 2rem 0 1rem;
}

.solution-content p {
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
    line-height: 1.8;
}

.solution-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    object-fit: cover;
    max-height: 400px;
}

.solution-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.3);
}

/* AI Section */
.ai-section {
    padding: 80px 0;
    background: var(--gradient-dark);
    color: var(--white);
}

.ai-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
}

.ai-content h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--neon-blue);
}

.challenge-solution {
    display: grid;
    gap: 40px;
}

.challenge {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.challenge h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--neon-blue);
}

.challenge ul {
    list-style: none;
    padding-left: 0;
}

.challenge li {
    margin-bottom: 0.5rem;
    padding-left: 20px;
    position: relative;
}

.challenge li::before {
    content: "•";
    color: var(--neon-blue);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.solution-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.solution-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.solution-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    position: relative;
}

.solution-icon i {
    font-size: 1.5rem;
    color: var(--neon-blue);
    animation: glow 2s ease-in-out infinite alternate;
    position: relative;
    z-index: 2;
}

.solution-item h5 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--neon-blue);
}

.solution-item p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Results Section */
.results {
    padding: 80px 0;
    background: var(--light-blue);
}

.results-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-blue);
    margin-bottom: 3rem;
    text-align: center;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 3rem;
}

.result-item {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.1);
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 102, 255, 0.2);
}

.result-item i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    animation: glow 2s ease-in-out infinite alternate;
}

.result-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-blue);
}

.results-summary {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-blue);
    max-width: 800px;
    margin: 0 auto;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: var(--gradient-blue);
    text-align: center;
    color: var(--white);
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-btn-large {
    background: var(--white);
    color: var(--primary-blue);
    border: none;
    padding: 20px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Footer */
.footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--neon-blue);
}

.footer-logo i {
    font-size: 1.5rem;
    animation: glow 2s ease-in-out infinite alternate;
}

.footer-contact p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--neon-blue);
}

.footer-copyright {
    text-align: right;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Animations */
@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(0, 255, 255, 0.5), 0 0 20px rgba(0, 255, 255, 0.3);
        filter: drop-shadow(0 0 5px rgba(0, 255, 255, 0.5));
    }

    to {
        text-shadow: 0 0 20px rgba(0, 255, 255, 0.8), 0 0 30px rgba(0, 255, 255, 0.6), 0 0 40px rgba(0, 255, 255, 0.4);
        filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.8));
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-contact {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .solution .container,
    .solution-reverse .container {
        grid-template-columns: 1fr;
    }

    .solution-reverse .solution-image {
        order: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
    }

    .footer-copyright {
        text-align: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .solution-grid {
        grid-template-columns: 1fr;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .cta-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .solution-item {
        padding: 20px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--neon-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}