/* Global Styles */
html {
    scroll-behavior: smooth;
}

/* Animation Canvases */
#particles-canvas, #background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

#particles-canvas {
    z-index: -2;
}

#background-canvas {
    z-index: -3;
    opacity: 0.8;
}

/* Dynamic Elements */
.dynamic-element {
    position: absolute;
    pointer-events: none;
    opacity: 0.2;
    z-index: -1;
    animation: float 15s infinite ease-in-out;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.dynamic-element.circle {
    border-radius: 50%;
}

.dynamic-element.square {
    border-radius: 3px;
    animation: float 18s infinite ease-in-out, rotate 40s linear infinite;
}

.dynamic-element.triangle {
    width: 0 !important;
    height: 0 !important;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 25px solid rgba(33, 150, 243, 0.2);
    background-color: transparent !important;
    animation: float 20s infinite ease-in-out, rotate 30s linear infinite reverse;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 25%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 75%; }
    100% { background-position: 0% 50%; }
}

@keyframes float {
    0% { transform: translateY(0) translateX(0) scale(1); }
    20% { transform: translateY(-15px) translateX(8px) scale(1.05); }
    40% { transform: translateY(-5px) translateX(15px) scale(1.02); }
    60% { transform: translateY(5px) translateX(8px) scale(0.98); }
    80% { transform: translateY(15px) translateX(-5px) scale(1.03); }
    100% { transform: translateY(0) translateX(0) scale(1); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; box-shadow: 0 0 5px currentColor; }
    25% { transform: scale(1.3); opacity: 0.8; box-shadow: 0 0 15px currentColor; }
    50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 25px currentColor; }
    75% { transform: scale(1.3); opacity: 0.8; box-shadow: 0 0 15px currentColor; }
    100% { transform: scale(1); opacity: 0.5; box-shadow: 0 0 5px currentColor; }
}

@keyframes fadeInOut {
    0% { opacity: 0; transform: scaleX(0.8); }
    25% { opacity: 0.7; transform: scaleX(1.1); }
    50% { opacity: 0.9; transform: scaleX(1); }
    75% { opacity: 0.7; transform: scaleX(1.1); }
    100% { opacity: 0; transform: scaleX(0.8); }
}

@keyframes rotate {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1); }
    75% { transform: rotate(270deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes moveLeftRight {
    0% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(15px) rotate(5deg); }
    50% { transform: translateX(30px) rotate(0deg); }
    75% { transform: translateX(15px) rotate(-5deg); }
    100% { transform: translateX(0) rotate(0deg); }
}

@keyframes expandContract {
    0% { transform: scale(1); opacity: 0.3; }
    25% { transform: scale(1.5); opacity: 0.4; }
    50% { transform: scale(2.5); opacity: 0.1; }
    75% { transform: scale(1.5); opacity: 0.4; }
    100% { transform: scale(1); opacity: 0.3; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #333;
    text-align: center;
    overflow-x: hidden;
    background: linear-gradient(-45deg, 
        #FF416C, /* Vivid pink */
        #FF4B2B, /* Bright orange-red */
        #00F2FE, /* Electric blue */
        #4FACFE, /* Bright blue */
        #B721FF, /* Vibrant purple */
        #21D4FD  /* Cyan */
    );
    background-size: 400% 400%;
    animation: gradient 10s ease infinite;
    position: relative;
    overflow: hidden;
    cursor: default;
}

/* Creative background elements */
body::before, body::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.1;
    transition: all 0.5s ease;
}

body::before {
    background: linear-gradient(135deg, #3f51b5, #7986cb);
    top: -100px;
    right: -100px;
    animation: floatingShapes 15s ease-in-out infinite, fadeInOut 8s ease-in-out infinite;
    filter: blur(3px);
}

body::after {
    background: linear-gradient(135deg, #2196f3, #4fc3f7);
    bottom: -100px;
    left: -100px;
    animation: floatingShapes 18s ease-in-out infinite reverse, fadeInOut 10s ease-in-out infinite 2s;
    filter: blur(3px);
}

/* Additional background elements */
body::before {
    box-shadow: 
        500px 400px 0 -50px rgba(63, 81, 181, 0.1),
        300px 200px 0 -20px rgba(33, 150, 243, 0.1),
        100px 300px 0 -30px rgba(156, 39, 176, 0.1);
}

/* AI-inspired decorative elements */
.ai-decoration {
    position: absolute;
    z-index: -1;
    pointer-events: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.neural-node {
    position: absolute;
    width: 10px;
    height: 10px;
    background: radial-gradient(circle, rgba(255, 64, 129, 0.9) 0%, rgba(255, 64, 129, 0.4) 70%);
    border-radius: 50%;
    animation: pulse 2.5s infinite ease-in-out;
    box-shadow: 0 0 15px rgba(255, 64, 129, 0.7);
    transition: all 0.3s ease;
    z-index: 1;
}

.neural-node:nth-child(2n) {
    background: radial-gradient(circle, rgba(0, 229, 255, 0.9) 0%, rgba(0, 229, 255, 0.4) 70%);
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.7);
}

.neural-node:nth-child(3n) {
    background: radial-gradient(circle, rgba(255, 214, 0, 0.9) 0%, rgba(255, 214, 0, 0.4) 70%);
    box-shadow: 0 0 15px rgba(255, 214, 0, 0.7);
}

.neural-node:nth-child(4n) {
    background: radial-gradient(circle, rgba(76, 175, 80, 0.9) 0%, rgba(76, 175, 80, 0.4) 70%);
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.7);
}

.neural-node::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    filter: blur(4px);
    animation: expandContract 4s infinite ease-in-out;
    z-index: -1;
}

.neural-connection {
    position: absolute;
    height: 3px;
    background: linear-gradient(90deg, rgba(255, 64, 129, 0.4), rgba(0, 229, 255, 0.4));
    transform-origin: left center;
    animation: fadeInOut 3s infinite ease-in-out;
    box-shadow: 0 0 8px rgba(255, 64, 129, 0.5);
}

.neural-connection:nth-child(2n) {
    background: linear-gradient(90deg, rgba(0, 229, 255, 0.4), rgba(255, 214, 0, 0.4));
    box-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.neural-connection:nth-child(3n) {
    background: linear-gradient(90deg, rgba(255, 214, 0, 0.4), rgba(76, 175, 80, 0.4));
    box-shadow: 0 0 8px rgba(255, 214, 0, 0.5);
}

.knowledge-icon {
    position: absolute;
    width: 50px;
    height: 50px;
    opacity: 0.4;
    animation: float 6s infinite ease-in-out;
    transition: all 0.3s ease;
    filter: blur(1px);
    z-index: 1;
}

.knowledge-icon.book {
    background: radial-gradient(circle, rgba(255, 64, 129, 0.7) 0%, rgba(255, 64, 129, 0) 70%);
    border-radius: 5px;
    animation: float 6s infinite ease-in-out, rotate 20s linear infinite;
    box-shadow: 0 0 20px rgba(255, 64, 129, 0.5);
}

.knowledge-icon.lightbulb {
    background: radial-gradient(circle, rgba(255, 214, 0, 0.7) 0%, rgba(255, 214, 0, 0) 70%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: float 5s infinite ease-in-out, fadeInOut 7s infinite ease-in-out;
    box-shadow: 0 0 20px rgba(255, 214, 0, 0.5);
}

.knowledge-icon.brain {
    background: radial-gradient(circle, rgba(0, 229, 255, 0.7) 0%, rgba(0, 229, 255, 0) 70%);
    border-radius: 50%;
    animation: float 7s infinite ease-in-out, moveLeftRight 10s infinite ease-in-out;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}

/* Interactive hover effects */
.neural-node:hover, .knowledge-icon:hover {
    transform: scale(1.8);
    opacity: 0.8 !important;
    filter: blur(0);
    z-index: 10;
    cursor: pointer;
}

/* Dynamic elements with more vivacious styling */
.dynamic-element {
    position: absolute;
    pointer-events: none;
    opacity: 0.4;
    z-index: -1;
    animation: float 12s infinite ease-in-out;
    transition: transform 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.dynamic-element.circle {
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 64, 129, 0.4), rgba(0, 229, 255, 0.4)) !important;
}

.dynamic-element.square {
    border-radius: 3px;
    animation: float 14s infinite ease-in-out, rotate 25s linear infinite;
    background: linear-gradient(135deg, rgba(255, 214, 0, 0.4), rgba(76, 175, 80, 0.4)) !important;
}

.dynamic-element.triangle {
    width: 0 !important;
    height: 0 !important;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid rgba(255, 64, 129, 0.4);
    background-color: transparent !important;
    animation: float 16s infinite ease-in-out, rotate 20s linear infinite reverse;
    filter: drop-shadow(0 0 10px rgba(255, 64, 129, 0.5));
}

.content-container {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 40px 60px;
    border-radius: 15px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1;
    position: relative;
    max-width: 1000px; /* Adjusted for better proportions */
    width: 85%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 30px auto;
    box-sizing: border-box;
}

.content-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 5.625rem; /* Increased by 225% from 2.5rem */
    margin-bottom: 25px;
    color: #2c3e50;
    background: linear-gradient(90deg, #2c3e50, #4a6baf);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    line-height: 1.2;
}

p {
    font-size: 2.475rem; /* Increased by 225% from 1.1rem */
    margin-bottom: 30px;
    max-width: 100%; /* Use full width of container */
    color: #455a64;
    line-height: 1.4;
    padding: 0 10px;
}

/* Styles for the call-to-action button */
.cta-button {
    display: inline-block;
    background: #007bff;
    color: #fff;
    padding: 18px 36px;
    text-decoration: none;
    border-radius: 10px;
    font-size: 2.36rem; /* Increased by 225% from 1.05rem */
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    margin-top: 15px;
}

.cta-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
}
