/* ==========================================
   CSS Resets & Variables
========================================== */
:root {
    --primary: #9d4edd;
    --primary-dark: #7b2cbf;
    --secondary: #ff4d6d;
    --bg-dark: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.03);
    --text-main: #f8f9fa;
    --text-muted: #adb5bd;
    --border-color: rgba(255, 255, 255, 0.1);
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    
    --purple-grad: linear-gradient(135deg, #7b2cbf 0%, #c77dff 100%);
    --brand-grad: linear-gradient(135deg, #7b2cbf 0%, #ff4d6d 100%);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

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

.section {
    padding: 6rem 0;
    position: relative;
    z-index: 2;
}

/* ==========================================
   Typography & Utilities
========================================== */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: var(--brand-grad);
    margin: 1.5rem 0;
    border-radius: 2px;
}
.title-underline.center {
    margin: 1.5rem auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Glassmorphism */
.glass-card {
    background: rgba(25, 25, 35, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary {
    background: var(--brand-grad);
    color: #fff;
    box-shadow: 0 4px 15px rgba(123, 44, 191, 0.4);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(123, 44, 191, 0.6);
}
.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--text-muted);
}
.btn-secondary:hover {
    border-color: var(--text-main);
    transform: translateY(-3px);
}

/* ==========================================
   Navigation
========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-img {
    height: 36px;
    width: auto;
}
.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--brand-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.nav-links {
    display: flex;
    gap: 2rem;
}
.nav-links li a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}
.nav-links li a:hover {
    color: var(--text-main);
}

/* ==========================================
   Hero Section
========================================== */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}
.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out alternate;
}
.shape-1 {
    width: 500px;
    height: 500px;
    background: #7b2cbf;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}
.shape-2 {
    width: 400px;
    height: 400px;
    background: #ff4d6d;
    bottom: -50px;
    right: -50px;
    animation-delay: -5s;
}
.shape-3 {
    width: 300px;
    height: 300px;
    background: #00b4d8;
    top: 40%;
    left: 40%;
    opacity: 0.4;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 2rem;
}
.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #adb5bd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideUp 1s ease forwards;
}
.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    animation: slideUp 1s ease 0.2s forwards;
    opacity: 0;
}
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    animation: slideUp 1s ease 0.4s forwards;
    opacity: 0;
}

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

/* ==========================================
   About Section
========================================== */
.about {
    background: linear-gradient(to bottom, var(--bg-dark), #101018);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.about-text h2 {
    font-size: 2.5rem;
}
.about-text p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}
.about-text strong {
    color: var(--primary);
}
.about-visual {
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.tech-graphic {
    position: relative;
    width: 300px;
    height: 300px;
}
.tech-graphic .circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(123, 44, 191, 0.3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.tech-graphic .center {
    width: 80px;
    height: 80px;
    background: var(--brand-grad);
    box-shadow: 0 0 30px rgba(123, 44, 191, 0.8);
    animation: pulse 3s infinite;
}
.tech-graphic .orbit-1 {
    width: 180px;
    height: 180px;
    border-top-color: #ff4d6d;
    animation: spin 8s linear infinite;
}
.tech-graphic .orbit-2 {
    width: 280px;
    height: 280px;
    border-bottom-color: #00b4d8;
    animation: spin 15s linear infinite reverse;
}

@keyframes spin {
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}
@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 30px rgba(123, 44, 191, 0.5); }
    50% { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 0 50px rgba(255, 77, 109, 0.8); }
    100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 30px rgba(123, 44, 191, 0.5); }
}

/* ==========================================
   Services Section
========================================== */
.services {
    background: #101018;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
}
.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}
.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.service-card p {
    color: var(--text-muted);
}
.hover-lift:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(123, 44, 191, 0.5);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* ==========================================
   Footer Section
========================================== */
.footer {
    background: #050508;
    border-top: 1px solid var(--border-color);
    padding-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-main);
}
.company-desc {
    color: var(--text-muted);
    max-width: 400px;
}
.footer-contact h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 1rem;
    color: var(--text-muted);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem 0;
    text-align: center;
}
.icp-link {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s;
}
.icp-link:hover {
    color: var(--primary);
}

/* ==========================================
   Animations & Responsive
========================================== */
.text-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.text-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .about-grid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .nav-links {
        display: none; /* simple mobile version */
    }
    .about-visual {
        height: 250px;
    }
}

