/* 
   Axentra Inc - Global Styles
   Design System: Monday.com Inspired (Vibrant, Rounded, Poppins)
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Monday.com Vibes */
    --color-primary: #6161FF;
    /* "Blurple" - Vibrant Purple-Blue */
    --color-primary-hover: #4B4BCC;
    --color-secondary: #00C875;
    /* Success Green */
    --color-accent: #FDAB3D;
    /* Warning/Action Yellow */
    --color-danger: #E2445C;
    /* Error/Danger Red */

    --color-bg: #FFFFFF;
    /* Pure White */
    --color-bg-subtle: #F6F7FB;
    /* Very light grey/blue tint */
    --color-surface: #FFFFFF;

    --color-text-head: #323338;
    /* Almost Black */
    --color-text-body: #676879;
    /* Medium Grey */
    --color-border: #D0D4E4;
    /* Light UI Grey */

    /* Typography */
    --font-primary: 'Poppins', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Shapes */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 50px;

    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    /* Soft, diffused */
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --transition-base: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-text-body);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--color-text-head);
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
    /* Poppins semi-bold */
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.5px;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    font-weight: 400;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--spacing-lg) 0;
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.flex {
    display: flex;
}

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

.justify-center {
    justify-content: center;
}

/* Added */
.justify-between {
    justify-content: space-between;
}

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

/* Added */
.gap-sm {
    gap: var(--spacing-sm);
}

.gap-md {
    gap: var(--spacing-md);
}

/* Components */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-pill);
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    font-size: 1rem;
    transition: var(--transition-base);
}

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

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(97, 97, 255, 0.3);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-border);
    color: var(--color-text-head);
}

.btn-outline:hover {
    border-color: var(--color-text-head);
    background-color: transparent;
    transform: translateY(-2px);
}

/* Header & Nav */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    /* Cleaner looking without border usually, adding shadow on scroll is better but simple for now */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.navbar {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

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

.logo-text-group {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-title {
    color: var(--color-text-head);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.logo-tagline {
    color: var(--color-text-body);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    /* Ensure alignment */
}

.nav-links a {
    font-weight: 500;
    color: var(--color-text-head);
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
    /* Increase hit area */
}

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

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--color-surface);
    min-width: 200px;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0;
    z-index: 1000;
    top: 100%;
    /* Position below the parent */
    left: 0;
    border: 1px solid var(--color-border);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}

.dropdown-content a {
    color: var(--color-text-head);
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    white-space: nowrap;
    /* Prevent wrapping */
}

.dropdown-content a:hover {
    background-color: var(--color-bg-subtle);
    color: var(--color-primary);
}

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

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

/* Card */
.card {
    background-color: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
    /* Subtle hint */
}

/* Service Card Image Alignment */
.service-img-container {
    height: 240px;
    width: 100%;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.service-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.3s ease;
}

.card:hover .service-img-container img {
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: var(--color-bg-subtle);
    color: var(--color-text-head);
    padding: var(--spacing-lg) 0;
    margin-top: auto;
}

footer h4 {
    color: var(--color-text-head);
    margin-bottom: var(--spacing-sm);
}

footer a:hover {
    color: var(--color-primary);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.copyright {
    text-align: center;
    border-top: 1px solid #E5E5E5;
    padding-top: var(--spacing-md);
    font-size: 0.875rem;
    color: var(--color-text-body);
}

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

    h2 {
        font-size: 2rem;
    }

    .navbar {
        height: auto;
        padding: 1rem 0;
        flex-direction: column;
    }

    .nav-links {
        margin-top: 1.5rem;
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .section {
        padding: 3rem 0;
    }

    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
}