/* =========================================================================
   Variables & Theme
   ========================================================================= */
:root {
    --electric-blue: #0099ff;
    --electric-blue-hover: #0055c5;
    --pastel-green: #e6f9ec;
    --pastel-green-hover: #cdf2db;
    --pure-white: #ffffff;
    --almost-white: #f8f9fa;
    --text-black: #1a1a1b;
    --text-meta: #4f5b66;
    --border-color: #e1e4e8;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.08);
    --shadow-primary: 0 10px 25px rgba(0, 68, 255, 0.25);

    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================================
   Reset & Base Styles
   ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--text-black);
    background-color: var(--pure-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 800;
}

p {
    color: var(--text-meta);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utils */
.section-title {
    font-size: clamp(2rem, 5vw, 2.75rem);
    text-align: center;
    margin-bottom: 3.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--electric-blue);
    border-radius: 2px;
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 4px;
    /* Industrial robust feel (not rounded) */
    transition: var(--transition-smooth);
    cursor: pointer;
    font-size: 0.95rem;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--electric-blue);
    color: var(--pure-white);
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background-color: var(--electric-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 68, 255, 0.35);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--pure-white);
    color: var(--pure-white);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background-color: var(--pure-white);
    color: var(--text-black);
    transform: translateY(-2px);
}

.large {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.full-width {
    width: 100%;
}

.glow-effect {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    animation: glow-sweep 3s infinite;
    z-index: -1;
}

@keyframes glow-sweep {
    0% {
        left: -100%;
    }

    50% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

/* =========================================================================
   Navigation
   ========================================================================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    padding-top: 5px;
    padding-bottom: 5px;
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.navbar.scrolled .nav-container {
    padding: 0.8rem 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.logo span {
    font-weight: 300;
    color: var(--electric-blue);
}

.logo img {
    max-height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn-primary) {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-black);
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-links a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--electric-blue);
    transition: var(--transition-fast);
}

.nav-links a:not(.btn-primary):hover::after {
    width: 100%;
}

/* =========================================================================
   Hero Section
   ========================================================================= */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 2rem;
    background-image: url('assets/hero.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, rgba(5, 10, 20, 0.5) 0%, rgb(221 221 221 / 48%) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    color: var(--pure-white);
    margin-top: 4rem;
    /* offset for nav */
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.hero h1 span {
    color: #4da6ff;
    display: inline-block;
    position: relative;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--electric-blue);
    z-index: -1;
    opacity: 0.8;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: #e2e8f0;
    margin-bottom: 2.5rem;
    margin-inline: auto;
    max-width: 700px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.blog-hero {
    height: 60vh;
    min-height: 400px;
}

.blog-hero .hero-content {
    margin-top: 0;
}

.blog-hero h1 {
    position: relative;
    padding-bottom: 1.5rem;
}

.blog-hero h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--electric-blue);
    border-radius: 2px;
}

.blog-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-black);
    font-size: 1.8rem;
}

.blog-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.8rem;
    color: #2c3e50;
    font-size: 1.4rem;
}

.blog-content p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.blog-content a:hover {
    color: var(--electric-blue-hover);
    text-decoration: underline;
}

.blog-content a.btn-primary {
    color: var(--pure-white);
}

.blog-content a.btn-primary:hover {
    color: var(--pure-white);
    text-decoration: none;
}

.help-title {
    position: relative;
    padding-top: 1.5rem;
}

.help-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--electric-blue);
    border-radius: 2px;
}

/* =========================================================================
   Partners
   ========================================================================= */
.partners {
    background: var(--pure-white);
    padding: 3rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.partners-container p {
    text-align: center;
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #8892b0;
    margin-bottom: 1.5rem;
}

.logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: var(--transition-smooth);
}

.logos:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.logos img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* =========================================================================
   Services Grid
   ========================================================================= */
.services {
    padding: 7rem 2rem;
    max-width: 1250px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--pure-white);
    border: 1px solid var(--border-color);
    padding: 3rem 2.5rem;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-top-color: var(--electric-blue);
}

.service-card.highlight {
    background: var(--pastel-green);
    border-top-color: #27ae60;
    border: none;
    /* remove uniform border to stand out cleanly */
    border-top: 4px solid #27ae60;
}

.service-card.highlight:hover {
    box-shadow: 0 20px 40px rgba(39, 174, 96, 0.15);
}

.service-media {
    margin: -3rem -2.5rem 2rem -2.5rem;
    /* pull image to edges */
    height: 200px;
    overflow: hidden;
    position: relative;
    border-radius: 4px 4px 0 0;
}

.service-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card:hover .service-media img {
    transform: scale(1.05);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-card p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.8rem;
    background: var(--almost-white);
    color: var(--text-black);
    border-radius: 50px;
}

.highlight .tag {
    background: rgba(39, 174, 96, 0.1);
    color: #1e8449;
}

.service-card.full-width-card {
    grid-column: 1 / -1;
}

/* =========================================================================
   Audit Section (Split)
   ========================================================================= */
.audit-section {
    background: #ebf5fb;
    position: relative;
    padding: 8rem 2rem;
    overflow: hidden;
}

.audit-content {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .audit-content {
        flex-direction: row;
        align-items: center;
        gap: 5rem;
    }
}

.audit-text {
    flex: 1;
    margin-bottom: 3rem;
}

@media (min-width: 900px) {
    .audit-text {
        margin-bottom: 0;
    }
}

.audit-text h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1.5rem;
}

.audit-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--electric-blue);
    border-radius: 2px;
}

.audit-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.audit-list {
    list-style: none;
    margin: 2rem 0;
}

.audit-list li {
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: var(--electric-blue);
}

.audit-image {
    flex: 1.1;
    position: relative;
}

.audit-image img {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    display: block;
}

/* =========================================================================
   Software Section
   ========================================================================= */
.software-section {
    background: var(--electric-blue);
    color: var(--pure-white);
    padding: 8rem 2rem;
    position: relative;
    overflow: hidden;
}

.software-content {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 900px) {
    .software-content {
        flex-direction: row;
        align-items: center;
        gap: 5rem;
    }
}

.software-text {
    flex: 1;
    margin-bottom: 3rem;
}

@media (min-width: 900px) {
    .software-text {
        margin-bottom: 0;
    }
}

.software-text h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1.5rem;
    color: var(--pure-white);
}

.software-text h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--pure-white);
    border-radius: 2px;
}

.software-text p {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.software-image {
    flex: 1.1;
    position: relative;
}

.software-image img {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: block;
}

/* =========================================================================
   Contact Section
   ========================================================================= */
.contact {
    background: var(--almost-white);
    padding: 8rem 2rem;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 4rem;
    margin-top: -2rem;
}

.contact-form {
    background: var(--pure-white);
    padding: 3.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-row {
    display: flex;
    gap: 1.5rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-black);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--almost-white);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--electric-blue);
    background: var(--pure-white);
    box-shadow: 0 0 0 3px rgba(0, 68, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    margin-top: 1rem;
    height: 56px;
    font-size: 1.1rem;
}

/* =========================================================================
   Footer
   ========================================================================= */
footer {
    background: #050608;
    color: #718096;
    padding: 5rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--pure-white);
    margin-bottom: 1rem;
}

.footer-logo span {
    font-weight: 300;
    color: var(--electric-blue);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--pure-white);
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
}

/* =========================================================================
   Floating Action Button
   ========================================================================= */
.fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--electric-blue);
    color: var(--pure-white);
    border-radius: 50px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0;
    /* collapse text initially */
    box-shadow: 0 8px 25px rgba(0, 68, 255, 0.4);
    z-index: 999;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* bouncy */
    transform-origin: right center;
}

.fab:hover,
.fab:focus {
    transform: translateY(-5px);
    background: var(--electric-blue-hover);
    box-shadow: 0 12px 30px rgba(0, 68, 255, 0.5);
    gap: 0.75rem;
    /* expand gap */
    padding: 1rem 1.5rem;
}

.fab-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fab-icon svg {
    width: 100%;
    height: 100%;
}

.fab-text {
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    max-width: 0;
    transition: opacity 0.3s, max-width 0.4s;
}

.fab:hover .fab-text {
    opacity: 1;
    max-width: 200px;
}

/* =========================================================================
   Animations Utilities
   ========================================================================= */
.fade-in {
    opacity: 0;
    animation: fadeIn 1.2s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    animation-delay: 0.2s;
    transition-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
    transition-delay: 0.4s;
}

/* =========================================================================
   Responsive Adjustments
   ========================================================================= */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* simple hidden nav for mobile robustness */
    }

    .hero-buttons {
        flex-direction: column;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .contact-form {
        padding: 2rem;
    }

    .fab {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 1rem 1.25rem;
        gap: 0.75rem;
    }

    .fab-text {
        opacity: 1;
        max-width: 200px;
    }
}