@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --color-bg: #0f172a;
    /* Deep Navy/Slate - richer dark background */
    --color-surface: #1e293b;
    --color-primary-dark: #375171;
    --color-primary: #386BA6;
    --color-accent-1: #4794C4;
    --color-accent-2: #8FB8DE;
    --color-highlight: #F4F0C4;

    --color-text-main: #f1f5f9;
    --color-text-body: #94a3b8;
    --color-white: #ffffff;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(56, 107, 166, 0.25);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.7;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(56, 107, 166, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(71, 148, 196, 0.08) 0%, transparent 25%);
    background-attachment: fixed;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 4.5rem;
    font-weight: 800;
}

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

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

p {
    margin-bottom: 1.5rem;
    color: var(--color-text-body);
    font-size: 1.125rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Utilities */
.text-center {
    text-align: center;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight-text {
    color: var(--color-highlight);
    position: relative;
    display: inline-block;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    /* Thickness of highlight */
    background: rgba(244, 240, 196, 0.15);
    /* Low opacity highlight color */
    z-index: -1;
    transform: rotate(-1deg);
}

.section-padding {
    padding: 120px 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.02em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent-1));
    color: var(--color-white);
    box-shadow: 0 10px 25px -10px rgba(56, 107, 166, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 35px -10px rgba(56, 107, 166, 0.6);
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-white);
    transform: translateY(-3px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.85);
    /* Matches bg color with opacity */
    backdrop-filter: blur(16px);
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    z-index: 1002;
    position: relative;
    flex: 0 0 auto;
    margin-right: auto;
    display: flex;
    align-items: center;
}

.logo img {
    height: 34px;
    /* Slightly smaller for better proportion */
    width: auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(56, 107, 166, 0.3));
    /* Subtle stylized glow */
}

.logo:hover img {
    transform: scale(1.08);
    filter: drop-shadow(0 0 12px rgba(56, 107, 166, 0.6));
    /* impactful hover */
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--color-text-body);
    position: relative;
}

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

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

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

.nav-links .btn-nav {
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: var(--color-white);
    transition: all 0.3s ease;
}

.nav-links .btn-nav::after {
    display: none;
}

/* Remove underline for button */
.nav-links .btn-nav:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background-color: var(--color-white);
    transition: 0.3s;
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

/* Staggered delays for child elements if needed, or manual classes */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

/* Enhanced Hover Effects */
.hover-float:hover {
    transform: translateY(-5px);
}

/* Page Header Structure (Common for subpages) */
.page-header {
    padding: 180px 0 60px;
    /* Increased top padding to clear fixed navbar */
    text-align: center;
    background: linear-gradient(180deg, rgba(82, 107, 166, 0.15) 0%, transparent 100%);
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 16px;
    background: linear-gradient(to right, #fff, var(--color-accent-2));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    margin-bottom: 24px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

/* Visual Elements on Hero */
.hero-visual {
    position: relative;
}

.hero-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 40px;
    transform: rotate(-3deg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--color-accent-1);
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    opacity: 0.6;
}

/* Services Grid (Home) & Page */
.services-grid-new {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-item {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, background 0.3s ease;
}

.service-item:hover {
    transform: translateY(-10px);
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(56, 107, 166, 0.2), rgba(71, 148, 196, 0.1));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--color-accent-1);
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

/* Process Section */
.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 50px;
    right: 50px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--color-surface);
    border: 2px solid var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto 20px;
}

/* Contact Page Styles */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-details {
    background: var(--color-primary-dark);
    /* Brand Blue */
    padding: 60px;
    color: var(--color-white);
}

.contact-form-wrapper {
    padding: 60px;
}

.form-input {
    width: 100%;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    color: var(--color-white);
    margin-bottom: 20px;
    font-family: inherit;
    font-size: 1rem;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-accent-1);
    background: rgba(255, 255, 255, 0.06);
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #0b111a;
    padding: 80px 0 40px;
    margin-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    font-size: 0.95rem;
    margin-top: 20px;
    max-width: 300px;
}

.footer-col h4 {
    margin-bottom: 24px;
    color: var(--color-white);
}

.footer-col a {
    display: block;
    margin-bottom: 12px;
    color: var(--color-text-body);
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--color-accent-1);
    transform: translateX(5px);
}

.copyright {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-visual {
        display: none;
    }

    .process-steps {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .process-steps::before {
        display: none;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    h1 {
        font-size: 3.5rem;
    }

    .nav-links {
        display: none;
        /* Mobile menu logic remains same as before */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: var(--color-bg);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 30px;
    }

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

    .hamburger {
        display: flex;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .section-padding {
        padding: 80px 0;
    }
}

/* Navigation Updates for Centered Layout */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    /* Removed padding from container if it exists, relies on navbar padding */
}

/* Logo stays on the left */
.logo {
    z-index: 1002;
    position: relative;
    flex: 0 0 auto;
    margin-right: auto;
    /* Push center away if flex space approach fails, but absolute is safer for true center */
}

/* Centered Navigation Links */
.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 30px;
    align-items: center;
    margin: 0;
    /* Override previous */
}

/* Right Side Actions (Social + Contact) */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 0 0 auto;
    margin-left: auto;
}

.social-icon-nav {
    color: var(--color-white);
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.social-icon-nav:hover {
    color: var(--color-accent-1);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Mobile Responsive Adjustments */
@media (max-width: 1024px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
        background: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        width: 100%;
        height: 100vh;
        z-index: 999;
        display: none;
        padding: 40px;
    }

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

    .nav-actions {
        display: none;
        /* Hide desktop actions on mobile */
    }
}

/* Pricing Section Styles */
.pricing-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-15px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    background: rgba(30, 41, 59, 0.8);
}

.pricing-card.featured {
    border: 1px solid var(--color-primary);
    background: linear-gradient(180deg, rgba(56, 107, 166, 0.15) 0%, rgba(30, 41, 59, 0.6) 100%);
    transform: scale(1.05);
    z-index: 2;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-15px);
}

.pricing-header {
    padding: 40px 30px 20px;
    text-align: center;
    border-bottom: 1px solid rgb(255 255 255 / 5%);
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-accent-2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-white);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    line-height: 1;
}

.plan-currency {
    font-size: 1.5rem;
    margin-top: 5px;
    margin-right: 4px;
    font-weight: 600;
    opacity: 0.8;
}

.plan-period {
    font-size: 0.9rem;
    color: var(--color-text-body);
    font-weight: 400;
    margin-top: 10px;
    display: block;
}

.pricing-features {
    padding: 30px;
    flex-grow: 1;
}

.pricing-features ul li {
    margin-bottom: 16px;
    color: var(--color-text-main);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
}

.pricing-features ul li svg {
    color: var(--color-accent-1);
    flex-shrink: 0;
    margin-top: 4px;
}

.pricing-footer {
    padding: 0 30px 40px;
    text-align: center;
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -32px;
    background: var(--color-primary);
    color: white;
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: 700;
    transform: rotate(45deg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 60px;
    align-items: center;
}

/* Ensure no overlap for absolute centered nav on small desktops */
@media (max-width: 1200px) {
    .nav-links {
        gap: 20px;
    }
}