/* Hero Section Styles */
.hero-container {
    position: relative;

    width: 100%;
    overflow: hidden;
    /* background: linear-gradient(135deg, #0a0a0f 0%, #0f1419 50%, #0a0a0f 100%); */
}

/* Animated Pipeline Background */
.pipeline-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* height: 100%; */
    z-index: 1;
    opacity: 0.15;
}

/* Grid overlay for industrial feel */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 191, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 191, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 1;
}

/* 3D Dragon Container */
#dragon-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Navigation */
.hero-nav {
    position: absolute;
    top: 0;
    right: 0;
    padding: 2rem 3rem;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Rajdhani', sans-serif;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00bfff, #0080ff);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #00bfff;
}

.nav-link:hover::after {
    width: 100%;
}

/* Content Overlay */
.hero-content {
    position: relative;
    z-index: 5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Main Headline */
.devops-dashboard {
    position: absolute;
    top: 20%;
    /* Positioned on the left side */
    left: 5%;
    z-index: -10;
    width: 300px;
    /* Adjust size as needed */
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 191, 255, 0.2);
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 191, 255, 0.1);
    opacity: 1;
    /* Initial state for GSAP animation */
    transform: translateX(-50px);
}

.dashboard-header {
    padding: 10px 15px;
    background: rgba(0, 191, 255, 0.1);
    color: #00bfff;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 191, 255, 0.3);
}

.header-lights .light {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: 4px;
}

.header-lights .red {
    background-color: #ff4d4f;
}

.header-lights .yellow {
    background-color: #ffec3d;
}

.header-lights .green {
    background-color: #52c41a;
}

.widget {
    padding: 10px 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Terminal Widget */
.terminal-widget {
    background: #111;
    border-radius: 0 0 8px 8px;
}

.terminal-text {
    font-family: monospace;
    font-size: 0.8rem;
    line-height: 1.4;
    color: #f0f0f0;
    white-space: pre-wrap;
    padding: 0;
    margin: 0;
}

/* Color classes for terminal simulation */
.text-green-400 {
    color: #48bb78;
}

.text-yellow-400 {
    color: #ecc94b;
}

.text-blue-400 {
    color: #63b3ed;
}

/* Metric Widget */
.metric-widget {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding: 15px 10px;
}

.metric-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.metric-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

/* Graph Widget */
.graph-placeholder {
    color: rgba(0, 191, 255, 0.8);
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.main-headline {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #00bfff 50%, #0080ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {

    0%,
    100% {
        filter: drop-shadow(0 0 20px rgba(0, 191, 255, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 40px rgba(0, 191, 255, 0.6));
    }
}

/* Sub-headline */
.sub-headline {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(0.9rem, 1.6vw, 1.2rem);
    font-weight: 200;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    letter-spacing: 1px;
    line-height: 1.6;
    max-width: 600px;
    background-color: rgba(15, 20, 25, 0.5);
    /* Dark, semi-transparent background */
    border: 1px solid rgba(0, 191, 255, 0.2);
    /* Light border for the 'glass' edge */
    border-radius: 12px;
    padding: 20px 30px;
    /* Increased padding */

    /* 2. The Heavy Blur Effect */
    -webkit-backdrop-filter: blur(20px);
    /* For Safari compatibility */
    backdrop-filter: blur(20px);
    /* The main blur effect */

    /* 3. Ensure Text is Sharp and Visible */
    color: rgba(255, 255, 255, 0.95);
    /* Ensure text is nearly opaque white */
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    /* Subtle shadow for depth */
}

.sub-headline span {
    color: #00bfff;
    font-weight: 600;
}

/* CTA Buttons */
.cta-container {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-primary {
    background: linear-gradient(135deg, #00bfff 0%, #0080ff 100%);
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 191, 255, 0.3);
}

.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.cta-primary:hover::before {
    left: 100%;
}

.cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 191, 255, 0.5);
}

.cta-secondary {
    background: transparent;
    color: #00bfff;
    border: 2px solid #00bfff;
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.2);
}

.cta-secondary:hover {
    background: rgba(0, 191, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.4);
}

/* Data Flow Nodes */
.data-node {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #00bfff;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.8);
    animation: pulse-node 2s ease-in-out infinite;
}

@keyframes pulse-node {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
}

/* Tech Badge */
.tech-badge {
    position: absolute;
    bottom: 2%;
    left: 5%;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 191, 255, 0.3);
    padding: 1.5rem;
    border-radius: 10px;
    max-width: 400px;
}

.tech-badge h4 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    color: #00bfff;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-badge p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.scroll-indicator i {
    font-size: 2rem;
    color: #00bfff;
    filter: drop-shadow(0 0 10px rgba(0, 191, 255, 0.6));
}

/* Responsive */
@media (max-width: 768px) {
    .hero-nav {
        padding: 1.5rem;
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.85rem;
    }

    .hero-content {
        padding: 0 5%;
    }

    .cta-container {
        flex-direction: column;
    }

    .cta-btn {
        width: 100%;
        text-align: center;
    }

    .tech-badge {
        display: none;
    }
}

/* Loading State */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0f;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 191, 255, 0.1);
    border-top: 4px solid #00bfff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}