/* =============================
   HOME PAGE LAYOUT & BACKGROUND
   ============================= */
.home-scroll-container {
    width: 100%;
    height: 200vw; 
    background-image: url('images/home_page_bg.webp');
    background-size: contain;
    background-position: top center;
    background-repeat: no-repeat;
    background-color: #030712;
    display: flex;
    flex-direction: column;
}

.space-section {
    height: 35%; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    color: white;
    text-align: center;
    font-size: larger;
    padding-top: 40px;
}

/* HERO LOGO ANIMATION */
.hero-logo {
    width: 300px;
    height: auto;
    margin-bottom: -40px;
    animation: zoomInLogo 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

/* HERO TITLE ANIMATION & STYLES */
.hero-title {
    font-size: 4rem;
    font-weight: 1000;
    line-height: 1;
    margin-bottom: 25px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    animation: slideDownTitle 1s ease-out forwards;
}

.cyan-text-1 {
    color: #16e6d8;
    text-shadow: 0 0 15px rgba(22, 230, 216, 0.4);
}

.purple-neon-text {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.6), 0 0 40px rgba(168, 85, 247, 0.2);
}

/* HERO SUBTITLE ANIMATION & STYLES */
.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #ffffff;
    animation: fadeInSubtitle 1.4s ease-out forwards;
}

/* OCEAN HORIZON AREA */
.ocean-horizon-section {
    position: relative;
    width: 100%;
    height: 350px; 
    overflow: visible;
}

.stem-hero-text {
    position: absolute;
    top: 140px;        
    left: 6%;          
    font-size: 4.8rem; 
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
    text-align: left;
    font-family: Verdana, Arial, sans-serif;
    z-index: 2;
    
    background: linear-gradient(135deg, #1ea5ba 20%, #2dd78d 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    
    filter: drop-shadow(1px 1px 0px #020712)
            drop-shadow(0 1px 2px rgba(0, 0, 0, 0.9));
}

.stem-hero-text .dark-word {
    background: linear-gradient(135deg, #027584 0%, #FFBF00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* TRENCH / SLIDER SECTION */
.ocean-trench-section {
    background: transparent; 
    padding: 10px 0;
    height: auto;
    margin-top: 360px;
    width: 100%;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 5;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    gap: 0px; 
}

.news-row-wrapper {
    width: 100%;
}

.row-title {
    color: #38bdf8;
    font-size: 1.75rem;
    margin-bottom: 15px;
    font-family: sans-serif;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.news-feed-grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px; 
    width: 100%;
    scrollbar-width: none;
    align-items: stretch;
}

.news-feed-grid::-webkit-scrollbar {
    display: none;
}

.news-card-link {
    text-decoration: none;
    color: inherit;
    flex: 0 0 280px;
    display: block;
}

.news-card {
    display: flex;
    flex-direction: column;
    height: 100%; 
    background: rgba(6, 11, 25, 0.45); 
    border: 1px solid rgba(56, 189, 248, 0.12);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                border-color 0.3s ease, 
                box-shadow 0.3s ease;
}

.news-card-link:hover .news-card {
    transform: translateY(-12px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: 0 20px 40px rgba(56, 189, 248, 0.2);
}

.news-thumbnail-wrapper {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #090d16;
}

.news-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-card-link:hover .news-thumbnail {
    transform: scale(1.06);
}

.news-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.link-card-wrapper {
    height: auto;
}

.direct-link-card {
    height: 100%;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px dashed rgba(56, 189, 248, 0.25);
    background: rgba(14, 22, 43, 0.3);
}

.link-center-body {
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.link-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: bold;
    transition: transform 0.3s ease, background 0.3s ease;
}

.fb-circle {
    background: rgba(24, 119, 242, 0.15);
    color: #1877f2;
    border: 1px solid rgba(24, 119, 242, 0.3);
}

.insta-circle {
    background: rgba(225, 48, 108, 0.15);
    color: #e1306c;
    border: 1px solid rgba(225, 48, 108, 0.3);
}

.news-card-link:hover .direct-link-card {
    border-style: solid;
}

.news-card-link:hover .fb-circle {
    background: #1877f2;
    color: #ffffff;
    transform: translateX(4px);
}

.news-card-link:hover .insta-circle {
    background: #e1306c;
    color: #ffffff;
    transform: translateX(4px);
}

.platform-tag {
    align-self: flex-start;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    font-family: Arial, sans-serif;
}
.platform-tag.fb {
    background: rgba(24, 119, 242, 0.12);
    color: #1877f2;
    border: 1px solid rgba(24, 119, 242, 0.25);
}
.platform-tag.insta {
    background: rgba(225, 48, 108, 0.12);
    color: #e1306c;
    border: 1px solid rgba(225, 48, 108, 0.25);
}

.news-title {
    font-size: 1rem;
    color: #f8fafc;
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
    font-family: sans-serif;
}

.slider-arrow {
    position: absolute;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #38bdf8;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transition: background 0.2s, color 0.2s, transform 0.2s, opacity 0.3s ease, visibility 0.3s ease;
}

.slider-arrow.right {
    right: -25px;
}

.slider-arrow.left {
    left: -25px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.slider-arrow.left.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.slider-arrow:hover {
    background: #38bdf8;
    color: #020813;
    transform: scale(1.05);
}

.slider-arrow:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .slider-arrow {
        display: none !important;
    }
    .news-feed-grid {
        gap: 16px;
    }
    .news-card-link {
        flex: 0 0 280px;
    }
    .direct-link-card {
        height: 252px; 
    }
}

/* QUOTES AREA */
.ocean-floor-section {
    height: 30%; 
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 40px;
    align-items: flex-start;
    padding-left: 10%; 
    font-family: Courier New, Arial, sans-serif;
}

.sub-text-box {
    background-color: rgba(10, 25, 47, 0.9);
    border: 2px solid #facc15; 
    padding: 30px;
    border-radius: 12px;
    max-width: 480px; 
    box-shadow: 0 0 25px rgba(250, 204, 21, 0.25); 
    color: white;
}

.sub-text-box h2 {
    color: #facc15;
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(250, 204, 21, 0.2);
    padding-bottom: 8px;
}

.quote-item {
    margin-bottom: 20px;
}
.quote-item:last-child {
    margin-bottom: 0;
}

.quote-text {
    font-size: 14px;
    line-height: 1.5;
    color: #f1f5f9;
    margin-bottom: 5px;
}

.quote-author {
    font-size: 13px;
    font-weight: 600;
    font-style: italic;
    color: #38bdf8;
    text-align: right;
    padding-right: 10px;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   ANIMATION KEYFRAMES (MATCHES INNOVATIONS STYLES)
   ========================================================================== */
@keyframes zoomInLogo {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideDownTitle {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInSubtitle {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}