:root {
    /* Brand Colors */
    --primary-color: #276C91;
    --primary-dark: #14384B;
    --secondary-color: #CC6934;
    --secondary-hover: #b85a2a;
    --accent-light: #91B0B3;
    --text-main: #071319;
    --text-light: #555;
    --bg-light: #f8f9fa;
    --white: #ffffff;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Signika:wght@400;600;700&display=swap');

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

body {
    font-family: 'Signika', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Signika', sans-serif;
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.25rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.2s;
}

a:hover {
    color: var(--secondary-color);
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 5rem 0;
}

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

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

/* Header & Navigation */
header {
    height: var(--header-height);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--primary-dark);
    font-weight: 500;
    font-size: 1.1rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Hero Section */
.hero {
    padding: 10rem 0 8rem;
    background-color: var(--primary-dark);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(39, 108, 145, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(204, 105, 52, 0.2) 0%, transparent 40%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.hero::after {
    display: none;
}

.hero h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero .tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    font-weight: 300;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2.5rem;
    flex-wrap: wrap;
}

/* Small Hero for Subpages */
.hero-small {
    padding: 8rem 0 6rem;
    background-color: var(--primary-dark);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(39, 108, 145, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(204, 105, 52, 0.2) 0%, transparent 40%);
    color: var(--white);
    text-align: center;
    margin-bottom: 0;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.hero-small h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-small .tagline {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 300;
}

/* Feature/Product Section */
.products {
    padding: 8rem 0;
    background: var(--white);
}

/* Generic Grid & Card (Restored) */
.grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 650px) {
    .card {
        flex: 0 0 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
}

@media (min-width: 950px) {
    .card {
        flex: 0 0 calc(33.333% - 1.33rem);
        max-width: calc(33.333% - 1.33rem);
    }
}

@media (min-width: 1250px) {
    .card {
        flex: 0 0 calc(25% - 1.5rem);
        max-width: calc(25% - 1.5rem);
    }
}

.card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.product-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 0;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    overflow: hidden;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image-placeholder {
    height: 200px;
    background: linear-gradient(135deg, #f0f4f6 0%, #e1e8ec 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-content {
    padding: 2rem;
}

.product-content h3 {
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

/* Browser Window Mockup */
.browser-window {
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin: 3rem 0;
    border: 1px solid #e1e4e8;
}

.browser-header {
    background: #f1f3f5;
    padding: clamp(0.4rem, 1.5vw, 0.75rem) clamp(0.6rem, 2vw, 1rem);
    display: flex;
    gap: clamp(5px, 1vw, 8px);
    border-bottom: 1px solid #e1e4e8;
}

.dot {
    width: clamp(6px, 1.5vw, 12px);
    height: clamp(6px, 1.5vw, 12px);
    border-radius: 50%;
    background-color: #d1d5db;
}

.dot:nth-child(1) {
    background-color: #ff5f56;
}

.dot:nth-child(2) {
    background-color: #ffbd2e;
}

.dot:nth-child(3) {
    background-color: #27c93f;
}

.main-screenshot-placeholder {
    height: 450px;
    background: linear-gradient(135deg, #f0f4f6 0%, #e1e8ec 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-screenshot {
    width: 100%;
    height: auto;
    display: block;
}

/* Modules Grid */
.modules-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    text-align: center;
}

.module-item {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 600px) {
    .module-item {
        flex: 0 0 calc(50% - 1.5rem);
        max-width: calc(50% - 1.5rem);
    }
}

@media (min-width: 900px) {
    .module-item {
        flex: 0 0 calc(33.333% - 2rem);
        max-width: calc(33.333% - 2rem);
    }
}

.module-item h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.module-item p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Values Section (Home Page) */
.values-section {
    background-color: var(--bg-light);
    padding: 8rem 0;
    position: relative;
}

.values-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
}

.value-item {
    flex: 0 0 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

@media (min-width: 700px) {
    .value-item {
        flex: 0 0 calc(50% - 2rem);
        max-width: calc(50% - 2rem);
    }
}

@media (min-width: 1000px) {
    .value-item {
        flex: 0 0 calc(33.333% - 2.67rem);
        max-width: calc(33.333% - 2.67rem);
    }
}

.icon-box {
    width: 64px;
    height: 64px;
    background: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    color: var(--secondary-color);
}

.icon-box svg {
    width: 32px;
    height: 32px;
    stroke-width: 2;
}

.value-item h3 {
    margin-bottom: 0.5rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    /* Start hidden */
}

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

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

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

/* About Page Specifics */
.values-container-wide {
    max-width: 1800px;
}

.values-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.value-card {
    flex: 0 0 100%;
    max-width: 100%;
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    text-align: left;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.value-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 0.5rem;
}

.value-card ul {
    list-style-type: none;
    padding-left: 0;
}

.value-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.value-card li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

@media (min-width: 850px) {
    .value-card {
        flex: 0 0 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
}

@media (min-width: 1250px) {
    .value-card {
        flex: 0 0 calc(33.333% - 1.4rem);
        max-width: calc(33.333% - 1.4rem);
    }
}

@media (min-width: 1700px) {
    .value-card {
        flex: 0 0 calc(20% - 1.7rem);
        max-width: calc(20% - 1.7rem);
    }
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    text-align: center;
}

.team-member {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 500px) {
    .team-member {
        flex: 0 0 calc(50% - 1.5rem);
        max-width: calc(50% - 1.5rem);
    }
}

@media (min-width: 800px) {
    .team-member {
        flex: 0 0 calc(33.333% - 2rem);
        max-width: calc(33.333% - 2rem);
    }
}

@media (min-width: 1100px) {
    .team-member {
        flex: 0 0 calc(20% - 2.4rem);
        max-width: calc(20% - 2.4rem);
    }
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--primary-color);
    background-color: var(--bg-light);
}

/* Contact Page */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-box {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem;
    border-radius: var(--radius-md);
}

.contact-info-box h2 {
    color: var(--white);
}

.contact-info-box a {
    color: var(--accent-light);
}

.contact-info-box a:hover {
    color: var(--white);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(39, 108, 145, 0.1);
}

.styled-form {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border-top: 4px solid var(--secondary-color);
}

/* Footer */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links a {
    color: var(--accent-light);
    margin-left: 2rem;
}

.footer-links a:hover {
    color: var(--white);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: var(--shadow-md);
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        width: 100%;
    }

    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
    }

    .mobile-menu-btn .bar {
        width: 100%;
        height: 3px;
        background-color: var(--primary-dark);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 4rem 0;
    }
}

/* Mobile Menu Button (Hidden on Desktop) */
.mobile-menu-btn {
    display: none;
}

.future-outlook {
    margin-top: 5rem;
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.future-outlook h4 {
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.future-outlook p {
    color: var(--text-light);
    font-size: 1.05rem;
}