/* Custom Styles for MKRDimension Website */

:root {
    --primary-color: #0096c7;
    --primary-dark: #0077b6;
    --primary-light: #00b4d8;
    --dark-blue: #0a2540;
    --dark-blue-alt: #1a2b47;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-white);
    position: relative;
    min-height: 100vh;
    padding-top: 90px; /* Space for fixed navbar */
}

/* White sections should have white backgrounds without grid */
.trusted-brands,
.why-choose,
.boosting-brand,
.ready-transform,
.blog-section {
    background-color: var(--bg-white) !important;
    background-image: none !important;
}

/* Header Styles */
.navbar {
    padding: 1rem 0;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
}

.navbar .container {
    background-color: var(--bg-white) !important;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    width: calc(100% - 40px);
    margin: 0 auto;
}

.navbar-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.logo-mkr {
    color: var(--text-dark);
    font-weight: 700;
}

.logo-dimension {
    color: var(--primary-color);
    font-weight: 700;
    margin-left: 2px;
}

.logo-reg {
    font-size: 0.7rem;
    vertical-align: super;
    margin-left: 2px;
    color: var(--text-dark);
    font-weight: 400;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.75rem;
    padding: 0.5rem 0 !important;
    transition: color 0.3s;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 0.75rem;
    margin-top: 0.75rem;
    padding: 0.75rem 0;
    min-width: 250px;
    animation: dropdownFadeIn 0.3s ease-out;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar-nav .dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
}

.navbar-nav .dropdown-item i {
    width: 20px;
    text-align: center;
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item:focus {
    background-color: rgba(0, 150, 199, 0.1);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 1.75rem;
}

.navbar-nav .dropdown-item.fw-semibold {
    font-weight: 600;
    color: var(--text-dark);
    background-color: rgba(0, 150, 199, 0.05);
}

.navbar-nav .dropdown-item.fw-semibold:hover {
    background-color: rgba(0, 150, 199, 0.15);
    color: var(--primary-color);
}

.navbar-nav .dropdown-divider {
    margin: 0.5rem 0;
    opacity: 0.2;
}

/* Hide Bootstrap's default dropdown caret */
.navbar-nav .dropdown-toggle::after {
    display: none !important;
}

.dropdown-chevron {
    font-size: 0.875rem;
    transition: transform 0.3s;
    display: inline-block;
    margin-left: 0.25rem;
    vertical-align: middle;
}

.nav-link.dropdown-toggle[aria-expanded="true"] .dropdown-chevron {
    transform: rotate(180deg);
}

@media (min-width: 992px) {
    .dropdown-chevron {
        display: inline-block;
    }
}

/* Mobile Menu Toggle Button */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 1.25rem;
    background-color: transparent;
    border-radius: 0.375rem;
    transition: all 0.3s;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 150, 199, 0.25);
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Responsive Dropdown Styles */
@media (max-width: 991px) {
    body {
        padding-top: 85px; /* Adjusted for smaller navbar */
    }
    
    .navbar .container {
        border-radius: 30px;
        padding: 0.75rem 1.5rem;
        width: calc(100% - 30px);
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    /* Mobile Menu Collapse */
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .navbar-nav {
        width: 100%;
        gap: 0.5rem;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
    }
    
    .navbar-nav .nav-link {
        width: 100%;
        padding: 0.75rem 1rem !important;
        margin: 0 !important;
        border-radius: 0.5rem;
        text-align: left;
        transition: all 0.3s;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: rgba(0, 150, 199, 0.1);
        color: var(--primary-color) !important;
    }
    
    .navbar-nav .nav-link::after {
        display: none; /* Hide underline on mobile */
    }
    
    /* Let's Talk Button on Mobile */
    .navbar-collapse .d-flex {
        width: 100%;
        margin-top: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .navbar-collapse .d-flex .btn-lets-talk {
        width: 100%;
        text-align: center;
        justify-content: center;
        display: flex;
        align-items: center;
    }
    
    /* Dropdown Menu on Mobile */
    .navbar-nav .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0.5rem;
        margin-left: 0 !important;
        box-shadow: none;
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 0.5rem;
        background-color: var(--bg-light);
        max-width: 100%;
    }
    
    .navbar-nav .dropdown-item {
        padding: 1rem 1.5rem;
        border-left: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .navbar-nav .dropdown-item:last-child {
        border-bottom: none;
    }
    
    .navbar-nav .dropdown-item:hover {
        padding-left: 1.5rem;
        border-left: none;
        background-color: rgba(0, 150, 199, 0.1);
    }
    
    .navbar-nav .nav-item.dropdown {
        width: 100%;
    }
    
    .navbar-nav .nav-link.dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }
    
    .dropdown-chevron {
        display: inline-block;
    }
}

@media (max-width: 576px) {
    .navbar .container {
        padding: 0.5rem 1rem;
    }
    
    .navbar-collapse {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.625rem 0.875rem !important;
        font-size: 0.95rem;
    }
    
    .navbar-nav .dropdown-menu {
        padding: 0.5rem 0;
        margin-top: 0.375rem;
    }
    
    .navbar-nav .dropdown-item {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .navbar-nav .dropdown-item i {
        font-size: 1rem;
    }
    
    .navbar-collapse .d-flex .btn-lets-talk {
        padding: 0.625rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Desktop: Dropdown positioning */
@media (min-width: 992px) {
    .navbar-nav .dropdown-menu {
        left: auto;
        right: 0;
    }
    
    .navbar-nav .dropdown-menu-lg-end {
        left: auto;
        right: 0;
    }
}

.btn-outline-primary.rounded-pill {
    border-width: 2px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-primary.rounded-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 150, 199, 0.3);
}

/* Let's Talk Button in Navbar */
.btn-lets-talk {
    background-color: #0082FB;
    border: 1px solid #0082FB;
    color: #ffffff;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-lets-talk:hover {
    background-color: #0070d9;
    border-color: #0070d9;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 130, 251, 0.3);
}

/* Hero Section */
.hero-section {
    padding: 5rem 0;
    background-color: var(--bg-white) !important;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.12) 1px, transparent 1px) !important;
    background-size: 80px 80px !important;
    position: relative;
    overflow: hidden;
}

.hero-section:not(.hero-section-has-image) {
    padding: 5rem 0;
}

.hero-section.hero-section-has-image {
    background-image: none !important;
    padding: 0 !important;
    position: relative;
}

.hero-section.hero-section-has-image::before {
    display: none;
}

.hero-section-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 150, 199, 0.02) 0%, rgba(10, 37, 64, 0.02) 100%);
    z-index: 0;
}

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

.hero-section.hero-section-has-image .container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    z-index: 2;
}

.hero-section h1 {
    color: var(--text-dark);
    line-height: 1.2;
    font-size: 3rem;
}

.expertise-tag .badge {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hero-features {
    font-size: 1.1rem;
}

.hero-features i {
    font-size: 1.25rem;
}

/* Floating Contact Buttons (Fixed at Bottom Left) */
.floating-contact-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.contact-icon:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

.whatsapp-icon {
    background-color: #25D366;
}

.email-icon {
    background-color: #EA4335;
}

.phone-icon {
    background-color: #6c757d;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

/* Responsive Floating Buttons */
@media (max-width: 991px) {
    .floating-contact-buttons {
        bottom: 15px;
        left: 15px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .hero-content {
        padding-left: 0 !important;
        text-align: center;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    body {
        padding-top: 75px; /* Adjusted for mobile navbar */
    }
    
    .navbar .container {
        border-radius: 25px;
        padding: 0.5rem 1rem;
        width: calc(100% - 20px);
        margin: 0 auto;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .logo-text {
        font-size: 1.25rem;
    }
    
    .logo-reg {
        font-size: 0.6rem;
    }
    
    .navbar-logo {
        max-height: 80px !important;
        height: 80px !important;
    }
    
    .floating-contact-buttons {
        bottom: 10px;
        left: 10px;
        gap: 10px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Trusted Brands Section */
.trusted-brands {
    padding: 3rem 0;
    background-color: var(--bg-white) !important;
    background-image: none !important;
    position: relative;
}

.brand-carousel-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 2rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.brand-carousel-track {
    display: flex;
    align-items: center;
    gap: 3rem;
    animation: scroll-horizontal 30s linear infinite;
    width: fit-content;
}

.brand-logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    height: 100px;
}

.brand-logo-img {
    max-height: 80px;
    max-width: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: filter 0.3s, opacity 0.3s, transform 0.3s;
}

.brand-logo-item:hover .brand-logo-img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes scroll-horizontal {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Pause animation on hover */
.brand-carousel-wrapper:hover .brand-carousel-track {
    animation-play-state: paused;
}

/* Why Choose Section */
.why-choose {
    padding: 4rem 0;
    background-color: var(--bg-white) !important;
    background-image: none !important;
    position: relative;
}

/* Services Section */
.services-section {
    background-color: var(--dark-blue) !important;
    background-image: 
        linear-gradient(135deg, var(--dark-blue) 0%, var(--dark-blue-alt) 100%),
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) !important;
    background-size: 100% 100%, 80px 80px, 80px 80px;
    padding: 4rem 0;
}

.service-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    border-radius: 1.5rem !important;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.service-icon {
    color: var(--primary-color);
}

.service-card .text-primary {
    color: var(--primary-color) !important;
}

/* Boosting Brand Section */
.boosting-brand {
    padding: 4rem 0;
    background-color: var(--bg-white) !important;
    background-image: none !important;
    position: relative;
}

/* Digital Solutions Section */
.digital-solutions {
    background-color: var(--dark-blue) !important;
    background-image: 
        linear-gradient(135deg, var(--dark-blue) 0%, var(--dark-blue-alt) 100%),
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) !important;
    background-size: 100% 100%, 80px 80px, 80px 80px;
    padding: 4rem 0;
}

.stats-box {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Testimonials Section */
.testimonials {
    padding: 4rem 0;
    background-color: var(--bg-light) !important;
    background-image: none !important;
    position: relative;
}

.testimonial-bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.bubble {
    position: absolute;
    max-width: 200px;
}

.bubble-1 {
    top: 10%;
    right: 10%;
}

.bubble-2 {
    bottom: 20%;
    left: 5%;
}

.social-stat-card {
    transition: transform 0.3s;
}

.social-stat-card:hover {
    transform: translateY(-5px);
}

/* Ready Transform Section */
.ready-transform {
    padding: 4rem 0;
    background-color: var(--bg-white) !important;
    background-image: none !important;
    position: relative;
}

.call-overlay {
    max-width: 300px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    background-color: var(--primary-color) !important;
}

/* Ready Dominate Section */
.ready-dominate {
    background-color: var(--dark-blue) !important;
    background-image: 
        linear-gradient(135deg, var(--dark-blue) 0%, var(--dark-blue-alt) 100%),
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) !important;
    background-size: 100% 100%, 80px 80px, 80px 80px;
    padding: 4rem 0;
}

/* Blog Section */
.blog-section {
    padding: 4rem 0;
    background-color: var(--bg-white) !important;
    background-image: none !important;
    position: relative;
}

.blog-card {
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.blog-card img {
    height: 250px;
    object-fit: cover;
}

/* Newsletter Section */
.newsletter {
    padding: 3rem 0;
    background-color: var(--bg-light) !important;
    background-image: none !important;
    position: relative;
}

.newsletter .form-control {
    border-radius: 0.375rem 0 0 0.375rem;
}

.newsletter .btn {
    border-radius: 0 0.375rem 0.375rem 0;
}

/* Footer */
.footer {
    background-color: var(--dark-blue) !important;
    background-image: 
        linear-gradient(135deg, var(--dark-blue) 0%, var(--dark-blue-alt) 100%),
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px) !important;
    background-size: 100% 100%, 80px 80px, 80px 80px;
    padding: 3rem 0 1.5rem;
}

.logo-mkr-footer {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
}

.logo-dimension-footer {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-light);
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s;
}

.social-icons a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer a:hover {
    color: #ffffff !important;
}

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 150, 199, 0.4);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    color: #ffffff;
}

/* Accordion Styles */
.accordion-button {
    font-weight: 600;
    color: var(--text-dark);
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-color);
    color: #ffffff;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .bubble {
        display: none;
    }
    
    .call-overlay {
        position: relative !important;
        margin: 1rem 0 !important;
    }
    
    .stats-box {
        margin-top: 1rem !important;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 2rem 0;
    }
    
    .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
    
    .service-card,
    .blog-card {
        margin-bottom: 1.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Section Spacing */
section {
    scroll-margin-top: 80px;
}

