/* Base Styles */
:root {
    --bg-dark: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --secondary: #8b5cf6;
    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Blobs */
.blob-bg {
    position: fixed;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(59, 130, 246, 0) 70%);
    z-index: -1;
    filter: blur(80px);
    transition: transform 0.2s ease-out;
    pointer-events: none;
}

.blob-2 {
    top: 50%;
    left: 70%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, rgba(139, 92, 246, 0) 70%);
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography & Buttons */
h1,
h2,
h3 {
    font-weight: 800;
    line-height: 1.2;
}

h1 span {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #2563eb);
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 24px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 16px 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-links li a:not(.btn-primary) {
    font-weight: 600;
    color: var(--text-secondary);
}

.nav-links li a:not(.btn-primary):hover {
    color: white;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 650px;
    margin-inline: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Services */
.services,
.cmms-section,
.contact {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.15);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 24px;
}

.icon-wrapper.glow {
    background: rgba(139, 92, 246, 0.1);
    color: var(--secondary);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.highlight-card {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.6) 0%, rgba(30, 41, 59, 0.3) 100%);
    border-top: 1px solid rgba(139, 92, 246, 0.4);
}

/* CMMS Section */
.cmms-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    padding: 60px;
    align-items: center;
    overflow: hidden;
}

.badge-accent {
    background: rgba(139, 92, 246, 0.1);
    color: var(--secondary);
    border-color: rgba(139, 92, 246, 0.2);
}

.cmms-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cmms-features {
    list-style: none;
    margin: 30px 0;
}

.cmms-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-weight: 600;
}

.cmms-features i {
    color: var(--secondary);
    font-size: 1.25rem;
}

/* Dashboard Mockup (CSS Art) */
.cmms-visual {
    position: relative;
}

.dashboard-mockup {
    width: 100%;
    height: 380px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    background: rgba(15, 23, 42, 0.6);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.dashboard-mockup:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.dash-nav {
    width: 60px;
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    gap: 16px;
}

.dash-logo {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--accent);
    margin-bottom: 30px;
}

.dash-item {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
}

.dash-item.active {
    background: var(--secondary);
}

.dash-main {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dash-header h3 {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.dash-user {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.dash-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 800;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.wave {
    position: absolute;
    bottom: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    filter: blur(10px);
}

.line {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 2px;
    background: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
}

.dash-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-item {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.list-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.list-text {
    flex: 1;
    font-size: 0.85rem;
}

.list-status {
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.status-green {
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
}

.status-yellow {
    background: rgba(234, 179, 8, 0.1);
    color: #facc15;
}

.status-red {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
}

/* Contact Section */
.contact-card {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px;
    text-align: center;
}

.contact-desc {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.03);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    text-align: left;
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-item .text {
    display: flex;
    flex-direction: column;
}

.contact-item .text span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.contact-item .text strong {
    font-size: 1.1rem;
    color: white;
}

.hover-scale {
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.03);
    border-color: rgba(59, 130, 246, 0.5);
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 60px 0 30px;
    background: rgba(15, 23, 42, 0.5);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-logo {
    max-width: 300px;
}

.footer-logo .logo {
    display: inline-block;
    margin-bottom: 16px;
}

.footer-links h4 {
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding-top: 30px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Scroll Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .cmms-layout {
        grid-template-columns: 1fr;
        padding: 40px 20px;
    }

    .cmms-visual {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 24px 0;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 30px 20px;
    }

    .dashboard-mockup {
        transform: none;
        height: auto;
        display: block;
    }

    .dashboard-mockup:hover {
        transform: none;
    }

    .dash-nav {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        flex-direction: row;
        justify-content: space-around;
        padding: 10px;
        height: auto;
    }

    .dash-logo {
        margin-bottom: 0;
        width: 24px;
        height: 24px;
    }

    .dash-item {
        display: none;
    }

    .dash-stats {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .services,
    .cmms-section,
    .contact {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .cmms-layout {
        padding: 30px 16px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 16px;
    }
}