/* ========================================
   Hero & Blog Carousel - Premium Editorial
   ======================================== */

/* ========================================
   SECTION 1: FULL-SCREEN FUTURISTIC HERO
   ======================================== */

.hero-section-premium {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a0e1a 0%, #0f1b2e 50%, #162d4d 100%);
    z-index: 3;
    overflow: hidden;
}

.hero-content-premium {
    position: relative;
    z-index: 4;
    text-align: left;
    padding: var(--spacing-2xl);
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--spacing-2xl);
}

.hero-headline-premium {
    font-size: clamp(2.5rem, 12vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: #FFFFFF;
    margin: 0;
    animation: fade-in-up 1s ease-out;
    max-width: 70%;
}

.highlight-yellow {
    color: #42D5E8;
    font-weight: 800;
}

.hero-subtitle-premium {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    animation: fade-in-up 1.2s ease-out;
    max-width: 500px;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-headline-premium {
        animation: none;
    }
}

/* ========================================
   RESPONSIVE HERO ADJUSTMENTS
   ======================================== */

@media (max-width: 1024px) {
    .hero-headline-premium {
        max-width: 85%;
    }
}

@media (max-width: 768px) {
    .hero-content-premium {
        text-align: left;
        max-width: 100%;
    }

    .hero-headline-premium {
        max-width: 100%;
        font-size: clamp(1.8rem, 8vw, 3rem);
    }

    .hero-subtitle-premium {
        max-width: 100%;
        font-size: clamp(1rem, 2vw, 1.3rem);
    }
}

/* Mobile hero */
@media (max-width: 768px) {
    .hero-section-premium {
        height: auto;
        min-height: 70vh;
        padding: var(--spacing-2xl) 0;
    }

    .hero-content-premium {
        padding: var(--spacing-lg);
    }

    .hero-headline-premium {
        font-size: clamp(1.75rem, 10vw, 3rem);
    }
}

/* ========================================
   SECTION 2: WAVE TRANSITION
   ======================================== */

.wave-transition {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    background: rgb(31,55,89);
    z-index: 3;
    min-height: 100px;
    margin-top: -5px;
}

.wave-transition path {
    fill: #FFFFFF;
    transition: fill 0.3s ease;
}

/* Subtle wave animation */
@media (prefers-reduced-motion: no-preference) {
    .wave-transition {
        animation: wave-gentle 6s ease-in-out infinite;
    }

    @keyframes wave-gentle {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-8px);
        }
    }
}

@media (max-width: 768px) {
    .wave-transition {
        min-height: 60px;
    }
}

/* ========================================
   SECTION 3: LATEST BLOGS SECTION HEADER
   ======================================== */

.latest-insights-section {
    position: relative;
    background: linear-gradient(135deg, #0a0e1a 0%, #0f1b2e 50%, #162d4d 100%);
    padding: var(--spacing-4xl) 0;
    z-index: 4;
    margin-top: -40px;
    margin-bottom: 0;
    overflow: hidden;
}

.latest-insights-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-4xl);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--spacing-lg);
    position: relative;
    z-index: 2;
}

/* Wave Transition at Bottom of Section */
.wave-transition-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 300px;
    display: block;
    pointer-events: none;
    z-index: 3;
}

.wave-transition-bottom .wave-1 {
    animation: wave-motion-1 20s linear infinite;
}

.wave-transition-bottom .wave-2 {
    animation: wave-motion-2 25s linear infinite;
}

.wave-transition-bottom .wave-3 {
    animation: wave-motion-3 30s linear infinite;
}

/* Wave Transition at Top of Footer */
.wave-transition-footer-top {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 100px;
    display: block;
    background: linear-gradient(to top, #101C35, transparent);
    z-index: 3;
}

/* About & Contact Pages - Wave Transition Margin */
.page-template-template-about .wave-transition-footer-top,
.page-template-template-contact .wave-transition-footer-top {
    margin-top: -40px;
}

.wave-transition-footer-top path {
    fill: #FFFFFF;
    transition: fill 0.3s ease;
}

.latest-insights-header-content {
    flex: 1;
}

.latest-insights-title {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    color: #101C35;
    margin: 0 0 var(--spacing-md) 0;
    letter-spacing: -0.5px;
}

.latest-insights-subtitle {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    color: #666666;
    max-width: 500px;
    margin: 0;
    line-height: 1.6;
}

.latest-insights-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFFFFF;
    text-decoration: none;
    background-color: #101C35;
    border: 1px solid rgba(66, 213, 232, 0.2);
    border-radius: 0.375rem;
    transition: all var(--transition-base);
    white-space: nowrap;
    cursor: pointer;
}

.latest-insights-cta:hover {
    background-color: #0d1b2a;
    border-color: rgba(66, 213, 232, 0.4);
    box-shadow: 0 4px 12px rgba(66, 213, 232, 0.15);
    gap: var(--spacing-md);
}

.latest-insights-cta svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ========================================
   SECTION 4: BLOG POST CAROUSEL
   ======================================== */

.blog-carousel-wrapper {
    position: relative;
    padding: 0;
    background: #FFFFFF;
    margin-top: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--spacing-lg);
    z-index: 2;
}

/* Main carousel container */
.blog-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 1fr);
    gap: var(--spacing-xl);
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding-bottom: var(--spacing-lg);
    position: relative;
    z-index: 5;
    
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.blog-carousel::-webkit-scrollbar {
    display: none;
}

/* Desktop: 4 cards visible */
@media (min-width: 1200px) {
    .blog-carousel {
        grid-auto-columns: repeat(4, 1fr);
        gap: var(--spacing-xl);
        overflow-x: auto;
    }
}

/* Tablet: 2 cards visible */
@media (min-width: 768px) and (max-width: 1199px) {
    .blog-carousel {
        grid-auto-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
        overflow-x: auto;
    }
}

/* Mobile: 1 card visible */
@media (max-width: 767px) {
    .blog-carousel {
        grid-auto-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* ========================================
   BLOG CARD DESIGN - DARK THEME
   ======================================== */

.blog-carousel-wrapper .blog-carousel .blog-card {
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: #FFFFFF !important;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(66, 213, 232, 0.15) !important;
    transition: all var(--transition-smooth);
    height: 100%;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.blog-carousel-wrapper .blog-carousel .blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 100" preserveAspectRatio="none"><defs></defs><path d="M0,50 Q50,30 100,50 T200,50" fill="none" stroke="rgba(66,213,232,0.15)" stroke-width="1"/><path d="M0,60 Q50,45 100,60 T200,60" fill="none" stroke="rgba(66,213,232,0.12)" stroke-width="1"/><path d="M0,70 Q50,55 100,70 T200,70" fill="none" stroke="rgba(66,213,232,0.1)" stroke-width="1"/></svg>') repeat-x;
    background-size: 200px 100px;
    background-position: 0 0;
    animation: blog-wave-motion 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

.blog-carousel-wrapper .blog-carousel .blog-card:hover {
    border-color: rgba(66, 213, 232, 0.4) !important;
    transform: translateY(-4px);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(66, 213, 232, 0.15);
}

/* 1. Top Accent Strip */
.blog-carousel-wrapper .blog-carousel .blog-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: #42D5E8;
    z-index: 3;
}

/* 2. Featured Image - 16:9 Aspect Ratio */
.blog-carousel-wrapper .blog-carousel .blog-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    margin-top: 0;
    z-index: 2;
}

.blog-carousel-wrapper .blog-carousel .blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-smooth);
    display: block;
}

.blog-carousel-wrapper .blog-carousel .blog-card:hover .blog-card-image img {
    transform: scale(1.03);
}

.blog-carousel-wrapper .blog-carousel .blog-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 50, 80, 0.5) 0%, rgba(20, 40, 70, 0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 3. Card Content Container */
.blog-carousel-wrapper .blog-carousel .blog-card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: var(--spacing-lg);
    z-index: 2;
    position: relative;
}

/* 4. Publication Date */
.blog-carousel-wrapper .blog-carousel .blog-card-date {
    font-size: 0.8rem;
    color: rgba(16, 28, 53, 0.5);
    margin-bottom: var(--spacing-md);
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* 5. Article Title */
.blog-carousel-wrapper .blog-carousel .blog-card-title {
    font-size: clamp(1rem, 4vw, 1.3rem);
    font-weight: 700;
    color: #101C35;
    line-height: 1.35;
    margin: 0 0 var(--spacing-md) 0;
    transition: color var(--transition-base);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-carousel-wrapper .blog-carousel .blog-card:hover .blog-card-title {
    color: #42D5E8;
}

/* 6. Article Excerpt */
.blog-carousel-wrapper .blog-carousel .blog-card-excerpt {
    font-size: 0.9rem;
    color: rgba(16, 28, 53, 0.6);
    line-height: 1.5;
    margin: 0 0 var(--spacing-lg) 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 7. Read More Link */
.blog-carousel-wrapper .blog-carousel .blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 0.9rem;
    font-weight: 600;
    color: #42D5E8;
    text-decoration: none;
    transition: all var(--transition-base);
    margin-top: auto;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(66, 213, 232, 0.1);
    width: fit-content;
}

.blog-carousel-wrapper .blog-carousel .blog-card-link:hover {
    gap: var(--spacing-md);
    color: #5ce4f5;
}

.blog-carousel-wrapper .blog-carousel .blog-card-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ========================================
   CLICKABLE IMAGE LINK
   ======================================== */

.blog-card-image-link {
    display: block;
    text-decoration: none;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    cursor: pointer;
}

.blog-card-image-link:focus-visible {
    outline: 2px solid #42D5E8;
    outline-offset: -2px;
}

.blog-carousel-wrapper .blog-carousel .blog-card-image-link {
    position: relative;
    z-index: 2;
}

/* ========================================
   CLICKABLE TITLE LINK
   ======================================== */

.blog-card-title-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-base);
}

.blog-card-title-link:focus-visible {
    outline: 2px solid #42D5E8;
    outline-offset: 2px;
    border-radius: 4px;
}

.blog-carousel-wrapper .blog-carousel .blog-card-title-link {
    position: relative;
    z-index: 2;
}

.blog-carousel-wrapper .blog-carousel .blog-card-title-link:hover .blog-card-title {
    color: #42D5E8;
}

/* ========================================
   EMPTY BLOG CARDS
   ======================================== */

.blog-card-empty {
    cursor: default;
    pointer-events: none;
}

.blog-card-empty:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: none;
}

.blog-card-empty .blog-card-body {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    min-height: 120px;
}

/* ========================================
   CAROUSEL CONTROLS
   ======================================== */

.carousel-controls {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    margin-top: var(--spacing-2xl);
    padding: var(--spacing-lg);
}

.carousel-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #101C35;
    border: 1px solid #0d1b2a;
    border-radius: 8px;
    color: #42D5E8;
    cursor: pointer;
    transition: all var(--transition-base);
    padding: 0;
}

.carousel-button:hover {
    background: #0d1b2a;
    color: #5ce4f5;
    border-color: #42D5E8;
    transform: scale(1.05);
}

.carousel-button:active {
    transform: scale(0.95);
}

.carousel-button svg {
    width: 24px;
    height: 24px;
}

/* Hide controls on mobile */
@media (max-width: 768px) {
    .carousel-controls {
        display: none;
    }

    .blog-carousel-wrapper {
        margin-bottom: 0;
    }
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
    .latest-insights-section {
        padding: var(--spacing-3xl) 0;
    }

    .latest-insights-header {
        flex-direction: column;
        gap: var(--spacing-lg);
        margin-bottom: var(--spacing-3xl);
        padding: 0 var(--spacing-lg);
    }

    .latest-insights-header-content {
        flex: 1;
        width: 100%;
    }

    .latest-insights-title {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
    }

    .latest-insights-cta {
        width: 100%;
        justify-content: flex-start;
    }

    .blog-carousel-wrapper {
        padding: 0 var(--spacing-lg);
        margin: 0 calc(-1 * var(--spacing-lg));
        padding-left: var(--spacing-lg);
        padding-right: var(--spacing-lg);
    }

    .blog-card {
        border-radius: 8px;
    }

    .blog-card-body {
        padding: var(--spacing-md);
    }

    .blog-card-title {
        font-size: clamp(1rem, 6vw, 1.25rem);
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.blog-card:focus-visible {
    outline: 2px solid #42D5E8;
    outline-offset: 4px;
}

.carousel-button:focus-visible {
    outline: 2px solid #42D5E8;
    outline-offset: 2px;
}

.latest-insights-cta:focus-visible {
    outline: 2px solid #42D5E8;
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .blog-card,
    .blog-card-image img,
    .blog-card-title,
    .blog-card-link,
    .carousel-button {
        transition: none;
    }

    .blog-carousel {
        scroll-behavior: auto;
    }
}

/* ========================================
   CONTAINER & SPACING
   ======================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

/* ========================================
   SECTION 5: WAVE TRANSITION TO FOOTER
   ======================================== */

.wave-transition-footer {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    background: transparent;
    z-index: 3;
    min-height: 100px;
    margin: 0;
    padding: 0;
}

/* Subtle wave animation */
@media (prefers-reduced-motion: no-preference) {
    .wave-transition-footer {
        animation: wave-footer 6s ease-in-out infinite;
    }

    @keyframes wave-footer {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-8px);
        }
    }
}

@media (max-width: 768px) {
    .wave-transition-footer {
        min-height: 60px;
    }
}

/* ========================================
   SECTION 6: DARK FOOTER
   ======================================== */

.footer-premium {
    position: relative;
    background: #101C35;
    color: #FFFFFF;
    padding: var(--spacing-2xl) 0 var(--spacing-lg) 0;
    z-index: 4;
}

/* Footer Grid Layout */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Column */
.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 var(--spacing-lg) 0;
    letter-spacing: 0.5px;
}

.footer-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin: 0 0 var(--spacing-2xl) 0;
}

/* Footer Navigation */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.footer-link {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-base);
    width: fit-content;
}

.footer-link:hover {
    color: #42D5E8;
    transform: translateX(4px);
}

.footer-link:focus-visible {
    outline: 2px solid #42D5E8;
    outline-offset: 2px;
}

/* Footer Social Links */
.footer-social {
    display: flex;
    gap: var(--spacing-md);
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.footer-social-link:hover {
    color: #42D5E8;
    background: rgba(66, 213, 232, 0.1);
    border-color: rgba(66, 213, 232, 0.3);
    transform: translateY(-2px);
}

.footer-social-link:focus-visible {
    outline: 2px solid #42D5E8;
    outline-offset: 2px;
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    margin-top: var(--spacing-lg);
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 var(--spacing-sm) 0;
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Wave Transition to Blue Section */
.wave-transition-to-blue {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    background: transparent;
    z-index: 3;
    min-height: 100px;
    line-height: 0;
    font-size: 0;
}

.wave-transition-to-blue path {
    fill: #101C35;
    transition: fill 0.3s ease;
}

/* Wave Transition to White Section */
.wave-transition-to-white {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    background: rgb(34,61,98);
    margin-top: -10px;
    z-index: 3;
    min-height: 100px;
    line-height: 0;
    font-size: 0;
}

.wave-transition-to-white path {
    fill: #FFFFFF;
    transition: fill 0.3s ease;
}

/* Subtle wave animation */
@media (prefers-reduced-motion: no-preference) {
    .wave-transition-to-white {
        animation: wave-gentle 6s ease-in-out infinite;
    }

    @keyframes wave-gentle {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-8px);
        }
    }
}

@media (max-width: 768px) {
    .wave-transition-to-white {
        min-height: 60px;
    }
}

/* ========================================
   SECTION 4: ARTICLES SECTION
   ======================================== */

.articles-section {
    position: relative;
    background: linear-gradient(135deg, #0a0e1a 0%, #0f1b2e 50%, #162d4d 100%);
    padding: var(--spacing-4xl) 0;
    z-index: 4;
    margin-top: 0;
    margin-bottom: 0;
    overflow: hidden;
}

.latest-insights-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-4xl);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--spacing-lg);
    position: relative;
    z-index: 5;
}

.latest-insights-title {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    color: #FFFFFF;
    margin: 0;
    letter-spacing: -0.5px;
}

.articles-section .latest-insights-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFFFFF;
    text-decoration: none;
    background-color: rgba(66, 213, 232, 0.1);
    border: 1px solid rgba(66, 213, 232, 0.3);
    border-radius: 0.375rem;
    transition: all var(--transition-base);
    white-space: nowrap;
    cursor: pointer;
}

.articles-section .latest-insights-cta:hover {
    background-color: rgba(66, 213, 232, 0.15);
    border-color: rgba(66, 213, 232, 0.5);
    box-shadow: 0 4px 12px rgba(66, 213, 232, 0.15);
    gap: var(--spacing-md);
}

.blog-carousel-wrapper {
    position: relative;
    padding: 0;
    background: transparent;
    margin-top: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--spacing-lg);
    z-index: 5;
}

/* Inverted top wave transition */
.wave-transition-to-blue-inverted {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    /*background: #0a0e1a;*/
    background: linear-gradient(315deg, rgb(17,30,51) 0%, rgb(12,21,37) 50%, #0a0e1a 100%); 
    z-index: 3;
    min-height: 100px;
    line-height: 0;
    font-size: 0;
}

.wave-transition-to-blue-inverted path {
    fill: rgb(231,231,231);
    transition: fill 0.3s ease;
}

/* Responsive Articles Section */
@media (max-width: 1024px) {
    .latest-insights-header {
        flex-direction: column;
        gap: var(--spacing-lg);
        margin-bottom: var(--spacing-3xl);
    }

    .latest-insights-title {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .latest-insights-header {
        padding: 0 var(--spacing-lg);
    }

    .latest-insights-title {
        font-size: clamp(1.2rem, 6vw, 2rem);
    }

    .articles-section .latest-insights-cta {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Animated Wave Background */
.articles-wave-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.articles-wave-background .wave-svg {
    width: 200%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    will-change: transform;
}

.articles-wave-background .wave {
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    will-change: transform;
}

.articles-wave-background .wave-1 {
    animation: wave-motion-1 20s linear infinite;
}

.articles-wave-background .wave-2 {
    animation: wave-motion-2 25s linear infinite;
}

.articles-wave-background .wave-3 {
    animation: wave-motion-3 30s linear infinite;
}

/* ========================================
   SECTION 3: ABOUT SECTION - TWO COLUMN LAYOUT
   ======================================== */

.about-section {
    position: relative;
    background: #FFFFFF;
    padding: var(--spacing-4xl) 0;
    margin-top: -40px;
    z-index: 4;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.about-container {
    display: grid;
    grid-template-columns: 55% 45%;
    gap: var(--spacing-4xl);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
    position: relative;
    z-index: 5;
}

/* Left Column */
.about-left-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3xl);
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.about-title {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    color: #101C35;
    margin: 0 0 var(--spacing-sm) 0;
    letter-spacing: -0.5px;
    padding-bottom: var(--spacing-lg);
    border-bottom: 3px solid #42D5E8;
}

.about-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    font-weight: 400;
    color: #42D5E8;
    margin: 0;
    letter-spacing: 0.3px;
    font-style: italic;
}

.about-introduction {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.about-introduction p {
    font-size: 1rem;
    color: #101C35;
    line-height: 1.7;
    margin: 0;
}

.about-expertise-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #101C35;
    margin: 0 0 var(--spacing-lg) 0;
    letter-spacing: -0.3px;
}

/* Focus Cards */
.about-focus-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.focus-card {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    padding: var(--spacing-xl);
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f2f5 100%);
    border: 1px solid rgba(16, 28, 53, 0.1);
    border-radius: 12px;
    transition: all var(--transition-base);
}

.focus-card:hover {
    border-color: #42D5E8;
    box-shadow: 0 8px 24px rgba(66, 213, 232, 0.12);
    transform: translateY(-4px);
}

.focus-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #101C35 0%, #1a2a48 100%);
    border-radius: 8px;
    color: #42D5E8;
    flex-shrink: 0;
}

.focus-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #101C35;
    margin: 0;
}

.focus-card-description {
    font-size: 0.95rem;
    color: #101C35;
    line-height: 1.5;
    margin: 0;
}

/* Right Column - Technologies Box */
.about-right-column {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0;
}

.technologies-box {
    width: 100%;
    background: linear-gradient(135deg, #0d1b2a 0%, #101c35 100%);
    border: 1px solid rgba(66, 213, 232, 0.15);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-height: 500px;
}

.technologies-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.technologies-header svg {
    width: 20px;
    height: 20px;
    color: #FFFFFF;
    flex-shrink: 0;
    margin-top: 2px;
    stroke: #42D5E8;
}

.technologies-title h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.2;
}

.technologies-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(66, 213, 232, 0.3) transparent;
}

.technologies-list::-webkit-scrollbar {
    width: 6px;
}

.technologies-list::-webkit-scrollbar-track {
    background: transparent;
}

.technologies-list::-webkit-scrollbar-thumb {
    background: rgba(66, 213, 232, 0.3);
    border-radius: 3px;
}

.technologies-list::-webkit-scrollbar-thumb:hover {
    background: rgba(66, 213, 232, 0.5);
}

.technology-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.6rem;
    text-align: left;
    transition: all 0.2s ease;
    cursor: pointer;
}

.technology-item:hover {
    background: rgba(66, 213, 232, 0.15);
    border-color: rgba(66, 213, 232, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(66, 213, 232, 0.2);
}

.technology-logo-wrapper {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0.4rem;
    flex-shrink: 0;
}

.technology-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.1);
    transition: filter 0.2s ease;
}

.technology-item:hover .technology-logo {
    filter: brightness(1.3);
}

.technology-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    min-width: 0;
    flex: 1;
}

.technology-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.2;
    word-break: break-word;
}

.no-technologies {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

/* ========================================
   EXPERTISE AREAS - Compact 3-Column Icons
   ======================================== */

.expertise-areas-compact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin: 0.15rem 0 0.25rem 0;
    background: linear-gradient(135deg, #0d1b2a 0%, #101c35 100%);
    border: 1px solid rgba(66, 213, 232, 0.15);
    border-radius: 12px;
    overflow: hidden;
}

.expertise-area-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    padding: 1.25rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
    border-right: 1px solid rgba(66, 213, 232, 0.15);
    cursor: pointer;
}

.expertise-area-item:last-child {
    border-right: none;
}

.expertise-area-item:hover {
    background: rgba(66, 213, 232, 0.1);
    transform: translateY(-2px);
}

.expertise-area-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #42D5E8;
    transition: filter 0.2s ease;
}

.expertise-area-item:hover .expertise-area-icon {
    filter: brightness(1.3);
}

.expertise-area-icon svg {
    width: 100%;
    height: 100%;
}

.expertise-area-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.2;
}

/* ========================================
   EXPERTISE BOX - Icon + Label List
   ======================================== */

.expertise-box-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg) var(--spacing-4xl);
    position: relative;
    z-index: 5;
}

.expertise-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #101C35;
    margin: 0 0 var(--spacing-lg) 0;
    letter-spacing: -0.3px;
}

.expertise-box {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #0d1b2a 0%, #101c35 100%);
    border: 1px solid rgba(66, 213, 232, 0.15);
    border-radius: 16px;
    overflow: hidden;
}

.expertise-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s ease;
    border-bottom: 1px solid #42D5E8;
    cursor: pointer;
}

.expertise-item:last-child {
    border-bottom: none;
}

.expertise-item:hover {
    background: rgba(66, 213, 232, 0.1);
    padding-left: 2rem;
}

.expertise-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #42D5E8;
    flex-shrink: 0;
}

.expertise-icon svg {
    width: 100%;
    height: 100%;
}

.expertise-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: -0.2px;
}

@media (max-width: 768px) {
    .expertise-box {
        flex-direction: column;
    }

    .expertise-item {
        padding: 0.75rem 1rem;
    }

    .expertise-item:hover {
        padding-left: 1rem;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-3xl);
    }

    .about-focus-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-right-column {
        min-height: 400px;
    }

    .technology-visualization {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .about-section {
        padding: var(--spacing-3xl) 0;
    }

    .about-container {
        padding: 0 var(--spacing-lg);
        gap: var(--spacing-2xl);
    }

    .about-title {
        font-size: clamp(1.5rem, 8vw, 2.5rem);
    }

    .about-focus-cards {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }

    .focus-card {
        padding: var(--spacing-lg);
    }

    .about-right-column {
        min-height: 350px;
    }

    .technology-visualization {
        height: 350px;
    }
}

/* ========================================
   PREVIOUS ABOUT STYLES (kept for reference)
   ======================================== */

.about-section .section-header {
    margin-bottom: var(--spacing-4xl);
}

.about-section .section-title {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    color: #101C35;
    margin: 0;
    letter-spacing: -0.5px;
}

.about-section .section-content {
    color: #666666;
}

.portfolio-section {
    position: relative;
    background: #FFFFFF;
    padding: var(--spacing-4xl) 0;
    z-index: 4;
    overflow: hidden;
    margin-top: 0;
}

.portfolio-section .section-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--spacing-lg);
    position: relative;
    z-index: 5;
}

.portfolio-section .section-header {
    margin-bottom: var(--spacing-4xl);
}

.portfolio-section .section-title {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    color: #101C35;
    margin: 0;
    letter-spacing: -0.5px;
}

.portfolio-section .section-content {
    color: #666666;
}

/* Wave Transition at Bottom of Portfolio */
.portfolio-section .wave-transition-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 300px;
    display: block;
    pointer-events: none;
    z-index: 3;
}

.portfolio-section .wave-transition-bottom .wave-1 {
    animation: wave-motion-1 20s linear infinite;
}

.portfolio-section .wave-transition-bottom .wave-2 {
    animation: wave-motion-2 25s linear infinite;
}

.portfolio-section .wave-transition-bottom .wave-3 {
    animation: wave-motion-3 30s linear infinite;
}

/* ========================================
   SECTION 6: CONTACT SECTION
   ======================================== */

.contact-section {
    position: relative;
    background: #FFFFFF;
    padding: var(--spacing-4xl) 0;
    z-index: 4;
    overflow: hidden;
}

.contact-section .section-container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--spacing-lg);
    position: relative;
    z-index: 5;
}

.contact-section .section-header {
    margin-bottom: var(--spacing-4xl);
}

.contact-section .section-title {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 800;
    color: #101C35;
    margin: 0;
    letter-spacing: -0.5px;
}

.contact-section .section-content {
    color: #666666;
}

.section-placeholder {
    font-size: 1.1rem;
    padding: var(--spacing-2xl) 0;
}

/* Wave Transition between Sections */
.wave-transition-section {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 300px;
    display: block;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
}

.wave-transition-section .wave-1 {
    animation: none;
}

.wave-transition-section .wave-2 {
    animation: none;
}

.wave-transition-section .wave-3 {
    animation: none;
}

@media (max-width: 768px) {
    .footer-premium {
        padding: var(--spacing-xl) 0 var(--spacing-lg) 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-3xl);
        margin-bottom: var(--spacing-3xl);
        padding-bottom: var(--spacing-2xl);
    }

    .footer-column-title {
        font-size: 1rem;
    }

    .footer-description {
        font-size: 0.9rem;
    }

    .footer-link {
        font-size: 0.9rem;
    }

    .footer-social {
        gap: var(--spacing-sm);
    }

    .footer-social-link {
        width: 36px;
        height: 36px;
    }

    .footer-social-link svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .footer-premium {
        padding: var(--spacing-2xl) 0 var(--spacing-xl) 0;
    }

    .footer-column-title {
        font-size: 0.95rem;
    }

    .footer-nav {
        gap: var(--spacing-sm);
    }

    .footer-copyright {
        font-size: 0.85rem;
    }

    .footer-tagline {
        font-size: 0.85rem;
    }
}

/* ========================================
   FOOTER ACCESSIBILITY
   ======================================== */

.footer-link:focus-visible,
.footer-social-link:focus-visible {
    outline: 2px solid #42D5E8;
    outline-offset: 2px;
}

/* Reduced motion support for footer */
@media (prefers-reduced-motion: reduce) {
    .wave-transition-footer {
        animation: none;
    }

    .footer-link,
    .footer-social-link {
        transition: none;
    }
}

/* ========================================
   ANIMATED WAVE KEYFRAMES FOR BLOG CARDS
   ======================================== */

@keyframes blog-wave-motion {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: -200px 0;
    }
}
