/* ============================================
   Cloud Solutions Page - Custom Styles
   ============================================ */

/* Cloud Canvas Background */
#cloudCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.2;
}

/* Circuit & Cloud Path Animations */
.pulse-line {
    fill: none;
    stroke: rgba(176, 184, 193, 0.15);
    stroke-width: 0.5;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: circuitPulse 8s linear infinite;
}

.pulse-line:nth-child(2) { 
    animation-delay: 2s; 
    stroke: rgba(96, 165, 250, 0.3); 
}

.pulse-line:nth-child(3) { 
    animation-delay: 4s; 
}

.cloud-path {
    stroke: rgba(96, 165, 250, 0.25);
    stroke-width: 0.8;
    animation: cloudFloat 6s ease-in-out infinite;
}

@keyframes circuitPulse {
    0% { stroke-dashoffset: 100; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { stroke-dashoffset: -100; opacity: 0; }
}

@keyframes cloudFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* Floating Cloud Animation */
@keyframes floatCloud {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes floatCloudSmall {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
}

/* Floating Cloud Particles in CTA */
@keyframes floatingCloud {
    0%, 100% { transform: translateX(0) translateY(0); opacity: 0.5; }
    25% { transform: translateX(30px) translateY(-20px); opacity: 0.8; }
    50% { transform: translateX(10px) translateY(-40px); opacity: 0.5; }
    75% { transform: translateX(-20px) translateY(-20px); opacity: 0.8; }
}

/* Terminal Styles */
.terminal-container {
    animation: terminalEntrance 1s ease-out;
}

@keyframes terminalEntrance {
    from { 
        opacity: 0; 
        transform: perspective(1000px) rotateX(10deg) translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: perspective(1000px) rotateX(0) translateY(0); 
    }
}

.control.red { background: #ff5f56; }
.control.yellow { background: #ffbd2e; }
.control.green { background: #27c93f; }

/* Node Links */
.node-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.node-link:hover {
    background: rgba(45, 70, 109, 0.3);
    border-color: var(--primary-color);
    transform: translateX(10px);
}

.node-link.active {
    background: rgba(45, 70, 109, 0.4);
    border-color: var(--accent-color);
}

/* Typing Animation */
.typing-text {
    color: #ffffff;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.pulse-text {
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Data Stream Lines */
.data-stream-lines span {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(96, 165, 250, 0.4), transparent);
    top: -100px;
    opacity: 0.2;
    animation: streamDown 3s linear infinite;
}

.data-stream-lines span:nth-child(1) { 
    left: 10%; 
    animation-duration: 4s; 
}

.data-stream-lines span:nth-child(2) { 
    right: 20%; 
    animation-duration: 2.5s; 
}

.data-stream-lines span:nth-child(3) { 
    left: 50%; 
    animation-duration: 5s; 
}

@keyframes streamDown {
    0% { top: -100px; }
    100% { top: 100%; }
}

/* Service Cards */
.services-section .service-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.services-section .service-card:hover {
    transform: translateY(-8px);
    border-color: #2D466D;
    box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1);
}

.services-section .service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1a365d, #2D466D, #60a5fa);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.services-section .service-card:hover .service-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, #60a5fa, #2D466D, #1a365d);
}

.service-card .service-title {
    color: #0f172a;
    font-weight: 600;
    font-size: 1.2rem;
}

.service-card .service-description {
    color: #64748b;
    font-size: 0.95rem;
}

/* CTA Buttons */
.btn-gradient {
    position: relative;
    background: linear-gradient(135deg, #1a365d, #3b82f6);
    border: none;
    color: #ffffff;
    padding: 0.9rem 2.5rem;
    border-radius: 35px;
    font-weight: 600;
    font-size: 1.05rem;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    transition: all 0.4s ease;
    overflow: hidden;
    z-index: 1;
    text-decoration: none;
    display: inline-block;
}

.btn-gradient:hover {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.5);
    color: #ffffff;
}

.btn-outline-gradient {
    position: relative;
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #ffffff;
    background: transparent;
    padding: 0.9rem 2.5rem;
    border-radius: 35px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.4s ease;
    z-index: 1;
    overflow: hidden;
    text-decoration: none;
}

.btn-outline-gradient::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a365d, #3b82f6);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
    z-index: -1;
}

.btn-outline-gradient:hover::before {
    opacity: 1;
}

.btn-outline-gradient:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.85);
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.4);
}

/* Provider Badges */
.provider-badge {
    background: rgba(45,70,109,0.08);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #2D466D;
    display: inline-block;
    transition: all 0.3s ease;
}

.provider-badge:hover {
    background: rgba(45,70,109,0.15);
    transform: translateY(-2px);
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .terminal-container { 
        max-width: 100%; 
        margin-top: 50px; 
        margin-bottom: 60px;
    }
    
    .app-dev-hero {
        padding-bottom: 80px;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem !important;
    }
    
    .cta-title-modern {
        font-size: 1.8rem !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem !important;
    }
    
    .terminal-body { 
        padding: 15px !important; 
    }
    
    .node-meta { 
        font-size: 0.65rem; 
    }
}