/* ===================================================
   Octagon Solution - Modern Tech Enhancement
   =================================================== */

/* ===== Preloader ===== */
#preloader {
    position: fixed;
    inset: 0;
    background: #000d1f;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}
#preloader.hide {
    opacity: 0;
    visibility: hidden;
}
.preloader-logo {
    font-size: 26px;
    color: #fff;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    opacity: 0;
    animation: techFadeUp 0.8s ease 0.2s forwards;
}
.preloader-logo em { color: #2c77bc; font-style: normal; }
.preloader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.08);
    margin-top: 22px;
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    animation: techFadeUp 0.6s ease 0.4s forwards;
}
.preloader-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #2c77bc, #7eb8f0);
    border-radius: 2px;
    animation: barGrow 1.1s ease 0.5s forwards;
}
.preloader-sub {
    font-size: 10px;
    color: rgba(255,255,255,0.28);
    letter-spacing: 3px;
    margin-top: 14px;
    font-family: 'Noto Sans', sans-serif;
    text-transform: uppercase;
    opacity: 0;
    animation: techFadeUp 0.6s ease 0.6s forwards;
}
@keyframes barGrow {
    from { width: 0; }
    to   { width: 100%; }
}

/* ===== Custom Cursor Glow ===== */
#cursor-glow {
    position: fixed;
    width: 350px;
    height: 350px;
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(44,119,188,0.07) 0%, transparent 68%);
    transition: opacity 0.3s ease;
    top: -200px;
    left: -200px;
}

/* ===== Header Glassmorphism ===== */
body.fp-viewing-section02 .header,
body.fp-viewing-section03 .header,
body.fp-viewing-section04 .header,
body.fp-viewing-section05 .header,
body.fp-viewing-section06 .header {
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    background: rgba(255,255,255,0.88) !important;
    border-bottom: 1px solid rgba(44,119,188,0.12) !important;
}

/* ===== Neon Glow on Section Headings ===== */
.main .section02 h2 .en,
.main .section03 h2 .en,
.main .section04 h2 .en,
.main .section05 h2 .en {
    text-shadow: 0 0 30px rgba(44,119,188,0.45), 0 0 60px rgba(44,119,188,0.18);
}

/* ===== Scanner Line on section01 ===== */
.main .section01::before {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(44,119,188,0.6), transparent);
    z-index: 1;
    pointer-events: none;
    animation: scanLine 4s linear infinite;
}
@keyframes scanLine {
    0%   { top: 0%;   opacity: 0; }
    5%   { opacity: 1; }
    95%  { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* ===== Section01 Base ===== */
.main .section01 { position: relative; overflow: hidden; }
.main .section01 .fp-tableCell { position: relative; z-index: 1; }

/* Dark-blue tech overlay */
.main .section01::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,8,25,0.72) 0%, rgba(0,20,55,0.50) 60%, rgba(0,5,18,0.65) 100%);
    pointer-events: none;
    z-index: 0;
}

/* ===== Particle Canvas ===== */
#particles-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* ===== Service Tag Badges ===== */
.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
}
.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(44, 119, 188, 0.12);
    border: 1px solid rgba(44, 119, 188, 0.45);
    color: #7eb8f0;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 12px;
    font-family: 'Noto Sans', sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0;
    animation: techFadeUp 0.7s ease forwards;
}
.hero-tag::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #2c77bc;
    border-radius: 50%;
    box-shadow: 0 0 6px #2c77bc;
    animation: dotPulse 2s ease infinite;
}
.hero-tag:nth-child(1) { animation-delay: 0.2s; }
.hero-tag:nth-child(2) { animation-delay: 0.4s; }
.hero-tag:nth-child(3) { animation-delay: 0.6s; }
.hero-tag:nth-child(4) { animation-delay: 0.8s; }

/* ===== Accent Line ===== */
.hero-line {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #2c77bc, rgba(44,119,188,0));
    border-radius: 2px;
    margin: 0 0 18px;
}

/* ===== Hero Stats Row ===== */
.hero-stats {
    display: flex;
    align-items: center;
    margin: 36px 0 0;
    opacity: 0;
    animation: techFadeUp 0.8s ease 1.1s forwards;
}
.stat-item { padding: 0 36px 0 0; }
.stat-item:first-child { padding-left: 0; }
.stat-number {
    font-size: 32px;
    color: #fff;
    font-weight: 700;
    font-family: 'Noto Sans', sans-serif;
    line-height: 1;
}
.stat-number em {
    color: #2c77bc;
    font-style: normal;
}
.stat-label {
    font-size: 10px;
    color: rgba(255,255,255,0.38);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-top: 7px;
    font-family: 'Noto Sans', sans-serif;
}
.stat-divider {
    width: 1px;
    height: 34px;
    background: rgba(255,255,255,0.12);
    margin: 0 36px 0 0;
    flex-shrink: 0;
}

/* ===== Button Upgrade ===== */
.main .section .btn {
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
    letter-spacing: 0.5px;
}
.main .section .btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    transition: left 0.52s ease;
}
.main .section .btn:hover::before { left: 100%; }
.main .section .btn:hover {
    box-shadow: 0 0 28px rgba(44,119,188,0.65), 0 4px 15px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}
.main .section .btn:after {
    content: '→';
    margin: 0 0 0 10px;
    vertical-align: middle;
    display: inline-block;
    transition: transform 0.3s ease;
}
.main .section .btn:hover:after { transform: translateX(4px); }

/* ===== Scroll Down Indicator ===== */
.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: techFadeUp 0.8s ease 1.5s forwards;
}
.scroll-indicator span {
    font-size: 10px;
    color: rgba(255,255,255,0.3);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-family: 'Noto Sans', sans-serif;
}
.scroll-mouse {
    width: 22px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 12px;
    position: relative;
}
.scroll-mouse::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 7px;
    background: rgba(255,255,255,0.45);
    border-radius: 3px;
    animation: scrollDot 1.8s ease infinite;
}

/* ===== Keyframes ===== */
@keyframes techFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 4px #2c77bc; }
    50%       { box-shadow: 0 0 10px #2c77bc, 0 0 20px rgba(44,119,188,0.4); }
}
@keyframes scrollDot {
    0%   { top: 6px;  opacity: 1; }
    70%  { top: 20px; opacity: 0; }
    100% { top: 6px;  opacity: 0; }
}

/* ===== Responsive ===== */
@media all and (max-width: 1200px) {
    .stat-number { font-size: 26px; }
    .stat-item { padding: 0 26px 0 0; }
    .stat-divider { margin: 0 26px 0 0; }
}
@media all and (max-width: 768px) {
    .hero-tags { gap: 8px; margin: 0 0 16px; }
    .hero-tag { font-size: 10px; padding: 5px 12px; letter-spacing: 1px; }
    .hero-line { margin: 0 0 14px; }
    .hero-stats { margin: 20px 0 0; }
    .stat-number { font-size: 20px; }
    .stat-item { padding: 0 18px 0 0; }
    .stat-divider { margin: 0 18px 0 0; height: 26px; }
    .stat-label { font-size: 9px; }
    .scroll-indicator { display: none; }
}
