@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* OKLCH Color Palette */
    --background: oklch(0.99 0.01 245);
    --foreground: oklch(0.15 0.05 245);
    --card: oklch(1 0 0);
    --card-foreground: oklch(0.15 0.05 245);
    --primary: oklch(0.55 0.18 240);
    --primary-foreground: oklch(0.98 0.01 245);
    --secondary: oklch(0.7 0.12 200);
    --secondary-foreground: oklch(0.15 0.05 245);
    --muted: oklch(0.95 0.02 245);
    --muted-foreground: oklch(0.5 0.05 245);
    --accent: oklch(0.6 0.15 190);
    --accent-foreground: oklch(0.98 0.01 245);
    --border: oklch(0.9 0.03 245);
    --input: oklch(0.9 0.03 245);
    --ring: oklch(0.55 0.18 240);
    --radius: 0.75rem;

    /* Gradients */
    --bg-blue-gradient: linear-gradient(135deg, oklch(0.55 0.18 240) 0%, oklch(0.65 0.15 200) 100%);
    --bg-cyan-teal-gradient: linear-gradient(135deg, oklch(0.7 0.12 200) 0%, oklch(0.6 0.15 190) 100%);
    --text-gradient: linear-gradient(to right, oklch(0.55 0.18 240), oklch(0.7 0.12 200), oklch(0.6 0.15 190));
}

.dark {
    --background: oklch(0.15 0.05 245);
    --foreground: oklch(0.98 0.01 245);
    --card: oklch(0.18 0.06 245);
    --card-foreground: oklch(0.98 0.01 245);
    --primary: oklch(0.65 0.15 240);
    --primary-foreground: oklch(0.15 0.05 245);
    --secondary: oklch(0.7 0.12 200);
    --secondary-foreground: oklch(0.15 0.05 245);
    --muted: oklch(0.269 0 0);
    --muted-foreground: oklch(0.708 0 0);
    --accent: oklch(0.6 0.15 190);
    --accent-foreground: oklch(0.98 0.01 245);
    --border: oklch(0.269 0 0);
    --input: oklch(0.269 0 0);
}

/* Base Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font-family: inherit;
    font-size: 100%;
}

/* Utilities */
.container {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 1rem;
    padding-left: 1rem;
    max-width: 1280px;
}

.text-gradient {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.text-primary {
    color: var(--primary);
}

.text-muted {
    color: var(--muted-foreground);
}

.bg-gradient {
    background: var(--bg-blue-gradient);
}

/* Header and Logo styles moved to components.css */


/* Button and Mobile Utility styles moved to components.css */


/* Sections */
.section-py {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.section-hero {
    padding-top: 6rem;
    padding-bottom: 6rem;
    position: relative;
    overflow: hidden;
}

/* Hero */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -10;
    background: radial-gradient(45% 45% at 50% 50%, oklch(0.9 0.1 245) 0%, transparent 100%);
    opacity: 0.5;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.badge {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 9999px;
    border: 1px solid var(--border);
    background-color: rgba(255, 255, 255, 0.5);
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.hero-title {
    max-width: 56rem;
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
}

@media(min-width: 640px) {
    .hero-title {
        font-size: 4.5rem;
    }
}

.hero-subtitle {
    margin-top: 2rem;
    max-width: 42rem;
    font-size: 1.125rem;
    color: var(--muted-foreground);
    line-height: 1.75;
}

@media(min-width: 640px) {
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

.hero-actions {
    margin-top: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hero-image-wrapper {
    position: relative;
    margin-top: 5rem;
    width: 100%;
    max-width: 64rem;
}

.hero-card {
    border-radius: 1rem;
    border: 1px solid var(--border);
    background-color: var(--card);
    padding: 0.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.hero-img-inner {
    border-radius: 0.75rem;
    background-color: var(--muted);
    overflow: hidden;
}

/* Counter */
.counter-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media(min-width: 768px) {
    .counter-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.counter-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.2s;
}

.counter-item:hover {
    transform: scale(1.05);
}

.counter-val {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1;
}

/* About / Tabs */
.about-section {
    position: relative;
    padding-top: 6rem;
    padding-bottom: 6rem;
    overflow: hidden;
}

.bg-blob-1 {
    position: absolute;
    top: 0;
    right: 0;
    z-index: -10;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background-color: rgba(59, 130, 246, 0.05);
    /* Blue-500/5 */
    filter: blur(120px);
}

.bg-blob-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: -10;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background-color: rgba(6, 182, 212, 0.05);
    /* Cyan-500/5 */
    filter: blur(120px);
}

.about-grid {
    display: grid;
    gap: 4rem;
}

@media(min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.about-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-img-container {
    position: relative;
}

.about-img-frame {
    position: relative;
    z-index: 10;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    aspect-ratio: 4/5;
}

.floating-card {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    z-index: 20;
    display: none;
}

@media(min-width: 768px) {
    .floating-card {
        display: block;
    }
}

.stats-card {
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    padding: 2rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Tab System */
.tab-list {
    display: flex;
    width: fit-content;
    gap: 0.5rem;
    padding: 0.375rem;
    background-color: var(--muted);
    border-radius: 1rem;
    margin-bottom: 2.5rem;
}

.tab-btn {
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--muted-foreground);
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background-color: #fff;
    color: var(--primary);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

/* Services */
.services-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 5rem;
}

@media(min-width: 768px) {
    .services-header {
        flex-direction: row;
        align-items: flex-end;
    }
}

.service-grid {
    display: grid;
    gap: 2rem;
}

@media(min-width: 640px) {
    .service-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(min-width: 1024px) {
    .service-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media(min-width: 1024px) {
    .service-grid-2-col {
        grid-template-columns: 1fr 1fr;
    }
}

.service-card {
    position: relative;
    padding: 2.5rem;
    border-radius: 1.5rem;
    background: white;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 2px;
    background: linear-gradient(135deg, var(--border), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
    transition: opacity 0.4s;
}

.service-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.service-card:hover::before {
    background: var(--bg-blue-gradient);
}

.service-card .icon-box {
    width: 3.5rem;
    height: 3.5rem;
    background: var(--muted);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: all 0.4s ease;
    color: var(--foreground);
}

.service-card:hover .icon-box {
    background: var(--bg-blue-gradient);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.3);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.service-card p {
    color: var(--muted-foreground);
    line-height: 1.75;
    font-size: 1rem;
}

/* Reviews */
.reviews-section {
    background: var(--bg-blue-gradient);
    color: white;
}

.review-grid {
    display: grid;
    gap: 2rem;
}

@media(min-width: 768px) {
    .review-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.review-card {
    position: relative;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Blog */
.blog-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.blog-grid {
    display: grid;
    gap: 2rem;
}

@media(min-width: 640px) {
    .blog-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media(min-width: 1024px) {
    .blog-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.blog-card {
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--card);
}

.blog-img-container {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.blog-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-img-container img {
    transform: scale(1.05);
}

/* CTA */
.cta-container {
    position: relative;
    overflow: hidden;
    border-radius: 2.5rem;
    background: var(--bg-blue-gradient);
    padding: 3rem;
    text-align: center;
    color: white;
}

@media(min-width: 768px) {
    .cta-container {
        padding: 5rem;
    }
}

.cta-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: url('abstract-grid-pattern.png');
    opacity: 0.1;
}

/* Contact */
.contact-section {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background-color: rgba(243, 244, 246, 0.3);
}

.contact-grid {
    display: grid;
    gap: 4rem;
}

@media(min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.contact-form-card {
    border-radius: 1.5rem;
    border: 1px solid var(--border);
    background: white;
    padding: 2rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

@media(min-width: 768px) {
    .contact-form-card {
        padding: 3rem;
    }
}

.form-group-grid {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media(min-width: 640px) {
    .form-group-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.form-field {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Generic form input moved to components.css */


/* Footer styles moved to components.css */


/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(0.5rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.icon-box {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Navigation Extensions */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    min-width: 500px;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.dropdown-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dropdown-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted-foreground);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.dropdown-item {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.2s;
}

.dropdown-item:hover {
    color: var(--primary);
}