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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f7f6;
}

/* CSS Variables */
:root {
    --amalytics-navy: #2F3A78;
    --amalytics-navy-dark: #252f63;
    --amalytics-navy-light: #3d4a8d;
    --amalytics-red: #A4292D;
    --amalytics-red-dark: #8a2226;
    --amalytics-red-light: #be3034;
    --beige-bg: #f8f7f6;
    --white: #ffffff;
    --gray-100: #f5f5f5;
    --gray-200: #e5e5e5;
    --gray-300: #d4d4d4;
    --gray-600: #525252;
    --gray-700: #404040;
    --gray-800: #262626;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

/* Utility Classes */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.5rem;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
}

.lang-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.6;
}

.lang-btn:hover,
.lang-btn.active {
    opacity: 1;
    background: rgba(47, 58, 120, 0.1);
}

.flag {
    font-size: 1.25rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to right, var(--amalytics-navy), rgba(47, 58, 120, 0.9), rgba(164, 41, 45, 0.2));
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(164, 41, 45, 0.3);
    box-shadow: var(--shadow-lg);
    z-index: 50;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

.nav-left {
    flex: 1;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-desktop {
    display: none;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-link {
    color: var(--amalytics-navy);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.9);
}

.nav-link:hover {
    color: rgba(47, 58, 120, 0.8);
    background: rgba(255, 255, 255, 0.1);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.hamburger {
    width: 1.5rem;
    height: 2px;
    background: var(--white);
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--amalytics-navy);
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
}

.mobile-menu.active {
    display: flex;
}

.mobile-nav-link {
    color: var(--white);
    text-decoration: none;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--beige-bg);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url('images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
    min-height: 600px;
    justify-content: center;
}

.logo-container {
    display: flex;
    justify-content: center;
}

.logo {
    height: 4rem;
    width: auto;
}

@media (min-width: 768px) {
    .logo {
        height: 5rem;
    }
}

@media (min-width: 1024px) {
    .logo {
        height: 6rem;
    }
}

.hero-title {
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-main {
    font-size: 1.5rem;
    color: var(--amalytics-navy);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .title-main {
        font-size: 1.875rem;
    }
}

@media (min-width: 1024px) {
    .title-main {
        font-size: 2.25rem;
    }
}

.title-subtitle {
    font-size: 3rem;
    color: var(--amalytics-red);
}

@media (min-width: 768px) {
    .title-subtitle {
        font-size: 3.75rem;
    }
}

@media (min-width: 1024px) {
    .title-subtitle {
        font-size: 4.5rem;
    }
}

.hero-bottom {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
}

.hero-description {
    font-size: 1rem;
    color: var(--amalytics-navy);
    line-height: 1.6;
    max-width: 42rem;
    margin: 0 auto;
    font-weight: 500;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.125rem;
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    box-shadow: var(--shadow-xl);
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-2xl);
}

.btn-primary {
    background: linear-gradient(to right, var(--amalytics-navy), var(--amalytics-red));
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(to right, rgba(47, 58, 120, 0.9), rgba(164, 41, 45, 0.9));
}

.btn-secondary {
    border: 2px solid var(--amalytics-red);
    background: linear-gradient(to right, var(--white), #eff6ff);
    color: var(--amalytics-red);
}

.btn-secondary:hover {
    background: linear-gradient(to right, var(--amalytics-red), var(--amalytics-navy));
    color: var(--white);
}

/* Section Styles */
.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--amalytics-navy);
    margin-bottom: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-subtitle {
    font-size: 1.125rem;
    color: rgba(47, 58, 120, 0.8);
    max-width: 42rem;
    margin: 0 auto;
    font-weight: 500;
    text-align: center;
}

/* Statistics Section */
.stats-section {
    padding: 5rem 0;
    background-color: var(--beige-bg);
    position: relative;
}

.stats-header {
    text-align: center;
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.stat-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.stat-card:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-2xl);
}

.stat-icon {
    width: 5rem;
    height: 5rem;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-lg);
}

.stat-icon .icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--amalytics-navy);
}

.stat-number {
    font-size: 3.75rem;
    font-weight: 700;
    color: var(--amalytics-navy);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--amalytics-navy);
    margin-bottom: 0.75rem;
}

.stat-desc {
    color: rgba(47, 58, 120, 0.7);
    line-height: 1.6;
    font-weight: 500;
}

/* Red statistics styling */
.red-stat {
    color: var(--amalytics-red) !important;
}

.stat-card:last-child .stat-icon .icon {
    color: var(--amalytics-red) !important;
}

/* Crisis Section */
.crisis-section {
    padding: 5rem 0;
    background-color: var(--beige-bg);
}

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

@media (min-width: 1024px) {
    .crisis-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.crisis-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.crisis-subtitle {
    font-size: 1.25rem;
    color: var(--amalytics-red);
    font-weight: 600;
    margin-bottom: 1rem;
}

.crisis-description {
    font-size: 1.125rem;
    color: rgba(47, 58, 120, 0.8);
    line-height: 1.6;
    font-weight: 500;
}

.crisis-points {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.crisis-point {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.crisis-point-icon {
    width: 1.5rem;
    height: 1.5rem;
    background: rgba(164, 41, 45, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.125rem;
    flex-shrink: 0;
}

.crisis-point-icon .icon {
    width: 1rem;
    height: 1rem;
    color: var(--amalytics-red);
}

.crisis-point h3 {
    font-weight: 600;
    color: var(--amalytics-navy);
    margin-bottom: 0.25rem;
}

.crisis-point p {
    color: rgba(47, 58, 120, 0.7);
    font-weight: 500;
    line-height: 1.5;
}

.crisis-image {
    display: flex;
    justify-content: center;
}

.crisis-img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    max-width: 500px;
}

/* Solution Section */
.solution-section {
    padding: 5rem 0;
    background-color: var(--beige-bg);
}

.solution-header {
    text-align: center;
    margin-bottom: 3rem;
}

.solution-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .solution-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .solution-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.solution-card {
    background: transparent;
    padding: 2rem;
    border-radius: 1.5rem;
    transition: all 0.3s ease;
    text-align: center;
}

.solution-card:hover {
    transform: translateY(-0.5rem);
    background: rgba(255, 255, 255, 0.1);
}

.solution-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.solution-icon .icon {
    width: 2rem;
    height: 2rem;
    stroke-width: 2;
}

.brain-icon {
    background: rgba(47, 58, 120, 0.1);
}

.brain-icon .icon {
    color: var(--amalytics-navy);
}

.layers-icon {
    background: rgba(164, 41, 45, 0.1);
}

.layers-icon .icon {
    color: var(--amalytics-red);
}

.database-icon {
    background: rgba(47, 58, 120, 0.1);
}

.database-icon .icon {
    color: var(--amalytics-navy);
}

.solution-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.solution-card:nth-child(1) .solution-title {
    color: var(--amalytics-navy);
}

.solution-card:nth-child(2) .solution-title {
    color: var(--amalytics-red);
}

.solution-card:nth-child(3) .solution-title {
    color: var(--amalytics-navy);
}

.solution-desc {
    color: var(--gray-600);
    line-height: 1.6;
}

/* Workflow Section */
.workflow-section {
    margin-top: 4rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(47, 58, 120, 0.1);
}

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

@media (min-width: 1024px) {
    .workflow-content {
        grid-template-columns: 1fr 1fr;
    }
}

.workflow-image {
    display: flex;
    justify-content: center;
}

.workflow-img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
    max-width: 500px;
}

.workflow-text {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.workflow-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--amalytics-navy);
}

.workflow-description {
    font-size: 1.125rem;
    color: rgba(47, 58, 120, 0.8);
    line-height: 1.6;
}

.workflow-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.workflow-benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.benefit-icon {
    width: 1.5rem;
    height: 1.5rem;
    background: rgba(34, 197, 94, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.benefit-icon .icon {
    width: 1rem;
    height: 1rem;
    color: #22c55e;
}

.workflow-benefit p {
    color: var(--gray-700);
    font-weight: 500;
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background-color: var(--beige-bg);
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

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

@media (min-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr 2fr;
    }
}

.founder-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.founder-info {
    text-align: center;
}

.founder-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--amalytics-navy);
    margin-bottom: 0.5rem;
}

.founder-title {
    font-size: 1.125rem;
    color: var(--amalytics-red);
    font-weight: 600;
    margin-bottom: 1rem;
}

.founder-background {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.founder-experience {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--amalytics-navy);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.linkedin-link:hover {
    color: var(--amalytics-red);
}

.linkedin-link .icon {
    width: 1.25rem;
    height: 1.25rem;
}

.story-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.story-text {
    color: var(--gray-700);
    line-height: 1.7;
    font-size: 1rem;
}

.location {
    font-size: 1.125rem;
    color: var(--amalytics-navy);
    font-weight: 600;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background-color: var(--beige-bg);
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-content {
    max-width: 42rem;
    margin: 0 auto;
}

.contact-form-container {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.form-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--amalytics-navy);
    margin-bottom: 2rem;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--amalytics-navy);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--amalytics-navy);
    box-shadow: 0 0 0 3px rgba(47, 58, 120, 0.1);
}

.btn-submit {
    margin-top: 1rem;
}

/* Footer */
.footer {
    background: var(--amalytics-navy);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

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

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: 2fr 3fr;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    height: 3rem;
    width: auto;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Responsive Adjustments */
@media (max-width: 640px) {
    .hero-inner {
        gap: 1.5rem;
        padding-top: 2rem;
    }
    
    .hero-bottom {
        margin-top: 2rem;
        gap: 1.5rem;
    }
    
    .title-main {
        font-size: 1.25rem;
    }
    
    .title-subtitle {
        font-size: 2.5rem;
    }
    
    .btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(2rem);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading States */
.btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn.loading::after {
    content: "";
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success Message */
.success-message {
    background: #10b981;
    color: var(--white);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    text-align: center;
    display: none;
}

.success-message.show {
    display: block;
}

/* Error Message */
.error-message {
    background: #ef4444;
    color: var(--white);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    text-align: center;
    display: none;
}

.error-message.show {
    display: block;
}