/* ============================================
   MICHO TECHNOLOGIES - LANDING PAGE STYLES
   Modern, Responsive Design with Dotted Background
   ============================================ */

/* ============================================
   DOTTED BACKGROUND PATTERN
   ============================================ */
body {
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(16, 185, 129, 0.15) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: -1;
    pointer-events: none;
}

/* Animated gradient overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(16, 185, 129, 0.08) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.8;
    }
}

/* ============================================
   IMPROVED NAVBAR
   ============================================ */
.navbar {
    padding: 0.5rem 0;
    background: transparent;
    transition: all 0.3s ease;
}

.nav-container {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(55, 65, 81, 0.5);
    border-radius: 2rem;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    width: 100%;
    transition: all 0.3s ease;
}

@media (max-width: 1200px) {
    .nav-container {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 1100px) {
    .nav-container {
        padding: 0.75rem 0.75rem;
    }
}

.nav-container:hover {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 4px 30px rgba(16, 185, 129, 0.2);
}

.navbar-brand img {
    transition: transform 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.nav-items .nav-link {
    color: #d1d5db;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-items .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #10b981, transparent);
    transition: width 0.3s ease;
}

.nav-items .nav-link:hover {
    color: #10b981;
}

.nav-items .nav-link:hover::before {
    width: 80%;
}

.nav-items .nav-link.active {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

/* Responsive Navigation Items */
@media (max-width: 1400px) {
    .nav-items .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.85rem;
    }
}

@media (max-width: 1200px) {
    .nav-items .nav-link {
        font-size: 0.85rem;
        padding: 0.5rem 0.7rem;
    }

    .nav-items {
        margin-left: 1rem !important;
        margin-right: 1rem !important;
    }

    .nav-items ul {
        gap: 0.5rem !important;
    }
}

@media (max-width: 1100px) {
    .nav-items .nav-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.6rem;
    }

    .nav-items {
        margin-left: 0.5rem !important;
        margin-right: 0.5rem !important;
    }

    .nav-items ul {
        gap: 0.25rem !important;
    }
}

/* Mobile Navigation */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.25);
}

.navbar-toggler:hover {
    background: rgba(16, 185, 129, 0.2);
    transform: scale(1.05);
}

.navbar-toggler i {
    font-size: 1.25rem;
}

.navbar-collapse {
    position: relative;
    width: 100%;
    margin-top: 0.75rem;
}

.navbar-collapse.collapsing,
.navbar-collapse.show {
    display: block;
}

.mobile-menu-wrapper {
    background: rgba(17, 24, 39, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(55, 65, 81, 0.5);
    border-radius: 1rem;
    padding: 0.75rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    max-height: 70vh;
    overflow-y: auto;
}

/* Mobile menu items */
.mobile-menu-wrapper .nav-link {
    color: #d1d5db;
    padding: 0.75rem 0.875rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.mobile-menu-wrapper .nav-link:hover,
.mobile-menu-wrapper .nav-link.active {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    transform: translateX(8px);
}

.mobile-menu-wrapper .nav-link i {
    width: 20px;
    text-align: center;
}

.mobile-menu-cta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(55, 65, 81, 0.5);
}

.logo-img {
    transition: transform 0.3s ease;
}

/* Logo responsive sizing */
@media (max-width: 1100px) {
    .logo-img {
        height: 45px !important;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 40px !important;
    }
}

@media (max-width: 576px) {
    .logo-img {
        height: 35px !important;
    }

    .mobile-menu-wrapper .nav-link {
        padding: 0.625rem 0.75rem;
        font-size: 0.9rem;
    }

    .mobile-menu-wrapper .nav-link i {
        font-size: 0.9rem;
    }

    .nav-container {
        padding: 0.5rem 0.75rem;
    }
}


.footer-link{
    color: var(--text-secondary) !important;
}

.footer-link:hover {
    color: var(--bs-primary) !important;
    text-decoration: underline !important;
}


/* ============================================
   HERO SECTION - ENHANCED
   ============================================ */
.hero-card {
    border: 1px solid rgba(55, 65, 81, 0.6);
    border-radius: 2rem;
    padding: 3rem 2rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    pointer-events: none;
}


.bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    opacity: 0.4;
    pointer-events: none;
}

.pattern-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(16, 185, 129, 0.3);
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.05) 0%, transparent 70%);
}

.pattern-1 {
    width: 400px;
    height: 400px;
    top: -150px;
    right: -100px;
    animation: rotatePattern 25s linear infinite;
}

.pattern-2 {
    width: 250px;
    height: 250px;
    bottom: -80px;
    left: -60px;
    animation: rotatePattern 20s linear infinite reverse;
}

@keyframes rotatePattern {
    from {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
    to {
        transform: rotate(360deg) scale(1);
    }
}

.card-content {
    position: relative;
    z-index: 2;
}

/* Hero Content */
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
}

@keyframes titleGlow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

.hero-title .text-primary {
    color: #10b981;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #d1d5db;
    line-height: 1.8;
    font-weight: 400;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
    border-radius: 0.75rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.hero-buttons .btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.hero-buttons .btn:hover::before {
    width: 400px;
    height: 400px;
}

.hero-buttons .btn-primary {
    background: var(--bs-primary);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.4);
}

.hero-buttons .btn-primary:hover {
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.5);
}

.hero-buttons .btn-secondary {
    background: rgba(55, 65, 81, 0.8);
    border: 1px solid rgba(107, 114, 128, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.hero-buttons .btn-secondary:hover {
    background: rgba(75, 85, 99, 0.9);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

/* Hero Image with Unique Shape */
.hero-img {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero-img::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(5, 150, 105, 0.1) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 0;
    filter: blur(40px);
}

.hero-img::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 2px solid rgba(16, 185, 129, 0.3);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 1;
}

.hero-img img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: auto;
    max-width: 500px;
    object-fit: cover;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                0 0 60px rgba(16, 185, 129, 0.3);
    filter: brightness(1.05) contrast(1.1);
}

/* Decorative elements around hero image */
.hero-img .decoration-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    z-index: 3;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.content-section{
    background: rgba(17, 24, 39, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(55, 65, 81, 0.5);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin-bottom: 2rem;
    margin-top: 2rem;
}

.content-section h2, .content-section h1 {
    color: #ffffff;
}

/* Service Cards */
.card-metric {
    background: linear-gradient(135deg, rgba(31, 41, 55, 0.9) 0%, rgba(17, 24, 39, 0.9) 100%);
    border: 1px solid rgba(55, 65, 81, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card-metric:hover {
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.2);
}

.icon-circle {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.25rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
}


/* ============================================
   RESPONSIVE DESIGN FOR HERO
   ============================================ */

/* Tablets and below (≤992px) */
@media (max-width: 992px) {
    .hero-card {
        padding: 2.5rem 1.5rem;
    }

    .hero-title {
        font-size: 2.75rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-buttons .btn {
        padding: 0.75rem 1.75rem;
    }
}

/* Mobile devices (≤768px) */
@media (max-width: 768px) {
    .hero-card {
        padding: 2rem 1.25rem;
        margin-top: 1rem;
        border-radius: 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-img {
        padding: 1.5rem 1rem;
        margin-top: 2rem;
    }

    .hero-img img {
        max-width: 100%;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 0.75rem;
    }

    .hero-buttons .btn {
        flex: 1;
        min-width: 0;
        justify-content: center;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .pattern-1 {
        width: 250px;
        height: 250px;
        top: -100px;
        right: -50px;
    }

    .pattern-2 {
        width: 150px;
        height: 150px;
        bottom: -40px;
        left: -30px;
    }
}

/* Small mobile devices (≤576px) */
@media (max-width: 576px) {
    .hero-card {
        padding: 1.5rem 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-buttons {
        gap: 0.5rem;
    }

    .hero-buttons .btn {
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
    }

    .hero-buttons .btn i {
        display: none;
    }

    .hero-img {
        padding: 1rem 0.5rem;
        margin-top: 1.5rem;
    }

    .hero-img img {
        max-width: 100%;
    }
}
