:root {
    /* Brand Colors */
    --deep-navy: #070730;
    --flow-pulse: #0dd8ac;
    --integral-blue: #0047e5;

    /* Neutral Colors */
    --white: #ffffff;
    --light-bg: #f4f6f9;
    --text-dark: #1a1a2e;
    --text-muted: #555b6e;

    /* Fonts */
    --font-heading: 'Canela Text', serif;
    --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;

    --transition: all 0.3s ease;
}

@font-face {
    font-family: 'Canela Text';
    src: url('../fonts/CanelaText-Regular-Trial.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Canela Text';
    src: url('../fonts/CanelaText-Bold-Trial.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeueRoman.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeueMedium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Helvetica Neue';
    src: url('../fonts/HelveticaNeueBold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--deep-navy);
    font-weight: normal;
}

a {
    text-decoration: none;
    color: var(--integral-blue);
    transition: var(--transition);
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Utilities */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.btn-primary {
    background-color: var(--integral-blue);
    color: var(--white);
    border: 2px solid var(--integral-blue);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--integral-blue);
}

.btn-secondary {
    background-color: var(--flow-pulse);
    color: var(--deep-navy);
    border: 2px solid var(--flow-pulse);
}

.btn-secondary:hover {
    background-color: transparent;
    color: var(--flow-pulse);
}

.btn-ghost {
    background-color: transparent;
    color: var(--integral-blue);
    border: 2px solid var(--integral-blue);
}

.btn-ghost:hover {
    background-color: rgba(7, 7, 48, 0.05);
}

.btn-glass {
    background: rgba(0, 71, 229, 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: var(--deep-navy);
    border: 2px solid transparent;
}

.btn-glass:hover {
    background: rgba(0, 71, 229, 0.2);
    color: var(--integral-blue);
}

header.scrolled .btn-glass {
    background-color: var(--integral-blue);
    color: var(--white);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

header.scrolled .btn-glass:hover {
    background-color: transparent;
    color: var(--integral-blue);
    border: 2px solid var(--integral-blue);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

section {
    padding: 5rem 0;
}

.light-bg {
    background-color: var(--light-bg);
}

/* Header */
header {
    background-color: transparent;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

header.scrolled {
    background-color: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

.nav-logo-svg {
    height: 45px;
    color: var(--integral-blue);
    transition: color 0.4s ease;
}

header.scrolled .nav-logo-svg {
    color: var(--integral-blue);
}

.nav-wrapper {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
    background: rgba(0, 71, 229, 0.1);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 40px;
    padding: 12px 30px;
    border: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

header.scrolled .nav-links {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-color: transparent;
    padding: 12px 0;
    box-shadow: none;
}

.nav-links a {
    color: var(--deep-navy);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
}

header.scrolled .nav-links a {
    color: var(--deep-navy);
}

.nav-links a:hover {
    color: var(--integral-blue);
}

header.scrolled .nav-links a:hover {
    color: var(--integral-blue);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--deep-navy);
    cursor: pointer;
}

/* Hero Section */
#hero {
    background-color: #FFFFFF;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/office_screens_bg.png') center/cover no-repeat;
    opacity: 0.8;
    z-index: 0;
}

#hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 1) 40%, rgba(255, 255, 255, 0) 70%);
    z-index: 1;
}

.hero-content {
    display: block;
    text-align: left;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text {
    max-width: 750px;
    margin: 0;
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--deep-navy);
}

.hero-text p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* About Section */
#about {
    min-height: calc(100vh - 100px);
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-images-mosaic {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    grid-template-rows: 280px 280px;
    gap: 20px;
    align-items: stretch;
}

.mosaic-img {
    overflow: hidden;
    transform: skewX(-15deg);
    border-radius: 60px 0 60px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mosaic-img img {
    width: 140%;
    height: 100%;
    object-fit: cover;
    transform: skewX(15deg);
    margin-left: -20%;
}

.img-2 {
    grid-column: 2;
    grid-row: 1;
}

.img-3 {
    grid-column: 1;
    grid-row: 2;
    justify-self: end;
    width: 90%;
}

.experience-badge {
    grid-column: 2;
    grid-row: 2;
    justify-self: center;
    align-self: center;
    text-align: center;
}

.experience-badge h3 {
    font-size: 3.5rem;
    color: var(--deep-navy);
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.experience-badge p {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 0;
}

.hollow-text {
    color: transparent;
    -webkit-text-stroke: 1px var(--deep-navy);
    font-weight: normal;
}

.about-list {
    list-style: none;
    margin: 1rem 0;
    padding: 0;
}

.about-list li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    color: var(--deep-navy);
}

.about-list li i {
    color: var(--deep-navy);
    margin-right: 12px;
    font-size: 1.2rem;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.about-image img {
    width: 100%;
    border-radius: 20px;
}

/* Expandable Services Grid */
.expandable-services-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 850px;
    margin: 0 auto;
}

.expandable-service-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.expandable-service-card:hover {
    transform: translateY(-5px);
    border-color: var(--flow-pulse);
    box-shadow: 0 10px 30px rgba(0, 71, 229, 0.08);
}

.expandable-service-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    color: var(--deep-navy);
}

.service-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-family: var(--font-body);
}

.service-content-normal {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    transition: opacity 0.3s ease;
}

.service-content-expanded {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1.5rem;
}

.service-content-expanded p {
    margin-bottom: 1rem;
}

.service-content-expanded p:last-child {
    margin-bottom: 0;
}

.expand-indicator {
    transition: var(--transition);
}

.expandable-service-card:hover .expand-indicator {
    color: var(--flow-pulse) !important;
}

.expandable-service-card.expanding-active {
    position: fixed;
    z-index: 2001;
    cursor: default;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3) !important;
}

.expandable-service-card.expanding-active:hover {
    transform: none;
    border-color: rgba(0, 0, 0, 0.05);
}

.expandable-service-card.expanded-content-visible .service-content-normal {
    display: none;
}

.expandable-service-card.expanded-content-visible .service-content-expanded {
    display: block;
    height: auto !important;
}

.expandable-service-card.expanded-content-fade-in .service-content-expanded {
    opacity: 1;
}

.expandable-service-card.expanded-content-visible .expand-indicator {
    display: none !important;
}

.card-placeholder {
    visibility: hidden;
    pointer-events: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

.card-close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 10;
}

.expandable-service-card.expanded-content-visible .card-close-btn {
    opacity: 1;
    visibility: visible;
}

.card-close-btn:hover {
    color: var(--integral-blue);
}

.modal-backdrop-only {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 7, 48, 0.8);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(5px);
}

.modal-backdrop-only.active {
    opacity: 1;
    visibility: visible;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fun Facts Section */
#fun-facts {
    background-color: var(--deep-navy);
    color: var(--white);
    text-align: center;
}

#fun-facts h2 {
    color: var(--white);
}

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.fact-item h3 {
    font-size: 3.5rem;
    color: var(--flow-pulse);
    margin-bottom: 0.5rem;
}

.fact-item p {
    font-size: 1.1rem;
    font-weight: 500;
}

/* Process Grid Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.process-step {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: left;
    position: relative;
    border-top: 4px solid var(--integral-blue);
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 2rem;
    background: var(--flow-pulse);
    color: var(--deep-navy);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(13, 216, 172, 0.3);
}

.process-step h3 {
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    font-size: 1.4rem;
}

.process-step p {
    color: var(--text-muted);
}

/* Software Logo Grid */
.software-logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 3rem;
}

.software-logo-item {
    background: var(--white);
    padding: 0.8rem 1.2rem;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.software-logo-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 71, 229, 0.2);
}

.software-logo-item i {
    font-size: 1.2rem;
    color: var(--integral-blue);
}

.software-logo-item span {
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* Testimonials Section */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid var(--integral-blue);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.testimonial-author {
    font-weight: bold;
    color: var(--deep-navy);
}

.testimonial-role {
    font-size: 0.9rem;
    color: var(--integral-blue);
}

/* Contact Section */
#contact {
    background-color: var(--deep-navy);
    color: var(--white);
}

#contact h2 {
    color: var(--white);
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    color: var(--text-dark);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.form-control:focus {
    outline: none;
    border-color: var(--integral-blue);
}

/* Footer */
footer {
    background-color: #04041a;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 2rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    #hero {
        padding-top: 250px !important;
    }

    #hero::before {
        background-image: url('../images/mobile_hero_bg.png') !important;
        background-position: center top !important;
    }

    #hero::after {
        background: linear-gradient(to top, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.95) 55%, rgba(255, 255, 255, 0.8) 60%, rgba(255, 255, 255, 0) 75%) !important;
    }

    .header-cta {
        display: none !important;
    }

    .nav-wrapper {
        display: none;
    }

    .mobile-menu-btn {
        display: none !important;
    }

    .about-grid,
    .expandable-services-grid,
    .process-grid,
    .facts-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .hero-text h1 {
        font-size: 2.8rem !important;
        line-height: 1.15 !important;
    }

    .hero-text p {
        font-size: 1.15rem !important;
        margin-bottom: 2rem !important;
    }

    .hero-text>div {
        display: flex;
        gap: 10px;
    }

    .hero-text>div>.btn {
        margin-left: 0 !important;
        padding: 12px 20px !important;
        font-size: 1.05rem !important;
        flex: 1;
        white-space: nowrap;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}