/* ============================================
   UI/UX Design Page - Custom Styles
   ============================================ */

/* Design Canvas Background */
#designCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.12;
}

/* Circuit Line Animations */
.pulse-line {
    fill: none;
    stroke: rgba(176, 184, 193, 0.2);
    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(45, 70, 109, 0.4); 
}

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

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

/* 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: 15px;
    padding: 12px;
    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, var(--accent-color), 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 - Side by Side Layout */
.services-section .service-card {
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    padding: 2rem;
    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: 70px;
    height: 70px;
    background: linear-gradient(135deg, #2D466D, #7893b1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

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

/* Process Step Numbers */
.process-step {
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
}

/* CTA Buttons */
.btn-gradient {
    position: relative;
    background: linear-gradient(135deg, #2D466D, #B0B8C1);
    border: none;
    color: #ffffff;
    padding: 0.8rem 2.2rem;
    border-radius: 35px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 0 15px rgba(45, 70, 109, 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, #B0B8C1, #2D466D);
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(45, 70, 109, 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.8rem 2.2rem;
    border-radius: 35px;
    font-weight: 600;
    font-size: 1rem;
    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, #2D466D, #B0B8C1);
    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: 2px solid rgba(255, 255, 255, 0.85);
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(45, 70, 109, 0.4);
}

/* Industry Cards */
.industry-card {
    transition: all 0.3s ease;
}

.industry-card:hover {
    transform: translateY(-5px);
    border-color: #2D466D !important;
    box-shadow: 0 10px 25px rgba(45,70,109,0.1);
}

/* Process Connector Line */
@media (min-width: 768px) {
    .process-connector {
        position: absolute;
        top: 32px;
        left: 12%;
        right: 12%;
        height: 2px;
        background: linear-gradient(90deg, #2D466D, #B0B8C1, #2D466D);
        z-index: 0;
    }
}

/* 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;
    }
    
    .services-section .service-card {
        text-align: center;
        flex-direction: column !important;
        align-items: center !important;
    }
    
    .services-section .service-icon {
        margin: 0 auto 1rem !important;
    }
}

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