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

:root {
    /* Dynamic Modern Palette */
    --color-bg: #ffffff;
    --color-text: #1a1a1a;
    --color-primary: #111111;
    /* Almost Black */
    --color-accent: #2563EB;
    /* Vibrant Royal Blue */
    --color-accent-hover: #1d4ed8;
    --color-surface: #f8fafc;
    --color-border: #e2e8f0;

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

    /* Fonts */
    --font-main: 'Outfit', sans-serif;

    /* Animation */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    color: var(--color-primary);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 2rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

img {
    max-width: 100%;
    border-radius: 12px;
    display: block;
}

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

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

.py-xl {
    padding-top: var(--spacing-xl);
    padding-bottom: var(--spacing-xl);
}

.mb-lg {
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    /* Pill shape for modern feel */
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
}

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

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

/* Header */
header {
    padding: 2rem 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 10;
    background: transparent;
    /* Overlay style */
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    bottom: -4px;
    left: 0;
    height: 2px;
    background-color: var(--color-accent);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    right: -10%;
    top: -10%;
    width: 50%;
    height: 80%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    z-index: -1;
    filter: blur(60px);
}

.hero p {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 600px;
    margin-bottom: 3rem;
}

/* Services */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 3rem;
    background: var(--color-surface);
    border-radius: 20px;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.service-card:hover {
    background: #fff;
    border-color: var(--color-border);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
    transform: translateY(-8px);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    padding: 1rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Footer */
footer {
    background: #0f172a;
    color: #94a3b8;
    padding: 6rem 0 2rem;
}

/* Footer Layout */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.footer-content h4 {
    color: #fff;
    margin-bottom: 1.2rem;
    margin-top: 0;
    /* Reset top margin for clean alignments */
}

/* Remove bullets */
.footer-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-content ul li {
    margin-bottom: 0.8rem;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    margin-top: 4rem;
    padding-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Forms */
input,
textarea,
select {
    width: 100%;
    padding: 1rem;
    background: var(--color-surface);
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: var(--font-main);
    transition: var(--transition-smooth);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    background: #fff;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

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

    .nav-links {
        display: none;
    }

    /* Simplified for mobile */
    .hero {
        text-align: left;
    }
}

/* Carousel Styles */
.carousel {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-btn.prev {
    left: 1rem;
}

.carousel-btn.next {
    right: 1rem;
}

/* Feature List */
.feature-list {
    list-style: none !important;
}

/* Dark Hero Pages */
.hero-dark {
    padding: 6rem 0;
    min-height: 50vh;
    display: flex;
    align-items: center;
}

/* ... rest of hero-dark styles ... */
.hero-dark h1 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.hero-dark p {
    font-size: 4rem;
    line-height: 1.1;
    color: #fff;
    max-width: 1000px;
    font-weight: 600;
    margin-bottom: 0;
}

/* Mobile responsive for large text */
@media (max-width: 768px) {
    .hero-dark p {
        font-size: 2.5rem;
    }
}

/* Article Page Spacing */
.article-wrapper {
    padding-top: 180px !important;
    padding-bottom: 6rem;
}

@media (max-width: 768px) {
    .article-wrapper {
        padding-top: 140px !important;
    }
}

/* Fix for ABSOLUTE HEADER conflict */
header.article-header {
    position: relative !important;
    top: auto;
    width: auto;
    background: transparent;
    padding: 0 0 2rem 0;
    /* Adjust padding as wrapper handles top spacing */
}