/* Description: Modern CSS for Mechavate Site */

/*****************************************
Table Of Contents:
- CSS Variables & Root
- General Styles
- Navigation
- Header/Hero
- Statistics
- About/Introduction
- Services
- Projects
- Contact
- Footer
- Animations
- Media Queries
******************************************/

/**************************/
/*   CSS Variables        */
/**************************/
:root {
    /* Colors */
    --primary: #0f172a;
    --primary-light: #1e293b;
    --secondary: #0ea5e9;
    --accent: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #14b8a6 100%);
    --text-dark: #0f172a;
    --text-medium: #475569;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-light: #e2e8f0;

    /* Spacing */
    --section-padding: 6rem;
    --container-padding: 1.5rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 300ms ease;
    --transition-slow: 500ms ease;
}


/**************************/
/*     General Styles     */
/**************************/
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-medium);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.5rem;
    color: var(--text-medium);
}

.p-large {
    font-size: 1.25rem;
    line-height: 1.8;
}

.p-small {
    font-size: 0.875rem;
    line-height: 1.6;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Section styling */
section, .section {
    padding: var(--section-padding) 0;
}

/* Background variants */
.bg-light {
    background-color: var(--bg-light);
}

.bg-gray {
    background-color: var(--bg-light);
}

.bg-gradient {
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
}

.bg-dark {
    background-color: var(--primary);
    color: #fff;
}

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6 {
    color: #fff;
}

.bg-dark p {
    color: #cbd5e1;
}

/* Text utilities */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-center { text-align: center; }
.text-left { text-align: left; }

/* Badge/Label */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-full);
    background: rgba(14, 165, 233, 0.1);
    color: var(--secondary);
}

/* Modern Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-solid-lg,
.btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    padding: 1.125rem 2.5rem;
    box-shadow: 0 4px 14px 0 rgba(14, 165, 233, 0.4);
}

.btn-solid-lg:hover,
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(14, 165, 233, 0.5);
    color: #fff;
}

.btn-outline-lg,
.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    padding: 1.125rem 2.5rem;
    border: 2px solid var(--border-light);
}

.btn-outline-lg:hover,
.btn-secondary:hover {
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translateY(-2px);
}

.btn-outline-sm {
    background: transparent;
    color: var(--secondary);
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--secondary);
    font-size: 0.875rem;
}

.btn-outline-sm:hover {
    background: var(--secondary);
    color: #fff;
}


/**********************/
/*     Navigation     */
/**********************/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.5rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    padding: 0.4rem 0;
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .navbar-brand {
    display: flex;
    align-items: center;
}

.navbar .logo-image img {
    height: 32px;
    width: auto;
}

.navbar .logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    text-decoration: none;
}

.navbar .navbar-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar .nav-item .nav-link {
    display: block;
    padding: 0.5rem 0.875rem;
    color: var(--text-medium);
    font-weight: 500;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.navbar .nav-item .nav-link:hover,
.navbar .nav-item .nav-link.active {
    color: var(--secondary);
    background: rgba(14, 165, 233, 0.1);
}

.btn-outline-sm {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--secondary);
    padding: 0.5rem 1.25rem;
    border: 2px solid var(--secondary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
}

.btn-outline-sm:hover {
    background: var(--secondary);
    color: #fff;
}

.navbar-toggler {
    display: none;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.navbar-toggler-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--text-dark);
}

.navbar-toggler-icon::before { top: -7px; }
.navbar-toggler-icon::after { bottom: -7px; }

/* Desktop Navigation */
.offcanvas-collapse {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
}


/*****************/
/*    Header     */
/*****************/
.header,
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 50%, #f0fdfa 100%);
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -25%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

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

.header .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
}

.header .text-container {
    flex: 1;
    min-width: 300px;
}

.header .h1-large {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.header .h1-large .highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header .p-large {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.header .btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.header .image-container {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.header .image-container img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
    animation: float 6s ease-in-out infinite;
}

/* Hide decoration stars - using CSS gradients instead */
.decoration-star,
.decoration-star-2 {
    display: none;
}


/**********************/
/*     Statistics     */
/**********************/
.counter {
    padding: 5rem 0;
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.counter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(14, 165, 233, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

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

.counter-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
}

.counter-cell {
    padding: 1.5rem 1rem;
}

.counter .purecounter {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.75rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.counter .counter-info {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/************************/
/*     Introduction     */
/************************/
.basic-1 {
    padding: 6rem 0;
}

.basic-1 .container {
    max-width: 900px;
}

.basic-1 h2 {
    margin-bottom: 2rem;
}

.basic-1 p {
    font-size: 1.125rem;
    line-height: 1.8;
}


/*********************/
/*     Services      */
/*********************/
.basic-2 {
    padding: 6rem 0;
    position: relative;
    background: var(--bg-white);
}

.basic-2 .row {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: center;
}

.basic-2 .col-lg-6 {
    flex: 1;
    min-width: 300px;
}

.basic-2 .image-container {
    margin-bottom: 2rem;
}

.basic-2 .image-container img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-normal);
}

.basic-2 .image-container:hover img {
    transform: scale(1.02);
}

.basic-2 h2 {
    margin-bottom: 2rem;
}

/* Service cards styling */
.basic-2 .list-unstyled,
.cards-1 .list-unstyled {
    list-style: none;
    padding: 0;
    margin: 0;
}

.basic-2 .list-unstyled li,
.cards-1 .list-unstyled li {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
}

.basic-2 .list-unstyled li:hover,
.cards-1 .list-unstyled li:hover {
    border-color: var(--secondary);
    box-shadow: var(--shadow-md);
    transform: translateX(8px);
}

.basic-2 .list-unstyled .fas,
.cards-1 .list-unstyled .fas {
    color: var(--secondary);
    font-size: 0.5rem;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.basic-2 .list-unstyled strong,
.cards-1 .list-unstyled strong {
    display: block;
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.basic-2 .list-unstyled p,
.cards-1 .list-unstyled p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.6;
}


/********************/
/*     Projects     */
/********************/
.cards-1 {
    padding: 6rem 0;
    background: var(--bg-light);
}

.cards-1 h2 {
    margin-bottom: 3rem;
}


/*******************/
/*     Contact     */
/*******************/
.form-1 {
    padding: 6rem 0;
    background: var(--bg-white);
    position: relative;
}

.form-1 .row {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: center;
}

.form-1 .col-lg-6 {
    flex: 1;
    min-width: 300px;
}

.form-1 .image-container img {
    max-width: 100%;
    border-radius: var(--radius-lg);
}

.form-1 h2 {
    margin-bottom: 1.5rem;
}

.form-1 .lead {
    font-size: 1.125rem;
    color: var(--text-medium);
    margin-bottom: 1.5rem;
}

.form-1 .lead a {
    color: var(--secondary);
    font-weight: 600;
}

.form-1 .lead a:hover {
    text-decoration: underline;
}

/* Contact card styling */
.contact-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}


/******************/
/*     Footer     */
/******************/
.footer {
    padding: 4rem 0 2rem;
    background: var(--bg-light);
}

.footer-col {
    margin-bottom: 2rem;
}

.footer h6 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer p {
    color: var(--text-light);
    font-size: 0.875rem;
    line-height: 1.7;
}


/******************************/
/*     Back To Top Button     */
/******************************/
#myBtn {
    position: fixed;
    z-index: 99;
    bottom: 24px;
    right: 24px;
    display: none;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #fff;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

#myBtn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
}

#myBtn img {
    width: 16px;
    filter: brightness(0) invert(1);
}


/********************/
/*    Animations    */
/********************/
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Stagger animation delays */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }


/*************************/
/*     Media Queries     */
/*************************/
@media (max-width: 991px) {
    .navbar-toggler {
        display: block;
    }

    .offcanvas-collapse {
        position: fixed;
        top: 0;
        right: -100%;
        bottom: 0;
        width: 280px;
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        background: var(--bg-white);
        box-shadow: var(--shadow-xl);
        transition: right var(--transition-normal);
        z-index: 1001;
    }

    .offcanvas-collapse.open {
        right: 0;
    }

    .navbar .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .navbar .nav-item {
        width: 100%;
    }

    .navbar .nav-item .nav-link {
        padding: 1rem 0;
        border-bottom: 1px solid var(--border-light);
    }

    .offcanvas-collapse .btn-outline-sm {
        margin-top: 1rem;
    }

    .header {
        padding-top: 5rem;
        min-height: auto;
    }

    .header .row {
        flex-direction: column;
        text-align: center;
    }

    .header .p-large {
        margin-left: auto;
        margin-right: auto;
    }

    .header .btn-group {
        justify-content: center;
    }

    .header .image-container {
        margin-top: 3rem;
    }

    .basic-2 .row,
    .form-1 .row {
        flex-direction: column;
    }

    .counter-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    :root {
        --section-padding: 4rem;
    }

    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .header .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .header .btn-group .btn {
        width: 100%;
    }

    .counter-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .counter-cell {
        padding: 1rem 0.5rem;
    }

    .counter .purecounter {
        font-size: 2rem;
    }

    .basic-2 .list-unstyled li,
    .cards-1 .list-unstyled li {
        flex-direction: column;
        gap: 0.5rem;
    }

    .basic-2 .list-unstyled .fas,
    .cards-1 .list-unstyled .fas {
        display: none;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }

    .header {
        padding: 10rem 0 6rem;
    }

    .header .text-container {
        max-width: 600px;
    }
}

/* Extra large screens */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}
