:root {
    /* StructIQ Brand Palette - Dark Mode Variant */
    --bg-color: #020617;      /* Kept original dark slate */
    --text-color: #F5F0EB;    /* Stone White for high contrast text */
    --primary-color: #D4622A; /* Terracotta for primary actions */
    --secondary-color: #112244; /* Rich Navy for deeper gradients/accents if needed */
    --accent-color: #D4622A;  /* Terracotta */
    --compliance-green: #16A34A;

    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(148, 163, 184, 0.1);

    --font-main: 'Space Grotesk', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --glow: 0 0 20px rgba(212, 98, 42, 0.3); /* Terracotta glow */
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(at 0% 0%, rgba(212, 98, 42, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(17, 34, 68, 0.15) 0px, transparent 50%);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
}

header {
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(2, 6, 23, 0.7);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: 2px;
    -webkit-text-fill-color: initial;
}

.logo-iq {
    color: var(--accent-color);
    -webkit-text-fill-color: initial;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(212, 98, 42, 0.4); /* Terracotta glow */
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

.cta-button {
    padding: 0.6rem 1.8rem;
    background: var(--accent-color);
    border-radius: 8px;
    /* More structural/technical feel */
    color: white !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(212, 98, 42, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ... (Hero structure remains similar, updated colors) ... */

main {
    padding-top: 80px;
}

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    position: relative;
}

/* Abstract Grid Background Effect */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    z-index: -1;
    pointer-events: none;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 1;
}

h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.gradient-text {
    background: linear-gradient(to right, #D4622A, #f97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(212, 98, 42, 0.4));
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #94a3b8;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
}

button {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

button#learn-more {
    background: white;
    color: var(--bg-color);
}

button#learn-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

button.secondary {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

button.secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
}

.hero-visual {
    flex: 1;
    height: 600px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

/* 3D Floating Elements - More Geometric */
.floating-card {
    position: absolute;
    border-radius: 12px;
    backdrop-filter: blur(24px);
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.c1 {
    width: 260px;
    height: 160px;
    top: 20%;
    right: 10%;
    transform: rotateY(-15deg);
    animation: float 6s ease-in-out infinite;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), transparent);
}

.c2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 15%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(99, 102, 241, 0.15), transparent);
    animation: float 8s ease-in-out infinite reverse;
}

.c3 {
    width: 120px;
    height: 120px;
    top: 45%;
    left: 45%;
    border: 2px solid rgba(212, 98, 42, 0.3);
    background: transparent;
    animation: float 7s ease-in-out infinite 1s;
    border-radius: 12px;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(2deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

.features {
    padding: 8rem 5%;
    position: relative;
}

.features h2 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    text-align: center;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    padding: 2.5rem;
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(212, 98, 42, 0.3);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-card p {
    color: #94a3b8;
    line-height: 1.7;
}

footer {
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: #475569;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    h1 {
        font-size: 3rem;
    }

    .hero {
        flex-direction: column;
        padding-top: 2rem;
        text-align: center;
        /* Ensure center alignment on mobile */
    }

    .hero-content {
        margin-bottom: 3rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* Center children in flex column */
    }

    .hero-buttons {
        justify-content: center;
        width: 100%;
    }

    .hero-visual {
        width: 100%;
        height: 400px;
    }

    .nav-links {
        display: none;
    }

    /* Simple hiding for mobile for now, ideally hamburger */
}

.hero-logo-wrapper {
    width: 137px;
    height: 150px;
    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    animation: float 6s ease-in-out infinite;
}

.hero-logo {
    height: 455px;
    width: auto;
    max-width: none;
    margin-top: -128px;
    margin-left: -121px;
    filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(212, 98, 42, 0.3));
}

.hero-logo-text {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: 4px;
    animation: float 6s ease-in-out infinite;
    animation-delay: 0.5s;
    text-shadow: 0 0 20px rgba(212, 98, 42, 0.3);
    text-align: center;
}

/* BIM Graphic */
.bim-graphic {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding: 1.5rem 1rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(212, 98, 42, 0.2);
}

.bim-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 1;
}

.node-icon {
    width: 48px;
    height: 48px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    border: 1px solid rgba(212, 98, 42, 0.3);
    box-shadow: 0 0 15px rgba(212, 98, 42, 0.1);
}

.bim-node.iq .node-icon {
    color: var(--accent-color);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.1);
}

.bim-node span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
}

.bim-flow {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 0 1rem;
}

.flow-track {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    border-radius: 2px;
}

.flow-track::before {
    content: '';
    position: absolute;
    top: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}

.flow-track.export::before {
    left: 0;
    animation: moveRight 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.flow-track.import::before {
    right: 0;
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    animation: moveLeft 2.5s infinite cubic-bezier(0.4, 0, 0.2, 1) 1.25s;
}

@keyframes moveRight {
    0% {
        left: 0;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        left: calc(100% - 8px);
        opacity: 0;
    }
}

@keyframes moveLeft {
    0% {
        right: 0;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        right: calc(100% - 8px);
        opacity: 0;
    }
}

.flow-label {
    font-size: 0.7rem;
    color: #94a3b8;
    position: absolute;
    top: -18px;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Regulatory Compliance Graphic */
.reg-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding: 1.5rem 1rem;
    background: rgba(15, 23, 42, 0.4);
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.reg-doc {
    position: relative;
    width: 60px;
    height: 76px;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.reg-stamp {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 36px;
    height: 36px;
    background: var(--compliance-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 0 20px rgba(22, 163, 74, 0.4);
    animation: stampIn 4s infinite cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes stampIn {
    0% {
        transform: scale(0) rotate(45deg);
        opacity: 0;
    }

    15% {
        transform: scale(1.2) rotate(-10deg);
        opacity: 1;
    }

    20% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    80% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    100% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
}

.reg-standards {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.reg-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--compliance-green);
    background: rgba(22, 163, 74, 0.1);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(22, 163, 74, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.reg-tag::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(22, 163, 74, 0.3), transparent);
    animation: shimmer 4s infinite;
}

.reg-standards span:nth-child(2)::after {
    animation-delay: 2s;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    20% {
        left: 100%;
    }

    100% {
        left: 100%;
    }
}
/* About Section */
.about {
    padding: 8rem 5%;
    position: relative;
    background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.4));
    border-top: 1px solid var(--glass-border);
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
}

.about-content {
    text-align: center;
    margin-bottom: 5rem;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about-mission {
    font-size: 1.35rem;
    line-height: 1.8;
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.3);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.about-mission::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 8rem;
    color: rgba(212, 98, 42, 0.1);
    font-family: serif;
    line-height: 1;
}

.team-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.team-card {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(212, 98, 42, 0.2);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top, rgba(212, 98, 42, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 98, 42, 0.5);
    box-shadow: 0 20px 40px -15px rgba(212, 98, 42, 0.2);
}

.team-card:hover::before {
    opacity: 1;
}

.member-avatar {
    width: 140px;
    height: 140px;
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid rgba(212, 98, 42, 0.3);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: 0 0 20px rgba(212, 98, 42, 0.15);
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
    overflow: hidden;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-card:hover .member-avatar {
    transform: scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(212, 98, 42, 0.3);
    color: var(--text-color);
    background: var(--primary-color);
}

.member-info {
    position: relative;
    z-index: 1;
}

.member-info h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.member-info .role {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-color);
    margin-bottom: 1rem;
    padding: 0.25rem 0.75rem;
    background: rgba(212, 98, 42, 0.1);
    border-radius: 20px;
}

.member-info p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
}
