:root {
    --primary: #0F3D5C;
    --accent: #2E7BB4;
    --accent-soft: #4A90C8;
    --accent-bright: #5BA3D8;
    --text: #1A2B3C;
    --text-muted: #5C6F82;
    --bg-light: #F8FAFB;
    --bg-card: #FFFFFF;
    --gradient-1: linear-gradient(135deg, #2E7BB4 0%, #4A90C8 50%, #5BA3D8 100%);
    --gradient-2: linear-gradient(135deg, #E8F1F8 0%, #F8FAFB 100%);
    --gradient-3: linear-gradient(45deg, #2E7BB4, #4A90C8, #5BA3D8, #4A90C8, #2E7BB4);
}

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

body {
    font-family: 'Open Sans', sans-serif;
    background: var(--bg-light);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Dynamic background pattern with animation */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(46, 123, 180, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 123, 180, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Floating shapes in background */
.bg-grid::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(46, 123, 180, 0.15), transparent);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite;
    filter: blur(60px);
}

.bg-grid::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(74, 144, 200, 0.12), transparent);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite reverse;
    filter: blur(80px);
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(50px, -50px) scale(1.1);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* Header with glassmorphism */
header {
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    z-index: 100;
    border-bottom: 1px solid rgba(46, 123, 180, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

header:hover {
    box-shadow: 0 6px 30px rgba(46, 123, 180, 0.15);
}

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

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-3);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    animation: gradientShift 3s ease infinite;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05) rotate(-2deg);
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--gradient-1);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Hero Section with dynamic elements */
.hero {
    padding: 8rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(74, 144, 200, 0.2), transparent);
    border-radius: 50%;
    animation: pulse 8s ease-in-out infinite;
    filter: blur(60px);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.hero-content {
    max-width: 1000px;
    position: relative;
    z-index: 2;
}

.hero-tag {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: rgba(46, 123, 180, 0.12);
    border: 2px solid var(--accent);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2rem;
    font-family: 'Montserrat', sans-serif;
    animation: fadeInUp 0.8s ease, tagPulse 2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(46, 123, 180, 0.2);
    position: relative;
    overflow: hidden;
}

.hero-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes tagPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(46, 123, 180, 0.2);
    }
    50% {
        transform: scale(1.03);
        box-shadow: 0 6px 25px rgba(46, 123, 180, 0.35);
    }
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
}

h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.gradient-text {
    background: var(--gradient-3);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
    display: inline-block;
    position: relative;
}

.gradient-text::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: blur(10px);
    opacity: 0.5;
}

.hero-description {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.9;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.btn {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-1);
    color: #FFFFFF;
    box-shadow: 0 10px 35px rgba(46, 123, 180, 0.3);
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 50px rgba(46, 123, 180, 0.45);
}

.btn-primary:active {
    transform: translateY(-2px) scale(0.98);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    box-shadow: 0 4px 15px rgba(46, 123, 180, 0.15);
}

.btn-secondary:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 35px rgba(46, 123, 180, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Services Section with enhanced cards */
.services {
    padding: 7rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-label {
    font-family: 'Montserrat', sans-serif;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    display: inline-block;
    animation: fadeInUp 0.6s ease;
}

h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
}

.section-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 4rem;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(46, 123, 180, 0.2);
    border-radius: 20px;
    padding: 3rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: all 0.6s ease;
    transform: scale(0);
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--accent-bright);
    box-shadow: 0 30px 60px rgba(46, 123, 180, 0.25);
}

.service-card:hover::before {
    opacity: 0.08;
}

.service-card:hover::after {
    opacity: 1;
    transform: scale(1) rotate(45deg);
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    display: inline-block;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(46, 123, 180, 0.3));
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 8px 16px rgba(46, 123, 180, 0.5));
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--accent);
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-features {
    list-style: none;
    position: relative;
    z-index: 1;
}

.service-features li {
    padding: 0.7rem 0;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-features li {
    transform: translateX(8px);
}

.service-features li::before {
    content: '→';
    color: var(--accent);
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-features li::before {
    transform: translateX(5px);
    color: var(--accent-bright);
}

/* Expertise Section with glassmorphism */
.expertise {
    padding: 7rem 0;
    background: var(--gradient-2);
    position: relative;
    overflow: hidden;
}

.expertise::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(46, 123, 180, 0.15), transparent);
    border-radius: 50%;
    animation: float 18s ease-in-out infinite;
    filter: blur(80px);
}

.expertise-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.expertise-content h2 {
    margin-bottom: 2rem;
}

.expertise-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.expertise-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-left: 4px solid var(--accent);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.expertise-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 0;
    background: var(--gradient-1);
    transition: height 0.4s ease;
}

.expertise-item:hover::before {
    height: 100%;
}

.expertise-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(15px) scale(1.02);
    box-shadow: 0 12px 35px rgba(46, 123, 180, 0.2);
    border-left-color: var(--accent-bright);
}

.expertise-item h4 {
    font-size: 1.5rem;
    margin-bottom: 0.7rem;
    color: var(--accent);
    transition: all 0.3s ease;
}

.expertise-item:hover h4 {
    color: var(--accent-bright);
    transform: translateX(5px);
}

.expertise-item p {
    color: var(--text-muted);
    line-height: 1.7;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.tech-badge {
    background: rgba(46, 123, 180, 0.18);
    color: var(--primary);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    border: 2px solid rgba(46, 123, 180, 0.3);
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.tech-badge::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--gradient-1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
    z-index: -1;
}

.tech-badge:hover {
    transform: translateY(-4px) scale(1.05);
    border-color: var(--accent-bright);
    box-shadow: 0 8px 20px rgba(46, 123, 180, 0.3);
    color: white;
}

.tech-badge:hover::before {
    width: 200px;
    height: 200px;
}

/* Process Section with animated steps */
.process {
    padding: 7rem 0;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.process-step {
    text-align: center;
    padding: 2.5rem;
    position: relative;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}

.process-step:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(46, 123, 180, 0.15);
    border-color: rgba(46, 123, 180, 0.3);
}

.step-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    background: var(--gradient-3);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    opacity: 0.4;
    transition: all 0.4s ease;
    animation: gradientShift 4s ease infinite;
}

.process-step:hover .step-number {
    opacity: 1;
    transform: scale(1.1);
}

.process-step h4 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.process-step:hover h4 {
    color: var(--accent);
}

.process-step p {
    color: var(--text-muted);
    line-height: 1.7;
}

/* CTA Section with emphasis */
.cta-section {
    padding: 7rem 0;
    background: var(--gradient-2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(46, 123, 180, 0.2), transparent);
    border-radius: 50%;
    animation: pulse 10s ease-in-out infinite;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
}

.cta-content p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    border-top: 2px solid rgba(46, 123, 180, 0.2);
    text-align: center;
    background: linear-gradient(to bottom, #FFFFFF, #F8FAFB);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
    text-align: left;
}

.footer-section h4 {
    color: var(--accent);
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-section p,
.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    margin-bottom: 0.7rem;
    transition: all 0.3s ease;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(46, 123, 180, 0.15);
    color: var(--text-muted);
}

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

    h2 {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1.15rem;
    }

    .nav-links {
        display: none;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .expertise-list {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-steps {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .btn {
        padding: 1rem 2rem;
    }
}

/* Scroll animations - elements visible by default for accessibility */
.fade-in {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in:nth-child(1) {
    animation-delay: 0.1s;
}

.fade-in:nth-child(2) {
    animation-delay: 0.25s;
}

.fade-in:nth-child(3) {
    animation-delay: 0.4s;
}

.fade-in:nth-child(4) {
    animation-delay: 0.55s;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: var(--accent);
    color: white;
}

::-moz-selection {
    background: var(--accent);
    color: white;
}
