/* Custom Styles for NextMind */

:root {
    --primary-color: #1aada4;
    --warning-color: #f9be37;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --cyan: #1aada4;
    --pink: #e91e8c;
    --orange: #ff8b3d;
    --yellow: #f9be37;
    --bg-light: #f5f7fa;
    --bg-light-yellow: #faf6e6;
    --bg-light-blue: #f0f1ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    color: #333;
}

/* Section Headings */
section h1 {
    font-size: 1.625rem;
}

section h2 {
    font-size: 1rem;
}

section h3 {
    font-size: 1.25rem;
}

/* Navbar */
.navbar {
    background-color: #fff !important;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: none;
}

.navbar-brand img {
    height: 32px;
}

.nav-link {
    font-weight: 500;
    color: var(--dark-color) !important;
    transition: color 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 0.25rem;
    margin: 0 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color) !important;
    border-bottom-color: var(--primary-color);
}

/* Custom Hamburger Menu */
.navbar-toggler {
    border: none;
    box-shadow: none !important;
}

.navbar-toggler:focus {
    box-shadow: none !important;
    outline: none;
}

.navbar-toggler-icon-custom {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
}

.navbar-toggler-icon-custom span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--dark-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-custom span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-custom span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon-custom span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero-section {
    background-color: #fff;
    position: relative;
    padding: 3rem 0 !important;
}

.hero-tag {
    background-color: var(--warning-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 0;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.hero-title {
    color: #666;
    line-height: 1.2;
    font-size: 3.25rem;
    font-weight: 600;
}

.hero-section .lead {
    color: #000;
    font-weight: 600;
    font-size: 1.375rem;
    line-height: 1.6;
}

.hero-images {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

@media (min-width: 768px) {
    .hero-images {
        margin: 0px -100px -45px -50px;
    }
}


.hero-img {
    position: absolute;
    max-width: 100%;
    height: auto;
}

.hero-img.img-side-1 {
    top: 0;
    left: 0;
    width: 45%;
    z-index: 2;
}

.hero-img.img-side-2 {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 60%;
    z-index: 1;
}

/* Hero Background Asset */
.hero-bg-asset {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 45%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    z-index: 0;
    opacity: 0.9;
}

/* Brand border color override */
.border-brand {
    border-color: var(--primary-color) !important;
}

/* Section Side Assets */
.section-side-asset {
    position: absolute;
    width: 200px;
    height: auto;
    z-index: 0;
    opacity: 0.8;
}

.asset-left {
    left: -10%;
    top: 33%;
}

.asset-right {
    right: -15%;
    top: 15%;
}

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 0;
    
}

.service-card:hover {
}

.clickable-card {
    cursor: pointer;
}

a .clickable-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.15);
}

a.text-decoration-none .service-card h5,
a.text-decoration-none .service-card p {
    color: inherit;
}

.service-card-highlight {
    background: linear-gradient(135deg, var(--cyan) 0%, #17a095 100%);
    box-shadow: 0 4px 16px rgba(31, 182, 174, 0.3);
}

.service-card-highlight:hover {
    box-shadow: 0 12px 28px rgba(31, 182, 174, 0.4);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card h5 {
    font-size: 1.1rem;
    color: #2c3e50;
}

.service-card-highlight h5 {
    color: #fff;
}

.service-card p {
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Case Study Cards */
.case-study-card {
    transition: transform 0.3s ease;
}

.case-study-card:hover {
    transform: translateY(-8px);
}

.case-study-image {
    background: linear-gradient(135deg, #e0e5ec 0%, #f5f7fa 100%);
    aspect-ratio: 16/9;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.case-study-image.mb-4 {
    border-radius: 8px;
}

/* Accordion */
.accordion-item {
    background-color: transparent;
    border-radius: 0 !important;
    overflow: hidden;
    box-shadow: none;
    border: none;
    border-bottom: 1px solid #d1d1d1;
}

.accordion-item:last-child {
    border-bottom: 1px solid #d1d1d1;
}

.accordion-button {
    background-color: transparent;
    font-weight: 500;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border: none;
}

.accordion-button:not(.collapsed) {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: transparent;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath fill-rule='evenodd' d='M8 0a1 1 0 0 1 1 1v6h6a1 1 0 1 1 0 2H9v6a1 1 0 1 1-2 0V9H1a1 1 0 0 1 0-2h6V1a1 1 0 0 1 1-1z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231fb6ae'%3e%3cpath fill-rule='evenodd' d='M0 8a1 1 0 0 1 1-1h14a1 1 0 1 1 0 2H1a1 1 0 0 1-1-1z'/%3e%3c/svg%3e");
}

/* Contact Cards */
.contact-card {
    background-color: transparent;
    border-radius: 0;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

/* Buttons */
.btn {
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: background-color 0.3s ease;
    border-radius: 8px;
    border: none;
}

.btn-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: #000;
}

.btn-warning:hover {
    background-color: #e6ac00;
    border-color: #e6ac00;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #17a095;
    border-color: #17a095;
}

.btn-primary:active,
.btn-primary:focus,
.btn-primary.active {
    background-color: #158f85 !important;
    border-color: #158f85 !important;
}

.btn-primary:disabled,
.btn-primary.disabled {
    background-color: #7dd3ce !important;
    border-color: #7dd3ce !important;
    opacity: 0.65;
}

/* Footer */
footer {
    background-color: #1a1a1a !important;
}

footer h4 {
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    color: #fff;
}

footer a:hover {
    color: var(--primary-color) !important;
    transition: color 0.3s ease;
}

/* Sections */
section {
    scroll-margin-top: 80px;
    position: relative;
}

/* Utility Classes */
.text-muted {
    color: #6c757d !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-pink {
    background-color: var(--pink) !important;
}

/* Page Assets */
.how-we-work-asset {
    position: absolute;
    height: 150px;
    width: auto;
    bottom: -50px;
    right: 50px;
}

.contact-asset {
    position: absolute;
    height: 125px;
    width: auto;
    bottom: 30px;
    left: 6%;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

.bg-light-blue {
    background-color: var(--bg-light-blue) !important;
}

.bg-light-yellow {
    background-color: var(--bg-light-yellow) !important;
}

/* Override Animate.css fadeInUp animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 10%, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

/* Override Animate.css fadeInLeft animation */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-10%, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate__fadeInLeft {
    animation-name: fadeInLeft;
}

/* Override Animate.css fadeInRight animation */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(10%, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate__fadeInRight {
    animation-name: fadeInRight;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-images {
        height: 350px;
    }
    
    .section-side-asset {
        display: none;
    }
    
    /* Mobile Menu Full Screen Overlay */
    .navbar-collapse {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: #fff;
        z-index: 9999;
        padding: 0;
        overflow-y: auto;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .navbar-collapse:not(.show) {
        opacity: 0;
        visibility: hidden;
    }
    
    .navbar-collapse.show {
        opacity: 1;
        visibility: visible;
    }
    
    .navbar-nav {
        margin: 0 !important;
        text-align: center;
        width: 100%;
    }
    
    .nav-item {
        margin-bottom: 0;
        border-bottom: none;
    }
    
    .nav-link {
        font-size: 1.5rem;
        font-weight: 600;
        padding: 1rem 0 !important;
        margin: 0 !important;
        border-bottom: none !important;
        color: var(--dark-color) !important;
    }
    
    .nav-link:hover,
    .nav-link.active {
        color: var(--primary-color) !important;
    }
    
    .navbar-toggler {
        position: relative;
        z-index: 10000;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.85rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .hero-images {
        height: 280px;
        margin-top: 2rem;
    }
    
    .hero-img.img-side-1 {
        width: 50%;
    }
    
    .hero-img.img-side-2 {
        width: 65%;
    }
    
    .hero-bg-asset {
        width: 60%;
    }
    
    .breadcrumb-tag {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .service-card h5 {
        font-size: 1rem;
    }
    
    .service-card p {
        font-size: 0.875rem;
    }
}
