/*HERO*/

/* Import Montserrat font */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@100&display=swap');

/* Smooth scrolling for entire page */
html {
    scroll-behavior: smooth;
}

/* Remove WordPress default spacing on hero section */
.hero-section,
section.hero-section {
    margin: 0 !important;
}

/* Remove entry-content padding if hero is inside it */
.entry-content > .hero-section:first-child {
    margin-top: -80px !important; /* Pull hero to top - adjust to match navbar height */
}

/* Alternative: If navbar is transparent, use this instead */
/* Uncomment these lines and comment out the above if you want hero behind navbar
.hero-section {
    position: relative;
    margin-top: 0 !important;
}

body.home {
    padding-top: 0 !important;
}
*/

/* Reset for hero section */
.hero-section * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #1e2847 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -80px !important; /* Pulls section up - adjust to match navbar height */
    padding-top: 0 !important;
}

/* Canvas for neural network and connections */
#neuralCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Content container */
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    perspective: 1000px;
}

/* Words container */
.words-container {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

/* Word-circle pairs */
.word-pair {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transform-style: preserve-3d;
}

/* Circles beside words - HIDDEN FOR DEBUG */
.word-circle {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    /* HIDDEN: Remove visual styling to see debug dots */
    background: none !important;
    box-shadow: none !important;
    /* Original styling commented out:
    background: radial-gradient(circle, rgba(13, 110, 253, 0.8) 0%, rgba(13, 110, 253, 0.4) 70%);
    box-shadow: 0 0 30px rgba(13, 110, 253, 0.6),
                0 0 60px rgba(13, 110, 253, 0.3);
    */
    flex-shrink: 0;
}

/* Individual words */
.word-node {
    font-family: 'Montserrat', sans-serif;
    font-weight: 100;
    font-size: clamp(0.85rem, 2.5vw, 1.5rem);
    color: #fff;
    text-shadow: 0 0 30px rgba(13, 110, 253, 0.8),
                 0 0 60px rgba(13, 110, 253, 0.4);
    letter-spacing: 0.05em;
    white-space: nowrap;
}

/* Position each word-circle pair differently */
.word-pair:nth-child(1) {
    top: 20%;
    left: 15%;
    animation: pairAppear 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 0s;
}

.word-pair:nth-child(2) {
    top: 35%;
    left: 20%;
    animation: pairAppear 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 1s;
}

.word-pair:nth-child(3) {
    top: 55%;
    left: 25%;
    animation: pairAppear 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 2s;
}

.word-pair:nth-child(4) {
    bottom: 30%;
    right: 15%;
    flex-direction: row-reverse;
    animation: pairAppear 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 3s;
}

.word-pair:nth-child(5) {
    top: 20%;
    right: 15%;
    flex-direction: row-reverse;
    animation: pairAppear 2.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
    animation-delay: 4s;
}

/* Logo container - appears after all words */
.logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: logoAppear 2s ease-out forwards;
    animation-delay: 6s;
}

.logo-container img {
    max-width: 350px;
    width: 90vw;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(13, 110, 253, 0.6))
            drop-shadow(0 0 25px rgba(13, 110, 253, 0.4));
}

/* Scroll down button */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    opacity: 0;
    animation: scrollAppear 1s ease-out forwards, bounce 3s ease-in-out infinite;
    animation-delay: 0s, 1s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-down-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 100;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(13, 110, 253, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(13, 110, 253, 0.1);
    box-shadow: 0 0 20px rgba(13, 110, 253, 0.4);
    position: relative;
}

.scroll-arrow::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(13, 110, 253, 1);
    border-bottom: 2px solid rgba(13, 110, 253, 1);
    transform: rotate(45deg);
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -6px;
    margin-left: -4px;
}

.scroll-down:hover .scroll-arrow {
    background: rgba(13, 110, 253, 0.3);
    box-shadow: 0 0 30px rgba(13, 110, 253, 0.6);
    transform: translateY(3px);
}

/* Animations */
@keyframes pairAppear {
    0% {
        opacity: 0;
        transform: translateX(0) scale(0.1) translateZ(-1000px);
        filter: blur(10px);
    }
    15% {
        opacity: 0.5;
        filter: blur(5px);
    }
    40% {
        opacity: 1;
        transform: translateX(0) scale(1) translateZ(0);
        filter: blur(0px);
    }
    60% {
        opacity: 1;
        transform: translateX(0) scale(1) translateZ(0);
        filter: blur(0px);
    }
    85% {
        opacity: 1;
        transform: translateX(0) scale(1) translateZ(0);
        filter: blur(0px);
    }
    100% {
        opacity: 0;
        transform: translateX(0) scale(1) translateZ(0);
        filter: blur(0px);
    }
}

@keyframes logoAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes scrollAppear {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(5px);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .word-node {
        font-size: clamp(0.75rem, 2.5vw, 1.2rem);
    }

    .word-circle {
        width: 18px;
        height: 18px;
    }

    .word-pair {
        gap: 15px;
    }

    .word-pair:nth-child(1) { top: 10%; left: 15%; }
    .word-pair:nth-child(2) { top: 10%; right: 15%; }
    .word-pair:nth-child(3) { top: 45%; left: 5%; }
    .word-pair:nth-child(4) { top: 45%; right: 5%; }
    .word-pair:nth-child(5) { top: 15%; right: 10%; }
    
    .logo-container img {
        max-width: 250px;
    }

    .scroll-down {
        bottom: 30px;
    }

    .scroll-down-text {
        font-size: 0.8rem;
    }

    .scroll-arrow {
        width: 25px;
        height: 25px;
    }
    
    .scroll-arrow::after {
        width: 7px;
        height: 7px;
        margin-top: -5px;
        margin-left: -3.5px;
    }
}

/* Mobile portrait - only show logo */
@media (max-width: 768px) and (orientation: portrait) {
    .words-container {
        display: none;
    }

    .logo-container {
        animation: logoAppearMobile 1.5s ease-out forwards;
        animation-delay: 0s;
    }

    .logo-container img {
        max-width: 280px;
    }
}

/* Mobile landscape - smaller elements */
@media (max-width: 926px) and (orientation: landscape) {
    .word-node {
        font-size: clamp(0.6rem, 2vw, 1rem);
    }

    .word-circle {
        width: 15px;
        height: 15px;
    }

    .word-pair {
        gap: 10px;
    }

    .logo-container img {
        max-width: 200px;
    }

    .scroll-down {
        bottom: 20px;
    }
}

@keyframes logoAppearMobile {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Tablet landscape adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .word-node {
        font-size: clamp(0.8rem, 2vw, 1.3rem);
    }

    .word-circle {
        width: 22px;
        height: 22px;
    }

    .logo-container img {
        max-width: 300px;
    }
}

/* Large screens adjustments */
@media (min-width: 1920px) {
    .word-node {
        font-size: clamp(1rem, 2.5vw, 1.7rem);
    }

    .word-circle {
        width: 30px;
        height: 30px;
    }

    .logo-container img {
        max-width: 400px;
    }
}

/* Extra small screens */
@media (max-width: 375px) and (orientation: portrait) {
    .logo-container img {
        max-width: 220px;
    }

    .scroll-down {
        bottom: 25px;
    }

    .scroll-down-text {
        font-size: 0.7rem;
    }

    .scroll-arrow {
        width: 22px;
        height: 22px;
    }
    
    .scroll-arrow::after {
        width: 6px;
        height: 6px;
        margin-top: -4px;
        margin-left: -3px;
    }
}

/* Ensure smooth transition between sections */
.hero-section + section,
.hero-section + .service-cards {
    margin-top: 0 !important;
}

/* Service cards scroll target positioning */
.service-cards {
    scroll-margin-top: 20px;
}

/* ================================ SERVICE CARDS ============================= */

/* Section Styling */
.service-cards {
    padding: 5rem 0;
    width: 100%;
}

.card-back-title {
	color: #2E3259;
}
.service-cards .container-fluid {
    max-width: 1400px;
    margin: 0 auto;
}

/* Utility Classes */
.bg-selago {
    background-color: #f0f4ff;
}

.text-base-color {
    color: #2E3259;
}

.border-radius-100px {
    border-radius: 100px;
}

/* SERVICES CONTAINER - GRID LAYOUT FOR 3 COLUMNS */
.services-container {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Service Card */
.service-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Service Card Wrapper */
.service-card-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Interactive Banner Style */
.interactive-banner-style-02 {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.interactive-banner-style-02 figure {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(46, 50, 89, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: none;
    transition: all 0.5s ease;
    background: white;
}

.interactive-banner-style-02:hover figure {
    box-shadow: 0 20px 60px rgba(57, 89, 168, 0.2);
    border: none;
    transform: translateY(-5px);
}

/* Image Container */
.interactive-banner-style-02 .image-container {
    height: 280px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.interactive-banner-style-02 figure a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.interactive-banner-style-02:hover figure a img {
    transform: scale(1.1);
}

/* Service Tag (Liquid Glass Effect) */
.service-tag {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 50px;
    padding: 6px 15px;
    font-size: 11px;
    color: white;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

/* Figcaption - Card Content Area */
.interactive-banner-style-02 figcaption {
    width: 100%;
    background: white;
    padding: 25px;
    text-align: center;
    transition: all 0.5s ease;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    min-height: 180px;
}

/* Card Front (Default State) */
.interactive-banner-style-02 .card-front {
    opacity: 1;
    visibility: visible;
    transition: all 0.5s ease;
    width: 100%;
}

.interactive-banner-style-02:hover .card-front {
    opacity: 0;
    visibility: hidden;
}

/* Card Back (Hover State) */
.interactive-banner-style-02 .card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 30px 30px;
    text-align: center;
    border-radius: 0 0 12px 12px;
    overflow: hidden;
}

.interactive-banner-style-02:hover .card-back {
    opacity: 1;
    visibility: visible;
}

/* Decorative Elements */
.card-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0px;
    background: none;
}

.card-back::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-blue);
    border-radius: 3px;
}

/* Card Logo */
.card-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: rgba(57, 89, 168, 0.1);
    color: #3959A8;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(57, 89, 168, 0.15);
}

/* Service List */
.service-list {
    margin-top: 15px;
    text-align: left;
    width: 100%;
}

.service-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
}

.service-list li:before {
    content: "▸";
    color: var(--accent-blue);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Card Titles */
.card-back h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* ================================ RESPONSIVE DESIGN ========================= */

/* Tablet Landscape - 2 columns */
@media (max-width: 1199.98px) {
    .services-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

/* Tablet Portrait */
@media (max-width: 991.98px) {
    .service-cards {
        padding: 4rem 0;
    }
    
    .services-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .interactive-banner-style-02 .image-container {
        height: 240px;
    }
    
    .interactive-banner-style-02 figcaption {
        min-height: 160px;
        padding: 20px;
    }
    
    .card-back {
        padding: 30px 20px 20px;
    }
    
    .service-list li {
        font-size: 13px;
        margin-bottom: 8px;
    }
}

/* Mobile - 1 column */
@media (max-width: 767.98px) {
    .service-cards {
        padding: 3rem 0;
    }
    
    .services-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .interactive-banner-style-02 .image-container {
        height: 220px;
    }
    
    .interactive-banner-style-02 figcaption {
        min-height: 140px;
        padding: 18px;
    }
    
    .card-front .fs-5 {
        font-size: 1.1rem !important;
    }
    
    .card-front .fs-6 {
        font-size: 0.95rem !important;
    }
    
    .card-back h4 {
        font-size: 1.1rem;
    }
    
    .card-logo {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .service-list li {
        font-size: 12px;
        margin-bottom: 7px;
    }
}

/* Small Mobile */
@media (max-width: 575.98px) {
    .service-cards {
        padding: 2.5rem 0;
    }
    
    .interactive-banner-style-02 .image-container {
        height: 200px;
    }
    
    .interactive-banner-style-02 figcaption {
        min-height: 120px;
        padding: 15px;
    }
    
    .service-tag {
        font-size: 10px;
        padding: 5px 12px;
    }
}