/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* Breathtaking Background Animation */
.prestige-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* Dynamic Gradient Overlay */
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(0, 188, 212, 0.25) 0%,
        rgba(33, 150, 243, 0.2) 25%,
        rgba(156, 39, 176, 0.18) 50%,
        rgba(233, 30, 99, 0.22) 75%,
        rgba(0, 188, 212, 0.25) 100%
    );
    background-size: 400% 400%;
    animation: gradientWave 15s ease-in-out infinite;
}

@keyframes gradientWave {
    0%, 100% {
        background-position: 0% 50%;
        opacity: 0.6;
    }
    25% {
        background-position: 100% 0%;
        opacity: 0.8;
    }
    50% {
        background-position: 100% 100%;
        opacity: 0.7;
    }
    75% {
        background-position: 0% 100%;
        opacity: 0.9;
    }
}

/* Geometric Patterns */
.geometric-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
}

.geometric-shape {
    position: absolute;
    border: 2px solid rgba(0, 188, 212, 0.6);
    border-radius: 50%;
    animation: geometricFloat 20s linear infinite;
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.3);
}

.geometric-shape:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    border-color: rgba(0, 188, 212, 0.8);
    box-shadow: 0 0 30px rgba(0, 188, 212, 0.4);
}

.geometric-shape:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: -5s;
    border-color: rgba(33, 150, 243, 0.7);
    box-shadow: 0 0 25px rgba(33, 150, 243, 0.3);
    animation-direction: reverse;
}

.geometric-shape:nth-child(3) {
    width: 300px;
    height: 300px;
    bottom: 20%;
    left: 20%;
    animation-delay: -10s;
    border-color: rgba(156, 39, 176, 0.6);
    box-shadow: 0 0 35px rgba(156, 39, 176, 0.3);
}

.geometric-shape:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 30%;
    right: 30%;
    animation-delay: -15s;
    border-color: rgba(233, 30, 99, 0.8);
    box-shadow: 0 0 20px rgba(233, 30, 99, 0.4);
    animation-direction: reverse;
}

@keyframes geometricFloat {
    0% {
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translateY(-30px) rotate(90deg) scale(1.1);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-60px) rotate(180deg) scale(0.9);
        opacity: 1;
    }
    75% {
        transform: translateY(-30px) rotate(270deg) scale(1.05);
        opacity: 0.7;
    }
    100% {
        transform: translateY(0px) rotate(360deg) scale(1);
        opacity: 0.6;
    }
}

/* Floating Orbs for Prestige */
.prestige-orb {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.6), transparent 70%);
    backdrop-filter: blur(3px);
    animation: orbFloat 25s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(0, 188, 212, 0.3);
}

.prestige-orb:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 15%;
    left: 5%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 188, 212, 0.8), rgba(0, 188, 212, 0.3) 50%, transparent 70%);
    box-shadow: 0 0 50px rgba(0, 188, 212, 0.5);
    animation-delay: 0s;
}

.prestige-orb:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 70%;
    right: 10%;
    background: radial-gradient(circle at 30% 30%, rgba(33, 150, 243, 0.7), rgba(33, 150, 243, 0.3) 50%, transparent 70%);
    box-shadow: 0 0 60px rgba(33, 150, 243, 0.4);
    animation-delay: -8s;
}

.prestige-orb:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 15%;
    background: radial-gradient(circle at 30% 30%, rgba(156, 39, 176, 0.8), rgba(156, 39, 176, 0.3) 50%, transparent 70%);
    box-shadow: 0 0 40px rgba(156, 39, 176, 0.5);
    animation-delay: -16s;
}

.prestige-orb:nth-child(4) {
    width: 100px;
    height: 100px;
    top: 40%;
    right: 5%;
    background: radial-gradient(circle at 30% 30%, rgba(233, 30, 99, 0.7), rgba(233, 30, 99, 0.3) 50%, transparent 70%);
    box-shadow: 0 0 50px rgba(233, 30, 99, 0.4);
    animation-delay: -12s;
}

@keyframes orbFloat {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-40px) translateX(20px) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translateY(-80px) translateX(-10px) scale(0.9);
        opacity: 0.9;
    }
    75% {
        transform: translateY(-40px) translateX(-30px) scale(1.1);
        opacity: 1;
    }
}

/* Neural Network Lines */
.neural-network {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.neural-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 188, 212, 0.8), transparent);
    animation: neuralPulse 8s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(0, 188, 212, 0.3);
}

.neural-line:nth-child(1) {
    top: 20%;
    left: 0;
    width: 60%;
    animation-delay: 0s;
    background: linear-gradient(90deg, transparent, rgba(0, 188, 212, 0.8), transparent);
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.4);
}

.neural-line:nth-child(2) {
    top: 45%;
    right: 0;
    width: 70%;
    animation-delay: -2s;
    background: linear-gradient(90deg, transparent, rgba(33, 150, 243, 0.7), transparent);
    box-shadow: 0 0 12px rgba(33, 150, 243, 0.3);
}

.neural-line:nth-child(3) {
    top: 70%;
    left: 0;
    width: 50%;
    animation-delay: -4s;
    background: linear-gradient(90deg, transparent, rgba(156, 39, 176, 0.8), transparent);
    box-shadow: 0 0 10px rgba(156, 39, 176, 0.4);
}

@keyframes neuralPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scaleX(0.5);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

/* Particles background */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00bcd4;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 80%; left: 20%; animation-delay: 1s; }
.particle:nth-child(3) { top: 40%; left: 30%; animation-delay: 2s; }
.particle:nth-child(4) { top: 60%; left: 40%; animation-delay: 3s; }
.particle:nth-child(5) { top: 30%; left: 60%; animation-delay: 4s; }
.particle:nth-child(6) { top: 70%; left: 70%; animation-delay: 5s; }
.particle:nth-child(7) { top: 10%; left: 80%; animation-delay: 1.5s; }
.particle:nth-child(8) { top: 90%; left: 90%; animation-delay: 2.5s; }
.particle:nth-child(9) { top: 50%; left: 15%; animation-delay: 3.5s; }
.particle:nth-child(10) { top: 25%; left: 85%; animation-delay: 4.5s; }

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
        opacity: 0.6; 
    }
    25% {
        transform: translateY(-15px) rotate(90deg) scale(1.2);
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-30px) rotate(180deg) scale(0.8); 
        opacity: 1; 
    }
    75% {
        transform: translateY(-15px) rotate(270deg) scale(1.1);
        opacity: 0.9;
    }
}

/* Enhanced particle variations */
.particle:nth-child(odd) {
    background: linear-gradient(45deg, #00bcd4, #2196f3);
    animation-direction: reverse;
}

.particle:nth-child(even) {
    background: linear-gradient(45deg, #2196f3, #9c27b0);
}

.particle:nth-child(3n) {
    width: 3px;
    height: 3px;
    animation-duration: 8s;
}

.particle:nth-child(5n) {
    width: 1px;
    height: 1px;
    animation-duration: 4s;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 188, 212, 0.1);
    transform: translateY(-100%);
    animation: navSlideDown 0.8s ease-out 0.2s forwards;
}

@keyframes navSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-brand h1 {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(135deg, #00bcd4, #2196f3, #9c27b0);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.nav-brand h1:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu li {
    opacity: 0;
    transform: translateY(-20px);
    animation: navItemFadeIn 0.6s ease-out forwards;
}

.nav-menu li:nth-child(1) { animation-delay: 0.4s; }
.nav-menu li:nth-child(2) { animation-delay: 0.5s; }
.nav-menu li:nth-child(3) { animation-delay: 0.6s; }
.nav-menu li:nth-child(4) { animation-delay: 0.7s; }
.nav-menu li:nth-child(5) { animation-delay: 0.8s; }

@keyframes navItemFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: #00bcd4;
    transform: translateY(-2px);
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    right: -10px;
    bottom: 0;
    background: rgba(0, 188, 212, 0.1);
    border-radius: 20px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
    z-index: -1;
}

.nav-link:hover::before {
    transform: scaleX(1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #00bcd4, #2196f3);
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 2rem;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    animation: heroFadeIn 1.5s ease-out;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
    opacity: 0;
    animation: titleSlideUp 1s ease-out 0.3s forwards;
}

.gradient-text {
    background: linear-gradient(135deg, #00bcd4, #2196f3, #9c27b0);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: gradientShift 3s ease-in-out infinite;
}

.gradient-text:nth-child(2) {
    animation-delay: 0.5s;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes titleSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: #b0b0b0;
    margin-bottom: 3rem;
    font-weight: 300;
    opacity: 0;
    animation: subtitleFadeIn 1s ease-out 0.8s forwards;
}

@keyframes subtitleFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    background: linear-gradient(135deg, #00bcd4, #2196f3);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: ctaButtonFadeIn 1s ease-out 1.2s forwards;
}

@keyframes ctaButtonFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2196f3, #9c27b0);
    transition: left 0.3s ease;
    z-index: -1;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover::after {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 188, 212, 0.4);
}

.cta-button:active {
    transform: translateY(-1px) scale(1.02);
}

/* Content Sections */
.content-section {
    padding: 5rem 0;
    position: relative;
    z-index: 2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #00bcd4, #2196f3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.content-section p {
    font-size: 1.2rem;
    color: #b0b0b0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* Enhanced Philosophy Section - Ancient Wisdom meets Modern Code */
#philosophy {
    background: 
        radial-gradient(circle at 20% 30%, rgba(156, 39, 176, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 188, 212, 0.12) 0%, transparent 50%),
        linear-gradient(135deg, rgba(33, 150, 243, 0.08), rgba(156, 39, 176, 0.05));
    border-radius: 20px;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

/* Ancient scroll paper texture */
#philosophy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 188, 212, 0.12) 2px,
            rgba(0, 188, 212, 0.12) 4px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 20px,
            rgba(156, 39, 176, 0.08) 20px,
            rgba(156, 39, 176, 0.08) 22px
        );
    animation: philosophyParchment 8s ease-in-out infinite;
    z-index: 1;
}

/* Floating algorithmic code */
#philosophy::after {
    content: 'def wisdom_algorithm():\n    knowledge = gather_data()\n    insight = process(knowledge)\n    return apply(insight)';
    position: absolute;
    top: 5%;
    right: 2%;
    font-size: 0.8rem;
    font-family: 'Courier New', monospace;
    color: rgba(0, 188, 212, 0.4);
    animation: typeWriter 8s steps(80) infinite, wisdomFloat 12s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.3);
    white-space: pre-line;
    line-height: 1.4;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.5rem;
    border-radius: 4px;
    border-left: 3px solid rgba(0, 188, 212, 0.5);
}

@keyframes philosophyParchment {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

@keyframes wisdomFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    25% {
        transform: translateY(-10px) rotate(5deg);
        opacity: 0.15;
    }
    50% {
        transform: translateY(-20px) rotate(-3deg);
        opacity: 0.2;
    }
    75% {
        transform: translateY(-10px) rotate(2deg);
        opacity: 0.15;
    }
}

#philosophy .container {
    position: relative;
    z-index: 2;
}

#philosophy h2 {
    font-size: 3rem;
    background: linear-gradient(135deg, #00bcd4, #2196f3, #9c27b0);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s ease;
}

#philosophy h2.animate {
    transform: translateY(0);
    opacity: 1;
}

#philosophy p {
    font-size: 1.4rem;
    line-height: 1.8;
    color: #e0e0e0;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.8s ease 0.3s;
    position: relative;
}

#philosophy p.animate {
    transform: translateY(0);
    opacity: 1;
}

#philosophy p::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #00bcd4, #2196f3);
    transform: translateX(-50%);
    transition: width 0.8s ease 0.6s;
}

#philosophy p.animate::after {
    width: 100px;
}

/* Code Typing Container */
.code-typing-container {
    max-width: 800px;
    margin: 1rem auto;
    padding: 2rem 2rem 2rem 2rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.1);
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 1.1rem;
    line-height: .65;
    text-align: left;
}

.code-line {
    margin-bottom: 0;
    white-space: pre;
    opacity: 1;
    overflow: hidden;
    width: 0;
}

.code-line.typing {
    animation: typeLetterByLetter 2s steps(50) forwards;
}

.code-line:nth-child(1).typing { animation-delay: 0.1s; }
.code-line:nth-child(2).typing { animation-delay: 0.3s; }
.code-line:nth-child(3).typing { animation-delay: 0.5s; }
.code-line:nth-child(4).typing { animation-delay: 0.7s; }
.code-line:nth-child(5).typing { animation-delay: 0.9s; }
.code-line:nth-child(6).typing { animation-delay: 1.1s; }
.code-line:nth-child(7).typing { animation-delay: 1.3s; }
.code-line:nth-child(8).typing { animation-delay: 1.5s; }
.code-line:nth-child(9).typing { animation-delay: 1.7s; }
.code-line:nth-child(10).typing { animation-delay: 1.9s; }
.code-line:nth-child(11).typing { animation-delay: 2.1s; }
.code-line:nth-child(12).typing { animation-delay: 2.3s; }
.code-line:nth-child(13).typing { animation-delay: 2.5s; }
.code-line:nth-child(14).typing { animation-delay: 2.7s; }
.code-line:nth-child(15).typing { animation-delay: 2.9s; }
.code-line:nth-child(16).typing { animation-delay: 3.1s; }
.code-line:nth-child(17).typing { animation-delay: 3.3s; }
.code-line:nth-child(18).typing { animation-delay: 3.5s; }

@keyframes typeLetterByLetter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Syntax Highlighting */
.keyword {
    color: #569cd6;
    font-weight: bold;
}

.class-name {
    color: #4ec9b0;
    font-weight: bold;
}

.function {
    color: #dcdcaa;
}

.string {
    color: #ce9178;
}

.punctuation {
    color: #d4d4d4;
}

.parameter {
    color: #9cdcfe;
}

.variable {
    color: #9cdcfe;
}

.operator {
    color: #d4d4d4;
}

.indent {
    color: transparent;
}

/* Blinking Cursor */
.cursor {
    color: #ffffff;
    animation: blink 1s infinite;
    font-weight: normal;
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

/* Responsive Code Container */
@media (max-width: 768px) {
    .code-typing-container {
        margin: 1rem;
        padding: 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .code-typing-container {
        font-size: 0.9rem;
        padding: 1rem;
    }
}

/* Floating Philosophy Icons */
.philosophy-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.philosophy-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(0, 188, 212, 0.3);
    border-radius: 50%;
    background: rgba(0, 188, 212, 0.1);
    animation: philosophyIconFloat 8s ease-in-out infinite;
}

.philosophy-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.philosophy-icon:nth-child(2) {
    top: 70%;
    right: 15%;
    animation-delay: -2s;
}

.philosophy-icon:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: -4s;
}

@keyframes philosophyIconFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.6;
    }
}

/* Innovation Section - Neural Network Brain Theme */
#innovation {
    background: 
        radial-gradient(ellipse at 25% 25%, rgba(138, 43, 226, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 75% 75%, rgba(75, 0, 130, 0.08) 0%, transparent 60%),
        linear-gradient(135deg, rgba(138, 43, 226, 0.06), rgba(75, 0, 130, 0.04));
    border-radius: 20px;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

/* Neural Network Background */
.neural-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Neural Network Nodes */
.neural-node {
    position: absolute;
    width: 12px;
    height: 12px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.8) 0%, rgba(138, 43, 226, 0.4) 70%, transparent 100%);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
    animation: neuralPulse 3s ease-in-out infinite;
}

.neural-node:nth-child(1) {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.neural-node:nth-child(2) {
    top: 25%;
    left: 30%;
    animation-delay: 0.5s;
}

.neural-node:nth-child(3) {
    top: 40%;
    left: 20%;
    animation-delay: 1s;
}

.neural-node:nth-child(4) {
    top: 60%;
    left: 15%;
    animation-delay: 1.5s;
}

.neural-node:nth-child(5) {
    top: 30%;
    right: 20%;
    animation-delay: 2s;
}

.neural-node:nth-child(6) {
    top: 70%;
    right: 10%;
    animation-delay: 2.5s;
}

/* Neural Network Connections */
.neural-connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.6), transparent);
    animation: neuralFlow 4s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(138, 43, 226, 0.4);
}

.neural-connection:nth-child(7) {
    top: 20%;
    left: 12%;
    width: 18%;
    transform: rotate(25deg);
    animation-delay: 0.2s;
}

.neural-connection:nth-child(8) {
    top: 35%;
    left: 25%;
    width: 15%;
    transform: rotate(-15deg);
    animation-delay: 0.8s;
}

.neural-connection:nth-child(9) {
    top: 50%;
    left: 18%;
    width: 20%;
    transform: rotate(45deg);
    animation-delay: 1.2s;
}

.neural-connection:nth-child(10) {
    top: 45%;
    right: 15%;
    width: 25%;
    transform: rotate(-30deg);
    animation-delay: 1.8s;
}

@keyframes neuralPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
        box-shadow: 0 0 20px rgba(138, 43, 226, 0.6);
    }
    50% {
        opacity: 1;
        transform: scale(1.5);
        box-shadow: 0 0 30px rgba(138, 43, 226, 0.8);
    }
}

@keyframes neuralFlow {
    0%, 100% {
        opacity: 0.4;
        transform: scaleX(0.5);
    }
    50% {
        opacity: 0.8;
        transform: scaleX(1);
    }
}

/* Innovation Section Content */
#innovation .container {
    position: relative;
    z-index: 2;
}

#innovation h2 {
    font-size: 3rem;
    background: linear-gradient(135deg, #8a2be2, #4b0082, #9370db);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
    text-align: center;
    margin-bottom: 1rem;
}

.innovation-subtitle {
    font-size: 1.4rem;
    color: #c8a2c8;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Neural Code Container */
.neural-code-container {
    max-width: 700px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(138, 43, 226, 0.05);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(138, 43, 226, 0.1);
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 1rem;
    line-height: 1.4;
    text-align: left;
    border: 1px solid rgba(138, 43, 226, 0.2);
}

.neural-code-line {
    margin-bottom: 0.2rem;
    white-space: pre;
    opacity: 1;
    overflow: hidden;
    width: 0;
}

.neural-code-line.typing {
    animation: typeLetterByLetter 2s steps(50) forwards;
}

.neural-code-line:nth-child(1).typing { animation-delay: 0.1s; }
.neural-code-line:nth-child(2).typing { animation-delay: 0.3s; }
.neural-code-line:nth-child(3).typing { animation-delay: 0.5s; }
.neural-code-line:nth-child(4).typing { animation-delay: 0.7s; }
.neural-code-line:nth-child(5).typing { animation-delay: 0.9s; }
.neural-code-line:nth-child(6).typing { animation-delay: 1.1s; }
.neural-code-line:nth-child(7).typing { animation-delay: 1.3s; }
.neural-code-line:nth-child(8).typing { animation-delay: 1.5s; }
.neural-code-line:nth-child(9).typing { animation-delay: 1.7s; }
.neural-code-line:nth-child(10).typing { animation-delay: 1.9s; }
.neural-code-line:nth-child(11).typing { animation-delay: 2.1s; }
.neural-code-line:nth-child(12).typing { animation-delay: 2.3s; }

/* Innovation Cards Grid */
.innovation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.innovation-card {
    background: rgba(138, 43, 226, 0.15);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid rgba(138, 43, 226, 0.4);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(138, 43, 226, 0.1);
}

.innovation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(138, 43, 226, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.innovation-card:hover::before {
    opacity: 1;
}

.innovation-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: rgba(138, 43, 226, 0.4);
    box-shadow: 0 15px 40px rgba(138, 43, 226, 0.2);
}

.innovation-icon {
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.innovation-icon svg {
    width: 48px;
    height: 48px;
    color: #8a2be2;
    filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.5));
    transition: all 0.3s ease;
}

.innovation-card:hover .innovation-icon svg {
    transform: scale(1.1);
    color: #9370db;
    filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.8));
}

.innovation-card.active .innovation-icon svg {
    color: #dda0dd;
    filter: drop-shadow(0 0 25px rgba(138, 43, 226, 1));
}

.innovation-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #8a2be2;
    font-weight: 600;
}

.innovation-card p {
    color: #c8a2c8;
    text-align: center;
    margin: 0;
    line-height: 1.6;
}

/* Neural Network Active States */
.innovation-card.active {
    border-color: rgba(138, 43, 226, 0.6);
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.3);
}

.innovation-card.active .innovation-icon {
    animation: neuralActivation 1s ease-in-out;
}

@keyframes neuralActivation {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
        filter: drop-shadow(0 0 25px rgba(138, 43, 226, 1));
    }
}

/* Capabilities Section - Professional Grid Network */
#capabilities {
    background: 
        radial-gradient(circle at 25% 25%, rgba(156, 39, 176, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(233, 30, 99, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, rgba(156, 39, 176, 0.05), rgba(233, 30, 99, 0.03));
    border-radius: 20px;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

/* Hexagonal grid pattern */
#capabilities::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(156, 39, 176, 0.25) 2px, transparent 2px),
        linear-gradient(90deg, rgba(156, 39, 176, 0.15) 1px, transparent 1px),
        linear-gradient(rgba(233, 30, 99, 0.15) 1px, transparent 1px);
    background-size: 25px 25px, 50px 50px, 50px 50px;
    animation: gridShift 8s ease-in-out infinite;
    z-index: 1;
}

/* Floating ML algorithm code */
#capabilities::after {
    content: 'from sklearn.ensemble import RandomForestClassifier\nmodel = RandomForestClassifier(n_estimators=100)\nmodel.fit(X_train, y_train)\naccuracy = model.score(X_test, y_test)';
    position: absolute;
    bottom: 5%;
    right: 2%;
    font-size: 0.7rem;
    font-family: 'Courier New', monospace;
    color: rgba(156, 39, 176, 0.5);
    animation: typeWriter 12s steps(100) infinite, capabilityFloat 14s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
    text-shadow: 0 0 10px rgba(156, 39, 176, 0.4);
    white-space: pre-line;
    line-height: 1.4;
    background: rgba(0, 0, 0, 0.4);
    padding: 0.5rem;
    border-radius: 4px;
    border-left: 3px solid rgba(156, 39, 176, 0.6);
}

@keyframes gridShift {
    0%, 100% {
        transform: translateX(0px) translateY(0px);
        opacity: 0.4;
    }
    50% {
        transform: translateX(15px) translateY(15px);
        opacity: 0.6;
    }
}

@keyframes capabilityFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.12;
    }
    33% {
        transform: translateY(-10px) rotate(120deg);
        opacity: 0.18;
    }
    66% {
        transform: translateY(-5px) rotate(240deg);
        opacity: 0.15;
    }
}

/* Contact Section - Communication Waves */
#contact {
    background: 
        radial-gradient(ellipse at 40% 40%, rgba(233, 30, 99, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse at 60% 60%, rgba(255, 152, 0, 0.08) 0%, transparent 60%),
        linear-gradient(45deg, rgba(233, 30, 99, 0.06), rgba(255, 152, 0, 0.04));
    border-radius: 20px;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

/* Contact Information Styling */
.contact-info {
    margin: 2rem 0;
    text-align: center;
}

.email-contact {
    font-size: 1.3rem;
    margin: 1rem 0;
    color: #e0e0e0;
}

.contact-label {
    color: #00bcd4;
    font-weight: 600;
    margin-right: 0.5rem;
}

.email-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    background: rgba(0, 188, 212, 0.1);
    border: 1px solid rgba(0, 188, 212, 0.3);
}

.email-link:hover {
    color: #00bcd4;
    background: rgba(0, 188, 212, 0.2);
    border-color: rgba(0, 188, 212, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 188, 212, 0.3);
}

.email-link::before {
    content: '✉';
    margin-right: 0.5rem;
    opacity: 0.7;
}

/* Communication wave pattern */
#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-radial-gradient(
            circle at 50% 50%,
            transparent 0px,
            transparent 15px,
            rgba(233, 30, 99, 0.15) 15px,
            rgba(233, 30, 99, 0.15) 17px
        ),
        repeating-radial-gradient(
            circle at 30% 70%,
            transparent 0px,
            transparent 25px,
            rgba(255, 152, 0, 0.1) 25px,
            rgba(255, 152, 0, 0.1) 27px
        );
    animation: communicationWaves 5s ease-in-out infinite;
    z-index: 1;
}

/* Contact symbols */
#contact::after {
    content: '✉ ☎ ⚡ ◉ ▶ ◀ ▲ ▼ ✉ ☎ ⚡ ◉ ▶ ◀ ▲ ▼';
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: rgba(233, 30, 99, 0.25);
    animation: contactPulse 7s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
    text-shadow: 0 0 15px rgba(233, 30, 99, 0.3);
}

@keyframes communicationWaves {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.5;
    }
}

@keyframes contactPulse {
    0%, 100% {
        transform: translateX(-50%) scale(1);
        opacity: 0.1;
    }
    50% {
        transform: translateX(-50%) scale(1.2);
        opacity: 0.2;
    }
}

/* Capabilities Grid */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.capability-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 188, 212, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.capability-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 188, 212, 0.3);
    box-shadow: 0 10px 30px rgba(0, 188, 212, 0.1);
}

.capability-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #00bcd4;
}

.capability-card p {
    color: #b0b0b0;
    text-align: left;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 0.9rem;
    }
    
    .hero-section {
        padding: 0 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .capabilities-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .nav-brand h1 {
        font-size: 1.4rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-link {
        font-size: 0.8rem;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Typewriter Animation */
@keyframes typeWriter {
    0% {
        width: 0;
        opacity: 0;
    }
    1% {
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    99% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        width: 100%;
    }
}

/* Selection styling */
::selection {
    background: rgba(0, 188, 212, 0.3);
    color: white;
}
