/* Modern Professional CSS for Eon Finance Solutions - Mobile Enhanced */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Variables for Consistent Design System */
:root {
    /* Primary Colors - Professional Blue Palette */
    --primary-blue: #1e40af;
    --primary-blue-dark: #1e3a8a;
    --primary-blue-light: #3b82f6;
    --accent-blue: #60a5fa;
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;

    /* Neutral Grays */
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-300: #d1d5db;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;

    /* Pure Colors */
    --white: #ffffff;
    --black: #000000;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --gradient-secondary: linear-gradient(135deg, #f9fafb 0%, #e5e7eb 100%);
    --gradient-accent: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-base: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px 0 rgb(0 0 0 / 0.06);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -1px rgb(0 0 0 / 0.06);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -2px rgb(0 0 0 / 0.05);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 10px 10px -5px rgb(0 0 0 / 0.04);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --container-max-width: 1400px;
    --section-padding: 5rem 2rem;

    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-weight: 400;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-blue-dark);
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3.5rem; font-weight: 800; }
h2 { font-size: 2.75rem; font-weight: 700; }
h3 { font-size: 2rem; font-weight: 600; }
h4 { font-size: 1.5rem; font-weight: 600; }
h5 { font-size: 1.25rem; font-weight: 500; }
h6 { font-size: 1.125rem; font-weight: 500; }

p {
    margin-bottom: 1.5rem;
    color: var(--gray-600);
    line-height: 1.7;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: var(--transition-base);
}

a:hover {
    color: var(--primary-blue-dark);
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: var(--font-sans);
    text-decoration: none;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    text-align: center;
    min-width: fit-content;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--white);
    color: var(--primary-blue);
    box-shadow: var(--shadow-lg);
}

.btn-white:hover {
    background: var(--gray-50);
    transform: translateY(-2px);
    color: var(--primary-blue-dark);
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
}

.btn-small {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: var(--transition-base);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 1rem 2rem;
    position: relative;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links li a {
    font-weight: 500;
    color: var(--gray-700);
    position: relative;
    transition: var(--transition-base);
}

.nav-links li a:hover {
    color: var(--primary-blue);
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-blue);
    transition: var(--transition-base);
}

.nav-links li a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition-base);
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    color: var(--primary-blue);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-text .highlight {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 2.5rem;
    color: var(--white);
    max-width: 400px;
    width: 100%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Section Containers */
section {
    padding: var(--section-padding);
}

.section-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--gray-500);
}

/* About Section */
.about-us-summary {
    background: var(--gray-50);
}

.summary-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.summary-text h3 {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

.summary-text p {
    margin-bottom: 2rem;
    line-height: 1.7;
}

.summary-image-container {
    position: relative;
}

.summary-image {
    width: 100%;
    height: 400px;
    background: var(--gradient-secondary);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    color: var(--gray-500);
    position: relative;
    overflow: hidden;
}

.summary-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: var(--primary-blue);
    border-radius: 50%;
    opacity: 0.1;
}

/* Services Section */
.services-summary {
    padding: 6rem 2rem;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    position: relative;
    border-top: 4px solid var(--primary-blue);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 24px 24px 0 0;
}

.service-card h3 {
    font-size: 1.5rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Services List (Services Page) */
.services-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.service-item {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.service-item.reversed {
    direction: rtl;
}

.service-item.reversed > * {
    direction: ltr;
}

.service-text h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Page Headers (About & Services) */
.page-header {
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
    padding: 8rem 2rem 6rem;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 30% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: var(--gray-800);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-info h3,
.footer-meeting h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-info p,
.footer-meeting p {
    color: var(--gray-300);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.meeting-placeholder {
    background: var(--gray-700);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--gray-600);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-600);
    color: var(--gray-400);
    font-size: 0.875rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }

/* RESPONSIVE DESIGN - ENHANCED MOBILE */

/* Large Desktop */
@media (min-width: 1400px) {
    .section-container {
        padding: 0 2rem;
    }
}

/* Desktop */
@media (max-width: 1200px) {
    :root {
        --container-max-width: 1000px;
    }

    .service-item {
        grid-template-columns: 350px 1fr;
        gap: 2.5rem;
    }
}

/* Tablet Large */
@media (max-width: 1024px) {
    :root {
        --container-max-width: 900px;
    }

    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }

    .hero-content,
    .summary-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-content {
        padding: 1rem;
    }

    .service-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .services-container {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .navbar {
        padding: 1rem;
    }
}

/* Tablet */
@media (max-width: 768px) {
    :root {
        --section-padding: 4rem 1.5rem;
    }

    /* Mobile Menu */
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 24px 24px;
        gap: 1.5rem;
        z-index: 1000;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        display: block;
        padding: 0.5rem;
        width: 100%;
    }

    /* Typography adjustments */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }

    .hero-text p {
        font-size: 1.125rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Hero section mobile adjustments */
    .hero-section {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 4rem;
    }

    .hero-content {
        gap: 2rem;
        padding: 1rem;
    }

    .hero-card {
        padding: 2rem;
        margin-top: 2rem;
    }

    /* Page header mobile */
    .page-header {
        padding: 6rem 1.5rem 4rem;
        margin-top: 70px;
    }

    .page-header h1 {
        font-size: 2.25rem;
        line-height: 1.2;
    }

    .page-header p {
        font-size: 1.125rem;
    }

    /* Services mobile */
    .services-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem;
    }

    /* Footer mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer {
        padding: 3rem 1.5rem 2rem;
    }

    /* Button adjustments */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 1.05rem;
    }

    /* Section spacing */
    .section-header {
        margin-bottom: 3rem;
    }
}

/* Mobile Large */
@media (max-width: 640px) {
    :root {
        --section-padding: 3rem 1rem;
    }

    .navbar {
        padding: 0.75rem 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.5rem; }

    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.1;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .section-header h2 {
        font-size: 1.875rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .service-card,
    .hero-card {
        padding: 1.5rem;
    }

    /* Grid adjustments for very small screens */
    .services-container {
        grid-template-columns: 1fr;
    }

    /* Make sure grids don't break on mobile */
    [style*="grid-template-columns: repeat(auto-fit, minmax(300px, 1fr))"] {
        grid-template-columns: 1fr !important;
    }

    [style*="grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))"] {
        grid-template-columns: 1fr !important;
    }

    [style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    :root {
        --section-padding: 2.5rem 1rem;
    }

    .navbar {
        padding: 0.75rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.375rem; }

    .hero-text h1 {
        font-size: 1.875rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        min-height: 44px; /* Touch-friendly */
    }

    .btn-large {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        align-items: stretch;
    }

    .hero-buttons .btn {
        justify-content: center;
        width: 100%;
    }

    .service-card,
    .hero-card {
        padding: 1.25rem;
    }

    /* Ensure text doesn't get too small */
    .service-card p,
    .hero-card p,
    .footer-info p,
    .footer-meeting p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* Page header extra small screens */
    .page-header {
        padding: 5rem 1rem 3rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    /* Force single column on very small screens */
    [style*="display: grid"] {
        gap: 1rem !important;
    }

    /* Ensure proper spacing on mobile */
    .section-container {
        padding: 0 0.5rem;
    }

    /* Fix any grid issues on very small screens */
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile Extra Small */
@media (max-width: 360px) {
    .navbar {
        padding: 0.5rem;
    }

    .logo {
        font-size: 1.125rem;
    }

    .hero-text h1 {
        font-size: 1.75rem;
    }

    .service-card,
    .hero-card {
        padding: 1rem;
    }

    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }

    .page-header {
        padding: 4rem 0.75rem 2.5rem;
    }
}

/* Accessibility & Focus States */
.btn:focus,
.nav-links a:focus,
.logo:focus {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn-primary {
        border: 2px solid var(--white);
    }

    .btn-secondary {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-card {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .cta-section,
    .mobile-menu-toggle {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .hero-section {
        background: white;
        color: black;
    }
}

/* services.css integration begins here */
/* Services List (Services Page) */
.services-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.service-item {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.service-item.reversed {
    direction: rtl;
}

.service-item.reversed > * {
    direction: ltr;
}

.service-text h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}