/* --- General Setup --- */
:root {
    --primary-color: #00aaff;
    --primary-glow: rgba(0, 170, 255, 0.5);
    --secondary-color: #9461fd;
    --background-color: #0a0f1e;
    --surface-color: #12182c;
    --glass-surface: rgba(18, 24, 44, 0.6);
    --text-color: #e0e5f0;
    --text-muted-color: #8892b0;
    --border-color: rgba(0, 170, 255, 0.2);
    --header-height: 70px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* --- Header & Navigation (Full Width) --- */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: rgba(10, 15, 30, 0.7);
    backdrop-filter: blur(10px);
    transition: background-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background-color: rgba(10, 15, 30, 0.9);
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
    padding: 5px 0;
}

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

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

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

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content {
    max-width: 950px;
    width: 100%;
    z-index: 1;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: 1px;
    background: -webkit-linear-gradient(45deg, #fff 40%, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 170, 255, 0.4);
}

.hero-content .subtitle {
    font-size: 1.3rem;
    color: var(--text-muted-color);
    margin-bottom: 3.5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.scroll-down-arrow {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    z-index: 2;
}

.scroll-down-arrow span {
    display: block;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--text-color);
    border-right: 2px solid var(--text-color);
    transform: rotate(45deg);
    margin: -10px;
    animation: scroll-anim 2s infinite;
}

.scroll-down-arrow span:nth-child(2) {
    animation-delay: -0.2s;
}

.scroll-down-arrow span:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes scroll-anim {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}

/* --- General Content Sections --- */
.content-section {
    padding: 100px 0;
    position: relative;
}

.section-title-container {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 10px;
    color: var(--text-color);
    letter-spacing: 1px;
}

.title-underline {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    margin: 0 auto;
}

/* --- About Us Section (Rebuilt) --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    align-items: center;
    gap: 60px;
}

.about-logo-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 30px;
}

.logo-background-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 170, 255, 0.15) 0%, rgba(0, 170, 255, 0) 60%);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill='%2312182c' fill-opacity='0.4'%3E%3Crect x='0' y='0' width='100' height='1'/%3E%3Crect x='0' y='0' width='1' height='100'/%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

.about-logo-panel img {
    max-width: 250px;
    width: 100%;
    z-index: 2;
    position: relative;
}

.about-text-panel h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

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

.about-text-panel p:last-child {
    margin-bottom: 0;
}

/* --- Solutions Section (Tabs) --- */
.solutions-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.solutions-tabs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 0 0 250px;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 15px 20px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-button::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--primary-color);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.tab-button svg {
    width: 28px;
    height: 28px;
    transition: fill 0.3s ease;
    fill: var(--text-muted-color);
    flex-shrink: 0;
}

.tab-button.active {
    background-color: var(--surface-color);
    color: var(--text-color);
    border-color: var(--border-color);
}

.tab-button.active::before {
    transform: translateX(0);
}

.tab-button.active svg {
    fill: var(--primary-color);
}

.tab-button:hover:not(.active) {
    background-color: var(--surface-color);
    color: var(--text-color);
}

.solutions-content-wrapper {
    flex-grow: 1;
    background-color: var(--surface-color);
    border-radius: 8px;
    padding: 30px;
    border: 1px solid var(--border-color);
    min-height: 300px;
}

.solution-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.solution-content.active {
    display: block;
}

.solution-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.solution-content p {
    color: var(--text-muted-color);
    margin-bottom: 25px;
}

.solution-content ul {
    list-style: none;
    padding-left: 0;
}

.solution-content ul li {
    color: var(--text-muted-color);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.solution-content ul li::before {
    content: '✓';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* --- Advantages Section (Data Bars) --- */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.advantage-item {
    background: var(--surface-color);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.advantage-item h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.advantage-item h4 svg {
    width: 24px;
    height: 24px;
    fill: var(--primary-color);
}

.comparison-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bar-row {
    display: grid;
    grid-template-columns: 80px 1fr 100px;
    align-items: center;
    gap: 15px;
    font-size: 0.9rem;
}

.bar-row .label {
    color: var(--text-muted-color);
}

.bar-row .value {
    font-weight: 700;
    color: var(--text-color);
    text-align: right;
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    transition: width 1.5s ease-out;
}

/* --- Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--surface-color);
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px var(--primary-glow);
    border-color: var(--primary-color);
}

.project-logo {
    height: 80px;
    width: 80px;
    object-fit: contain;
    margin-bottom: 20px;
}

.project-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.project-icon {
    width: 100%;
    height: 100%;
}

.project-info {
    text-align: center;
}

.project-info h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project-info p {
    color: var(--text-muted-color);
    font-size: 1rem;
}

/* --- Footer (Full Width) --- */
.footer {
    background-color: #060914;
    padding: 60px 0 20px 0;
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.footer .container {
    padding: 0 20px;
}

/* Ensure padding on mobile for footer */
.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-about .footer-logo img {
    height: 40px;
    margin-bottom: 20px;
}

.footer-about p {
    color: var(--text-muted-color);
    max-width: 320px;
}

.footer-links h4,
.footer-social h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    text-decoration: none;
    color: var(--text-muted-color);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-icon {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-icon svg {
    width: 24px;
    height: 24px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    margin-top: 40px;
    text-align: center;
    color: var(--text-muted-color);
    font-size: 0.9rem;
}


/* --- Animations & Responsiveness --- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-aos].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .solutions-container {
        flex-direction: column;
    }

    .solutions-tabs {
        flex: 1 1 auto;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height);
        flex-direction: column;
        background-color: var(--surface-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        gap: 0;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    /* FIX: Hero title size on mobile */
    .hero-content .subtitle {
        font-size: 1.1rem;
    }

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

    /* FIX: Remove about logo on mobile */
    .about-logo-panel {
        display: none;
    }

    /* FIX: Modern solution buttons on mobile */
    .solutions-tabs {
        flex-direction: column;
        width: 100%;
    }

    .tab-button {
        flex-direction: row;
        font-size: 1rem;
        justify-content: flex-start;
    }

    .tab-button svg {
        margin-bottom: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .bar-row {
        grid-template-columns: 70px 1fr 80px;
        gap: 10px;
    }
}