/* === Reset & Base === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #0a0a14;
    color: #e0e0e0;
    overflow-x: hidden;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* === Navbar === */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 56px;
    background: rgba(10, 10, 20, 0.92);
    border-bottom: 1px solid rgba(0, 240, 255, 0.08);
    position: relative;
    z-index: 110;
}

.nav-brand {
    font-size: 1.15rem;
    font-weight: 700;
    color: #00f0ff;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 28px;
}

.nav-links a {
    color: #c8c8d0;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #ffffff;
}

/* === Hero / Background Section === */
.hero {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("/assets/topo_03_particle_connections.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: rotate(180deg);
    z-index: 1;
}

/* === Footer === */
.footer {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    height: 64px;
    background: rgba(10, 10, 20, 0.95);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 103;
}

.footer p {
    font-size: 0.85rem;
    color: #a0a0a8;
    margin: 0;
}

.footer strong {
    color: #d0d0d8;
    font-weight: 600;
}

/* === Responsive === */
@media (max-width: 600px) {
    .navbar {
        padding: 0 16px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 0.82rem;
    }

    .footer {
        height: 56px;
    }

    .footer p {
        font-size: 0.78rem;
    }
}

/* === Contact Page === */
.contact-overlay {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    min-height: 100%;
    pointer-events: auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    width: 100%;
    max-width: 820px;
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 12px;
    padding: 40px;
}

/* Col 1: Contact Info */
.contact-info h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.contact-info p {
    font-size: 0.92rem;
    color: #a0a0b0;
    line-height: 1.6;
    margin-bottom: 28px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-detail-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #00f0ff;
}

.detail-value {
    font-size: 0.9rem;
    color: #d0d0d8;
}

/* Col 2: Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #a0a0b0;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: #e0e0e0;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(0, 240, 255, 0.4);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #555565;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-submit {
    padding: 12px 24px;
    background: linear-gradient(135deg, #00f0ff 0%, #b347d9 100%);
    color: #0a0a14;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
    letter-spacing: 0.3px;
}

.btn-submit:hover {
    opacity: 0.9;
}

.btn-submit:active {
    transform: scale(0.98);
}

.form-success p {
    color: #00f0ff;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    padding: 40px 0;
}

/* Active nav link */
.nav-links a.active {
    color: #00f0ff;
}

/* === Contact Responsive === */
@media (max-width: 700px) {
    .contact-grid {
        grid-template-columns: 1fr;
        padding: 28px 20px;
        gap: 24px;
    }
}

/* === About Page === */
.about-overlay {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    min-height: 100%;
    pointer-events: auto;
}

.about-card {
    width: 100%;
    max-width: 860px;
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 12px;
    padding: 48px 40px;
}

.about-header {
    text-align: center;
    margin-bottom: 36px;
}

.about-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.about-tagline {
    font-size: 1rem;
    color: #a0a0b0;
    line-height: 1.5;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    margin-bottom: 36px;
}

.about-section h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #00f0ff;
    margin-bottom: 10px;
}

.about-section p {
    font-size: 0.9rem;
    color: #b0b0bc;
    line-height: 1.65;
}

.about-values h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #00f0ff;
    margin-bottom: 18px;
    text-align: center;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.value-item {
    text-align: center;
    padding: 16px 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.value-icon {
    display: block;
    font-size: 1.2rem;
    color: #b347d9;
    margin-bottom: 8px;
}

.value-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #e0e0e8;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.value-item p {
    font-size: 0.82rem;
    color: #888898;
    line-height: 1.5;
    margin: 0;
}

/* === About Responsive === */
@media (max-width: 700px) {
    .about-card {
        padding: 32px 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* === Google Fonts Override === */
body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* === Gradient Text === */
.gradient-text {
    background: linear-gradient(135deg, #00f0ff, #b347d9, #ff2d7b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Smooth Scroll === */
html {
    scroll-behavior: smooth;
}

/* === Home Page Layout === */
.home-page {
    display: block;
    background-image: url("/assets/topo_03_particle_connections.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.home-page .hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex: none;
    position: relative;
    overflow: hidden;
}

.home-page .hero .hero-bg {
    transform: rotate(180deg);
}

/* === Hero Content === */
.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100%;
    padding: 60px 24px;
    pointer-events: auto;
}

.hero-title {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 20px;
}

.hero-line {
    display: block;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #a0a0b0;
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 32px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

/* === Buttons === */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: linear-gradient(135deg, #00f0ff 0%, #b347d9 100%);
    color: #0a0a14;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.1s ease;
    letter-spacing: 0.3px;
}

.btn-primary:hover { opacity: 0.9; }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: rgba(10, 10, 20, 0.6);
    color: #e0e0e0;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.btn-secondary:hover {
    border-color: rgba(0, 240, 255, 0.4);
    color: #ffffff;
    background: rgba(10, 10, 20, 0.8);
}

.btn-lg { padding: 16px 40px; font-size: 1.05rem; }

/* === Sections — Glass Card Style === */
.section {
    position: relative;
    padding: 80px 0;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Glass wrapper for section content */
.home-page .section .container {
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 12px;
    padding: 48px 40px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #00f0ff;
    margin-bottom: 12px;
}

.section-title {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
}

.section-description {
    font-size: 1rem;
    color: #a0a0b0;
    line-height: 1.7;
    max-width: 720px;
    margin: 0 auto 48px auto;
    text-align: center;
}

/* === Pillar Cards (About) === */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pillar-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 240, 255, 0.08);
    border-radius: 10px;
    padding: 28px 22px;
    text-align: center;
    transition: border-color 0.3s ease, transform 0.2s ease, background 0.2s ease;
}

.pillar-card:hover {
    border-color: rgba(0, 240, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-3px);
}

.pillar-icon {
    font-size: 1.4rem;
    color: #b347d9;
    margin-bottom: 14px;
}

.pillar-card h3 {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.pillar-card p {
    font-size: 0.85rem;
    color: #888898;
    line-height: 1.6;
    margin: 0;
}

/* === Service Cards === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.service-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(0, 240, 255, 0.08);
    border-radius: 10px;
    padding: 28px 24px;
    transition: border-color 0.3s ease, transform 0.2s ease, background 0.2s ease;
}

.service-card:hover {
    border-color: rgba(179, 71, 217, 0.3);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-3px);
}

.service-number {
    display: inline-block;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #00f0ff;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.service-card h3 {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 0.85rem;
    color: #888898;
    line-height: 1.6;
    margin: 0;
}

/* === CTA Section === */
.cta-section {
    padding: 80px 0;
    text-align: center;
}

.home-page .cta-section .container {
    max-width: 640px;
}

.cta-title {
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 16px;
}

.cta-text {
    font-size: 1rem;
    color: #a0a0b0;
    line-height: 1.6;
    margin-bottom: 28px;
}

/* === Homepage Responsive === */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.4rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }

    .pillars-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .home-page .section .container {
        padding: 32px 20px;
    }
}
