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

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Background Container */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background: linear-gradient(135deg, #4FB3D9 0%, #5A67D8 50%, #667EEA 75%, #764BA2 100%);
    overflow: hidden;
}

/* Hexagonal Pattern */
.hexagon-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 2px, transparent 2px);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    animation: hexagonMove 20s linear infinite;
}

.hexagon-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(30deg, transparent 24%, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.05) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, 0.05) 75%, rgba(255, 255, 255, 0.05) 76%, transparent 77%),
        linear-gradient(150deg, transparent 24%, rgba(255, 255, 255, 0.05) 25%, rgba(255, 255, 255, 0.05) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, 0.05) 75%, rgba(255, 255, 255, 0.05) 76%, transparent 77%);
    background-size: 60px 60px;
}

@keyframes hexagonMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Network Lines */
.network-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Flowing Waves */
.flowing-waves {
    position: absolute;
    top: 30%;
    right: -10%;
    width: 120%;
    height: 70%;
    background: linear-gradient(45deg, 
        rgba(138, 43, 226, 0.2) 0%,
        rgba(75, 0, 130, 0.3) 50%,
        rgba(138, 43, 226, 0.2) 100%);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: waveFlow 15s ease-in-out infinite;
    filter: blur(1px);
}

.flowing-waves::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 10%;
    width: 80%;
    height: 60%;
    background: linear-gradient(-45deg, 
        rgba(147, 51, 234, 0.2) 0%,
        rgba(79, 70, 229, 0.3) 50%,
        rgba(147, 51, 234, 0.2) 100%);
    border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    animation: waveFlow2 12s ease-in-out infinite reverse;
    filter: blur(0.5px);
}

@keyframes waveFlow {
    0%, 100% { 
        transform: translateX(0) translateY(0) rotate(0deg);
        border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    }
    25% { 
        transform: translateX(-20px) translateY(-10px) rotate(1deg);
        border-radius: 45% 55% 45% 55% / 55% 65% 35% 45%;
    }
    50% { 
        transform: translateX(-40px) translateY(-20px) rotate(2deg);
        border-radius: 40% 60% 40% 60% / 50% 70% 30% 50%;
    }
    75% { 
        transform: translateX(-20px) translateY(-10px) rotate(1deg);
        border-radius: 45% 55% 45% 55% / 55% 65% 35% 45%;
    }
}

@keyframes waveFlow2 {
    0%, 100% { 
        transform: translateX(0) translateY(0) rotate(0deg);
        border-radius: 50% 50% 50% 50% / 40% 40% 60% 60%;
    }
    33% { 
        transform: translateX(15px) translateY(15px) rotate(-1deg);
        border-radius: 55% 45% 55% 45% / 45% 45% 55% 55%;
    }
    66% { 
        transform: translateX(30px) translateY(30px) rotate(-2deg);
        border-radius: 60% 40% 60% 40% / 50% 50% 50% 50%;
    }
}

/* Canvas for animated elements */
#animationCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Navigation */
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Navbar scrolled state */
.navbar.scrolled {
    background: #1e3a8a !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    visibility: visible !important;
    opacity: 1 !important;
}

.logo {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    color: white !important;
    font-weight: 600;
    font-size: 1.1rem;
    visibility: visible !important;
}

.logo-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(45deg, #10B981, #3B82F6) !important;
    border-radius: 4px;
    position: relative;
    display: block !important;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: white !important;
    border-radius: 2px;
    display: block !important;
}

.nav-menu {
    display: flex !important;
    list-style: none;
    gap: 2rem;
    margin: 0;
    align-items: center;
    visibility: visible !important;
}

.nav-menu > li {
    position: relative;
    display: block !important;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
}

.nav-menu a:hover {
    color: white !important;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 1rem 0;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Nested Dropdown Styles */
.nested-dropdown {
    position: relative;
}

.nested-dropdown .dropdown-arrow {
    font-size: 0.6rem;
}

.nested-dropdown:hover .dropdown-arrow {
    transform: rotate(90deg);
}

.nested-menu {
    position: absolute;
    top: 0;
    left: 100%;
    margin-left: 5px;
    min-width: 200px;
}

.nested-dropdown:hover .nested-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border-left-color: #8B5CF6;
}

.nav-buttons {
    display: flex !important;
    gap: 1rem;
    visibility: visible !important;
}

.btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-primary {
    background: linear-gradient(45deg, #F59E0B, #F97316);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
}

.btn-cta {
    background: linear-gradient(45deg, #8B5CF6, #A855F7);
    color: white;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    margin-top: 2rem;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: linear-gradient(45deg, #3B82F6, #1D4ED8);
    color: white;
    margin-top: 1rem;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: white;
    transition: 0.3s;
}

/* Main Content */
.main-content {
    position: relative;
    z-index: 1;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

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

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

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out;
}

.gradient-text {
    background: linear-gradient(45deg, #F59E0B, #F97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 400;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
}

.features-section h2 {
    text-align: center;
    color: white;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 300;
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #8B5CF6, #A855F7);
    border-radius: 15px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: white;
    border-radius: 5px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.feature-card p {
    opacity: 0.9;
    line-height: 1.6;
}

/* Info Section */
.info-section {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.03);
}

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

.info-text {
    color: white;
}

.info-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.info-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

.tech-visualization {
    width: 100%;
    height: 300px;
    background: linear-gradient(45deg, rgba(139, 92, 246, 0.2), rgba(168, 85, 247, 0.2));
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.tech-visualization::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    animation: pulse 2s ease-in-out infinite;
}

/* Theory Cards */
.theory-cards {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.theory-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.theory-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

.theory-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #8B5CF6;
    font-weight: 500;
}

.theory-card p {
    opacity: 0.9;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(10px);
}

.contact-content {
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.contact-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.contact-content > p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 3rem;
}

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

.contact-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #8B5CF6;
    font-weight: 500;
}

.contact-item p {
    opacity: 0.9;
    font-size: 1rem;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    padding: 3rem 0 1rem;
    backdrop-filter: blur(10px);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 1.2rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    font-weight: 500;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
    }
    
    .nav-menu.mobile-open {
        display: flex;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255, 255, 255, 0.1);
        margin-top: 0.5rem;
        margin-left: 1rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-buttons {
        gap: 0.5rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .info-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .features-section,
    .info-section,
    .contact-section {
        padding: 3rem 0;
    }
    
    .feature-card,
    .theory-card,
    .contact-item {
        padding: 1.5rem;
    }
} 