/* Global Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6610f2;
    --accent-color: #00d9ff;
    --accent-color-alt: #00ffea;
    --accent-glow: rgba(0, 217, 255, 0.7);
    --dark-bg-gradient1: #000000;
    --dark-bg-gradient2: #0a1525;
    --light-bg-gradient1: #f8f9fa;
    --light-bg-gradient2: #e0e8f5;
    --dark-text: #e0e0e0;
    --light-text: #333333;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--accent-color-alt));
    --dark-gradient: linear-gradient(135deg, var(--dark-bg-gradient1), var(--dark-bg-gradient2));
    --light-gradient: linear-gradient(135deg, var(--light-bg-gradient1), var(--light-bg-gradient2));
    --box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --dark-glass: rgba(0, 0, 0, 0.75);
    --light-glass: rgba(255, 255, 255, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    transition: background 0.5s ease, color 0.3s ease;
}

body.dark-mode {
    color: var(--dark-text);
    background: var(--dark-gradient);
}

body.light-mode {
    color: var(--light-text);
    background: var(--light-gradient);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

body.dark-mode a {
    color: var(--dark-text);
}

body.light-mode a {
    color: var(--light-text);
}

ul {
    list-style: none;
}

.highlight {
    color: var(--accent-color);
    font-weight: 600;
    text-shadow: 0 0 15px var(--accent-glow);
}

/* Cool Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-accent);
    filter: blur(50px);
    opacity: 0.2;
    animation: float 25s infinite alternate;
}

body.dark-mode .orb {
    opacity: 0.3;
}

body.light-mode .orb {
    opacity: 0.2;
}

.laser {
    position: absolute;
    width: 1px;
    height: 100vh;
    background-color: var(--accent-color);
    opacity: 0.25;
    transform-origin: center;
    animation: laser-move 20s infinite linear;
}

body.dark-mode .laser {
    opacity: 0.35;
    box-shadow: 0 0 15px var(--accent-glow);
}

body.light-mode .laser {
    opacity: 0.2;
    box-shadow: 0 0 5px var(--accent-glow);
}

.grid-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(to right, rgba(0, 217, 255, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 217, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.4;
}

body.light-mode .grid-effect {
    opacity: 0.2;
    background-image: 
        linear-gradient(to right, rgba(0, 123, 255, 0.15) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 123, 255, 0.15) 1px, transparent 1px);
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0.15;
    }
    50% {
        transform: translateY(-100px) translateX(50px) scale(1.3);
        opacity: 0.3;
    }
    100% {
        transform: translateY(50px) translateX(-30px) scale(0.8);
        opacity: 0.15;
    }
}

@keyframes laser-move {
    0% {
        opacity: 0.1;
    }
    25% {
        opacity: 0.35;
    }
    50% {
        opacity: 0.1;
    }
    75% {
        opacity: 0.3;
    }
    100% {
        opacity: 0.1;
        transform: rotate(360deg);
    }
}

/* Particles Background */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
}

body.dark-mode header {
    background: var(--dark-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
}

body.light-mode header {
    background: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

header.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
}

body.dark-mode .logo h1 {
    color: white;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

body.light-mode .logo h1 {
    color: var(--dark-bg-gradient1);
}

/* Theme Toggle */
.theme-toggle {
    position: relative;
}

#theme-toggle-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

body.dark-mode #theme-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px var(--accent-glow);
}

body.light-mode #theme-toggle-btn {
    background: rgba(0, 0, 0, 0.05);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

#theme-toggle-btn:hover {
    transform: rotate(15deg);
}

body.dark-mode #theme-toggle-btn .fa-sun {
    display: block;
}

body.dark-mode #theme-toggle-btn .fa-moon {
    display: none;
}

body.light-mode #theme-toggle-btn .fa-sun {
    display: none;
}

body.light-mode #theme-toggle-btn .fa-moon {
    display: block;
}

/* Section Styles */
section {
    padding: 80px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-mode .hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85), rgba(10, 21, 37, 0.8)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
}

body.light-mode .hero {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.85), rgba(224, 232, 245, 0.8)), url('images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
}

.hero-content {
    text-align: center;
    position: relative;
}

.hero-content::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 5s infinite alternate;
}

.hero-content h1 {
    font-size: 5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
    animation: text-glow 3s infinite alternate;
    position: relative;
}

@keyframes text-glow {
    0% {
        text-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
    }
    100% {
        text-shadow: 0 0 20px rgba(0, 217, 255, 0.7), 0 0 30px rgba(0, 217, 255, 0.5);
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.15;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.3;
    }
}

/* Tagline */
.tagline {
    display: flex;
    flex-wrap: wrap;
    margin: 1.5rem 0;
    gap: 1.5rem;
}

.tagline-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    transition: var(--transition);
}

body.dark-mode .tagline-item {
    background: rgba(255, 255, 255, 0.1);
}

body.light-mode .tagline-item {
    background: rgba(0, 0, 0, 0.05);
}

.tagline-item i {
    color: var(--accent-color);
}

/* AI Brain */
.ai-brain {
    width: 400px;
    height: 400px;
    background: url('images/ai-brain.svg') no-repeat center;
    background-size: contain;
    position: relative;
    z-index: 2;
}

.ai-brain::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--accent-color);
    border-right-color: var(--accent-color);
    z-index: -1;
    animation: rotate 20s linear infinite;
}

.ai-brain::after {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    border-radius: 50%;
    border: 1px solid transparent;
    border-top-color: var(--primary-color);
    border-left-color: var(--primary-color);
    top: -10%;
    left: -10%;
    z-index: -1;
    animation: rotate-reverse 15s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotate-reverse {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

/* Footer */
footer {
    padding: 20px 0;
    width: 100%;
    position: fixed;
    bottom: 0;
    z-index: 10;
}

body.dark-mode footer {
    background: var(--dark-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 217, 255, 0.2);
}

body.light-mode footer {
    background: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-info i {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
}

body.dark-mode .social-links a {
    background: rgba(255, 255, 255, 0.1);
}

body.light-mode .social-links a {
    background: rgba(0, 0, 0, 0.05);
}

.social-links a i {
    color: var(--accent-color);
}

.social-links a:hover {
    transform: translateY(-3px);
}

.footer-bottom p {
    margin: 5px 0;
}

.footer-bottom a {
    color: var(--accent-color);
    position: relative;
    transition: all 0.3s ease;
}

.footer-bottom a:hover {
    text-decoration: none;
    text-shadow: 0 0 8px var(--accent-glow);
}

body.dark-mode .footer-bottom a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

body.dark-mode .footer-bottom a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Media Queries */
@media (max-width: 1024px) {
    html {
        font-size: 90%;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 85%;
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero-content {
        text-align: center;
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .orb {
        filter: blur(30px);
    }
}

@media (max-width: 480px) {
    html {
        font-size: 80%;
    }
    
    header .container {
        padding: 0 10px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .orb {
        filter: blur(20px);
    }
}