/* 
   DataStorm v7.0 — Modern Animations & Effects
   Color theme: Deep Space Navy + Bright Teal Cyan
    */

/* Particle Background  */
.starfield {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.starfield::before,
.starfield::after {
    content: '';
    position: absolute;
    width: 2px; height: 2px;
    background: transparent;
    border-radius: 50%;
    animation: twinkle 4s infinite alternate;
}

/* Keyframe Animations  */

@keyframes twinkle {
    0%   { opacity: 0.2; transform: scale(1); }
    100% { opacity: 1;   transform: scale(1.4); }
}

@keyframes floatUp {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

@keyframes glowPulse {
    0%   { text-shadow: 0 0 8px #00d4e8, 0 0 16px #00d4e8; }
    50%  { text-shadow: 0 0 20px #00d4e8, 0 0 40px #00d4e8, 0 0 60px #007aad; }
    100% { text-shadow: 0 0 8px #00d4e8, 0 0 16px #00d4e8; }
}

@keyframes borderGlow {
    0%   { box-shadow: 0 0 5px #00d4e8, 0 0 10px rgba(0,212,232,0.3); }
    50%  { box-shadow: 0 0 15px #00d4e8, 0 0 30px rgba(0,212,232,0.5), 0 0 50px rgba(0,212,232,0.2); }
    100% { box-shadow: 0 0 5px #00d4e8, 0 0 10px rgba(0,212,232,0.3); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.8); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes slideReveal {
    from { clip-path: inset(0 100% 0 0); opacity: 0; }
    to   { clip-path: inset(0 0% 0 0);   opacity: 1; }
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@keyframes ctaPulse {
    0%   { box-shadow: 0 0 0 0 rgba(0,212,232,0.6); }
    70%  { box-shadow: 0 0 0 14px rgba(0,212,232,0); }
    100% { box-shadow: 0 0 0 0 rgba(0,212,232,0); }
}

@keyframes lineExpand {
    from { width: 0; opacity: 0; }
    to   { width: 80px; opacity: 1; }
}

@keyframes navLinkGlow {
    0%   { color: white; }
    100% { color: #00d4e8; text-shadow: 0 0 10px rgba(0,212,232,0.6); }
}

@keyframes heroTextReveal {
    0%   { opacity: 0; transform: translateY(30px) skewY(3deg); }
    100% { opacity: 1; transform: translateY(0) skewY(0deg); }
}

@keyframes particleDrift {
    0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0.8; }
    33%  { transform: translateY(-20px) translateX(10px) scale(1.1); opacity: 1; }
    66%  { transform: translateY(-10px) translateX(-8px) scale(0.9); opacity: 0.6; }
    100% { transform: translateY(0) translateX(0) scale(1); opacity: 0.8; }
}

@keyframes scanLine {
    0%   { transform: translateY(-100%); opacity: 0.4; }
    100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); filter: drop-shadow(0 0 8px #00d4e8); }
    50%       { transform: translateY(-8px) rotate(1deg); filter: drop-shadow(0 0 20px #00d4e8); }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Utility Animation Classes  */

.anim-fade-up {
    animation: fadeInUp 0.8s ease forwards;
}

.anim-fade-down {
    animation: fadeInDown 0.8s ease forwards;
}

.anim-fade-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.anim-fade-right {
    animation: fadeInRight 0.8s ease forwards;
}

.anim-scale-in {
    animation: scaleIn 0.7s ease forwards;
}

.anim-glow-text {
    animation: glowPulse 2.5s ease-in-out infinite;
}

.anim-float {
    animation: floatUp 4s ease-in-out infinite;
}

.anim-logo {
    animation: logoFloat 5s ease-in-out infinite;
}

.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.4s; }
.anim-delay-4 { animation-delay: 0.6s; }
.anim-delay-5 { animation-delay: 0.8s; }
.anim-delay-6 { animation-delay: 1.0s; }

/*  Scroll-triggered Animations (via .in-view class added by JS)  */

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-35px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(35px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/*  Glowing Line Separator  */
.glow-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #00d4e8, #4fe8f8, #00d4e8, transparent);
    background-size: 200%;
    animation: shimmer 3s linear infinite;
    border: none;
    margin: 20px auto;
    width: 80%;
    max-width: 600px;
}

/* Card Hover Effects  */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    cursor: pointer;
}

.card-hover:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 212, 232, 0.25), 0 4px 12px rgba(0,0,0,0.4) !important;
}

/*  CTA Button Pulse  */
.btn-pulse {
    animation: ctaPulse 2s infinite;
}

/*  Nav active glow  */
.nav-item.active .nav-link,
.nav-item .nav-link.active {
    color: #00d4e8 !important;
    text-shadow: 0 0 10px rgba(0,212,232,0.5);
}

/*  Section Heading Glow  */
.section-heading h2 {
    position: relative;
    display: inline-block;
}

.section-heading h2::after {
    content: '';
    display: block;
    margin: 12px auto 0;
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, transparent, #00d4e8, transparent);
    animation: lineExpand 1s ease forwards;
}

/* Typing Cursor Effect */
.typing-cursor::after {
    content: '|';
    animation: twinkle 0.8s infinite;
    color: #00d4e8;
}

/* Particle Dots (pure CSS)  */
.particles-bg {
    position: relative;
    overflow: hidden;
}

.particles-bg::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        radial-gradient(circle, rgba(0,212,232,0.15) 1px, transparent 1px),
        radial-gradient(circle, rgba(79,232,248,0.1) 1px, transparent 1px);
    background-size: 60px 60px, 90px 90px;
    background-position: 0 0, 30px 30px;
    pointer-events: none;
    animation: particleDrift 12s ease-in-out infinite;
    z-index: 0;
}

.particles-bg > * {
    position: relative;
    z-index: 1;
}

/* Scan Line Effect (hero area)  */
.scan-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, transparent, rgba(0,212,232,0.4), transparent);
    animation: scanLine 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

/*  Animated Border Cards  */
.glow-border {
    border: 1px solid rgba(0,212,232,0.3) !important;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.glow-border:hover {
    border-color: rgba(0,212,232,0.8) !important;
    box-shadow: 0 0 20px rgba(0,212,232,0.2), inset 0 0 20px rgba(0,212,232,0.05) !important;
}

/*  Logo Glow  */
.datastorm-logo {
    filter: drop-shadow(0 0 6px rgba(0,212,232,0.4));
    transition: filter 0.3s ease;
}

.datastorm-logo:hover {
    filter: drop-shadow(0 0 14px rgba(0,212,232,0.8));
}

/* Hero Section Animations  */
.hero-title {
    animation: heroTextReveal 1s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-subtitle {
    animation: heroTextReveal 1s ease forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

.hero-cta {
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

/*  Timeline Icon Glow  */
.timeline-icon {
    transition: box-shadow 0.3s ease, transform 0.3s ease !important;
}

.timeline:hover .timeline-icon {
    box-shadow: 0 0 20px rgba(0,212,232,0.5) !important;
    transform: scale(1.1) !important;
}

/*  Prize Card Hover  */
.single-price-plan {
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.single-price-plan:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 50px rgba(0,212,232,0.2) !important;
}

/*  Team Card Hover  */
.single-team-member {
    transition: transform 0.3s ease !important;
}

.single-team-member:hover {
    transform: translateY(-5px) !important;
}

/* Navigation Smooth Underline  */
.menu_area #nav .nav-link {
    position: relative;
}

.menu_area #nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 23px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #00d4e8;
    transition: width 0.3s ease, left 0.3s ease;
    box-shadow: 0 0 8px rgba(0,212,232,0.6);
}

/* 
   Guidelines Section — DataStorm V7.0
    */
.guideline-section {
    background: #0d1530;
    position: relative;
}

.guideline-wrapper {
    max-width: 820px;
    margin: 0 auto;
    padding-bottom: 48px;
}

/* Info callout */
.guideline-info-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: rgba(0,212,232,0.06);
    border: 1px solid rgba(0,212,232,0.2);
    border-left: 4px solid #00d4e8;
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 32px;
}

.guideline-info-icon {
    font-size: 22px;
    color: #00d4e8;
    flex-shrink: 0;
    line-height: 1.5;
}

.guideline-info-card p {
    margin: 0;
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
}

.guideline-info-card a {
    color: #00d4e8;
    text-decoration: underline;
}

/* Download cards grid */
.guideline-download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.guideline-download-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #111c3e;
    border: 1px solid rgba(0,212,232,0.15);
    border-radius: 16px;
    padding: 22px 20px;
    cursor: pointer;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
    position: relative;
    overflow: hidden;
}

.guideline-download-card::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, #00d4e8, transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.guideline-download-card:hover {
    border-color: rgba(0,212,232,0.45);
    box-shadow: 0 8px 32px rgba(0,212,232,0.12);
    transform: translateY(-3px);
}

.guideline-download-card:hover::after {
    opacity: 1;
}

.guideline-dl-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(0,212,232,0.1);
    border: 1px solid rgba(0,212,232,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #00d4e8;
    transition: background 0.3s ease;
}

.guideline-download-card:hover .guideline-dl-icon {
    background: rgba(0,212,232,0.18);
}

.guideline-dl-body {
    flex: 1;
    min-width: 0;
}

.guideline-dl-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(0,212,232,0.7);
    display: block;
    margin-bottom: 4px;
}

.guideline-dl-body h4 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px;
    font-family: 'IBM Plex Mono', monospace;
}

.guideline-dl-body p {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin: 0;
    line-height: 1.5;
}

.guideline-dl-btn {
    flex-shrink: 0;
    background: rgba(0,212,232,0.1);
    border: 1px solid rgba(0,212,232,0.3);
    color: #00d4e8;
    border-radius: 24px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: background 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.guideline-download-card:hover .guideline-dl-btn {
    background: #00d4e8;
    color: #060c1f;
}

@media (max-width: 600px) {
    .guideline-download-grid {
        grid-template-columns: 1fr;
    }
    .guideline-dl-btn {
        display: none;
    }
}

.menu_area #nav .nav-link:hover::after,
.menu_area #nav .nav-item.active .nav-link::after {
    width: 60%;
    left: 20%;
}

/*  Register Nav Button  */
.nav-register-btn {
    background: linear-gradient(135deg, #00d4e8, #007aad);
    border-radius: 25px !important;
    padding: 8px 20px !important;
    color: #fff !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    transition: all 0.3s ease !important;
    animation: ctaPulse 2.5s infinite;
    border: 1px solid rgba(0,212,232,0.5) !important;
    margin-top: 22px !important;
    margin-bottom: 22px !important;
}

.nav-register-btn:hover {
    background: linear-gradient(135deg, #4fe8f8, #00d4e8) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 6px 20px rgba(0,212,232,0.5) !important;
    color: #060c1f !important;
    text-shadow: none !important;
}

.nav-register-btn::after {
    display: none !important;
}

/*  Smooth scroll behavior  */
html {
    scroll-behavior: smooth;
}

/* Page transition overlay  */
.page-transition {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #060c1f;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.page-transition.active {
    opacity: 1;
}

/*  Responsive Animations  */
@media (max-width: 768px) {
    .hero-title {
        animation-delay: 0.1s;
    }
    .hero-subtitle {
        animation-delay: 0.3s;
    }
    .hero-cta {
        animation-delay: 0.5s;
    }
    .nav-register-btn {
        margin: 8px 15px !important;
        display: inline-block !important;
    }
    .menu_area #nav .nav-link::after {
        display: none;
    }
}
