/* CSS Reset & Variables */
:root {
    --bg-dark: #0a0a0f;
    --primary-color: #00f0ff;
    --secondary-color: #8a2be2;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --glass-bg: rgba(25, 25, 35, 0.6);
    --glass-border: rgba(0, 240, 255, 0.2);
    --transition: all 0.3s ease;
    --font-heading: 'Orbitron', 'Noto Sans SC', sans-serif;
    --font-body: 'Noto Sans SC', sans-serif;
}

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

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

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Typography & Titles */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
}

.section-header h2 span {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.section-header.center {
    text-align: center;
}

.section-header .line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin-top: 10px;
    border-radius: 2px;
}

.section-header.center .line {
    margin: 10px auto;
}

.section-header.center p {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 1.1rem;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

#navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
}

.logo h1 {
    font-size: 1.5rem;
    letter-spacing: 2px;
}

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

.nav-links li a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: var(--transition);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    box-shadow: 0 0 8px var(--primary-color);
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.nav-links li a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.primary-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.primary-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.primary-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.6);
}

.primary-btn:hover::before {
    left: 100%;
}

.secondary-btn {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    border: none;
}

.secondary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(138, 43, 226, 0.4);
}

.arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.primary-btn:hover .arrow {
    transform: translateX(5px);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    z-index: 10;
}

.glitch {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    color: white;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
}

.btn-group {
    display: flex;
    gap: 20px;
}

.hero-graphic {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sphere {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 240, 255, 0.8), rgba(138, 43, 226, 0.4) 60%, transparent 80%);
    box-shadow: 0 0 50px var(--primary-color), inset 0 0 50px var(--secondary-color);
    animation: float 6s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(0, 240, 255, 0.3);
    animation: spin linear infinite;
}

.ring1 {
    width: 300px;
    height: 300px;
    animation-duration: 20s;
}

.ring2 {
    width: 400px;
    height: 400px;
    border: 1px solid rgba(138, 43, 226, 0.4);
    animation-duration: 30s;
    animation-direction: reverse;
}

.ring3 {
    width: 500px;
    height: 500px;
    border: 1px dashed rgba(0, 240, 255, 0.2);
    animation-duration: 40s;
}

/* About Section */
.about-section {
    padding: 100px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text {
    padding: 40px;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-heading);
}

.stat-item .plus {
    color: var(--secondary-color);
    font-size: 2rem;
    font-weight: bold;
    margin-left: -5px;
}

.stat-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: -5px;
}

.about-visual {
    position: relative;
    height: 400px;
}

.tech-stack-container {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 15px;
}

.tech-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--primary-color);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    color: var(--text-primary);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
    animation: drift 5s ease-in-out infinite alternate;
    animation-delay: calc(var(--i) * 0.5s);
    backdrop-filter: blur(5px);
}

/* Products Section */
.products-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(10, 10, 20, 1) 100%);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.product-card {
    padding: 30px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 240, 255, 0.2);
    border-color: var(--primary-color);
}

.product-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
}

.product-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.product-content .summary {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.product-details {
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.8;
}

.product-hover-overlay {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(0deg, var(--primary-color), transparent);
    color: #fff;
    text-align: center;
    font-weight: bold;
    opacity: 0;
    transition: var(--transition);
}

.product-card:hover .product-hover-overlay {
    bottom: 0;
    opacity: 1;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    position: relative;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
    overflow: hidden;
}

.contact-info {
    padding: 60px;
    background: rgba(138, 43, 226, 0.1);
    position: relative;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.contact-info h2 span {
    color: var(--primary-color);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-list .icon {
    font-size: 1.5rem;
}

.contact-form {
    padding: 60px;
}

.form-group {
    margin-bottom: 25px;
}

input, textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-color);
    color: var(--bg-dark);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    background: #00c0cc;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

/* Footer */
footer {
    padding: 40px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #050508;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--primary-color);
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}

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

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10px, -15px); }
}

/* Responsive Design */
@media (max-width: 900px) {
    .about-grid, .contact-wrapper {
        grid-template-columns: 1fr;
    }
    
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }
    
    .btn-group {
        justify-content: center;
    }
    
    .hero-graphic {
        margin-top: 50px;
        transform: scale(0.8);
    }
    
    .contact-info, .contact-form {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Can implement mobile menu later */
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .glitch {
        font-size: 2.5rem;
    }
    
    .stats {
        flex-wrap: wrap;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
