/* Reset and base styles */
html {
    background-color: rgb(2 6 23 / 0.8) !important;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Inter Fallback', sans-serif;
    font-style: normal;
    background-color: rgb(2 6 23 / 0.8) !important;
    color: var(--text-color);
    margin: 0;
}

.social-icons {
    display: flex;
    gap: 0.3rem;
}

.social-icons .icon {
    color: #878787;
    transition: font-size 0.1s;
    cursor: pointer;

    &:hover {
        color: #8391ff;
        font-size: 1.4rem;
    }
}

.navbar-logo {
    font-weight: 600;
    font-size: x-large;
}

/* Skip to main content - Accessibility */
.skip-to-main-content {
    position: absolute;
    top: -999px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    padding: 14px;
    z-index: 1000;
    transition: top 0.3s;
}

.skip-to-main-content:focus {
    top: 20px;
}

/* Header styles */
header {
    background-color: #0206173d !important;
    backdrop-filter: blur(4px);
    border-bottom-color: #0d1736;
    border-width: 2px;
    border-style: solid;
}

/* Navigation styles */
.navbar-start {
    flex-grow: 1;
    justify-content: center;
}

/* Dropdown styles */
.navbar-item.has-dropdown {
    padding: 0.5rem 1rem;
}

.navbar-dropdown {
    display: none;
    position: absolute;
    background-color: rgb(2 6 23 / 0.95);
    border: 1px solid #0d1736;
    border-radius: 6px;
    padding: 0.5rem 0;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 20;
}

.navbar-item.has-dropdown:hover .navbar-dropdown,
.navbar-item.has-dropdown:focus-within .navbar-dropdown {
    display: block;
}

.navbar-dropdown .navbar-item {
    padding: 0.75rem 1rem;
    color: white;
    display: block;
    width: 100%;
    position: relative;
}

.navbar-dropdown .navbar-item:hover {
    background-color: rgba(131, 145, 255, 0.1) !important;
}

/* Nested dropdown styles */
.navbar-dropdown .navbar-item.has-dropdown {
    padding-right: 2rem;
}

.navbar-dropdown .navbar-item.has-dropdown::after {
    content: '›';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8391ff;
}

.navbar-dropdown .navbar-item.has-dropdown:hover::after {
    transform: translateY(-50%) rotate(90deg);
}

.navbar-dropdown .nested-dropdown {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 200px;
    background-color: rgb(2 6 23 / 0.95);
    border: 1px solid #0d1736;
    border-radius: 6px;
    padding: 0.5rem 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.navbar-dropdown .navbar-item.has-dropdown:hover .nested-dropdown,
.navbar-dropdown .navbar-item.has-dropdown:focus-within .nested-dropdown {
    display: block;
}

.navbar-dropdown .navbar-divider {
    height: 1px;
    background-color: #0d1736;
    margin: 0.5rem 0;
}

.navbar-link:not(.is-arrowless)::after {
    border-color: #8391ff;
    margin-top: -0.375em;
    right: 1.125em;
}

.navbar-link {
    color: white;
    padding-right: 2.5em;
}

.navbar-link:hover {
    background-color: rgb(2 6 23 / 0.8) !important;
    color: #8391ff !important;
}

/* Text gradient */
.gradient-text {
    background-image: linear-gradient(to right, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Hero section */
.hero-gradient {
    background: radial-gradient(circle at center, rgb(25 45 100 / 49%) 0%, transparent 70%);
    position: relative;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

.hero-gradient .hero-body {
    position: relative;
    z-index: 2;
}

.hero-gradient .title {
    font-weight: 700;
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
}

.hero-gradient .subtitle {
    --tw-text-opacity: 1;
    color: rgb(148 163 184 / var(--tw-text-opacity));
    font-size: 1.25rem;
    line-height: 1.75rem;
    margin-bottom: 2rem;
}

.box {
    line-height: 2rem;
    padding: 1.5rem;
}

.box .title {
    margin-bottom: 0.75rem !important;
    color: white;
}

.box .subtitle {
    --tw-text-opacity: 1;
    color: rgb(148 163 184 / var(--tw-text-opacity));
}

.segmentos-section .card-gradient {
    min-height: 193px;
}


@media screen and (max-width: 769px) {
    .card-gradient {
        margin-left: 20px;
        margin-right: 20px;
    }
}

.card-gradient {
    background: linear-gradient(180deg, rgba(30, 58, 138, 0.1) 0%, rgba(30, 58, 138, 0.05) 100%);
    border-color: rgb(30 41 59 / var(--tw-border-opacity, 1));
    border-radius: 1rem;
    border-width: 1px;
    border-style: solid;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.media-left figure {
    margin-right: 1rem;
}

.media-top img,
.media-left img {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.recursos-section .media-top img {
    filter: invert(74%) sepia(32%) saturate(5439%) hue-rotate(188deg) brightness(101%) contrast(98%);
}

.media-top {
    display: flex;
    /* justify-content: center; */
    margin-bottom: 1.5rem;
    width: 100%;
}

.media-top figure {
    margin: 0;
}

.recursos-section .card-gradient {
    display: flex;
    flex-direction: column;
    /* align-items: center;
    text-align: center; */
    height: 100%;
}

.media-content {
    color: white;
}

/* Links */
.saiba-mais {
    color: #8391ff;
}

/* Accordion */
.product-accordion {
    border-radius: 10px;
    display: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.3s ease-out, transform 0.3s ease-out;
    margin: 0;
    opacity: 0;
    width: 100%;
    position: relative;
    background: linear-gradient(180deg, #194463 0%, #351963 100%);
    border: 1px solid rgb(30 41 59 / var(--tw-border-opacity, 1));
    color: rgb(148 163 184 / var(--tw-text-opacity, 1));
    transform: translateY(-10px);
    grid-column: 1 / -1;
    scroll-margin-top: 50px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

.product-accordion.is-active {
    display: block;
    max-height: 500px;
    margin: 2rem 0;
    opacity: 1;
    transform: translateY(0);
}

.product-accordion .content-wrapper {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem;
}

.product-accordion .title {
    color: white;
}

.product-accordion .button.is-small.is-link {
    background-color: #99a5fd;
    transition: background-color 0.2s ease;
}

.product-accordion .button.is-small.is-link:hover {
    background-color: #8391ff;
}

.product-accordion ul li {
    color: rgb(148 163 184 / var(--tw-text-opacity, 1));
}

/* Section styles */
/* Tech Stack Section */
.tech-stack-section {
    background-color: #0f172a !important;
}

.tech-stack-section .toolbelt {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
    padding: 2rem 0;
}

.tech-stack-section .skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    color: white;
    width: 80px;
}

.tech-stack-section .skill img {
    width: 48px;
    height: 48px;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.tech-stack-section .skill span {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: rgb(148 163 184 / var(--tw-text-opacity, 1));
}

.tech-stack-section .skill:hover img {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.15);
}

/* Footer */
.footer {
    padding-bottom: 50px;
    background-color: #0a1b43 !important;
}

/* Global color overrides */
#navbarMenu,
section {
    background-color: rgb(2 6 23 / 0.8) !important;
}

.navbar-item:hover {
    background-color: rgb(2 6 23 / 0.8) !important;
    color: #8391ff !important;
}

.navbar-item,
.footer,
.hero .title,
.card-gradient .title,
.section>.container>.title,
.footer .column>.title,
.subtitle {
    color: white;
}

body > footer > div > div.columns > div.column.is-4 > p {
    color: #99a5fd;
}

/* Responsive Grid */
.grid {
    display: grid;
    gap: var(--gap, 1.5rem);
}

.is-gap-5 {
    --gap: 1.25rem;
}

@media screen and (min-width: 769px) {
    .is-col-min-16 {
        grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    }
    
    .is-col-min-10 {
        grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus styles */
a:focus,
button:focus {
    outline: 2px solid #8391ff;
    outline-offset: 2px;
}

/* High contrast mode improvements */
@media (forced-colors: active) {
    .gradient-text {
        -webkit-background-clip: unset;
        background-clip: unset;
        color: ButtonText;
    }
}

/* Mobile responsive adjustments */
@media screen and (max-width: 768px) {
    .hero-gradient .title {
        font-size: 2.5rem;
    }
}

/* WhatsApp floating button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    z-index: 1000;
}

.whatsapp-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    color: white;
}

.company-slogan {
    --tw-text-opacity: 1;
    color: rgb(148 163 184 / var(--tw-text-opacity));
}
