/* =========================================
   Henotes Modern Design System
   ========================================= */

@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Colors */
    --primary: #00c7eb;
    --primary-dark: #00a0bc;
    --primary-light: #e0faff;
    --secondary: #010f40;
    --accent: #226ff8;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --bg-white: #ffffff;
    --bg-light: #f1f5f9;
    /* Adjusted for better contrast */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);

    /* Typography */
    --font-main: 'Satoshi', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    /* Shadows */
    --shadow-sm: 0 4px 10px -1px rgba(0, 0, 0, 0.08);
    /* Darkened slightly */
    --shadow-md: 0 10px 35px -5px rgba(0, 0, 0, 0.12);
    /* Darkened slightly */
    --shadow-lg: 0 20px 50px -5px rgba(0, 199, 235, 0.2);
    --shadow-glow: 0 0 20px rgba(0, 199, 235, 0.3);
}

/* =========================================
   Reset & Base Styles
   ========================================= */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   Custom Scrollbar
   ========================================= */

/* Width */
::-webkit-scrollbar {
    width: 10px;
}

/* Track - Dotted Line Effect */
::-webkit-scrollbar-track {
    background: var(--bg-white);
    background-image: radial-gradient(circle, var(--primary-light) 2px, transparent 2px);
    background-size: 100% 15px;
    background-position: center;
    border-left: 1px solid rgba(0, 199, 235, 0.1);
}

/* Thumb - Glowing Circular Point */
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 50px;
    border: 3px solid var(--bg-white);
    box-shadow: 0 0 15px var(--primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
    box-shadow: 0 0 20px var(--accent);
}

/* Firefox Support */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-white);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   Utility Classes
   ========================================= */

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.fade-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 3rem;
}

/* =========================================
   Buttons
   ========================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary);
    color: var(--bg-white);
    box-shadow: 0 4px 15px rgba(0, 199, 235, 0.3);
}

.btn-primary:hover {
    background: var(--bg-white);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 199, 235, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--bg-white);
}

/* =========================================
   Header & Navigation
   ========================================= */

header {
    width: 100%;
    /* height: 100vh; Home header is full screen, others auto */
    display: flex;
    flex-direction: column;
}

.navbar {
    width: 100%;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    height: 100%;
    /* Fill navbar height */
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Vertically center items in container */
}

.logo a {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 40px;
    /* Reduced from 50px */
    width: auto;
    object-fit: contain;
}

.nav-links ul {
    display: flex;
    align-items: center;
    /* Vertically center items */
    gap: 40px;
}

.nav-links a {
    font-family: var(--font-main);
    font-weight: 500;
    color: var(--secondary);
    position: relative;
    padding: 10px 0;
    /* Add some vertical padding for better hit area */
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    /* Adjusted from -5px */
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    /* Center spansvertically */
    gap: 6px;
    cursor: pointer;
    height: 30px;
    /* Give it a fixed height for centering */
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* =========================================
   Hero Section (Home)
   ========================================= */

.hero {
    height: 100vh;
    padding-top: 80px;
    /* Navbar space */
    background-image: linear-gradient(rgba(1, 15, 64, 0.7), rgba(1, 15, 64, 0.7)), url('../images/analysts-banner.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    color: white;
}

.hero-content {
    background: rgba(255, 255, 255, 0.05);
    /* Glass effect dark */
    backdrop-filter: blur(5px);
    padding: 50px;
    border-radius: 0 30px 30px 0;
    max-width: 800px;
    margin-left: 5%;
    border-left: 5px solid var(--primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.hero h1 {
    color: var(--primary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-down i {
    font-size: 2.5rem;
    color: var(--primary);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* =========================================
   Info Cards Section
   ========================================= */

.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 60px;
}

.strategy-card {
    background: white;
    padding: 0;
    /* Removed padding to handle internal layouts better */
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    border-top: 5px solid var(--primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.strategy-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.strategy-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.strategy-header h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--secondary);
}

.strategy-header p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 0;
}

.strategy-body {
    padding: 30px;
    flex-grow: 1;
    background: linear-gradient(to bottom, #ffffff, #fcfeff);
    display: flex;
    align-items: center;
}

/* Infographic: Engagement Steps */
.process-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.process-step {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.step-num {
    width: 30px;
    height: 30px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 199, 235, 0.4);
}

.step-content h4 {
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 4px;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* Infographic: Ecosystem Flow */
.ecosystem-flow {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    position: relative;
    padding-left: 10px;
}

.ecosystem-flow::before {
    content: '';
    position: absolute;
    left: 25px;
    top: 15px;
    bottom: 30px;
    width: 2px;
    background: repeating-linear-gradient(to bottom, var(--primary) 0, var(--primary) 5px, transparent 5px, transparent 10px);
    z-index: 0;
}

.flow-node {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-sm);
    z-index: 1;
    transition: transform 0.2s;
}

.flow-node:hover {
    transform: translateX(5px);
    border-color: var(--primary);
}

.flow-icon {
    width: 32px;
    height: 32px;
    background: rgba(0, 199, 235, 0.1);
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

/* Infographic: Personas */
.persona-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
}

.persona-card {
    background: white;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.3s;
}

.persona-card:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.persona-card:hover h4,
.persona-card:hover p,
.persona-card:hover i {
    color: white;
}

.persona-icon {
    font-size: 1.8rem;
    color: var(--secondary);
    transition: 0.3s;
}

.persona-info h4 {
    font-size: 1rem;
    margin-bottom: 2px;
    transition: 0.3s;
}

.persona-info p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0;
    transition: 0.3s;
}

.info-section {
    padding: 100px 0;
    background: var(--bg-white);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-white);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.card-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    display: inline-block;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.card p {
    color: var(--text-light);
}

/* =========================================
   Carousel Section
   ========================================= */

.carousel-section {
    padding: 100px 0;
    background-color: var(--bg-light);
    text-align: center;
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 50px auto;
    overflow: hidden;
    border-radius: 20px;
    background: white;
    box-shadow: var(--shadow-md);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    padding: 40px 60px;
}

.slide-content {
    text-align: left;
}

.slide-content h4 {
    color: var(--accent);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.slide-image img {
    border-radius: 15px;
    box-shadow: var(--shadow-sm);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    z-index: 10;
    color: var(--accent);
    transition: all 0.3s;
}

.carousel-nav:hover {
    background: var(--accent);
    color: white;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

/* =========================================
   About/Services Grid Styles
   ========================================= */

.about-grid-section {
    padding: 100px 0;
    background: linear-gradient(135deg, rgba(1, 15, 64, 0.02) 0%, rgba(0, 199, 235, 0.05) 100%);
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    /* Fallback */
    margin: 0;
}

.feature-card img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    padding: 10px;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
}

.feature-card h3 {
    margin-bottom: 5px;
}

/* =========================================
   Service Detail Specifics
   ========================================= */

.service-hero h1 {
    color: var(--primary) !important;
    font-size: clamp(3rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 2rem;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: sticky;
    top: 100px;
    z-index: 10;
}

.back-link:hover {
    transform: translateX(-5px);
    background: var(--primary);
    color: white;
}

.back-link i {
    font-size: 1.2rem;
}

/* =========================================
   Footer
   ========================================= */

footer {
    background: linear-gradient(135deg, var(--secondary), #000a2e);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: #94a3b8;
    margin-top: 20px;
    max-width: 300px;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #cbd5e1;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    color: #64748b;
    font-size: 0.9rem;
}

/* =========================================
   Mobile
   ========================================= */

@media (max-width: 768px) {
    .navbar {
        height: 70px;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        /* Center hamburger icon items */
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links ul {
        flex-direction: column;
        align-items: center;
    }

    .hero {
        text-align: center;
        justify-content: center;
        background-attachment: scroll;
    }

    .hero-content {
        margin: 0;
        border: none;
        padding: 30px;
        background: rgba(1, 15, 64, 0.8);
        border-radius: 20px;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .about-story-grid {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    .story-img-container {
        padding: 20px !important;
    }

    .story-text {
        padding-left: 0 !important;
        text-align: center;
    }

    .about-grid-section .card-grid {
        grid-template-columns: 1fr !important;
    }

    .feature-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .carousel-slide {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 30px;
    }

    .slide-content {
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}