:root {
    --bg-color: #020c1b;
    --bg-gradient: linear-gradient(135deg, #020c1b 0%, #0a192f 100%);
    --primary-color: #64ffda;
    --secondary-color: #007bff;
    --text-color: #e6f1ff;
    --text-muted: #8892b0;
    --glass-bg: rgba(10, 25, 47, 0.85);
    --glass-border: rgba(100, 255, 218, 0.1);
    --font-main: 'Noto Sans SC', sans-serif;
    --font-tech: 'Orbitron', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
    min-height: 100vh;
    letter-spacing: 0.02em;
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg-gradient);
    overflow: hidden;
}

.background-animation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(100, 255, 218, 0.03) 0%, transparent 60%);
    /* Softer gradient */
    animation: rotate 120s linear infinite;
    /* Slower rotation */
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.2rem 0;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.glass-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--font-tech);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.05em;
}

nav ul {
    display: flex;
    gap: 3rem;
    /* More space between links */
    list-style: none;
}

nav a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

nav a:hover,
nav a.active {
    color: var(--primary-color);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    /* Smoother transition */
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    /* More top padding */
    position: relative;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 650px;
    /* Slightly wider */
    display: block;
}

.hero h1 {
    font-size: 4rem;
    /* Larger title */
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero .highlight {
    color: var(--primary-color);
    text-shadow: 0 0 30px rgba(100, 255, 218, 0.2);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    /* More space */
    max-width: 500px;
}

.cta-group {
    display: flex;
    gap: 2rem;
    /* More space between buttons */
}

.btn {
    padding: 1rem 2.5rem;
    /* Larger buttons */
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background: rgba(100, 255, 218, 0.1);
    box-shadow: 0 0 30px rgba(100, 255, 218, 0.25);
    transform: translateY(-2px);
}

.btn-secondary {
    color: var(--text-color);
    border: 1px solid var(--text-muted);
}

.btn-secondary:hover {
    border-color: var(--text-color);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

/* Hero Visual (Tech Circle) */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

#hero-canvas {
    width: 520px;
    height: 520px;
    max-width: 90vw;
    border-radius: 8px;
    filter: drop-shadow(0 0 30px rgba(100,255,218,0.25));
    background: radial-gradient(100% 100% at 50% 50%, rgba(100,255,218,0.06) 0%, rgba(0,0,0,0) 60%);
}

.tech-circle-container {
    position: relative;
    width: 450px;
    /* Larger visual */
    height: 450px;
}

.tech-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.1);
}

/* Improved Animations: Floating/Breathing instead of just spinning */
.outer {
    width: 100%;
    height: 100%;
    border-style: dashed;
    opacity: 0.3;
    animation: float-rotate 20s ease-in-out infinite;
}

.middle {
    width: 75%;
    height: 75%;
    border-top: 2px solid var(--primary-color);
    border-bottom: 2px solid transparent;
    border-left: 2px solid transparent;
    border-right: 2px solid transparent;
    opacity: 0.6;
    animation: float-reverse 15s ease-in-out infinite;
}

.inner {
    width: 45%;
    height: 45%;
    border: 2px solid var(--secondary-color);
    opacity: 0.8;
    animation: breathe 6s ease-in-out infinite;
}

.tech-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 40px var(--primary-color);
    animation: core-pulse 4s ease-in-out infinite;
}

/* Features Section */
.features {
    padding: 8rem 0;
    /* More vertical padding */
    background: rgba(2, 12, 27, 0.5);
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin: 0 auto 5rem;
    position: relative;
    letter-spacing: 0.05em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Wider cards */
    gap: 3rem;
    /* More gap */
}

.card {
    background: #112240;
    padding: 3rem 2.5rem;
    /* More padding inside cards */
    border-radius: 12px;
    /* Softer corners */
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(100, 255, 218, 0) 0%, rgba(100, 255, 218, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card:hover {
    transform: translateY(-15px);
    border-color: rgba(100, 255, 218, 0.3);
    box-shadow: 0 20px 40px -15px rgba(2, 12, 27, 0.8);
}

.card:hover::before {
    opacity: 1;
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 2rem;
    display: inline-block;
    transition: transform 0.4s ease;
}

.card:hover .icon-box {
    transform: scale(1.1);
}

.card h3 {
    margin-bottom: 1.2rem;
    color: var(--text-color);
    font-size: 1.4rem;
    letter-spacing: 0.02em;
}

.card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 1rem;
    border-top: 1px solid #112240;
    letter-spacing: 0.05em;
}

html { scroll-behavior: smooth; scroll-padding-top: 100px; }

@media (max-width: 992px) {
  .hero .container { flex-direction: column; gap: 3rem; }
  .hero h1 { font-size: 3rem; }
  .hero p { max-width: none; }
  .cta-group { gap: 1rem; }
  nav ul { gap: 1.5rem; }
  #hero-canvas { width: 90vw; height: 90vw; max-width: 600px; }
}

@media (max-width: 600px) {
  .hero h1 { font-size: 2.4rem; }
  .cta-group { flex-direction: column; align-items: flex-start; }
}

@keyframes float-rotate { 0% { transform: translate(-50%,-50%) rotate(0deg); } 50% { transform: translate(-50%,-50%) rotate(180deg); } 100% { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes float-reverse { 0% { transform: translate(-50%,-50%) rotate(0deg); } 50% { transform: translate(-50%,-50%) rotate(-180deg); } 100% { transform: translate(-50%,-50%) rotate(-360deg); } }
@keyframes breathe { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-50%) scale(1.06); } }
@keyframes core-pulse { 0%,100% { box-shadow: 0 0 20px rgba(100,255,218,0.4); } 50% { box-shadow: 0 0 40px rgba(100,255,218,0.8); } }
@keyframes float-rotate {
    0% {
        transform: translate(-50%, -50%) rotate(0deg) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) rotate(180deg) translateY(-10px);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg) translateY(0);
    }
}

@keyframes float-reverse {
    0% {
        transform: translate(-50%, -50%) rotate(360deg) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) rotate(180deg) translateY(10px);
    }

    100% {
        transform: translate(-50%, -50%) rotate(0deg) translateY(0);
    }
}

@keyframes breathe {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
        border-color: var(--secondary-color);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.05);
        opacity: 0.4;
        border-color: var(--primary-color);
    }
}

@keyframes core-pulse {

    0%,
    100% {
        box-shadow: 0 0 30px var(--primary-color);
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        box-shadow: 0 0 60px var(--primary-color), 0 0 20px #fff;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    animation: fadeInRight 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* Responsive */
@media (max-width: 768px) {
    .hero .container {
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-content {
        margin-top: 4rem;
    }

    .cta-group {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .tech-circle-container {
        width: 300px;
        height: 300px;
    }

    nav ul {
        display: none;
        /* Simple hide for mobile for now, or hamburger later */
    }
}

.about {
    padding: 8rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.2rem;
}

.metric {
    background: #0b1e39;
    border: 1px solid rgba(100,255,218,0.15);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metric .num {
    font-family: var(--font-tech);
    color: var(--primary-color);
    font-size: 1.6rem;
    margin-bottom: 0.4rem;
}

.metric .label {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.metric:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px -12px rgba(2, 12, 27, 0.8);
}

.contact {
    padding: 8rem 0;
    background: rgba(2, 12, 27, 0.5);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

.contact-item h3 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}

.contact-item p {
    color: var(--text-muted);
}

.contact-form {
    background: #112240;
    border: 1px solid rgba(100,255,218,0.15);
    border-radius: 12px;
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--text-color);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: #0b1e39;
    border: 1px solid rgba(100,255,218,0.15);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--text-color);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6c7a95;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(100,255,218,0.15);
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.form-status {
    color: var(--primary-color);
    font-size: 0.95rem;
}