/* 
   Levarech - Corporate Styles
   Author: Senior UI/UX Developer
*/

:root {
    --primary-color: #006ce6; /* More vibrant blue */
    --primary-dark: #004a99;
    --secondary-color: #7209b7; /* Tech Purple inspired by Finnegans */
    --accent-tech: #4cc9f0; /* Cyan for micro-actions */
    --text-main: #1a1c1e;
    --text-light: #525f6b;
    --bg-light: #f4f7fa;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-medium: 0 12px 30px rgba(0, 108, 230, 0.08);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --container-width: 1200px;
}

/* --- Base & Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.container-narrow {
    max-width: 800px;
}

.text-center {
    text-align: center;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 91, 181, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 91, 181, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    margin-left: 1rem;
}

.btn-secondary:hover {
    background-color: rgba(0, 91, 181, 0.05);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1.2rem;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-block {
    width: 100%;
}

/* --- Sections --- */
section {
    padding: 6rem 0;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.divider {
    height: 4px;
    width: 60px;
    background: var(--primary-color);
    margin: 0 auto;
    border-radius: 2px;
}

.section-header:not(.text-center) .divider {
    margin: 0;
}

/* --- Header --- */
.header {
    background-color: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 45px;
    width: auto;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-list a:not(.btn) {
    font-weight: 500;
    color: var(--text-main);
}

.nav-list a:not(.btn):hover {
    color: var(--primary-color);
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
}

.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, #ffffff 0%, #f1f8ff 100%);
    padding-top: 10rem;
    padding-bottom: 8rem;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 4rem;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 91, 181, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-image {
    position: relative;
}

.main-img {
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    z-index: 2;
    position: relative;
    border: 8px solid white;
}

.abstract-shape {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.1) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    z-index: 1;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 15s linear infinite;
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }

    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }

    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

/* --- About Section --- */
.about {
    background-color: var(--bg-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.lead {
    font-size: 1.3rem;
    color: var(--primary-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.about-content p:not(.lead) {
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.about-features {
    margin-top: 2rem;
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.about-features svg {
    width: 20px;
    color: var(--primary-color);
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-white);
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: var(--transition);
    transform-origin: left;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 91, 181, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.service-icon svg {
    width: 32px;
    height: 32px;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-light);
}

/* --- Workflow Section --- */
.workflow {
    background-color: var(--bg-white);
}

.highlight-container {
    background: var(--primary-dark);
    border-radius: 40px;
    padding: 5rem 4rem;
    color: white;
}

.workflow .section-header h2,
.workflow .section-header p {
    color: white;
}

.workflow .divider {
    background: var(--secondary-color);
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    position: relative;
}

.step {
    position: relative;
    z-index: 2;
}

.step-number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
    position: absolute;
    top: -2.5rem;
    left: 0;
}

.step h4 {
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
}

.step p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* --- Benefits Section --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
}

.benefit-item {
    text-align: center;
    padding: 1rem;
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.benefit-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.benefit-item p {
    color: var(--text-light);
}

/* --- Contact Section --- */
.contact {
    background: linear-gradient(180deg, var(--bg-light) 0%, #eef5fb 100%);
}

.contact-box {
    background: white;
    padding: 4rem;
    border-radius: 30px;
    box-shadow: var(--shadow-medium);
}

.contact-form {
    margin-top: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 91, 181, 0.1);
}

/* --- Footer --- */
.footer {
    background-color: #1a1a1a;
    color: white;
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    color: #999;
}

.footer h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #999;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    color: #999;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: bold;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    color: #666;
    font-size: 0.9rem;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-text h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    section {
        padding: 4rem 0;
    }

    .nav-list {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
        transform: translateY(-150%);
        transition: var(--transition);
    }

    .nav-list.active {
        transform: translateY(0);
    }

    .mobile-nav-toggle {
        display: flex;
    }

    .hero {
        padding-top: 8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-box {
        padding: 2rem;
    }

    .workflow-steps {
        gap: 4rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .btn-secondary {
        margin-left: 0;
    }
}

/* --- Small Mobile Devices --- */
@media (max-width: 480px) {
    .section-header h2 {
        font-size: 2rem;
    }

    .hero-text h1 {
        font-size: 2.2rem;
    }

    .hero-content {
        gap: 2rem;
    }

    .contact-box {
        padding: 1.5rem;
    }

    .stat-card {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* --- Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@keyframes pulse-accent {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(76, 201, 240, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(76, 201, 240, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(76, 201, 240, 0); }
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 108, 230, 0.3);
}

/* --- Floating WhatsApp --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #128c7e;
}

.whatsapp-float img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
}