/* Adaptive Color Variables */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #10b981;
    --accent-color: #8b5cf6;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;

    /* Dynamic Color System */
    --adaptive-hue: 220;
    --adaptive-saturation: 85%;
    --adaptive-lightness: 60%;
    --adaptive-alpha: 0.08;

    /* Time-based color shifts */
    --color-shift-speed: 35s;
    --color-morph-intensity: 0.4;
}

/* CSS Houdini Properties for smooth color transitions */
@property --adaptive-hue {
    syntax: '<number>';
    initial-value: 220;
    inherits: false;
}

@property --adaptive-saturation {
    syntax: '<percentage>';
    initial-value: 85%;
    inherits: false;
}

@property --adaptive-lightness {
    syntax: '<percentage>';
    initial-value: 60%;
    inherits: false;
}

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

body {
    font-family: 'Inter', 'SF Pro Display', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    color: #0a0a0b;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 226, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 90%, rgba(16, 185, 129, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse at 90% 10%, rgba(59, 130, 246, 0.04) 0%, transparent 70%),
        linear-gradient(135deg,
            #f8fafc 0%,
            #f1f5f9 20%,
            #e2e8f0 40%,
            #cbd5e1 60%,
            #94a3b8 80%,
            #64748b 100%
        );
    background-size: 400% 400%, 300% 300%, 350% 350%, 250% 250%, 200% 200%, 100% 100%;
    animation:
        neuralNetworkFlow 25s ease-in-out infinite,
        adaptiveColorShift var(--color-shift-speed) ease-in-out infinite;
    min-height: 100vh;
    font-optical-sizing: auto;
    font-variation-settings: 'wght' 400;
    position: relative;
}

@keyframes neuralNetworkFlow {
    0% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 0% 100%, 100% 0%, 0% 0%;
    }
    20% {
        background-position: 100% 0%, 0% 100%, 25% 75%, 50% 50%, 50% 50%, 0% 0%;
    }
    40% {
        background-position: 100% 100%, 0% 0%, 75% 25%, 100% 0%, 0% 100%, 0% 0%;
    }
    60% {
        background-position: 0% 100%, 100% 0%, 50% 50%, 0% 50%, 100% 50%, 0% 0%;
    }
    80% {
        background-position: 50% 50%, 50% 50%, 0% 100%, 75% 25%, 25% 75%, 0% 0%;
    }
    100% {
        background-position: 0% 0%, 100% 100%, 50% 50%, 0% 100%, 100% 0%, 0% 0%;
    }
}

@keyframes adaptiveColorShift {
    0% {
        --adaptive-hue: 220;
        --adaptive-saturation: 85%;
        --adaptive-lightness: 60%;
        filter: hue-rotate(0deg) saturate(1) brightness(1);
    }
    20% {
        --adaptive-hue: 280;
        --adaptive-saturation: 90%;
        --adaptive-lightness: 65%;
        filter: hue-rotate(15deg) saturate(1.1) brightness(1.02);
    }
    40% {
        --adaptive-hue: 160;
        --adaptive-saturation: 80%;
        --adaptive-lightness: 55%;
        filter: hue-rotate(-25deg) saturate(0.95) brightness(0.98);
    }
    60% {
        --adaptive-hue: 320;
        --adaptive-saturation: 95%;
        --adaptive-lightness: 70%;
        filter: hue-rotate(35deg) saturate(1.15) brightness(1.05);
    }
    80% {
        --adaptive-hue: 40;
        --adaptive-saturation: 88%;
        --adaptive-lightness: 58%;
        filter: hue-rotate(-10deg) saturate(1.05) brightness(1.01);
    }
    100% {
        --adaptive-hue: 220;
        --adaptive-saturation: 85%;
        --adaptive-lightness: 60%;
        filter: hue-rotate(0deg) saturate(1) brightness(1);
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 98px,
            rgba(255, 255, 255, 0.03) 100px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 98px,
            rgba(255, 255, 255, 0.03) 100px
        );
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.nav-logo {
    height: 50px;
    width: auto;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.nav-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: #374151;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    font-variation-settings: 'wght' 600;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: conic-gradient(from 45deg, rgba(16, 185, 129, 0.1), rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
    border-radius: inherit;
}

.nav-menu a:hover {
    color: #111827;
    transform: translateY(-2px) scale(1.02);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-menu a:hover::before {
    width: 100%;
    animation: shimmerNav 2s ease-in-out infinite;
}

@keyframes shimmerNav {
    0%, 100% {
        filter: hue-rotate(0deg);
    }
    50% {
        filter: hue-rotate(30deg);
    }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: transparent;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #0a0a0b;
    padding: 140px 20px 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 30% 40%, rgba(16, 185, 129, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(59, 130, 246, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 30%),
        radial-gradient(ellipse at 80% 20%, rgba(255, 119, 198, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 10% 90%, rgba(120, 219, 226, 0.08) 0%, transparent 60%);
    animation: heroPatternShift 30s ease-in-out infinite;
    z-index: 0;
}

@keyframes heroPatternShift {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 0.8;
    }
    25% {
        transform: scale(1.1) rotate(5deg);
        opacity: 0.6;
    }
    50% {
        transform: scale(0.9) rotate(-3deg);
        opacity: 1;
    }
    75% {
        transform: scale(1.05) rotate(2deg);
        opacity: 0.7;
    }
}

@keyframes morphBackground {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        filter: hue-rotate(0deg);
    }
    33% {
        transform: rotate(2deg) scale(1.05);
        filter: hue-rotate(30deg);
    }
    66% {
        transform: rotate(-1deg) scale(0.95);
        filter: hue-rotate(-20deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    backdrop-filter: blur(1px);
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 900;
    color: #0a0a0b;
    line-height: 1.1;
    letter-spacing: -0.04em;
    background:
        linear-gradient(45deg,
            #0a0a0b 0%,
            #374151 25%,
            #10b981 35%,
            #374151 45%,
            #3b82f6 55%,
            #374151 65%,
            #0a0a0b 100%
        );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shiftingGradient 8s ease-in-out infinite;
    font-variation-settings: 'wght' 900;
    position: relative;
}

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

.hero-content h1::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    animation: textShine 3s ease-in-out infinite;
    opacity: 0;
}

@keyframes textShine {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 650px;
    color: #4b5563;
    line-height: 1.75;
    font-weight: 500;
    opacity: 0.9;
    font-variation-settings: 'wght' 500;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 20px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    font-variation-settings: 'wght' 600;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.btn-primary {
    background: rgba(255, 255, 255, 0.9);
    color: #111827;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 1rem;
    color: #e2e8f0;
    font-weight: 500;
    opacity: 0.9;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: #ffffff;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

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

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    border: 1px solid #f1f5f9;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #e2e8f0;
}


.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 25px -8px rgba(59, 130, 246, 0.3);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.service-card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #3b82f6;
    background: #eff6ff;
    padding: 0.5rem 1rem;
    border-radius: 16px;
    display: inline-block;
    margin-top: 1rem;
}

/* AI Tools Section */
.ai-tools {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #1e293b;
    position: relative;
}

.ai-tools::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #3b82f6 0%, #1e40af 100%);
    opacity: 0.03;
    z-index: 0;
}

.ai-tools .container {
    position: relative;
    z-index: 1;
}

.ai-tools h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.tool-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.tool-card i {
    margin-right: 0.5rem;
}

.tool-card p {
    margin-bottom: 1.5rem;
    color: #64748b;
    line-height: 1.6;
}

/* About Section */
.about {
    padding: 80px 0;
    background: linear-gradient(135deg, #b8bcc2 0%, #9ca3af 50%, #8b9096 100%);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(16, 185, 129, 0.03) 0%, transparent 50%);
    z-index: 0;
}

.about .container {
    position: relative;
    z-index: 1;
}

.about h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #111111;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #555555;
    line-height: 1.7;
}

.credentials {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.credential {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 18px;
}

.feature i {
    color: #667eea;
    font-size: 1.5rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #d1d5db 0%, #b8bcc2 100%);
    color: #0a0a0b;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%),
                linear-gradient(-45deg, rgba(255, 255, 255, 0.02) 25%, transparent 25%);
    background-size: 60px 60px;
    z-index: 0;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #111111;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    color: #3b82f6;
    width: 20px;
}

.contact-form {
    background: rgba(255,255,255,0.05);
    padding: 2rem;
    border-radius: 18px;
}

.contact-form h3 {
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 1rem;
    border: none;
    border-radius: 12px;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,0.7);
}

.contact-form select {
    color: white;
}

.contact-form option {
    background: #2c3e50;
    color: white;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 18px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.close:hover {
    color: black;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 1rem;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: normal;
    margin-bottom: 0;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

#quoteResult,
#recommendationResult {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 18px;
    margin-top: 2rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #9ca3af 0%, #8b9096 100%);
    color: #111827;
    padding: 3rem 0 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    color: #111111;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.footer-bottom {
    border-top: 1px solid #333;
    margin-top: 2rem;
    padding-top: 1rem;
    text-align: center;
    color: #999;
}

/* Division Cards Styling */
.divisions {
    background: transparent !important;
    position: relative;
    overflow: hidden;
    perspective: 1000px !important;
}

.divisions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 30% 70%, rgba(16, 185, 129, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(59, 130, 246, 0.08) 0%, transparent 60%),
        conic-gradient(from 45deg at 50% 50%,
            transparent 0deg,
            rgba(16, 185, 129, 0.02) 90deg,
            transparent 180deg,
            rgba(59, 130, 246, 0.02) 270deg,
            transparent 360deg);
    animation: rotateGradient 30s linear infinite;
    z-index: 0;
}

@keyframes rotateGradient {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.divisions .container {
    position: relative;
    z-index: 1;
}

.divisions-grid {
    transform-style: preserve-3d !important;
}

.division-card {
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%),
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.1) 0%, transparent 50%) !important;
    backdrop-filter: blur(40px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(180%) !important;
    color: #0a0a0b !important;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 24px !important;
    transform-style: preserve-3d !important;
}

.division-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent) !important;
    transition: left 1.5s ease !important;
}

.division-card:hover::before {
    left: 100% !important;
}

.division-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(2deg) scale(1.03) !important;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

/* ClinicIT Green Branding */
.division-card:first-child {
    position: relative !important;
    border-image: linear-gradient(135deg, #10b981, #059669, #10b981) 1 !important;
}

.division-card:first-child::after {
    content: '' !important;
    position: absolute !important;
    top: -2px !important;
    left: -2px !important;
    right: -2px !important;
    bottom: -2px !important;
    background: conic-gradient(from 0deg, #10b981, #059669, #34d399, #10b981) !important;
    border-radius: inherit !important;
    z-index: -1 !important;
    animation: rotatingBorder 6s linear infinite !important;
    opacity: 0.3 !important;
}

@keyframes rotatingBorder {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.division-card:first-child .division-icon {
    background: conic-gradient(from 45deg, #10b981, #059669, #34d399, #10b981) !important;
    box-shadow:
        0 15px 35px rgba(16, 185, 129, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3) !important;
    animation: iconPulse 4s ease-in-out infinite !important;
}

@keyframes iconPulse {
    0%, 100% {
        box-shadow:
            0 15px 35px rgba(16, 185, 129, 0.4),
            inset 0 2px 4px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow:
            0 20px 45px rgba(16, 185, 129, 0.6),
            inset 0 2px 8px rgba(255, 255, 255, 0.5);
    }
}

.division-card:first-child .btn-secondary {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #34d399 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4) !important;
    position: relative !important;
    overflow: hidden !important;
}

.division-card:first-child .btn-secondary::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent) !important;
    transition: left 0.8s ease !important;
}

.division-card:first-child .btn-secondary:hover::before {
    left: 100% !important;
}

.division-card:first-child .btn-secondary:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 50%, #10b981 100%) !important;
    transform: translateY(-3px) scale(1.08) !important;
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.6) !important;
}

/* Enterprise Blue Branding */
.division-card:last-child {
    position: relative !important;
    border-image: linear-gradient(135deg, #3b82f6, #1e40af, #3b82f6) 1 !important;
}

.division-card:last-child::after {
    content: '' !important;
    position: absolute !important;
    top: -2px !important;
    left: -2px !important;
    right: -2px !important;
    bottom: -2px !important;
    background: conic-gradient(from 180deg, #3b82f6, #1e40af, #60a5fa, #3b82f6) !important;
    border-radius: inherit !important;
    z-index: -1 !important;
    animation: rotatingBorderBlue 8s linear infinite !important;
    opacity: 0.3 !important;
}

@keyframes rotatingBorderBlue {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(-360deg);
    }
}

.division-card:last-child .division-icon {
    background: conic-gradient(from 225deg, #3b82f6, #1e40af, #60a5fa, #3b82f6) !important;
    box-shadow:
        0 15px 35px rgba(59, 130, 246, 0.4),
        inset 0 2px 4px rgba(255, 255, 255, 0.3) !important;
    animation: iconPulseBlue 5s ease-in-out infinite !important;
}

@keyframes iconPulseBlue {
    0%, 100% {
        box-shadow:
            0 15px 35px rgba(59, 130, 246, 0.4),
            inset 0 2px 4px rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow:
            0 20px 45px rgba(59, 130, 246, 0.6),
            inset 0 2px 8px rgba(255, 255, 255, 0.5);
    }
}

.division-card:last-child .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1e40af 50%, #60a5fa 100%) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4) !important;
    position: relative !important;
    overflow: hidden !important;
}

.division-card:last-child .btn-primary::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent) !important;
    transition: left 0.8s ease !important;
}

.division-card:last-child .btn-primary:hover::before {
    left: 100% !important;
}

.division-card:last-child .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1e3a8a 50%, #3b82f6 100%) !important;
    transform: translateY(-3px) scale(1.08) !important;
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.6) !important;
}


/* Modern Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 60px, 0) rotateX(15deg);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) rotateX(0deg);
        filter: blur(0px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotateZ(0deg);
    }
    25% {
        transform: translateY(-8px) rotateZ(1deg);
    }
    50% {
        transform: translateY(-15px) rotateZ(0deg);
    }
    75% {
        transform: translateY(-8px) rotateZ(-1deg);
    }
}

@keyframes morphCard {
    0%, 100% {
        border-radius: 24px;
        transform: rotateY(0deg) rotateX(0deg);
    }
    50% {
        border-radius: 32px;
        transform: rotateY(1deg) rotateX(0.5deg);
    }
}

.division-card {
    animation:
        fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards,
        morphCard 15s ease-in-out infinite,
        contentMorph 20s ease-in-out infinite;
}

@keyframes contentMorph {
    0%, 100% {
        border-radius: 24px;
        filter: blur(0px) brightness(1) contrast(1);
        transform: scale(1);
    }
    25% {
        border-radius: 32px;
        filter: blur(0.5px) brightness(1.05) contrast(1.1);
        transform: scale(1.002);
    }
    50% {
        border-radius: 20px;
        filter: blur(0px) brightness(1.1) contrast(1.2);
        transform: scale(1.005);
    }
    75% {
        border-radius: 28px;
        filter: blur(0.3px) brightness(1.05) contrast(1.05);
        transform: scale(1.001);
    }
}

.division-card:nth-child(1) {
    animation-delay: 0.2s, 0s;
}

.division-card:nth-child(2) {
    animation-delay: 0.4s, 2s;
}

.division-icon {
    animation: float 8s ease-in-out infinite;
}

.division-card:first-child .division-icon {
    animation-delay: -1s;
}

.division-card:last-child .division-icon {
    animation-delay: -3s;
}

/* Scroll-triggered animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Typography */
h1, h2, h3, h4, h5, h6 {
    font-optical-sizing: auto;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Modern Focus States */
*:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
        letter-spacing: -0.03em;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .divisions-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

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

    .credentials {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 280px;
    }

    .hero {
        padding: 120px 20px 50px;
    }

    .division-card {
        margin: 0 10px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .services h2,
    .ai-tools h2,
    .about h2,
    .contact h2 {
        font-size: 2rem;
    }

    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
        width: 95%;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.tool-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll Animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}