@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;700&display=swap');

:root {
    --primary: #00E5FF;
    --primary-light: #70F0FF;
    --heading-color: #FFFFFF;
    --body-color: #E2E8F0;
    --bg-main: #0F172A;
    --bg-card: rgba(30, 41, 59, 0.6);
    --border-color: rgba(0, 229, 255, 0.25);
    --accent-soft: rgba(0, 229, 255, 0.1);
    --white: #FFFFFF;
    --dark-blue: #1E293B;
    --card-text: #F8FAFC;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--body-color);
    font-family: 'DM Sans', sans-serif;
    line-height: 1.8;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'DM Sans', sans-serif;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
    text-align: center;
    /* Center headings as per general preference for this design */
}

p {
    margin-bottom: 1.5rem;
    text-align: justify;
    /* Justify text as requested */
}

.container {
    max-width: 85vw;
    margin: 0 auto;
    padding: 0 2vw;
}

.text-center {
    text-align: center;
}

.mb-5 {
    margin-bottom: 5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

/* Navbar */
nav {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1.5vw 0;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 1000;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

nav.scrolled {
    padding: 0.75vw 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75vw;
    text-decoration: none;
}

.logo img:first-child {
    height: 4vw;
    width: auto;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.logo img:last-child {
    height: 2.6vw;
    width: auto;
    margin-left: 1vw;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    padding-left: 1vw;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

nav.scrolled .logo img:first-child {
    height: 3vw;
}

nav.scrolled .logo img:last-child {
    height: 2vw;
}

.logo-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    color: var(--heading-color);
    font-size: 1.1vw;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 2vw;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #1E293B;
    font-weight: 600;
    font-size: 0.9vw;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--heading-color);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1100;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-main);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    z-index: 1050;
}

.mobile-overlay.active {
    transform: translateY(0);
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-menu a {
    text-decoration: none;
    color: var(--heading-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.mobile-menu .btn {
    font-size: 1rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('images/industrial_bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 900px;
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 4.5rem);
    /* Fluid typography */
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 2rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3.5rem;
    font-weight: 400;
}

/* Sections with Backgrounds */
.section-with-bg {
    position: relative;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 6rem 0;
}

.bg-2 {
    background-image: url('images/1.png');
}

.section-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.8));
}

.content-glass {
    position: relative;
    z-index: 2;
    background: rgba(16, 33, 65, 0.6);
    backdrop-filter: blur(10px);
    padding: 4rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 229, 255, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    height: 100%;
    /* Ensure full height for alignment */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.problem-card {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* General Section */
section {
    padding: 6rem 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.25vw 3vw;
    border-radius: 2px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85vw;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(184, 142, 35, 0.3);
}

/* Grid & Cards */
.grid {
    display: grid;
    gap: 4rem;
}

.columns-2 {
    grid-template-columns: 1fr 1fr;
}

.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 229, 255, 0.2);
    border-color: var(--primary);
    background: rgba(30, 41, 59, 0.9);
}

.card h1,
.card h2,
.card h3,
.card h4 {
    color: var(--white);
    text-align: left;
}

.card p {
    color: var(--body-color);
    text-align: left;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

/* Feature Badge */
.feature-badge {
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.95);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    border: none;
}

.hero-badge img {
    height: 35px;
    width: auto;
}

.hero-badge img:last-child {
    height: 22px;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    padding-left: 1rem;
}

/* Challenges */
.challenges-list {
    list-style: none;
}

.challenges-list li {
    margin-bottom: 1.25rem;
    padding-left: 2.5rem;
    position: relative;
    font-weight: 600;
}

.challenges-list li::before {
    content: "✕";
    position: absolute;
    left: 0;
    color: #C14A4A;
}

/* Industry Section Upgrade */
.industry-item {
    position: relative;
    height: 500px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
}

.industry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

.industry-item:hover img {
    transform: scale(1.1);
}

.industry-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(92, 78, 61, 0.9) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
    color: white;
}

.industry-overlay h3 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Mission Slider */
.mission-slider-container {
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
    width: 100%;
}

@keyframes scroll-mission {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-320px * 3 - 2rem * 3));
    }
}

.mission-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.mission-track .card {
    padding: 1.5rem;
    height: 100%;
}

.mission-track .card h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.mission-track .card p {
    font-size: 1rem;
    color: var(--white);
    line-height: 1.6;
}

.features-track .card h3 {
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.features-track .card p {
    color: var(--white);
}

.features-track {
    display: flex;
    gap: 2rem;
    animation: scroll 40s linear infinite;
    width: max-content;
}

/* Ensure smooth animation by forcing hardware acceleration */
.mission-track,
.features-track {
    will-change: transform;
}

/* Comprehensive Safety Animated Row */
.features-slider-container {
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
    width: 100%;
}

.features-track {
    display: flex;
    gap: 2rem;
    animation: scroll 40s linear infinite;
    width: max-content;
}

.features-track:hover {
    animation-play-state: paused;
}

.features-track .card {
    width: 320px;
    flex-shrink: 0;
    margin-bottom: 0;
    padding: 1.5rem 2rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-320px * 5 - 2rem * 5));
    }
}

/* Proven Across Alternating Layout */
.industry-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.industry-row:nth-child(even) {
    flex-direction: row-reverse;
}

.industry-image {
    flex: 1;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.industry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.industry-content {
    flex: 1;
}

.industry-content h3 {
    text-align: left;
    font-size: 2rem;
    color: var(--primary);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-light);
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item div strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.1rem;
}

.contact-item div span,
.contact-item div a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.contact-item div a:hover {
    color: var(--primary-light);
}

.contact-info-glass .social-links a {
    color: white;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info-glass .social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
    border-color: var(--primary);
}

/* Contact Section (High-end Glassmorphism) */
.contact-section-new {
    position: relative;
    padding: 100px 0;
    background-image: url('images/Contact_Section (1).png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.contact-overlay-new {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(0, 229, 255, 0.3) 100%);
}

.contact-container-new {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
    /* Back to stretch to align heights */
}

.contact-info-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-glass h2,
.contact-info-glass p {
    text-align: left;
    color: white;
}

.contact-form-glass {
    background: rgba(255, 255, 255, 0.95);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--heading-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
}

/* Stats */
.stats-section {
    background-color: var(--primary);
    color: white;
    padding: 8rem 0;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.stat-item h1 {
    font-size: 4rem;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    text-transform: none;
    /* Changed from uppercase to none for a cleaner look */
    font-size: 0.95rem;
    letter-spacing: normal;
    text-align: center;
}

/* Outcomes Grid */
.outcomes-grid {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.outcomes-image {
    flex: 1;
}

.outcomes-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
}

.outcomes-content {
    flex: 1.2;
}

.outcomes-content h3 {
    text-align: left;
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Footer Upgrade */
footer {
    background-color: #050A18;
    color: white;
    padding: 8rem 0 4rem;
    border-top: 1px solid var(--border-color);
}

.footer-logo {
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.footer-logo img {
    height: 35px;
    width: auto;
}

.footer-logo img:last-child {
    height: 25px;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    padding-left: 1rem;
}

.footer-logo .logo-text {
    color: white;
}

.footer-top h4 {
    color: white;
    font-family: 'DM Sans', sans-serif;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

footer .social-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

footer .social-links a:hover {
    color: var(--primary-light);
    transform: translateY(-3px);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: fadeIn 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* Responsive Refinements */
@media (max-width: 1400px) {
    .container {
        max-width: 1140px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 960px;
        padding: 0 1.5rem;
    }

    .hero h1 {
        font-size: 3.8rem;
    }

    .stats-grid {
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    section {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .columns-3 {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .mission-track {
        grid-template-columns: 1fr;
    }

    .industry-row {
        flex-direction: column !important;
        gap: 3rem;
        margin-bottom: 4rem;
    }

    .outcomes-grid {
        flex-direction: column;
        text-align: center;
    }

    .outcomes-content h2,
    .outcomes-content h3 {
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .logo img:first-child {
        height: 45px;
    }

    .logo img:last-child {
        height: 30px;
        margin-left: 0.5rem;
        padding-left: 0.5rem;
    }

    .hero {
        background-attachment: scroll;
        /* Disable fixed background on mobile for performance */
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }

    .section-with-bg {
        padding: 4rem 0;
        background-attachment: scroll;
    }

    .content-glass {
        padding: 2rem 1.5rem;
    }

    .grid {
        gap: 2rem;
    }

    .columns-2 {
        grid-template-columns: 1fr;
    }

    .contact-container-new {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-info-glass,
    .contact-form-glass {
        padding: 2rem 1.5rem;
        width: 94vw;
    }

    .contact-info-glass h2,
    .contact-info-glass p {
        text-align: center;
    }

    .contact-details {
        align-items: center;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .stat-item h1 {
        font-size: 2.8rem;
    }

    footer {
        padding: 4rem 0 2rem;
    }

    footer .container>div:first-child {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
        text-align: center;
    }

    footer h4,
    footer p {
        text-align: center !important;
    }

    footer .social-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .features-track .card {
        width: 280px;
    }

    .features-track {
        animation-duration: 50s;
        /* Slower on mobile */
    }

    .hero h1 {
        font-size: 2rem;
    }

    .feature-badge {
        font-size: 0.7rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        width: 100%;
        padding: 1rem 2rem;
        text-align: center;
    }

    .industry-image {
        height: 250px;
    }

    .logo img:last-child:not(:first-child) {
        display: none;
        /* Hide secondary logo on very small screens to save space only if there's more than one */
    }

    .content-glass {
        padding: 1.5rem 1rem;
    }

    .stat-item h1 {
        font-size: 2.5rem;
    }
}

@media (max-height: 700px) and (orientation: landscape) {
    .hero {
        height: auto;
        padding: 8rem 0;
    }
}

/* Feedback Helpers */
.text-light { color: #fff !important; }
.text-danger { color: #dc3545 !important; }
.bg-light { background-color: #f8f9fa !important; }